Home » date » 2010 » Dec » 24 »

*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, 24 Dec 2010 15:17:57 +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/24/t1293203745n5ym6uzmf9955cl.htm/, Retrieved Fri, 24 Dec 2010 16:15:45 +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/24/t1293203745n5ym6uzmf9955cl.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 «
1.35 1.91 1.31 1.19 1.3 1.14 1.1 1.02 1.11 1.18 1.24 1.36 1.29 1.73 1.41 1.15 1.31 1.15 1.08 1.1 1.14 1.24 1.33 1.49 1.38 1.96 1.36 1.24 1.35 1.23 1.09 1.08 1.33 1.35 1.38 1.5 1.47 2.09 1.52 1.29 1.52 1.27 1.35 1.29 1.41 1.39 1.45 1.53 1.45 2.11 1.53 1.38 1.54 1.35 1.29 1.33 1.47 1.47 1.54 1.59 1.5 2 1.51 1.4 1.62 1.44 1.29 1.28 1.4 1.39 1.46 1.49
 
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
10.3129192.42390.009194
20.3031512.34820.011089
30.1155920.89540.187083
40.1565061.21230.115077
50.1614291.25040.108
60.0484150.3750.354484
70.0756780.58620.279971
80.0879580.68130.249146
90.0865350.67030.25262
10-0.018118-0.14030.44443
11-0.013059-0.10120.459882
12-0.245834-1.90420.03084
130.1634341.2660.105211
140.0304550.23590.407155
150.1447741.12140.133289
16-0.040222-0.31160.378229
170.0797150.61750.26963
180.0984810.76280.224276
19-0.006072-0.0470.481322
20-0.046221-0.3580.360791
210.009580.07420.470547
22-0.003363-0.0260.489653
23-0.067507-0.52290.301484
24-0.163863-1.26930.104622
25-0.316914-2.45480.008506
26-0.143381-1.11060.135581
27-0.297808-2.30680.012267
28-0.176331-1.36590.088541
29-0.353526-2.73840.004058
30-0.235212-1.82190.036724
31-0.165841-1.28460.101935
32-0.038826-0.30070.382323
33-0.058658-0.45440.325602
34-0.069138-0.53550.297128
350.0170670.13220.447633
36-0.047696-0.36950.356545
37-0.036092-0.27960.390386
38-0.117749-0.91210.182688
39-0.040005-0.30990.378864
40-0.010595-0.08210.467433
410.0358650.27780.391057
42-0.030062-0.23290.408331
43-0.045364-0.35140.363264
44-0.08233-0.63770.26304
45-0.084272-0.65280.258199
46-0.103105-0.79860.213823
47-0.086138-0.66720.253594
480.0220390.17070.432511


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3129192.42390.009194
20.227511.76230.041557
3-0.033762-0.26150.397293
40.0781790.60560.273542
50.1042780.80770.211217
6-0.077878-0.60320.274311
70.0223490.17310.431571
80.0777760.60240.274573
90.0094550.07320.470929
10-0.104371-0.80850.211012
11-0.006019-0.04660.481483
12-0.275793-2.13630.018372
130.3510072.71890.004276
140.0311320.24110.405132
150.032990.25550.399589
16-0.110226-0.85380.198304
170.1439471.1150.134646
18-0.017793-0.13780.445419
19-0.06405-0.49610.310809
20-0.072402-0.56080.288502
210.1072060.83040.204798
22-0.147026-1.13890.129644
23-0.074644-0.57820.282649
24-0.269859-2.09030.020417
25-0.021052-0.16310.435507
26-0.019523-0.15120.440154
27-0.126955-0.98340.164683
28-0.186882-1.44760.076469
29-0.064996-0.50350.308243
30-0.044856-0.34750.364732
31-0.006557-0.05080.47983
320.129121.00020.160625
330.15221.17890.121538
34-0.060849-0.47130.319556
350.0779650.60390.274088
36-0.210984-1.63430.053719
370.0170680.13220.447631
380.0521040.40360.343972
39-0.064433-0.49910.309768
400.0310930.24080.405249
410.0018080.0140.494437
420.0752170.58260.281163
43-0.043866-0.33980.367604
440.0867710.67210.252041
45-0.032026-0.24810.402463
46-0.059534-0.46120.323179
470.0068170.05280.47903
480.0087260.06760.473168
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/1oh861293203873.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/1oh861293203873.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/2k9r71293203874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/2k9r71293203874.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/3k9r71293203874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/24/t1293203745n5ym6uzmf9955cl/3k9r71293203874.ps (open in new window)


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