Home » date » 2010 » Dec » 19 »

*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, 19 Dec 2010 16:25:45 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce.htm/, Retrieved Sun, 19 Dec 2010 17:24:41 +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/Dec/19/t129277588075bux1koen2yqce.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 «
5124 4742 5434 5684 6332 6334 5636 5940 6195 6022 4535 4320 4872 4662 4663 5491 6018 6393 5610 5777 6094 6478 5216 5201 4784 4205 4681 4896 5752 6452 5995 5601 6119 6569 5798 5492 5018 4773 5502 5908 5902 6125 5419 5559 5962 6023 5346 5379 4859 5156 5010 5508 6426 6043 5499 5191 5790 5949 5219 4729
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4290572.97260.002303
20.1623061.12450.133198
30.0194950.13510.446564
40.0522720.36220.359413
50.0199190.1380.445408
6-0.157589-1.09180.140183
7-0.325169-2.25280.014439
8-0.158602-1.09880.138662
9-0.070511-0.48850.313704
10-0.130098-0.90130.185952
11-0.084472-0.58520.280565
12-0.109552-0.7590.225782
130.1566771.08550.141564
140.1620281.12260.133604
150.2122371.47040.073986
160.1202570.83320.20444
170.1936971.3420.092959
180.0332240.23020.409465
19-0.115929-0.80320.212915
20-0.23611-1.63580.05421
21-0.22117-1.53230.066006
22-0.185893-1.28790.101977
23-0.187414-1.29840.100169
24-0.232902-1.61360.056586
25-0.236995-1.64190.053569
260.0295330.20460.41937
27-0.036285-0.25140.401294
280.0284840.19730.422195
290.0049280.03410.486453
300.0891770.61780.269803
310.1495951.03640.152598
320.0757060.52450.301169
33-0.0358-0.2480.402584
340.0260110.18020.428874
35-0.022904-0.15870.437293
36-0.042422-0.29390.385046
37-0.03847-0.26650.395487
38-0.074608-0.51690.3038
390.030220.20940.417522
40-0.000529-0.00370.498547
410.0383210.26550.395881
420.0130130.09020.46427
430.0416650.28870.387042
440.0284380.1970.422322
450.0611150.42340.33694
460.0078620.05450.478393
470.0181860.1260.450129
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4290572.97260.002303
2-0.026699-0.1850.427015
3-0.049732-0.34460.365967
40.0809360.56070.288791
5-0.029763-0.20620.418752
6-0.206803-1.43280.079202
7-0.225145-1.55980.062683
80.1147610.79510.215239
9-0.019215-0.13310.447326
10-0.16176-1.12070.133994
110.0801660.55540.290598
12-0.081853-0.56710.286646
130.1997561.3840.086388
14-0.043608-0.30210.381931
150.1790011.24020.110474
16-0.036632-0.25380.400368
170.1040920.72120.237151
18-0.178917-1.23960.110579
19-0.184199-1.27620.104019
20-0.048915-0.33890.368084
21-0.077599-0.53760.296661
22-0.051512-0.35690.36137
23-0.0278-0.19260.424041
24-0.093078-0.64490.261043
25-0.101546-0.70350.242563
260.1266740.87760.19226
27-0.162366-1.12490.133112
28-0.030659-0.21240.416344
29-0.000683-0.00470.498121
30-0.087694-0.60760.273171
31-0.019471-0.13490.446628
32-0.141661-0.98150.165644
330.065620.45460.325712
34-4.5e-05-3e-040.499877
35-0.033822-0.23430.407863
360.0447180.30980.379021
370.019480.1350.446604
380.0758040.52520.300936
39-0.06824-0.47280.319257
400.0129360.08960.464481
410.0259190.17960.429121
42-0.042551-0.29480.384708
43-0.109216-0.75670.226472
44-0.040663-0.28170.389683
450.0209770.14530.442528
46-0.086306-0.59790.276343
47-0.021482-0.14880.441154
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/13x4a1292775941.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/13x4a1292775941.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/2d63u1292775941.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/2d63u1292775941.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/36xkx1292775941.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t129277588075bux1koen2yqce/36xkx1292775941.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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