Home » date » 2010 » Dec » 12 »

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: Sun, 12 Dec 2010 20:17:05 +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/12/t1292184924338cinfla355xvo.htm/, Retrieved Sun, 12 Dec 2010 21:15:26 +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/12/t1292184924338cinfla355xvo.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 «
1038.00 934.00 988.00 870.00 854.00 834.00 872.00 954.00 870.00 1238.00 1082.00 1053.00 934.00 787.00 1081.00 908.00 995.00 825.00 822.00 856.00 887.00 1094.00 990.00 936.00 1097.00 918.00 926.00 907.00 899.00 971.00 1087.00 1000.00 1071.00 1190.00 1116.00 1070.00 1314.00 1068.00 1185.00 1215.00 1145.00 1251.00 1363.00 1368.00 1535.00 1853.00 1866.00 2023.00 1373.00 1968.00 1424.00 1160.00 1243.00 1375.00 1539.00 1773.00 1906.00 2076.00 2004.00
 
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.7981866.1310
20.7075855.43511e-06
30.5751854.41812.2e-05
40.4524053.4750.000482
50.3943333.02890.001819
60.3620682.78110.003631
70.3967073.04720.001726
80.4502893.45870.000507
90.4677783.59310.000334
100.4382933.36660.000672
110.4525273.47590.000481
120.3655562.80790.003375
130.2866182.20160.01581
140.1839751.41310.081434
150.1203140.92410.179587
160.0648450.49810.310137
170.0175230.13460.446693
18-0.031523-0.24210.404758
19-0.038174-0.29320.385191
20-0.056316-0.43260.33345
21-0.067313-0.5170.303531
22-0.060247-0.46280.322618
23-0.089111-0.68450.248179
24-0.103329-0.79370.215281
25-0.115716-0.88880.188851
26-0.174151-1.33770.093067
27-0.213529-1.64010.053148
28-0.233921-1.79680.038745
29-0.267667-2.0560.022108
30-0.274436-2.1080.019645
31-0.25243-1.9390.028647
32-0.251264-1.930.02921
33-0.217041-1.66710.050395
34-0.22351-1.71680.045629
35-0.211297-1.6230.05496
36-0.224793-1.72670.04473
37-0.245477-1.88550.032141
38-0.265679-2.04070.022881
39-0.292639-2.24780.01417
40-0.273867-2.10360.019843
41-0.298504-2.29290.012719
42-0.28442-2.18470.016449
43-0.269696-2.07160.021343
44-0.248965-1.91230.030346
45-0.223917-1.71990.045343
46-0.169857-1.30470.098531
47-0.127025-0.97570.166599
48-0.121293-0.93170.177652


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7981866.1310
20.1942251.49190.07053
3-0.100032-0.76840.222668
4-0.092027-0.70690.241214
50.1091720.83860.202548
60.1164230.89430.187408
70.1979731.52070.066844
80.1637551.25780.106706
9-0.012479-0.09590.46198
10-0.139282-1.06980.144523
110.1454951.11760.134141
12-0.109966-0.84470.200854
13-0.114273-0.87770.19182
14-0.141974-1.09050.139959
15-0.004884-0.03750.485102
16-0.088491-0.67970.249674
17-0.085943-0.66010.255865
18-0.163375-1.25490.10723
19-0.030864-0.23710.40671
20-0.04671-0.35880.360519
210.0573670.44060.330541
220.0403680.31010.378798
23-0.047055-0.36140.359533
24-0.020368-0.15650.438105
250.1462441.12330.132925
26-0.077119-0.59240.277937
27-0.048213-0.37030.356231
280.0446790.34320.366339
290.0169790.13040.448339
30-0.057653-0.44280.329751
310.1011530.7770.22014
32-0.083607-0.64220.261616
33-0.026107-0.20050.420876
34-0.052091-0.40010.345256
350.0901590.69250.245663
36-0.138274-1.06210.146258
37-0.034987-0.26870.394535
38-0.034704-0.26660.395366
39-0.049255-0.37830.353271
400.0237650.18250.427891
41-0.089657-0.68870.246866
42-0.079114-0.60770.272864
430.0305280.23450.407707
44-0.010806-0.0830.467066
450.0821550.6310.265225
460.107140.8230.206924
470.0800710.6150.270449
48-0.086357-0.66330.254855
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184924338cinfla355xvo/12ci51292185023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184924338cinfla355xvo/12ci51292185023.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184924338cinfla355xvo/22ci51292185023.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/12/t1292184924338cinfla355xvo/22ci51292185023.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 (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