Home » date » 2009 » Dec » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 16 Dec 2009 09:24:09 -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/16/t1260980834nnro9i8n59d6wfi.htm/, Retrieved Wed, 16 Dec 2009 17:27:16 +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/16/t1260980834nnro9i8n59d6wfi.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 «
492865 480961 461935 456608 441977 439148 488180 520564 501492 485025 464196 460170 467037 460070 447988 442867 436087 431328 484015 509673 512927 502831 470984 471067 476049 474605 470439 461251 454724 455626 516847 525192 522975 518585 509239 512238 519164 517009 509933 509127 500857 506971 569323 579714 577992 565464 547344 554788 562325 560854 555332 543599 536662 542722 593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 517945 506174 501866 516141 528222 532638 536322 536535 523597 536214 586570 596594 580523
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2696142.90380.002207
2-0.219843-2.36780.009775
3-0.292322-3.14840.001044
4-0.266543-2.87080.002434
50.0442150.47620.317411
60.2085752.24640.013285
70.0635770.68470.247435
8-0.242137-2.60790.005154
9-0.267476-2.88080.002363
10-0.199377-2.14740.016923
110.2656382.8610.002505
120.8145158.77260
130.1887942.03340.022149
14-0.181121-1.95070.02675
15-0.275345-2.96560.001834
16-0.262407-2.82620.002774
170.0214380.23090.4089
180.1564141.68460.047374
190.0300710.32390.373306
20-0.250144-2.69410.004052
21-0.259362-2.79340.003052
22-0.1536-1.65430.050383
230.2660022.86490.002476
240.6759567.28030
250.1021111.09980.136855
26-0.203863-2.19570.015053
27-0.246645-2.65640.004504
28-0.224352-2.41630.008618
290.0236860.25510.399547
300.1190681.28240.10113
310.0018230.01960.492184
32-0.247339-2.66390.004411
33-0.234168-2.52210.006511
34-0.119364-1.28560.100573
350.2236342.40860.008794
360.5777046.22210
370.1119721.2060.11514
38-0.16678-1.79630.037527
39-0.24798-2.67080.004327
40-0.191087-2.05810.020912
410.02320.24990.401566
420.104681.12740.130942
430.0086740.09340.462864
44-0.211061-2.27320.012427
45-0.184546-1.98760.024605
46-0.096779-1.04230.14971
470.1816191.95610.026429
480.4898925.27630


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2696142.90380.002207
2-0.315467-3.39770.000466
3-0.154841-1.66770.049038
4-0.236414-2.54630.0061
50.087590.94340.173726
60.0198590.21390.415505
7-0.076731-0.82640.205132
8-0.284516-3.06430.001357
9-0.118683-1.27830.101855
10-0.262771-2.83010.002743
110.2688182.89530.002264
120.6904277.43610
13-0.210452-2.26660.012633
140.187762.02220.022726
15-0.018358-0.19770.421806
160.0298820.32180.374077
17-0.059115-0.63670.26279
18-0.136592-1.47110.07198
19-0.087937-0.94710.172777
20-0.139654-1.50410.067635
21-0.0918-0.98870.162429
220.0139520.15030.440408
23-0.066557-0.71680.237455
240.046540.50120.308573
25-0.143729-1.5480.062172
26-0.104826-1.1290.130611
270.0802130.86390.194708
28-0.057145-0.61550.269726
290.0075650.08150.467601
30-0.067759-0.72980.233495
31-0.010369-0.11170.455635
320.0184340.19850.421483
33-0.034702-0.37380.354635
34-0.058508-0.63010.264918
35-0.177097-1.90740.029471
360.0453660.48860.313022
370.1368741.47420.071571
38-0.02551-0.27470.391999
39-0.099793-1.07480.142346
400.0822750.88610.188692
41-0.0782-0.84220.200693
420.0675520.72760.234174
43-0.052136-0.56150.287761
440.0321780.34660.364774
450.0085730.09230.463295
46-0.08413-0.90610.183378
47-0.00985-0.10610.457847
48-0.043188-0.46520.321348
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260980834nnro9i8n59d6wfi/1nq7q1260980648.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260980834nnro9i8n59d6wfi/1nq7q1260980648.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260980834nnro9i8n59d6wfi/29exq1260980648.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260980834nnro9i8n59d6wfi/29exq1260980648.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 (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