Home » date » 2008 » Dec » 21 »

(Partial) Autocorrelation Function

*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: Sun, 21 Dec 2008 11:15:18 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/21/t1229883765tukwhy5d370ofls.htm/, Retrieved Sun, 21 Dec 2008 19:22:45 +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/2008/Dec/21/t1229883765tukwhy5d370ofls.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
357 363 364 363 358 357 357 380 378 376 380 379 384 392 394 392 396 392 396 419 421 420 418 410 418 426 428 430 424 423 427 441 449 452 462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397
 
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
1-0.007413-0.06250.475185
20.0801440.67530.250837
30.1261371.06280.145726
40.0043990.03710.485268
50.0914550.77060.221746
60.0420370.35420.362115
7-0.03437-0.28960.386479
80.1639811.38170.085693
9-0.025478-0.21470.415316
10-0.195745-1.64940.051744
110.1233351.03920.151109
12-0.247977-2.08950.020124
13-0.071944-0.60620.273154
140.124321.04750.149202
150.0313880.26450.396089
160.0417240.35160.363099
17-0.066024-0.55630.289868
180.0535620.45130.326566
190.0770740.64940.259077
20-0.003528-0.02970.488183
21-0.048004-0.40450.343536
22-0.001975-0.01660.493386
230.0647730.54580.293461
24-0.165297-1.39280.08401
25-0.103372-0.8710.193338
26-0.173424-1.46130.074173
270.0164540.13860.445061
28-0.120764-1.01760.156167
290.0297470.25060.401405
30-0.112873-0.95110.172393
31-0.091287-0.76920.222163
32-0.099358-0.83720.202643
33-0.059026-0.49740.310235
340.0013360.01130.495524
350.0449810.3790.352902
36-0.016821-0.14170.443845
37-0.029738-0.25060.401432
380.1064690.89710.186342
39-0.146294-1.23270.110878
400.0294620.24830.402327
410.0017710.01490.494068
42-0.112996-0.95210.172132
430.0765080.64470.26061
44-0.026431-0.22270.412201
45-0.093653-0.78910.216331
460.0316910.2670.395108
47-0.091495-0.7710.221646
48-0.010046-0.08460.46639
490.0627010.52830.299459
50-0.103806-0.87470.192347
510.074110.62450.267162
520.024360.20530.418977
53-0.085392-0.71950.23709
540.1168950.9850.163991
55-0.058128-0.48980.312894
560.0066280.05580.47781
570.0486740.41010.341472
580.0362580.30550.380435
590.0061820.05210.4793
600.0128070.10790.457183


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.007413-0.06250.475185
20.0800940.67490.250971
30.1281061.07940.142022
40.0010370.00870.496525
50.0727240.61280.270988
60.0290520.24480.403661
7-0.047667-0.40160.344575
80.1414351.19170.118664
9-0.025264-0.21290.416015
10-0.227136-1.91390.029833
110.0924530.7790.219278
12-0.226435-1.9080.030219
13-0.074542-0.62810.265975
140.1675391.41170.081202
150.1396461.17670.121628
160.0142870.12040.452259
17-0.078774-0.66380.254497
180.1431141.20590.11593
190.0029480.02480.490126
20-0.004221-0.03560.485864
21-0.012276-0.10340.458951
22-0.201031-1.69390.047332
230.0663150.55880.289034
24-0.199213-1.67860.048813
25-0.140195-1.18130.120712
26-0.154162-1.2990.099074
270.1267921.06840.144487
28-0.007745-0.06530.474073
290.0513550.43270.333262
300.0052570.04430.482396
31-0.06193-0.52180.301707
32-0.068618-0.57820.282484
330.010350.08720.465374
34-0.11482-0.96750.168291
350.1120030.94380.174248
36-0.08763-0.73840.231358
37-0.130413-1.09890.137767
380.0296530.24990.401708
39-0.038413-0.32370.37357
400.1034150.87140.193239
410.0138350.11660.453763
42-0.136078-1.14660.127695
430.0277580.23390.40787
440.0193770.16330.435383
45-0.035765-0.30140.382009
46-0.091108-0.76770.222608
470.0222450.18740.425924
480.0064120.0540.478533
49-0.078115-0.65820.256267
50-0.049457-0.41670.339066
510.0474410.39970.345274
52-0.064649-0.54470.293819
530.04820.40610.34293
54-0.032245-0.27170.39332
55-0.070216-0.59160.277982
56-0.035462-0.29880.38298
57-0.018995-0.16010.436645
58-0.013178-0.1110.45595
59-0.016958-0.14290.443391
600.0642770.54160.294891
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229883765tukwhy5d370ofls/1ac3n1229883313.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229883765tukwhy5d370ofls/1ac3n1229883313.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229883765tukwhy5d370ofls/2ius01229883313.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/21/t1229883765tukwhy5d370ofls/2ius01229883313.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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