Home » date » 2010 » Dec » 27 »

*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: Mon, 27 Dec 2010 20:46:03 +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/27/t1293482642trhj6ju6a1x2pcz.htm/, Retrieved Mon, 27 Dec 2010 21:44:02 +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/27/t1293482642trhj6ju6a1x2pcz.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 «
493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528 533 536 537 524 536 587 597 581 564 558 575 580 575 563 552 537 545 601 604 586 564 549
 
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.2807573.20110.00086
2-0.236878-2.70080.003919
3-0.336759-3.83969.6e-05
4-0.278954-3.18060.000919
50.0673780.76820.221874
60.2306252.62950.004791
70.0837040.95440.170832
8-0.236097-2.69190.00402
9-0.28868-3.29150.000642
10-0.222441-2.53620.006195
110.2620062.98730.001682
120.8134889.27520
130.1981562.25930.012764
14-0.205678-2.34510.010268
15-0.310527-3.54060.000277
16-0.260502-2.97020.001773
170.0561640.64040.26153
180.1798052.05010.021183
190.0397990.45380.325372
20-0.246409-2.80950.002864
21-0.276909-3.15730.00099
22-0.183175-2.08850.019351
230.2638543.00840.001577
240.6947827.92170
250.1227721.39980.081974
26-0.223577-2.54920.00598
27-0.283217-3.22920.000786
28-0.227942-2.59890.005216
290.0555720.63360.26372
300.1451061.65450.050223
310.018080.20610.418501
32-0.238897-2.72380.00367
33-0.246861-2.81470.002822
34-0.143229-1.63310.052437
350.2522472.87610.002354
360.6227367.10030
370.1071261.22140.112068
38-0.193067-2.20130.01474
39-0.270024-3.07870.001268
40-0.19188-2.18780.015237
410.054860.62550.26637
420.1332461.51920.065565
430.0187020.21320.415738
44-0.219273-2.50010.00683
45-0.213355-2.43260.008175
46-0.099642-1.13610.129003
470.2105712.40090.008886
480.5282616.02310
490.0992211.13130.130008
50-0.166798-1.90180.029706
51-0.231622-2.64090.004641
52-0.152466-1.73840.042255
530.035050.39960.345041
540.1088551.24110.108396
550.0080750.09210.463391
56-0.188005-2.14360.016964
57-0.149104-1.70.045757
58-0.077783-0.88690.188394
590.2030252.31480.011094
600.4646685.2980


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2807573.20110.00086
2-0.342717-3.90767.5e-05
3-0.186034-2.12110.017906
4-0.236752-2.69940.003935
50.0930081.06050.145453
60.0062970.07180.471437
7-0.069952-0.79760.213286
8-0.281009-3.2040.000853
9-0.127089-1.4490.074867
10-0.294907-3.36250.000508
110.2577162.93840.001952
120.6769957.71890
13-0.245716-2.80160.002931
140.1638291.86790.032011
150.0527090.6010.274452
160.043850.50.30897
17-0.034195-0.38990.348631
18-0.120737-1.37660.085498
19-0.093521-1.06630.144132
20-0.156023-1.77890.038794
21-0.114217-1.30230.097563
22-0.01318-0.15030.440392
23-0.075202-0.85740.19639
240.0570730.65070.258183
25-0.125017-1.42540.078217
26-0.075194-0.85730.196415
270.0833360.95020.171893
28-0.05902-0.67290.251093
29-0.024618-0.28070.389696
30-0.056726-0.64680.25946
310.0009870.01130.495521
32-0.015926-0.18160.428098
33-0.020264-0.2310.40882
34-0.015645-0.17840.42935
35-0.069538-0.79290.214653
360.0881711.00530.158309
370.0488380.55680.289298
380.0261080.29770.383211
39-0.064661-0.73730.231149
400.0932661.06340.144786
41-0.06567-0.74870.22768
420.0431530.4920.311769
43-0.030296-0.34540.365166
44-0.023062-0.26290.396504
45-0.049352-0.56270.287303
460.0126840.14460.442618
47-0.199232-2.27160.012377
48-0.023248-0.26510.395687
49-0.035443-0.40410.343398
50-0.096255-1.09750.137232
51-0.029732-0.3390.367579
52-0.025839-0.29460.384382
53-0.061597-0.70230.24187
54-0.021901-0.24970.401605
55-0.045103-0.51430.303972
560.0660670.75330.226323
570.0368030.41960.337727
58-0.074396-0.84820.19893
590.1775832.02480.02247
60-0.053094-0.60540.272996
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/1dpxh1293482759.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/1dpxh1293482759.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/2ogf21293482759.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/2ogf21293482759.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/3ogf21293482759.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293482642trhj6ju6a1x2pcz/3ogf21293482759.ps (open in new window)


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