Home » date » 2009 » Dec » 08 »

partial autocorrelation

*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, 08 Dec 2009 12:13:14 -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/08/t12602996677ioz7om3chb2nj5.htm/, Retrieved Tue, 08 Dec 2009 20:14:29 +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/08/t12602996677ioz7om3chb2nj5.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:
wsh9
 
Dataseries X:
» Textbox « » Textfile « » CSV «
130.7 117.2 110.8 111.4 108.2 108.8 110.2 109.5 109.5 116 111.2 112.1 114 119.1 114.1 115.1 115.4 110.8 116 119.2 126.5 127.8 131.3 140.3 137.3 143 134.5 139.9 159.3 170.4 175 175.8 180.9 180.3 169.6 172.3 184.8 177.7 184.6 211.4 215.3 215.9 244.7 259.3 289 310.9 321 315.1 333.2 314.1 284.7 273.9 216 196.4 190.9 206.4 196.3 199.5 198.9 214.4
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.433183-3.2990.000831
2-0.025633-0.19520.422953
30.1347321.02610.154556
4-0.007581-0.05770.477078
5-0.177355-1.35070.091019
60.1663811.26710.105088
70.013850.10550.458182
8-0.303745-2.31330.012137
90.249311.89870.031292
10-0.168742-1.28510.101932
110.0116150.08850.46491
120.0901980.68690.247434
13-0.05869-0.4470.328281
14-0.150759-1.14810.127811
150.141971.08120.14204
160.0649020.49430.311489
17-0.025011-0.19050.4248
18-0.048393-0.36860.356902
190.0687920.52390.301171
200.0120710.09190.463535
21-0.004849-0.03690.485335
22-0.098062-0.74680.229094
230.1098480.83660.203133
24-0.073686-0.56120.28842
25-0.055606-0.42350.336755
260.1403991.06920.144694
27-0.036321-0.27660.39153
280.0085960.06550.474016
29-0.100594-0.76610.223362
300.0766890.5840.280727
31-0.03824-0.29120.385959
32-0.007901-0.06020.476113
330.0720890.5490.292551
34-0.104761-0.79780.21411
350.0639680.48720.31399
360.0235430.17930.429165
370.0014320.01090.495667
38-0.050315-0.38320.35149
390.0519120.39530.347018
40-0.002566-0.01950.492238
41-0.057997-0.44170.330178
420.1024750.78040.219157
43-0.066116-0.50350.308251
44-0.011304-0.08610.465845
45-0.012192-0.09290.463169
460.0339270.25840.398513
47-0.068487-0.52160.301974
480.040510.30850.379399
49-0.0337-0.25660.399179
50-0.000585-0.00450.498229
510.0138910.10580.458057
520.0256530.19540.422894
53-0.007559-0.05760.477145
54-0.001459-0.01110.495586
55-0.000806-0.00610.497561
560.0055810.04250.483121
570.0078690.05990.476208
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.433183-3.2990.000831
2-0.262547-1.99950.025123
30.0092310.07030.472099
40.0835350.63620.26358
5-0.149272-1.13680.130143
60.0039870.03040.487941
70.081280.6190.269166
8-0.278706-2.12260.019036
9-0.031642-0.2410.405212
10-0.19995-1.52280.066625
11-0.068332-0.52040.302382
120.0557480.42460.336364
13-0.090016-0.68550.247867
14-0.193227-1.47160.073271
15-0.118316-0.90110.185639
160.0136680.10410.458728
170.1851521.41010.081929
18-0.14438-1.09960.138032
19-0.062974-0.47960.31666
200.0847430.64540.260613
210.0470990.35870.360564
22-0.216508-1.64890.05229
23-0.090537-0.68950.246626
24-0.031479-0.23970.405691
250.0036930.02810.48883
260.0673060.51260.305094
270.0288580.21980.413409
280.0734390.55930.289057
29-0.114745-0.87390.192896
30-0.067182-0.51160.305423
310.0307040.23380.407969
32-0.20249-1.54210.064242
330.0718020.54680.293297
340.0355150.27050.393879
35-0.027684-0.21080.416878
360.0133770.10190.459602
37-0.020887-0.15910.437082
380.031650.2410.405188
39-0.046918-0.35730.361077
40-0.024952-0.190.424975
410.1270480.96760.168638
420.0074610.05680.477442
43-0.126937-0.96670.168848
44-0.02445-0.18620.426466
45-0.034681-0.26410.39631
46-0.031925-0.24310.40438
47-0.074349-0.56620.286713
480.0179510.13670.445867
49-0.005044-0.03840.484744
500.0036530.02780.488951
51-0.07049-0.53680.296717
52-0.027023-0.20580.418833
53-0.096568-0.73540.232517
54-0.046557-0.35460.3621
550.0580380.4420.330065
56-0.076395-0.58180.281476
57-0.076145-0.57990.282112
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602996677ioz7om3chb2nj5/1hng21260299590.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602996677ioz7om3chb2nj5/1hng21260299590.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t12602996677ioz7om3chb2nj5/2flay1260299590.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t12602996677ioz7om3chb2nj5/2flay1260299590.ps (open in new window)


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