Home » date » 2010 » Dec » 19 »

Paper: 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: Sun, 19 Dec 2010 15:09:48 +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/19/t12927712795zsk7ht2i495edo.htm/, Retrieved Sun, 19 Dec 2010 16:07:59 +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/19/t12927712795zsk7ht2i495edo.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 «
608 651 691 627 634 731 475 337 803 722 590 724 627 696 825 677 656 785 412 352 839 729 696 641 695 638 762 635 721 854 418 367 824 687 601 676 740 691 683 594 729 731 386 331 706 715 657 653 642 643 718 654 632 731 392 344 792 852 649 629 685 617 715 715 629 916 531 357 917 828 708 858 775 785 1.006 789 734 906 532 387 991 841 892 782
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.006450.05910.476499
2-0.313518-2.87340.00257
3-0.032151-0.29470.384487
40.0355530.32590.372674
50.0231620.21230.416199
6-0.080053-0.73370.232587
70.0279810.25650.399115
80.0133420.12230.451485
9-0.020582-0.18860.425417
10-0.239003-2.19050.01563
110.0431040.39510.346901
120.5682245.20791e-06
130.0364710.33430.369508
14-0.265988-2.43780.008443
150.0524320.48050.316043
16-0.03146-0.28830.386902
17-0.134948-1.23680.1098
18-0.008828-0.08090.467851
190.0613720.56250.287643
200.1009580.92530.178731
21-0.012612-0.11560.454126
22-0.242418-2.22180.014493
239.2e-058e-040.499664
240.4025133.68910.000199
250.0393980.36110.359471
26-0.245986-2.25450.013383
27-0.024576-0.22520.411167
28-0.052509-0.48120.315795
29-0.12431-1.13930.128904
30-0.015959-0.14630.442032
310.0838740.76870.222109
320.0706520.64750.259526
33-0.006242-0.05720.477259
34-0.192886-1.76780.04036
350.00950.08710.465411
360.339463.11120.001273
370.0250240.22930.409578
38-0.257834-2.36310.010217
39-0.030442-0.2790.390462
40-0.009488-0.0870.465457
41-0.079854-0.73190.233141
42-0.012988-0.1190.452765
430.1009340.92510.178787
440.0761410.69780.243602
45-0.008908-0.08160.467564
46-0.130978-1.20040.116673
47-0.01984-0.18180.428076
480.2432872.22980.014215


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.006450.05910.476499
2-0.313573-2.87390.002567
3-0.030469-0.27930.390369
4-0.069399-0.63610.263235
50.0037650.03450.486277
6-0.101285-0.92830.177957
70.0397440.36430.358289
8-0.046552-0.42670.335362
9-0.002467-0.02260.491008
10-0.284639-2.60880.005377
110.0504980.46280.322345
120.4760384.3631.8e-05
130.0898680.82360.206235
14-0.005814-0.05330.478814
150.1680861.54050.063594
16-0.142286-1.30410.097886
17-0.180945-1.65840.050484
180.0022460.02060.491811
19-0.016507-0.15130.440057
200.115311.05680.14681
210.1009820.92550.178675
22-0.075214-0.68940.246251
23-0.053121-0.48690.313811
240.0365820.33530.369124
25-0.047048-0.43120.333713
26-0.07806-0.71540.238162
27-0.122459-1.12240.132455
28-0.067153-0.61550.269955
290.0010650.00980.496116
30-0.072711-0.66640.253488
310.0124860.11440.454583
32-0.038493-0.35280.362563
33-0.062016-0.56840.285645
34-0.046196-0.42340.336546
350.012650.11590.453989
360.0805160.73790.231302
370.0838280.76830.222233
38-0.076805-0.70390.241713
39-0.034231-0.31370.377251
40-0.026894-0.24650.402954
410.0317160.29070.386006
420.0265190.2430.40428
430.08660.79370.214803
44-0.000315-0.00290.498853
450.026360.24160.404841
460.0174640.16010.436608
47-0.033715-0.3090.379042
48-0.032315-0.29620.383916
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/15pwf1292771384.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/15pwf1292771384.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/25pwf1292771384.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/25pwf1292771384.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/35pwf1292771384.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927712795zsk7ht2i495edo/35pwf1292771384.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