Home » date » 2008 » Dec » 11 »

AutoCorrelation Function

*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: Thu, 11 Dec 2008 10:52:36 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/11/t12290180123cmhzd5cgd1lw6c.htm/, Retrieved Thu, 11 Dec 2008 17:53:35 +0000
 
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/2008/Dec/11/t12290180123cmhzd5cgd1lw6c.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5,7 5,7 5,6 5,8 5,6 5,6 5,6 5,5 5,4 5,4 5,5 5,4 5,4 5,2 5,4 5,2 5,1 5,1 5,0 5,0 4,9 5,1 5,0 5,0 4,8 4,7 4,7 4,7 4,7 4,7 4,6 4,7 4,7 4,5 4,4 4,5 4,4 4,6 4,5 4,4 4,5 4,5 4,6 4,7 4,7 4,7 4,8 4,7 5,0 4,9 4,8 5,1 5,0 5,5 5,5 5,7 6,1 6,1 6,5 6,7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.143246-1.10030.137836
20.3309452.5420.006834
30.2769072.1270.018807
4-0.044161-0.33920.367828
50.4077573.1320.001351
6-0.014074-0.10810.457138
70.1450851.11440.134809
80.1073650.82470.206435
90.0615470.47270.319068
100.0121550.09340.462966
110.2625482.01670.024144
12-0.064357-0.49430.311453
130.051330.39430.347401
140.1038910.7980.214034
15-0.081399-0.62520.267114
160.2053221.57710.060059
17-0.060721-0.46640.321321
180.0515120.39570.346888
19-0.040043-0.30760.379743
20-0.075381-0.5790.282393
210.0591240.45410.325697
22-0.048867-0.37540.354371
23-0.025605-0.19670.422377
24-0.106679-0.81940.207923
25-0.008501-0.06530.47408
26-0.073138-0.56180.288195
270.0015770.01210.495189
28-0.054842-0.42130.33755
29-0.110071-0.84550.200633
30-0.021302-0.16360.435295
31-0.139774-1.07360.143681
320.0638120.49010.312924
33-0.219859-1.68880.048272
340.045780.35160.363178
35-0.1301-0.99930.160861
36-0.119821-0.92040.180566
370.0439840.33780.368339
38-0.169415-1.30130.099107
390.0423890.32560.372941
40-0.203763-1.56510.06145
41-0.049368-0.37920.35295
42-0.056597-0.43470.332673
43-0.090743-0.6970.244266
44-0.078082-0.59980.275482
45-0.024449-0.18780.425841
46-0.070268-0.53970.295706
47-0.109178-0.83860.202535
480.0206820.15890.437161
49-0.1365-1.04850.149348
500.031950.24540.403494
51-0.119276-0.91620.181652
52-0.058615-0.45020.327096
530.0302730.23250.408466
54-0.096418-0.74060.230936
550.0181970.13980.444658
56-0.007732-0.05940.476422
57-0.019606-0.15060.440404
58-0.00218-0.01670.493348
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.143246-1.10030.137836
20.3169282.43440.008981
30.4025533.09210.001517
4-0.056881-0.43690.331887
50.2138881.64290.052861
60.0370360.28450.38852
7-0.036187-0.2780.39101
8-0.086592-0.66510.254281
90.0725890.55760.289626
10-0.14989-1.15130.127122
110.2678472.05740.022039
12-0.006851-0.05260.479104
13-0.12535-0.96280.16978
14-0.057473-0.44150.330247
150.0587940.45160.326605
160.0219150.16830.433449
170.0328150.25210.400936
18-0.000439-0.00340.498661
19-0.171628-1.31830.096249
20-0.131391-1.00920.158492
210.0772880.59370.277504
220.0070630.05430.478457
23-0.028524-0.21910.413665
24-0.061515-0.47250.319154
250.0058990.04530.482006
26-0.01798-0.13810.445312
270.0373310.28670.387655
28-0.018335-0.14080.44424
29-0.095322-0.73220.233477
300.0013870.01070.495767
31-0.016232-0.12470.450602
320.0556240.42730.335374
33-0.215674-1.65660.051453
340.1078770.82860.205331
350.0254330.19540.422894
36-0.032121-0.24670.402987
37-0.029315-0.22520.411312
380.0487190.37420.354792
39-0.071124-0.54630.293455
40-0.089293-0.68590.24774
41-0.017354-0.13330.447205
42-0.000157-0.00120.499522
43-0.066313-0.50940.3062
440.0258560.19860.421626
450.1063110.81660.208723
460.000460.00350.498597
47-0.082215-0.63150.265075
48-0.046369-0.35620.361492
49-0.034883-0.26790.394839
500.0181550.13940.444785
510.0367240.28210.389434
52-0.066045-0.50730.306918
53-0.032171-0.24710.402841
540.0810530.62260.267979
550.0147550.11330.455075
560.0099320.07630.469725
570.0541090.41560.339598
580.0206070.15830.437385
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t12290180123cmhzd5cgd1lw6c/16o051229017950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t12290180123cmhzd5cgd1lw6c/16o051229017950.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t12290180123cmhzd5cgd1lw6c/2pxs61229017950.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/11/t12290180123cmhzd5cgd1lw6c/2pxs61229017950.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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