Home » date » 2010 » Dec » 06 »

WS 9 - (Partial) 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: Mon, 06 Dec 2010 20:14:07 +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/06/t1291666417ienszvm0pzsz9gr.htm/, Retrieved Mon, 06 Dec 2010 21:13:38 +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/06/t1291666417ienszvm0pzsz9gr.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 «
1576.23 1546.37 1545.05 1552.34 1594.3 1605.78 1673.21 1612.94 1566.34 1530.17 1582.54 1702.16 1701.93 1811.15 1924.2 2034.25 2011.13 2013.04 2151.67 1902.09 1944.01 1916.67 1967.31 2119.88 2216.38 2522.83 2647.64 2631.23 2693.41 3021.76 2953.67 2796.8 2672.05 2251.23 2046.08 2420.04 2608.89 2660.47 2493.98 2541.7 2554.6 2699.61 2805.48 2956.66 3149.51 3372.5 3379.33 3517.54 3527.34 3281.06 3089.65 3222.76 3165.76 3232.43 3229.54 3071.74 2850.17
 
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.28112.10360.019961
2-0.049751-0.37230.355536
3-0.067626-0.50610.307398
4-0.133594-0.99970.160872
5-0.155363-1.16260.124954
60.0607320.45450.32562
70.0139580.10450.458591
8-0.190948-1.42890.07929
9-0.178262-1.3340.093803
10-0.06787-0.50790.306761
11-0.038541-0.28840.387048
120.0503640.37690.35384
13-0.167429-1.25290.10772
14-0.058247-0.43590.332299
150.0168890.12640.44994
160.1257120.94070.175438
170.0921880.68990.246562
180.1391361.04120.151129
190.0772350.5780.2828
20-0.173235-1.29640.100082
21-0.051322-0.38410.351196
220.1594591.19330.118896
230.0623060.46630.321421
24-0.002687-0.02010.492013
250.0136220.10190.459585
26-0.053687-0.40180.344695
27-0.124367-0.93070.178007
28-0.047456-0.35510.361913
290.0334870.25060.401522
300.0558910.41830.338681
310.0217230.16260.435724
32-0.039983-0.29920.382944
330.0268370.20080.420779
34-0.043417-0.32490.373232
35-0.042293-0.31650.376404
36-0.005911-0.04420.482436
370.021930.16410.435119
38-0.046465-0.34770.364679
39-0.019145-0.14330.443297
400.0001269e-040.499626
41-0.011459-0.08570.465986
42-0.017047-0.12760.449473
43-0.021898-0.16390.435211
44-0.031034-0.23220.408599
45-0.019405-0.14520.442533
46-0.007427-0.05560.477938
470.0367460.2750.39217
480.038290.28650.387763


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.28112.10360.019961
2-0.139816-1.04630.149961
3-0.013714-0.10260.459314
4-0.127312-0.95270.172414
5-0.09711-0.72670.235217
60.1264840.94650.173975
7-0.084132-0.62960.265763
8-0.203315-1.52150.066884
9-0.103294-0.7730.221391
10-0.027221-0.20370.419661
11-0.033814-0.2530.400581
12-0.002799-0.02090.491681
13-0.342742-2.56480.006515
140.0720590.53920.295928
15-0.026847-0.20090.420751
160.0854330.63930.26261
17-0.086567-0.64780.259879
180.0160910.12040.452294
190.0705110.52770.29991
20-0.209457-1.56740.061324
210.0366450.27420.392459
220.0972280.72760.234949
23-0.009782-0.07320.470952
24-0.021286-0.15930.437006
250.0200060.14970.440766
26-0.046109-0.3450.365676
270.0427860.32020.37501
28-0.145288-1.08720.140796
290.0990890.74150.230739
300.0803350.60120.275077
310.0021330.0160.49366
32-0.008131-0.06080.47585
33-0.036674-0.27440.392378
34-0.051771-0.38740.349958
350.0563460.42170.337445
36-0.05177-0.38740.349961
370.0004020.0030.498804
38-0.037223-0.27850.390809
390.0024790.01860.492632
40-0.059295-0.44370.329476
41-0.110244-0.8250.206438
420.0709930.53130.298669
43-0.058516-0.43790.331573
44-0.057805-0.43260.333494
45-0.059692-0.44670.328411
46-0.00947-0.07090.471877
47-0.047563-0.35590.361617
48-0.038656-0.28930.38672
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291666417ienszvm0pzsz9gr/144001291666443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291666417ienszvm0pzsz9gr/144001291666443.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/06/t1291666417ienszvm0pzsz9gr/244001291666443.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/06/t1291666417ienszvm0pzsz9gr/244001291666443.ps (open in new window)


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