Home » date » 2010 » Dec » 29 »

autocorrelation

*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, 29 Dec 2010 17:26:10 +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/29/t1293643499zrw0925frp5da9c.htm/, Retrieved Wed, 29 Dec 2010 18:25:02 +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/29/t1293643499zrw0925frp5da9c.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 «
5.921 4.561 4.399 4.249 4.211 4.081 4.131 4.071 3.841 4.109 4.354 4.402 4.954 4.137 4.561 4.210 4.429 4.190 4.196 4.226 3.878 3.931 4.115 4.679 5.385 4.387 4.552 4.325 4.179 4.054 4.075 4.147 4.046 4.368 4.097 4.821 4.965 4.425 4.601 4.521 4.193 4.039 4.099 4.109 4.024 4.245 4.252 5.136 5.037 4.230 4.408 4.119 4.083 4.010 4.148 3.952 3.843 4.164 4.075 4.708
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3337812.58550.006086
20.1509221.1690.123505
3-0.066373-0.51410.304526
4-0.224566-1.73950.043539
5-0.27677-2.14390.018053
6-0.332845-2.57820.006202
7-0.264073-2.04550.022599
8-0.261568-2.02610.023604
9-0.044381-0.34380.366108
100.0811190.62830.266082
110.2678582.07480.02115
120.5808944.49961.6e-05
130.1417061.09760.138372
140.131971.02220.155386
15-0.071421-0.55320.291083
16-0.177743-1.37680.086847
17-0.244019-1.89020.031784
18-0.287931-2.23030.01474
19-0.201622-1.56180.061802
20-0.215824-1.67180.049889
21-0.032964-0.25530.399669
220.0516510.40010.345257
230.3308892.56310.006451
240.5025543.89280.000126
250.0925540.71690.238102
260.0710770.55060.291991
27-0.096216-0.74530.229505
28-0.15957-1.2360.110633
29-0.182423-1.4130.081405
30-0.191744-1.48520.071358
31-0.131323-1.01720.156565
32-0.139235-1.07850.142562
330.022350.17310.431569
340.0067430.05220.479258
350.2664182.06370.021691
360.2869222.22250.015016
370.0768640.59540.276913
380.0769760.59630.276625
39-0.041946-0.32490.373189
40-0.100239-0.77640.220268
41-0.118657-0.91910.180859
42-0.11101-0.85990.196639
43-0.076466-0.59230.277937
44-0.092898-0.71960.237287
450.0148850.11530.454297
460.0242160.18760.425921
470.2441711.89130.031705
480.1898011.47020.073367


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3337812.58550.006086
20.0444660.34440.365861
3-0.145857-1.12980.131528
4-0.193572-1.49940.069506
5-0.150467-1.16550.124213
6-0.206719-1.60120.057288
7-0.141185-1.09360.139247
8-0.235757-1.82620.036401
9-0.03578-0.27720.391308
10-0.041355-0.32030.374915
110.0911130.70580.241534
120.4318423.3450.000711
13-0.302534-2.34340.01122
140.0403830.31280.377757
15-0.053923-0.41770.338834
16-0.078379-0.60710.273031
17-0.033477-0.25930.39814
18-0.090327-0.69970.243419
190.005010.03880.484587
20-0.074934-0.58040.281897
21-0.107334-0.83140.20452
22-0.02122-0.16440.434998
230.1467141.13640.130146
240.1348891.04480.150142
25-0.195654-1.51550.067445
26-0.118313-0.91640.181551
270.0189280.14660.441964
28-0.051573-0.39950.345478
290.0541590.41950.33817
300.0001219e-040.499627
310.0158070.12240.451481
320.028520.22090.412956
33-0.039683-0.30740.379808
34-0.146182-1.13230.131003
35-0.011823-0.09160.463667
36-0.062748-0.4860.314352
370.0935610.72470.235721
38-0.041393-0.32060.374803
390.0346550.26840.394642
400.0025940.02010.492019
410.0223940.17350.431436
420.0172070.13330.447208
436.4e-055e-040.499802
440.0132220.10240.459382
450.0350760.27170.393393
460.0185950.1440.442977
47-0.0149-0.11540.454251
480.0272990.21150.416622
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/1u9041293643565.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/1u9041293643565.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/2m1z71293643565.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/2m1z71293643565.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/3xazs1293643565.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293643499zrw0925frp5da9c/3xazs1293643565.ps (open in new window)


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