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 04:45:30 -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/t1263296828xc33zhldkoaqpn3.htm/, Retrieved Tue, 12 Jan 2010 12:47:10 +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/t1263296828xc33zhldkoaqpn3.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.5049696.6610
20.4789316.31750
30.3269824.31321.3e-05
40.2757663.63760.000181
50.1707672.25260.012768
60.1877672.47680.007106
70.1593282.10170.018511
80.1067971.40870.080347
90.0086280.11380.45476
10-0.105876-1.39660.082157
11-0.0871-1.14890.126082
12-0.32447-4.281.5e-05
13-0.105134-1.38680.083637
14-0.117873-1.55490.060899
150.0573160.75610.225319
16-0.048377-0.63810.26211
17-0.076092-1.00370.158454
18-0.067675-0.89270.186627
19-0.07832-1.03310.151493
20-0.11377-1.50070.067619
21-0.058951-0.77760.218924
22-0.012772-0.16850.433204
23-0.06358-0.83870.201401
24-0.013276-0.17510.430595
25-0.106541-1.40540.080848
26-0.07271-0.95910.169417
27-0.195998-2.58540.005273
28-0.129572-1.70920.044601
29-0.032823-0.4330.332789
30-0.082944-1.09410.137711
31-0.034951-0.4610.322676
32-0.026539-0.35010.363354
33-0.054425-0.71790.236886
34-0.06796-0.89650.185625
35-0.058153-0.76710.222034
36-0.084101-1.10940.1344
37-0.024653-0.32520.372712
38-0.084604-1.1160.132979
39-0.026396-0.34820.364062
40-0.008579-0.11320.455013
41-0.082573-1.08920.138783
42-0.075353-0.9940.160806
43-0.099261-1.30930.096072
44-0.054031-0.71270.238488
45-0.099706-1.31520.095085
46-0.068477-0.90330.183813
47-0.033235-0.43840.330818
48-0.069753-0.92010.179397
49-0.076052-1.00320.158578
50-0.037513-0.49480.310672
51-0.068859-0.90830.182484
52-0.086521-1.14130.127658
53-0.005083-0.0670.47331
54-0.034758-0.45850.323585
550.0697540.92010.179392
56-0.018989-0.25050.401255
57-0.008268-0.10910.456641
58-0.016965-0.22380.411595
59-0.021533-0.2840.388361
60-0.010227-0.13490.446421


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5049696.6610
20.3005843.9655.4e-05
30.0089210.11770.453232
40.0209610.27650.39125
5-0.047824-0.63080.264488
60.0717220.94610.172712
70.0486760.64210.260834
8-0.04916-0.64850.258768
9-0.128794-1.69890.045561
10-0.178383-2.3530.009869
110.0319170.4210.337134
12-0.30737-4.05453.8e-05
130.2371593.12830.001031
140.1008391.33020.092603
150.2214642.92130.001974
16-0.100428-1.32470.093499
17-0.20857-2.75120.003283
180.0773891.02080.154376
19-0.010736-0.14160.443774
20-0.039824-0.52530.300016
21-0.069729-0.91980.179477
22-0.049661-0.65510.256644
23-0.012429-0.1640.434979
24-0.077014-1.01590.155547
250.0438240.57810.281979
260.0084420.11140.45573
270.0074330.09810.461002
28-0.058404-0.77040.221055
290.0732040.96560.167787
30-0.106848-1.40940.080248
310.0729280.9620.168696
320.0216250.28530.387893
33-0.090481-1.19350.117143
34-0.012414-0.16370.43506
35-0.061388-0.80980.209592
36-0.036219-0.47780.31671
37-0.030342-0.40020.344738
38-0.047188-0.62250.267228
390.0085990.11340.454908
400.051730.68240.247958
41-0.002767-0.03650.485464
42-0.086566-1.14190.127537
430.0070860.09350.462817
44-0.006154-0.08120.467698
45-0.064722-0.85370.19721
46-0.022256-0.29360.384714
470.00170.02240.491065
48-0.103304-1.36270.087374
490.0252920.33360.369533
50-0.030161-0.39780.345616
51-0.024409-0.3220.373931
52-0.006887-0.09080.463859
530.0778121.02640.153063
54-0.056749-0.74860.227563
550.0668120.88130.189682
56-0.058173-0.76740.221956
57-0.103315-1.36280.087351
58-0.023122-0.3050.380363
590.0119010.1570.437721
60-0.012599-0.16620.4341
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263296828xc33zhldkoaqpn3/1dgf21263296728.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/12/t1263296828xc33zhldkoaqpn3/1dgf21263296728.ps (open in new window)


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


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