Home » date » 2010 » Dec » 15 »

*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: Wed, 15 Dec 2010 15:04:15 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9.htm/, Retrieved Wed, 15 Dec 2010 16:06: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/2010/Dec/15/t1292425601ngge702jsicwme9.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
186448 190530 194207 190855 200779 204428 207617 212071 214239 215883 223484 221529 225247 226699 231406 232324 237192 236727 240698 240688 245283 243556 247826 245798 250479 249216 251896 247616 249994 246552 248771 247551 249745 245742 249019 245841 248771 244723 246878 246014 248496 244351 248016 246509 249426 247840 251035 250161 254278 250801 253985 249174 251287 247947 249992 243805 255812 250417 253033 248705 253950 251484 251093 245996 252721 248019 250464 245571 252690 250183 253639 254436 265280 268705 270643 271480
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8954837.80660
20.8219277.16540
30.726176.33060
40.6439925.61420
50.5630354.90843e-06
60.511174.45631.4e-05
70.4414583.84850.000123
80.4021663.5060.000383
90.3437522.99680.001842
100.3035712.64650.004941
110.2583612.25230.013594
120.2233261.94690.02762
130.177011.54310.063476
140.1481961.29190.100146
150.1051320.91650.181147
160.0807210.70370.241881
170.0492760.42960.33436
180.0297270.25920.398109
190.002340.02040.49189
20-0.01254-0.10930.456618
21-0.02051-0.17880.429286
22-0.022302-0.19440.423183
23-0.029813-0.25990.39782
24-0.027601-0.24060.40525
25-0.030097-0.26240.396869
26-0.026936-0.23480.407491
27-0.030708-0.26770.394825
28-0.032994-0.28760.387204
29-0.040117-0.34970.363754
30-0.041917-0.36540.357905
31-0.051337-0.44750.327876
32-0.049517-0.43170.333598
33-0.054416-0.47440.318292
34-0.056664-0.4940.31137
35-0.061297-0.53440.297321
36-0.06501-0.56670.28628
37-0.07177-0.62570.266701
38-0.076317-0.66530.253932
39-0.086802-0.75670.225778
40-0.091987-0.80190.212549
41-0.099977-0.87160.193092
42-0.111098-0.96850.167926
43-0.120704-1.05230.148005
44-0.128997-1.12460.132155
45-0.137881-1.2020.116543
46-0.140118-1.22150.112833
47-0.143246-1.24880.107788
48-0.143811-1.25370.106895
49-0.140396-1.22390.112378
50-0.143976-1.25520.106635
51-0.144407-1.25890.105958
52-0.152244-1.32720.094202
53-0.159536-1.39080.084172
54-0.16975-1.47980.071524
55-0.178511-1.55620.061905
56-0.200912-1.75150.041946
57-0.197385-1.72080.044681
58-0.203279-1.77210.040189
59-0.203487-1.7740.040038
60-0.213835-1.86420.03308


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8954837.80660
20.1011450.88180.190343
3-0.132493-1.1550.125845
4-0.012371-0.10780.457201
5-0.020743-0.18080.428489
60.0944070.8230.206534
7-0.094477-0.82360.206364
80.0692130.60340.274025
9-0.077072-0.67190.251843
100.0157550.13730.44556
11-0.011704-0.1020.459501
12-0.00951-0.08290.467072
13-0.049997-0.43590.332086
140.0124130.10820.457057
15-0.046668-0.40680.342634
160.0181630.15830.437304
17-0.018685-0.16290.435519
18-0.000155-0.00130.499464
19-0.030856-0.2690.394332
200.0020640.0180.492847
210.0646690.56380.287283
22-0.007458-0.0650.474165
23-0.017676-0.15410.438971
240.0098470.08580.465907
250.0077350.06740.473209
260.0068080.05940.476413
27-0.022875-0.19940.421233
28-0.016977-0.1480.441367
29-0.015744-0.13720.445598
300.0037610.03280.486966
31-0.022808-0.19880.42146
320.0201580.17570.430486
33-0.018188-0.15860.437218
34-0.016715-0.14570.442264
35-0.007767-0.06770.473096
36-0.013495-0.11760.453329
37-0.005992-0.05220.47924
38-0.02067-0.18020.428739
39-0.024105-0.21010.41706
40-0.001303-0.01140.495483
41-0.004258-0.03710.485244
42-0.043121-0.37590.354011
43-0.008225-0.07170.471514
44-0.012498-0.1090.456762
45-0.004416-0.03850.484695
460.0042050.03670.485428
47-0.007467-0.06510.474134
48-0.00895-0.0780.469007
490.011740.10230.459377
50-0.041041-0.35780.360747
51-0.00314-0.02740.489117
52-0.04517-0.39380.347423
53-0.01622-0.14140.443964
54-0.031507-0.27470.392156
55-0.020049-0.17480.430856
56-0.084154-0.73360.232712
570.0798760.69630.244169
58-0.025725-0.22430.411578
59-0.029087-0.25360.400256
60-0.061325-0.53460.297236
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/14j5z1292425452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/14j5z1292425452.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/2xamk1292425452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/2xamk1292425452.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/3xamk1292425452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292425601ngge702jsicwme9/3xamk1292425452.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 4 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 4 ; par6 = White Noise ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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