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:09:59 -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/t126329840660u4p0llv4s9owu.htm/, Retrieved Tue, 12 Jan 2010 13:13:28 +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/t126329840660u4p0llv4s9owu.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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.683326-9.26910
20.3490094.73422e-06
3-0.273852-3.71470.000135
40.1123621.52410.064594
5-0.166118-2.25330.012709
60.3319964.50346e-06
7-0.183269-2.4860.006905
80.130421.76910.039267
9-0.273553-3.71070.000137
100.3119914.23211.8e-05
11-0.581377-7.88620
120.86224211.6960
13-0.607994-8.24720
140.326684.43138e-06
15-0.244551-3.31730.000548
160.0795711.07940.140921
17-0.129671-1.75890.040125
180.2963984.02054.2e-05
19-0.177116-2.40250.008638
200.1391391.88740.030342
21-0.276053-3.74460.000121
220.3149064.27161.6e-05
23-0.561218-7.61270
240.81043910.99330
25-0.573692-7.78190
260.3213234.35861.1e-05
27-0.233778-3.17110.00089
280.0533740.7240.234991
29-0.086578-1.17440.120876
300.2469113.34930.000491
31-0.158696-2.15270.016324
320.1476562.00290.023327
33-0.26758-3.62960.000184
340.2764953.75060.000118
35-0.489239-6.63640
360.7192579.75650
37-0.508916-6.90330
380.2840283.85278.1e-05
39-0.206372-2.79940.002833
400.0438140.59430.276515
41-0.079325-1.0760.141664
420.2338793.17250.000886
43-0.162648-2.20630.014302
440.1584572.14940.016454
45-0.26431-3.58530.000216
460.2591783.51570.000276
47-0.441007-5.98210
480.6518998.84280
49-0.47314-6.4180
500.2704453.66850.00016
51-0.175386-2.3790.009191
520.0026410.03580.485732
53-0.040206-0.54540.293074
540.2006412.72160.00356
55-0.147537-2.00130.023415
560.1470251.99430.023796
57-0.237732-3.22480.000746
580.2234853.03150.001392
59-0.388407-5.26860
600.5851217.9370


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.683326-9.26910
2-0.221223-3.00080.001533
3-0.263865-3.57920.00022
4-0.335819-4.55535e-06
5-0.597513-8.10510
6-0.362543-4.91781e-06
7-0.09525-1.2920.098982
80.174112.36170.009617
9-0.119389-1.61950.05353
100.3440814.66733e-06
11-0.689049-9.34670
12-0.043834-0.59460.276425
130.1283421.74090.041684
140.0109310.14830.441142
150.0850731.1540.125001
160.0583580.79160.214804
170.1350911.83250.03425
180.046740.6340.26343
19-0.001306-0.01770.492941
20-0.006642-0.09010.464155
21-0.135096-1.83250.034244
220.0940671.2760.101785
23-0.208611-2.82970.002588
24-0.094515-1.28210.100716
250.0090390.12260.451275
260.0764641.03720.150501
270.123011.66860.04845
28-0.029521-0.40040.344647
290.121921.65380.049936
30-0.003116-0.04230.483168
31-0.085582-1.16090.123595
32-0.066904-0.90750.182658
330.0119130.16160.435901
34-0.070298-0.95360.170776
35-0.013322-0.18070.428397
360.0139160.18880.42524
370.1019781.38330.084124
380.0268490.36420.358065
39-0.061239-0.83070.203615
400.0647760.87870.190365
41-0.044801-0.60770.272063
420.0303510.41170.340519
43-0.0228-0.30930.378732
44-0.063242-0.85790.196045
450.0267360.36270.358633
46-0.026248-0.3560.361107
470.0261620.35490.361544
480.0200930.27260.392752
49-0.007902-0.10720.457377
50-0.015265-0.20710.418093
510.0648560.87970.190072
520.0059910.08130.467662
53-0.043175-0.58570.279413
54-0.031193-0.42310.33635
550.0404840.54910.291785
56-0.026988-0.36610.357361
57-0.020097-0.27260.392727
58-0.008569-0.11620.453794
59-0.045063-0.61130.270891
600.0183780.24930.401705
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t126329840660u4p0llv4s9owu/1g2k91263298193.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t126329840660u4p0llv4s9owu/1g2k91263298193.ps (open in new window)


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


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