Home » date » 2010 » Jan » 12 »

*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, 12 Jan 2010 05:35:39 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/12/t1263299796tmjrhwbnjm57xam.htm/, Retrieved Tue, 12 Jan 2010 13:36:38 +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/Jan/12/t1263299796tmjrhwbnjm57xam.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 «
277 260.6 291.6 275.4 275.3 231.7 238.8 274.2 277.8 299.1 286.6 232.3 294.1 267.5 309.7 280.7 287.3 235.7 256.4 289 290.8 321.9 291.8 241.4 295.5 258.2 306.1 281.5 283.1 237.4 274.8 299.3 300.4 340.9 318.8 265.7 322.7 281.6 323.5 312.6 310.8 262.8 273.8 320 310.3 342.2 320.1 265.6 327 300.7 346.4 317.3 326.2 270.7 278.2 324.6 321.8 343.5 354 278.2 330.2 307.3 375.9 335.3 339.3 280.3 293.7 341.2 345.1 368.7 369.4 288.4 341 319.1 374.2 344.5 337.3 281 282.2 321 325.4 366.3 380.3 300.7 359.3 327.6 383.6 352.4 329.4 294.5 333.5 334.3 358 396.1 387 307.2 363.9 344.7 397.6 376.8 337.1 299.3 323.1 329.1 347 462 436.5 360.4 415.5 382.1 432.2 424.3 386.7 354.5 375.8 368 402.4 426.5 433.3 338.5 416.8 381.1 445.7 412.4 394 348.2 380.1 373.7 393.6 434.2 430.7 344.5 411.9 370.5 437.3 411.3 385.5 341.3 384.2 373.2 415.8 448.6 454.3 350.3 419.1 398 456.1 430.1 399.8 362.7 384. etc...
 
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.4696865.97810
20.447585.69680
30.1886792.40150.00873
40.1546531.96840.025364
50.0695340.8850.188728
60.0750970.95580.17029
70.0831961.05890.145608
80.0107190.13640.445827
9-0.084608-1.07690.141566
10-0.269639-3.43190.00038
11-0.273711-3.48380.000318
12-0.598896-7.62270
13-0.226915-2.88820.002203
14-0.220484-2.80630.002813
150.0333590.42460.335851
16-0.042841-0.54530.293157
17-0.045377-0.57760.282183
18-0.045047-0.57330.283602
19-0.068869-0.87660.19101
20-0.07541-0.95980.169291
210.0038550.04910.480465
220.0944251.20180.115591
230.0736610.93760.174934
240.1692962.15480.016328
25-0.009364-0.11920.452638
260.0247550.31510.376553
27-0.151799-1.93210.027547
28-0.086033-1.0950.137566
29-0.001914-0.02440.490298
30-0.023993-0.30540.380236
310.0305460.38880.348973
320.0265850.33840.36776
33-0.003278-0.04170.483385
34-0.039325-0.50050.308691
35-0.046566-0.59270.277109
36-0.056838-0.72340.235228
370.0223240.28410.388333
38-0.022053-0.28070.389655
390.0711570.90570.183225
400.0826521.0520.147185
41-0.016763-0.21340.41566
420.003890.04950.480288
43-0.060494-0.770.221222
44-0.000921-0.01170.495332
45-0.014342-0.18250.427694
460.0160390.20410.419251
470.049580.63110.264448
480.0203840.25940.397811
49-0.002364-0.03010.488018
500.0094630.12040.45214
51-0.043672-0.55590.28954
52-0.064479-0.82070.206515
530.01920.24440.403626
54-0.034578-0.44010.330224
550.0881011.12130.1319
56-0.022906-0.29150.385506
57-0.021502-0.27370.392342
58-0.052823-0.67230.251167
59-0.084515-1.07570.141831
60-0.074564-0.9490.172005


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4696865.97810
20.2912193.70660.000144
3-0.136135-1.73270.042525
4-0.003324-0.04230.483154
50.0145950.18580.426432
60.0287770.36630.35732
70.0584690.74420.22892
8-0.089199-1.13530.128959
9-0.155735-1.98220.024575
10-0.254355-3.23740.000732
11-0.053987-0.68710.246489
12-0.482373-6.13960
130.3636354.62834e-06
140.1910782.4320.008052
150.1447741.84270.033602
16-0.061075-0.77740.219041
17-0.172247-2.19230.014891
180.0701080.89230.186771
190.0212260.27020.393688
20-0.151943-1.93390.027433
21-0.075517-0.96120.168948
22-0.096559-1.2290.110428
23-0.036915-0.46990.319545
24-0.187156-2.38210.009187
250.1521591.93670.027263
260.1552051.97540.024958
270.0716230.91160.181662
28-0.150184-1.91150.028851
290.0177710.22620.41067
30-0.035932-0.45730.324021
310.0824861.04990.147668
32-0.07648-0.97340.165895
33-0.092399-1.1760.120651
34-0.032572-0.41460.339499
35-0.034851-0.44360.328969
36-0.105815-1.34680.089962
370.033630.4280.334595
380.0699750.89060.187222
390.0626250.79710.213284
400.038390.48860.312882
41-0.061624-0.78430.216991
42-0.055739-0.70940.239536
430.0675850.86020.19547
44-0.011087-0.14110.443978
45-0.050661-0.64480.25998
46-0.03006-0.38260.35126
47-0.000513-0.00650.497401
48-0.12765-1.62470.053084
490.0253130.32220.373866
500.0222450.28310.388719
510.0067120.08540.466013
520.0528320.67240.251131
530.0317420.4040.343368
54-0.146532-1.8650.031992
550.1330451.69340.046152
56-0.002661-0.03390.486514
57-0.138739-1.76590.039652
58-0.061301-0.78020.218197
59-0.032455-0.41310.340046
60-0.139647-1.77740.038688
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263299796tmjrhwbnjm57xam/1gjo71263299737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263299796tmjrhwbnjm57xam/1gjo71263299737.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/12/t1263299796tmjrhwbnjm57xam/2usrr1263299737.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263299796tmjrhwbnjm57xam/2usrr1263299737.ps (open in new window)


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