Home » date » 2010 » Dec » 16 »

*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: Thu, 16 Dec 2010 18:44:05 +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/16/t1292524913cwpokqxzc25mio8.htm/, Retrieved Thu, 16 Dec 2010 19:41:53 +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/16/t1292524913cwpokqxzc25mio8.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 «
294912 293488 290555 284736 281818 287854 316263 325412 326011 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 301631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860 300713 287224 275902 271115 277509 279681 276239 271037 266148 259497 266795 298305 303725 289742 276444 268606
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3522633.18990.001008
2-0.267602-2.42320.008792
3-0.386269-3.49780.00038
4-0.251221-2.27490.012761
50.0434250.39320.347586
60.1686531.52720.065278
70.0589470.53380.297466
8-0.212789-1.92690.028729
9-0.322664-2.92180.002247
10-0.22226-2.01270.023717
110.3267712.9590.002016
120.8132237.3640
130.2520592.28250.012525
14-0.277386-2.51180.006986
15-0.367794-3.33050.000651
16-0.214243-1.94010.027905
170.0423380.38340.351214
180.1425511.29090.100191
190.0292830.26520.395773
20-0.209071-1.89320.030928
21-0.271231-2.45610.008079
22-0.160259-1.45120.075269
230.2840512.57220.005954
240.6519825.9040
250.1872851.69590.046845
26-0.278187-2.51910.006854
27-0.327097-2.9620.001999
28-0.193466-1.75190.041764
290.0273260.24740.402589
300.1123211.01710.156047
310.0146270.13250.447474
32-0.185632-1.6810.048287
33-0.206048-1.86580.03282
34-0.102964-0.93240.176939
350.2376562.15210.017166
360.5151794.66516e-06
370.1266181.14660.127446
38-0.229015-2.07380.020617
39-0.241122-2.18350.01593
40-0.127084-1.15080.12658
410.0409860.37110.355744
420.0894340.80990.210181
430.0035740.03240.487131
44-0.136943-1.24010.109243
45-0.142131-1.28710.100848
46-0.040361-0.36550.357847
470.1914041.73320.043406
480.3578893.24080.000862


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3522633.18990.001008
2-0.447182-4.04945.8e-05
3-0.131748-1.1930.11815
4-0.192199-1.74040.042767
50.0466990.42290.336746
6-0.069443-0.62880.265604
7-0.076037-0.68850.246527
8-0.286116-2.59090.005664
9-0.220249-1.99440.024713
10-0.332467-3.01060.001732
110.3485893.15660.001117
120.5990075.42420
13-0.276509-2.50390.007133
140.1209131.09490.13838
150.0546620.4950.310967
160.0518960.46990.319824
17-0.068724-0.62230.267728
18-0.058183-0.52690.299853
19-0.084696-0.7670.222654
20-0.075835-0.68670.247099
21-0.019913-0.18030.428673
22-0.021639-0.19590.422568
23-0.163966-1.48480.070719
240.0020950.0190.492454
25-0.002935-0.02660.489431
26-0.090455-0.81910.20755
270.0254780.23070.409057
28-0.147522-1.33590.092645
29-0.027748-0.25130.401118
30-0.092143-0.83440.203243
31-0.014585-0.13210.447625
32-0.085003-0.76970.221834
33-0.021676-0.19630.422435
34-0.074022-0.67030.252276
35-0.061623-0.5580.289175
36-0.090574-0.82020.207244
37-0.064201-0.58140.281295
380.0467830.42360.336471
39-0.007975-0.07220.471302
400.0542840.49160.312172
41-0.002538-0.0230.49086
420.0162710.14730.441612
430.013310.12050.452182
440.1060080.95990.169953
45-0.064689-0.58580.279815
460.1003690.90890.183037
47-0.123284-1.11640.133758
48-0.098939-0.89590.186456
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/1acvv1292525041.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/1acvv1292525041.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/2k3ug1292525041.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/2k3ug1292525041.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/3k3ug1292525041.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292524913cwpokqxzc25mio8/3k3ug1292525041.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; 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