Home » date » 2010 » Dec » 17 »

*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: Fri, 17 Dec 2010 18:08:19 +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/17/t1292609172bgmbdhnub78of53.htm/, Retrieved Fri, 17 Dec 2010 19:06:13 +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/17/t1292609172bgmbdhnub78of53.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 «
31.514 27.071 29.462 26.105 22.397 23.843 21.705 18.089 20.764 25.316 17.704 15.548 28.029 29.383 36.438 32.034 22.679 24.319 18.004 17.537 20.366 22.782 19.169 13.807 29.743 25.591 29.096 26.482 22.405 27.044 17.970 18.730 19.684 19.785 18.479 10.698 31.956 29.506 34.506 27.165 26.736 23.691 18.157 17.328 18.205 20.995 17.382 9.367 31.124 26.551 30.651 25.859 25.100 25.778 20.418 18.688 20.424 24.776 19.814 12.738 31.566 30.111 30.019 31.934 25.826 26.835 20.205 17.789 20.520 22.518 15.572 11.509 25.447 24.090 27.786 26.195 20.516 22.759 19.028 16.971 20.036 22.485 18.730 14.538
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.357494-3.01230.001795
20.1583741.33450.093155
3-0.174794-1.47280.072607
4-0.103129-0.8690.193894
50.003570.03010.488042
60.0256040.21570.414904
7-0.04798-0.40430.34361
80.1531951.29080.100473
90.0729620.61480.270328
10-0.045447-0.38290.351452
11-0.052467-0.44210.329884
12-0.19318-1.62780.054003
13-0.154818-1.30450.098134
140.1077840.90820.183422
150.089290.75240.227158
160.0494130.41640.3392
170.0194470.16390.435154
18-0.012459-0.1050.458342
19-0.071869-0.60560.273362
20-0.114484-0.96470.168996
210.1581181.33230.093507
22-0.285158-2.40280.009444
230.3993433.36490.000619
24-0.160739-1.35440.08995
250.1661561.40010.082925
26-0.013374-0.11270.455295
27-0.027193-0.22910.409713
28-0.13132-1.10650.136118
290.1557061.3120.096872
30-0.135364-1.14060.128935
310.0897660.75640.22596
320.0127550.10750.457358
33-0.104662-0.88190.190405
340.1243841.04810.14908
35-0.05836-0.49170.312207
36-0.110815-0.93370.176801
370.0440080.37080.355939
38-0.089993-0.75830.225392
390.0855640.7210.236647
400.0218120.18380.427351
41-0.036862-0.31060.378504
420.0296680.250.40166
43-0.01454-0.12250.451418
440.0779910.65720.256599
45-0.095737-0.80670.211269
460.0956230.80570.211543
47-0.045412-0.38260.351562
48-0.030736-0.2590.398199


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.357494-3.01230.001795
20.0350520.29530.384294
3-0.123553-1.04110.150687
4-0.239721-2.01990.023583
5-0.110636-0.93220.177187
6-0.009314-0.07850.468834
7-0.117054-0.98630.163664
80.0647090.54520.293646
90.1982991.67090.049572
100.0233810.1970.422191
11-0.071848-0.60540.273422
12-0.181269-1.52740.065552
13-0.33239-2.80080.003282
14-0.1496-1.26060.105799
150.0556030.46850.320425
16-0.029384-0.24760.402583
17-0.102528-0.86390.195271
180.0041140.03470.486222
19-0.047362-0.39910.345516
20-0.210645-1.77490.040098
210.230761.94440.027904
22-0.20237-1.70520.046265
230.0520390.43850.331182
24-0.044248-0.37280.355189
25-0.084901-0.71540.238357
260.0046120.03890.484555
270.1952231.6450.052197
28-0.03648-0.30740.379726
290.0941280.79310.215171
300.0462660.38980.348909
31-0.114445-0.96430.169077
32-0.11569-0.97480.16648
33-0.100038-0.84290.201049
340.0272330.22950.409582
35-0.019998-0.16850.433331
36-0.05684-0.47890.316725
37-0.048154-0.40580.343073
38-0.113522-0.95660.171018
390.0604020.5090.306179
400.0875660.73780.231522
41-0.067616-0.56970.285324
42-0.003218-0.02710.489223
430.0532030.44830.327652
44-0.121504-1.02380.1547
450.044120.37180.355588
460.0954310.80410.212008
470.1069280.9010.185319
48-0.180414-1.52020.066451
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/1oogp1292609295.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/1oogp1292609295.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/2zxxs1292609295.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/2zxxs1292609295.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/3zxxs1292609295.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292609172bgmbdhnub78of53/3zxxs1292609295.ps (open in new window)


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