Home » date » 2010 » Dec » 20 »

*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: Mon, 20 Dec 2010 21:38:22 +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/20/t129288117828yfs4hl2rodk4d.htm/, Retrieved Mon, 20 Dec 2010 22:39:41 +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/20/t129288117828yfs4hl2rodk4d.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 «
9.1 5.9 7.2 6.8 8 14.3 14.6 17.5 17.2 17.2 14.1 10.4 6.8 4.1 6.5 6.1 6.3 9.3 16.4 16.1 18 17.6 14 10.5 6.9 2.8 0.7 3.6 6.7 12.5 14.4 16.5 18.7 19.4 15.8 11.3 9.7 2.9 0.1 2.5 6.7 10.3 11.2 17.4 20.5 17 14.2 10.6 6.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.8097215.66810
20.4484763.13930.001434
30.0095390.06680.473518
4-0.430134-3.01090.002055
5-0.741941-5.19362e-06
6-0.849415-5.94590
7-0.737391-5.16172e-06
8-0.446226-3.12360.001499
9-0.044165-0.30920.379256
100.335222.34650.011518
110.6097684.26844.5e-05
120.7047864.93355e-06
130.6318974.42332.7e-05
140.3938732.75710.004085
150.0827760.57940.282475
16-0.244228-1.70960.046834
17-0.50069-3.50480.000493
18-0.594982-4.16496.3e-05
19-0.539857-3.7790.000214
20-0.343393-2.40380.010028
21-0.073765-0.51640.303963
220.1998691.39910.084044
230.3731732.61220.005955
240.4418993.09330.001633
250.4081992.85740.003126
260.2708011.89560.031959
270.0678760.47510.318401
28-0.123562-0.86490.195645
29-0.250677-1.75470.042778
30-0.316395-2.21480.015729
31-0.284603-1.99220.025967
32-0.206314-1.44420.077524
33-0.081091-0.56760.286436
340.0615520.43090.334229
350.1663421.16440.124951
360.2062741.44390.077563
370.1840491.28830.101839
380.124020.86810.194776
390.0437940.30660.380239
40-0.030061-0.21040.417103
41-0.070544-0.49380.311824
42-0.083633-0.58540.280472
43-0.076384-0.53470.297643
44-0.030923-0.21650.414764
45-0.004831-0.03380.486582
460.0088890.06220.47532
470.0166150.11630.453942
480.0057960.04060.483901


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8097215.66810
2-0.601632-4.21145.4e-05
3-0.386532-2.70570.004675
4-0.440376-3.08260.001682
5-0.240616-1.68430.049241
6-0.161574-1.1310.131777
7-0.093139-0.6520.258734
8-0.089993-0.630.265826
90.0172260.12060.452259
10-0.1509-1.05630.148006
11-0.060805-0.42560.336119
12-0.17594-1.23160.111992
130.0694790.48640.314442
14-0.118154-0.82710.206102
150.105790.74050.231255
16-0.177311-1.24120.110225
17-0.056806-0.39760.346311
180.0309750.21680.414622
19-0.01153-0.08070.468
200.0515860.36110.359788
21-0.012292-0.0860.46589
22-0.025232-0.17660.430266
23-0.253751-1.77630.04095
24-0.098871-0.69210.246071
250.0573830.40170.344832
260.0134480.09410.462692
27-0.068118-0.47680.317804
28-0.021654-0.15160.440071
290.0225190.15760.437698
30-0.09381-0.65670.257232
310.0080760.05650.477573
32-0.121393-0.84980.199798
330.0326720.22870.410025
340.0675060.47250.319319
35-0.082577-0.5780.282943
36-0.133512-0.93460.177293
37-0.142214-0.99550.162192
38-0.005737-0.04020.484065
390.0399080.27940.390573
40-0.081753-0.57230.284878
410.1012370.70870.240946
42-0.109028-0.76320.224503
43-0.027724-0.19410.423462
440.0135960.09520.462283
45-0.013904-0.09730.461433
460.0733930.51380.304867
470.021190.14830.441345
480.0575960.40320.344287
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/1fqhb1292881100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/1fqhb1292881100.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/28hye1292881100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/28hye1292881100.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/38hye1292881100.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t129288117828yfs4hl2rodk4d/38hye1292881100.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