Home » date » 2010 » Dec » 15 »

*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: Wed, 15 Dec 2010 15:17:06 +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/15/t1292426247kz3un2ibpqfq7gz.htm/, Retrieved Wed, 15 Dec 2010 16:17: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/Dec/15/t1292426247kz3un2ibpqfq7gz.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 «
186448 190530 194207 190855 200779 204428 207617 212071 214239 215883 223484 221529 225247 226699 231406 232324 237192 236727 240698 240688 245283 243556 247826 245798 250479 249216 251896 247616 249994 246552 248771 247551 249745 245742 249019 245841 248771 244723 246878 246014 248496 244351 248016 246509 249426 247840 251035 250161 254278 250801 253985 249174 251287 247947 249992 243805 255812 250417 253033 248705 253950 251484 251093 245996 252721 248019 250464 245571 252690 250183 253639 254436 265280 268705 270643 271480
 
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
1-0.229537-1.93410.028543
20.0529570.44620.328397
30.3448282.90560.002443
4-0.392972-3.31120.000731
50.1471141.23960.109601
60.0082450.06950.472406
7-0.157928-1.33070.093769
80.1087950.91670.181195
90.0174950.14740.441611
10-0.012994-0.10950.456561
110.0222940.18790.425765
12-0.018735-0.15790.437506
13-0.062655-0.52790.299593
140.0814560.68640.24736
150.0539970.4550.325255
160.0253850.21390.41562
170.1012390.85310.198248
18-0.101002-0.85110.198798
19-0.000775-0.00650.497406
20-0.10399-0.87620.191929
21-0.078503-0.66150.255224
22-0.006585-0.05550.477955
23-0.068522-0.57740.282756
240.1008660.84990.199116
250.091750.77310.221015
26-0.032005-0.26970.394095
270.0863630.72770.234593
28-0.069022-0.58160.281343
29-0.014854-0.12520.450375
300.0407240.34310.366252
31-0.062491-0.52660.300072
320.1089230.91780.180916
33-0.010879-0.09170.463609
34-0.010428-0.08790.465114
350.0426410.35930.360219
36-0.057276-0.48260.315426
37-0.019017-0.16020.436575
380.0381810.32170.374306
39-0.052618-0.44340.329423
400.0554990.46760.320735
410.096110.80980.210369
42-0.088562-0.74620.228993
430.0349590.29460.38459
44-0.057831-0.48730.313777
45-0.232338-1.95770.027097
460.1426941.20240.116609
47-0.09392-0.79140.215678
48-0.178957-1.50790.068007
490.2447522.06230.021419
50-0.193989-1.63460.053282
510.0713750.60140.274739
520.0518290.43670.331819
53-0.164867-1.38920.084558
540.1100890.92760.178372
55-0.094719-0.79810.213731
560.0097120.08180.467504
570.0526450.44360.329342
58-0.084566-0.71260.239226
590.0164840.13890.444962
60-0.052087-0.43890.331037


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.229537-1.93410.028543
20.0002850.00240.499045
30.3769033.17580.001106
4-0.285317-2.40410.009412
5-0.028511-0.24020.40542
6-0.033532-0.28250.389175
70.0628980.530.298886
8-0.071952-0.60630.273133
90.1009030.85020.19903
100.0315680.2660.395507
11-0.037928-0.31960.37511
12-0.072196-0.60830.272453
13-0.04039-0.34030.367306
140.1141510.96190.169694
150.1207091.01710.156276
160.0764520.64420.260763
170.0171240.14430.442839
18-0.135501-1.14170.128697
19-0.058699-0.49460.311203
20-0.151881-1.27980.102395
210.021210.17870.429334
22-0.029793-0.2510.401253
230.0207840.17510.430738
240.0380440.32060.37474
250.1481411.24830.108018
26-0.043026-0.36250.359011
270.0043340.03650.485487
28-0.079424-0.66920.252756
290.0595880.50210.308577
30-0.013389-0.11280.455248
31-0.00252-0.02120.491558
320.078610.66240.254937
330.0224990.18960.425088
34-0.015353-0.12940.448717
35-0.012432-0.10480.458434
360.0452960.38170.351923
370.0129820.10940.456601
380.0303170.25550.399554
39-0.076324-0.64310.261111
40-0.019059-0.16060.436435
410.0532350.44860.327555
42-0.06751-0.56880.285627
43-0.019555-0.16480.434797
44-0.079595-0.67070.252299
45-0.172003-1.44930.075825
460.0600880.50630.307104
470.0507980.4280.334961
48-0.193543-1.63080.053678
490.0071240.060.476151
50-0.053909-0.45420.325518
510.1357821.14410.128209
52-0.137417-1.15790.125393
530.0421210.35490.361853
540.0117550.09910.460689
55-0.034946-0.29450.384634
56-0.06441-0.54270.294508
57-0.002737-0.02310.490832
580.0125820.1060.457933
59-0.017387-0.14650.441968
60-0.027065-0.22810.410129
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/19hbb1292426222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/19hbb1292426222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/218af1292426222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/218af1292426222.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/318af1292426222.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292426247kz3un2ibpqfq7gz/318af1292426222.ps (open in new window)


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