Home » date » 2009 » 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: Tue, 15 Dec 2009 10:10:26 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/15/t1260897072p0znl4qljwbxkki.htm/, Retrieved Tue, 15 Dec 2009 18:11:14 +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/2009/Dec/15/t1260897072p0znl4qljwbxkki.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
87,00 96,30 107,1 115,2 106,1 89,50 91,30 97,60 100,7 104,6 94,70 101,8 102,5 105,3 110,3 109,8 117,3 118,8 131,3 125,9 133,1 147,0 145,8 164,4 149,8 137,7 151,7 156,8 180,0 180,4 170,4 191,6 199,5 218,2 217,5 205,0 194,0 199,3 219,3 211,1 215,2 240,2 242,2 240,7 255,4 253,0 218,2 203,7 205,6 215,6
 
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.9432946.67010
20.8893746.28880
30.8513966.02030
40.8134455.75190
50.7606245.37841e-06
60.6886064.86926e-06
70.6244224.41532.7e-05
80.5597293.95790.00012
90.5018353.54850.000427
100.4602113.25420.001021
110.3978152.8130.003499
120.3259892.30510.012675
130.2559361.80970.038174
140.1928371.36360.089407
150.1316430.93090.1782
160.0608560.43030.334408
17-0.0054-0.03820.484846
18-0.066513-0.47030.320085
19-0.114132-0.8070.211734
20-0.152613-1.07910.142852
21-0.198093-1.40070.083735
22-0.241799-1.70980.046753
23-0.2803-1.9820.026493
24-0.302017-2.13560.018817
25-0.325027-2.29830.012882
26-0.361287-2.55470.00686
27-0.397634-2.81170.003511
28-0.423999-2.99810.002112
29-0.433439-3.06490.001753
30-0.43671-3.0880.001642
31-0.446687-3.15860.001345
32-0.451417-3.1920.001222
33-0.4468-3.15940.001341
34-0.427916-3.02580.001955
35-0.40412-2.85760.003103
36-0.387631-2.7410.004237
37-0.375311-2.65380.005321
38-0.358854-2.53750.007165
39-0.331967-2.34740.011453
40-0.304565-2.15360.018059
41-0.279354-1.97530.026882
42-0.244596-1.72960.04494
43-0.213013-1.50620.06915
44-0.179236-1.26740.105443
45-0.131689-0.93120.178117
46-0.088196-0.62360.26785
47-0.066847-0.47270.319249
48-0.050833-0.35940.360389
49-0.030017-0.21230.416386
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9432946.67010
2-0.003895-0.02750.489068
30.1167150.82530.206562
4-0.013992-0.09890.46079
5-0.137983-0.97570.166958
6-0.214838-1.51910.067514
7-0.0169-0.11950.45268
8-0.091997-0.65050.259168
90.0498770.35270.362903
100.1662891.17580.122614
11-0.176727-1.24960.108623
12-0.123576-0.87380.193199
13-0.106988-0.75650.226444
14-0.093081-0.65820.25672
15-0.043669-0.30880.379383
16-0.03567-0.25220.400951
170.0035250.02490.490107
180.0062350.04410.482505
190.0897570.63470.264266
20-0.001176-0.00830.496698
21-0.093509-0.66120.255758
22-0.049992-0.35350.362602
23-0.052514-0.37130.35598
240.0695620.49190.31248
25-0.032167-0.22750.410499
26-0.099094-0.70070.243369
27-0.080587-0.56980.285669
28-0.004767-0.03370.486623
290.0553620.39150.348556
300.0480130.33950.367827
31-0.027462-0.19420.423407
320.0108230.07650.46965
330.0216580.15310.43945
340.0117740.08330.46699
350.0021960.01550.493836
36-0.03227-0.22820.410217
37-0.038739-0.27390.392634
380.0191950.13570.446291
390.0200420.14170.443936
40-0.031046-0.21950.413567
410.029140.20610.418793
420.127220.89960.186327
43-0.045278-0.32020.375088
44-0.0452-0.31960.375298
450.0873160.61740.269881
46-0.041826-0.29580.384321
47-0.176132-1.24540.109388
48-0.044512-0.31470.377131
49-0.097013-0.6860.247945
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260897072p0znl4qljwbxkki/1rb7u1260897024.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260897072p0znl4qljwbxkki/1rb7u1260897024.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/15/t1260897072p0znl4qljwbxkki/2z69y1260897024.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/15/t1260897072p0znl4qljwbxkki/2z69y1260897024.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