Home » date » 2010 » Dec » 28 »

*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, 28 Dec 2010 08:41:49 +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/28/t1293525609gsk6gr6ilx169vw.htm/, Retrieved Tue, 28 Dec 2010 09:40:09 +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/28/t1293525609gsk6gr6ilx169vw.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 «
547.344 554.788 562.325 560.854 555.332 543.599 536.662 542.722 593.530 610.763 612.613 611.324 594.167 595.454 590.865 589.379 584.428 573.100 567.456 569.028 620.735 628.884 628.232 612.117 595.404 597.141 593.408 590.072 579.799 574.205 572.775 572.942 619.567 625.809 619.916 587.625 565.742 557.274 560.576 548.854 531.673 525.919 511.038 498.662 555.362 564.591 541.657 527.070 509.846 514.258 516.922 507.561 492.622 490.243 469.357 477.580 528.379 533.590 517.945 506.174 501.866 516.141 528.222 532.638 536.322 536.535 523.597 536.214 586.570 596.594 580.523 564.478 557.560 575.093 580.112 574.761 563.250 551.531 537.034 544.686 600.991 604.378 586.111 563.668 548.604
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2763192.53250.006593
2-0.25494-2.33660.010922
3-0.351435-3.2210.000909
4-0.242419-2.22180.014493
50.0943360.86460.19486
60.2339122.14380.017468
70.1234021.1310.130638
8-0.192378-1.76320.040754
9-0.292315-2.67910.00444
10-0.236838-2.17070.01639
110.2474272.26770.012957
120.7680567.03930
130.1568581.43760.077128
14-0.267707-2.45360.008106
15-0.334561-3.06630.001458
16-0.20648-1.89240.03094
170.0848150.77730.21957
180.1808611.65760.050563
190.0614020.56280.28755
20-0.209758-1.92250.028968
21-0.268405-2.460.007972
22-0.193565-1.77410.039839
230.2091271.91670.029339
240.6059935.5540
250.0955150.87540.191924
26-0.267634-2.45290.00812
27-0.302137-2.76910.003458
28-0.183615-1.68290.048058
290.0701770.64320.260929
300.1510561.38450.084943
310.0444740.40760.342297
32-0.193815-1.77630.039648
33-0.213127-1.95330.027054
34-0.139295-1.27670.10262
350.1935731.77410.039833
360.4917214.50671.1e-05
370.0543070.49770.309985
38-0.215734-1.97720.025648
39-0.211815-1.94130.027786
40-0.10689-0.97970.165033
410.0829510.76030.224613
420.1287671.18020.120632
430.02950.27040.393769
44-0.14617-1.33970.091982
45-0.160908-1.47470.072009
46-0.063838-0.58510.28003
470.1677271.53720.063996
480.3515223.22180.000907


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2763192.53250.006593
2-0.358678-3.28730.000739
3-0.194595-1.78350.039059
4-0.19895-1.82340.035899
50.0800860.7340.232497
60.0150650.13810.445257
70.003520.03230.487169
8-0.220475-2.02070.023249
9-0.117355-1.07560.142598
10-0.254019-2.32810.011155
110.278542.55290.006246
120.6234655.71410
13-0.294943-2.70320.004155
140.0441450.40460.343402
150.0526110.48220.315464
160.0302760.27750.391045
17-0.073228-0.67110.251984
18-0.138625-1.27050.103703
19-0.12303-1.12760.131352
20-0.09735-0.89220.187411
21-0.068708-0.62970.265294
22-0.034247-0.31390.377196
23-0.164558-1.50820.067628
240.0292730.26830.394566
25-0.011553-0.10590.457963
26-0.062342-0.57140.284635
27-0.005424-0.04970.480236
28-0.091171-0.83560.202875
29-0.040618-0.37230.355314
30-0.028678-0.26280.396658
31-0.029845-0.27350.392558
32-0.073556-0.67410.251034
33-0.025738-0.23590.407045
34-0.035576-0.32610.372596
35-0.019027-0.17440.430989
36-0.058215-0.53360.29753
37-0.049768-0.45610.324735
380.0383250.35130.363137
390.0484460.4440.329087
400.0293040.26860.394458
41-0.029329-0.26880.394371
42-0.022109-0.20260.419956
430.0112170.10280.45918
440.0576840.52870.29921
45-0.098976-0.90710.183466
460.0490030.44910.327252
47-0.154766-1.41850.079879
48-0.112914-1.03490.151848
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/1cc4b1293525706.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/1cc4b1293525706.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/2m3le1293525706.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/2m3le1293525706.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/3m3le1293525706.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525609gsk6gr6ilx169vw/3m3le1293525706.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