Home » date » 2009 » Dec » 29 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 29 Dec 2009 13:21:47 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf.htm/, Retrieved Tue, 29 Dec 2009 21:22:44 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
100.44 100.51 101.00 100.88 100.55 100.83 101.51 102.16 102.39 102.54 102.85 103.47 103.57 103.69 103.50 103.47 103.45 103.48 103.93 103.89 104.40 104.79 104.77 105.13 105.26 104.96 104.75 105.01 105.15 105.20 105.77 105.78 106.26 106.13 106.12 106.57 106.44 106.54 107.10 108.10 108.40 108.84 109.62 110.42 110.67 111.66 112.28 112.87 112.18 112.36 112.16 111.49 111.25 111.36 111.74 111.10 111.33 111.25 111.04 110.97 111.31 111.02 111.07 111.36
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9619917.69590
20.9217917.37430
30.8817857.05430
40.8355986.68480
50.7848576.27890
60.7343475.87480
70.6863895.49110
80.6396145.11692e-06
90.5946484.75726e-06
100.5467694.37422.3e-05
110.5017154.01378e-05
120.4592873.67430.000245
130.4158173.32650.00073
140.3697342.95790.002168
150.3203442.56280.006374
160.2696442.15720.017377
170.2155741.72460.044714
180.163321.30660.098019
190.1160510.92840.178342
200.072210.57770.282754
210.0329320.26350.396524
22-0.00155-0.01240.495071
23-0.034501-0.2760.391715
24-0.063797-0.51040.305771
25-0.092572-0.74060.23083
26-0.120004-0.960.170327
27-0.147392-1.17910.121355
28-0.173299-1.38640.085219
29-0.199712-1.59770.057518
30-0.224578-1.79660.038557
31-0.246516-1.97210.02646
32-0.269629-2.1570.017382
33-0.288967-2.31170.012011
34-0.311489-2.49190.007653
35-0.332796-2.66240.004901
36-0.352044-2.81640.003225
37-0.37411-2.99290.001962
38-0.395368-3.16290.001194
39-0.414736-3.31790.000749
40-0.429973-3.43980.000515
41-0.443316-3.54650.000368
42-0.451783-3.61430.000297
43-0.454854-3.63880.000274
44-0.450776-3.60620.000305
45-0.442229-3.53780.000378
46-0.427065-3.41650.000553
47-0.404893-3.23910.000951
48-0.379001-3.0320.001753
49-0.357677-2.86140.002846
50-0.334798-2.67840.004695
51-0.313694-2.50960.007315
52-0.296567-2.37250.010341
53-0.28078-2.24620.014074
54-0.261039-2.08830.020377
55-0.237463-1.89970.03099
56-0.217451-1.73960.043367
57-0.194688-1.55750.062141
58-0.169478-1.35580.08996
59-0.142589-1.14070.12912
60-0.114551-0.91640.181447


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9619917.69590
2-0.048743-0.38990.348938
3-0.017515-0.14010.444503
4-0.10452-0.83620.203087
5-0.08269-0.66150.255328
6-0.023833-0.19070.424697
70.0109090.08730.465364
8-0.004542-0.03630.485564
9-0.001221-0.00980.496117
10-0.075068-0.60050.275133
110.0023890.01910.492404
12-0.00226-0.01810.492815
13-0.038977-0.31180.378096
14-0.065062-0.52050.302258
15-0.085711-0.68570.247692
16-0.058728-0.46980.320039
17-0.078805-0.63040.265326
18-0.005675-0.04540.481963
190.0356470.28520.388215
200.0091450.07320.470955
210.0167480.1340.446918
220.0112810.09020.464187
23-0.03405-0.27240.393095
240.0015240.01220.495156
25-0.045028-0.36020.359934
26-0.018874-0.1510.440229
27-0.041004-0.3280.371979
28-0.016808-0.13450.446729
29-0.034118-0.27290.392887
30-0.003423-0.02740.489121
310.0072250.05780.477045
32-0.050084-0.40070.344997
330.0036870.02950.488281
34-0.102401-0.81920.207854
35-0.041516-0.33210.370439
36-0.028574-0.22860.409957
37-0.084034-0.67230.251916
38-0.029026-0.23220.408557
39-0.01676-0.13410.44688
400.0168870.13510.446481
410.0026230.0210.491662
420.02740.21920.413596
430.0363120.29050.386189
440.0548830.43910.331046
450.0171960.13760.445505
460.0610580.48850.313445
470.0613340.49070.312669
480.038690.30950.378966
49-0.080882-0.64710.259954
500.011820.09460.462481
51-0.03812-0.3050.380692
52-0.059929-0.47940.316632
53-0.022245-0.1780.42966
540.0447610.35810.360729
550.0340120.27210.393213
56-0.063859-0.51090.3056
570.0048040.03840.484733
580.0074910.05990.476199
590.0006790.00540.497841
600.0080230.06420.474513
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf/1umdu1262118104.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf/1umdu1262118104.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf/2v5cr1262118104.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/29/t1262118162wnewnewn26qbjdf/2v5cr1262118104.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by