Home » date » 2009 » Dec » 08 »

*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, 08 Dec 2009 10:38:21 -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/08/t12602940166cvb4vbpsojjbva.htm/, Retrieved Tue, 08 Dec 2009 18:40:18 +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/08/t12602940166cvb4vbpsojjbva.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 «
255 280.2 299.9 339.2 374.2 393.5 389.2 381.7 375.2 369 357.4 352.1 346.5 342.9 340.3 328.3 322.9 314.3 308.9 294 285.6 281.2 280.3 278.8 274.5 270.4 263.4 259.9 258 262.7 284.7 311.3 322.1 327 331.3 333.3 321.4 327 320 314.7 316.7 314.4 321.3 318.2 307.2 301.3 287.5 277.7 274.4 258.8 253.3 251 248.4 249.5 246.1 244.5 243.6 244 240.8 249.8 248 259.4 260.5 260.8 261.3 259.5 256.6 257.9 256.5 254.2 253.3 253.8 255.5 257.1 257.3 253.2 252.8 252 250.7 252.2 250 251 253.4 251.2 255.6 261.1 258.9 259.9 261.2 264.7 267.1 266.4 267.7 268.6 267.5 268.5 268.5 270.5 270.9 270.1 269.3 269.8 270.1 264.9 263.7 264.8 263.7 255.9 276.2 360.1 380.5 373.7 369.8 366.6 359.3 345.8 326.2 324.5 328.1 327.5 324.4 316.5 310.9 301.5 291.7 290.4 287.4 277.7 281.6 288 276 272.9 283 283.3 276.8 284.5 282.7 281.2 287.4 283.1 284 285.5 289.2 292.5 296.4 305.2 303.9 311.5 316.3 316.7 322.5 3 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
1-0.238876-4.51344e-06
2-0.229817-4.34239e-06
30.0455080.85990.195223
4-0.029124-0.55030.291234
50.0088620.16740.433559
6-0.056802-1.07320.141942
7-0.041343-0.78110.217618
80.0231140.43670.33129
90.0568221.07360.14186
10-0.043949-0.83040.203437
110.0233890.44190.329409
120.0058180.10990.456261
130.0436760.82520.204895
14-0.058231-1.10030.135982
15-0.029379-0.55510.289584
160.0472610.8930.186238
17-0.042625-0.80540.21057
18-0.011856-0.2240.411437
190.0346530.65470.256527
200.0439490.83040.203434
21-0.066361-1.25380.105359
22-0.000187-0.00350.49859
23-0.024297-0.45910.323227
240.0737041.39260.082304
25-0.052527-0.99250.160821
26-0.006169-0.11660.453635
270.0533161.00740.157219
28-0.047062-0.88920.187243
29-0.007163-0.13530.446207
300.002140.04040.483887
31-0.014601-0.27590.391401
320.0233280.44080.329823
330.055761.05350.146402
34-0.02871-0.54250.293921
350.0382770.72320.235006
360.0052660.09950.460398
37-0.006374-0.12040.452104
38-0.044501-0.84080.200507
390.0104650.19770.421682
400.0356050.67270.250778
41-0.090649-1.71280.043812
420.0354010.66890.251998
430.0566291.070.142679
44-0.014594-0.27570.39145
45-0.082813-1.56470.059269
460.0114020.21540.414775
470.029610.55950.288097
480.0354870.67050.251481
49-0.04386-0.82870.203911
500.0303650.57370.283257
510.0099530.18810.425468
52-0.030136-0.56940.284721
53-0.002074-0.03920.48438
540.0232950.44010.330051
55-0.014267-0.26960.393827
560.0286780.54180.29413
57-0.055407-1.04690.147931
580.0221580.41870.33786
59-0.010821-0.20450.419056
600.0091570.1730.431371


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.238876-4.51344e-06
2-0.304239-5.74840
3-0.115428-2.18090.01492
4-0.141076-2.66560.004018
5-0.067084-1.26750.102897
6-0.134155-2.53480.005839
7-0.141601-2.67550.003903
8-0.116597-2.2030.014115
9-0.040293-0.76130.223487
10-0.093735-1.77110.038701
11-0.031622-0.59750.275281
12-0.049576-0.93670.17477
130.029040.54870.29178
14-0.060383-1.14090.127336
15-0.049367-0.93280.175788
16-0.013799-0.26070.397227
17-0.065344-1.23460.10889
18-0.061947-1.17050.1213
19-0.023459-0.44320.328929
200.024650.46570.32084
21-0.066037-1.24770.106472
22-0.043478-0.82150.205958
23-0.094724-1.78970.037171
240.0117270.22160.412386
25-0.087047-1.64470.050456
26-0.030006-0.56690.285556
27-0.005595-0.10570.457931
28-0.060173-1.13690.128164
29-0.069879-1.32030.093787
30-0.057869-1.09340.137479
31-0.088257-1.66760.048139
32-0.060023-1.13410.128755
330.0018960.03580.485721
34-0.007397-0.13980.444465
350.0393580.74360.22879
360.0327580.61890.268175
370.0569861.07670.141166
38-0.005372-0.10150.459602
390.0358760.67790.249151
400.0588831.11260.133321
41-0.024588-0.46460.32126
420.0233210.44060.329868
430.0598211.13030.129559
440.0391330.73940.230077
45-0.060647-1.14590.126306
46-0.057335-1.08330.139699
47-0.033754-0.63780.262019
480.0082870.15660.437832
49-0.039727-0.75060.226689
500.0460560.87020.192388
510.0018830.03560.48582
52-0.015747-0.29750.383114
53-0.029414-0.55580.289363
540.0421740.79690.213032
55-0.005542-0.10470.458333
560.0618091.16790.121822
57-0.019058-0.36010.359496
580.0602441.13830.127885
59-0.047658-0.90050.184239
600.0144280.27260.392653
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602940166cvb4vbpsojjbva/1u15d1260293899.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602940166cvb4vbpsojjbva/1u15d1260293899.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t12602940166cvb4vbpsojjbva/2gc6u1260293899.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602940166cvb4vbpsojjbva/2gc6u1260293899.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