Home » date » 2010 » Dec » 28 »

Autocorrelation Function

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 28 Dec 2010 12:17:07 +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/28/t1293538665z04ana7vxtr1if7.htm/, Retrieved Tue, 28 Dec 2010 13:17:47 +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/28/t1293538665z04ana7vxtr1if7.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 «
-697.3 -143.8 -137.4 -26.9 559.2 630.2 1070.9 -820.8 993.3 741.7 603.6 -145.8 -35.1 395.1 523.1 462.3 183.4 791.5 344.8 -217 406.7 228.6 -580.1 -1550.4 -1447.5 -40.1 -1033.5 -925.6 -347.8 -447.7 -102.6 -2062.2 -929.7 -720.7 -1541.8 -1432.3 -1216.2 -212.8 -378.2 76.9 -101.3 220.4 495.6 -1035.2 61.8 -734.8 -6.9 -1061.1 -854.6 -186.5 244 -992.6 -335.2 316.8 477.6 -572.1
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4156753.11060.001468
20.3421842.56070.006585
30.3204512.3980.009921
40.4161073.11390.001454
50.2279241.70560.04681
6-0.06329-0.47360.318806
70.1309750.98010.165619
80.2077871.55490.062798
90.1238990.92720.178907
100.0121510.09090.463937
110.1023130.76560.223554
120.268122.00640.024824
13-0.014073-0.10530.458252
14-0.155829-1.16610.124255
15-0.182436-1.36520.088821
16-0.093954-0.70310.242457
17-0.19172-1.43470.078466
18-0.43166-3.23020.001036
19-0.248901-1.86260.033883
20-0.119041-0.89080.188419
21-0.152296-1.13970.129635
22-0.197176-1.47550.072835
23-0.192338-1.43930.077812
240.0757640.5670.286502
25-0.114076-0.85370.198463
26-0.226374-1.6940.047907
27-0.171628-1.28430.102154
28-0.114342-0.85570.197917
29-0.088727-0.6640.254716
30-0.240725-1.80140.03851
31-0.094722-0.70880.240684
32-0.01027-0.07690.469506
330.0179560.13440.446796
34-0.015581-0.11660.4538
35-0.021468-0.16070.436473
360.1111140.83150.204611
37-0.031445-0.23530.407411
38-0.013502-0.1010.459939
39-0.073769-0.5520.291561
400.0262340.19630.422536
41-0.031388-0.23490.407576
42-0.075202-0.56280.287922
43-0.056341-0.42160.337458
440.0456320.34150.367009
450.0236580.1770.430057
46-0.014586-0.10910.456737
47-0.013051-0.09770.461273
480.061070.4570.324717
490.0195220.14610.442189
500.0032910.02460.49022
510.0098880.0740.47064
520.0034740.0260.489677
53-0.007931-0.05940.476442
54-0.012867-0.09630.461817
550.0055240.04130.483587
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4156753.11060.001468
20.2047821.53240.065521
30.1542141.1540.126695
40.2631181.9690.026955
5-0.071015-0.53140.298613
6-0.376032-2.8140.00337
70.1434261.07330.14387
80.1966471.47160.073367
90.0266670.19960.421274
100.0280640.210.417209
110.017430.13040.448345
120.0613650.45920.323928
13-0.263869-1.97460.026625
14-0.241989-1.81090.037762
15-0.192036-1.43710.078132
16-0.053328-0.39910.34568
170.103090.77150.221841
18-0.110683-0.82830.205514
190.0037010.02770.489002
200.0843580.63130.265213
21-0.05701-0.42660.335645
220.0720610.53930.295924
23-0.102384-0.76620.223395
240.1177460.88110.191008
250.0118020.08830.46497
26-0.094029-0.70370.242283
270.054030.40430.343758
28-0.132594-0.99220.162674
290.018890.14140.444045
300.0980340.73360.23312
31-0.042932-0.32130.3746
32-0.084002-0.62860.266078
33-0.044671-0.33430.369706
340.0110120.08240.467307
35-0.026182-0.19590.422689
36-0.082109-0.61440.270705
37-0.086358-0.64620.26038
380.1114490.8340.203911
39-0.008669-0.06490.474252
400.0798310.59740.276325
41-0.17839-1.33490.093648
42-0.001758-0.01320.494775
43-0.091889-0.68760.247261
440.0285520.21370.415793
450.0326430.24430.403955
46-0.080238-0.60040.275315
470.0818630.61260.271309
480.0533930.39960.345502
49-0.042415-0.31740.376059
500.0744680.55730.289783
51-0.031566-0.23620.407062
52-0.076754-0.57440.284008
53-0.027393-0.2050.419162
54-0.007409-0.05540.47799
55-0.010452-0.07820.468968
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293538665z04ana7vxtr1if7/1cewv1293538625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293538665z04ana7vxtr1if7/1cewv1293538625.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293538665z04ana7vxtr1if7/2cewv1293538625.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293538665z04ana7vxtr1if7/2cewv1293538625.ps (open in new window)


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