Home » date » 2010 » Dec » 21 »

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: Tue, 21 Dec 2010 07:19:38 +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/21/t12929159345k9m2a3n11c5f4u.htm/, Retrieved Tue, 21 Dec 2010 08:18:54 +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/21/t12929159345k9m2a3n11c5f4u.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 1006 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 time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1316271.20640.115529
2-0.275348-2.52360.006749
30.187541.71880.044664
4-0.0034-0.03120.487609
5-0.03282-0.30080.382154
60.2055531.88390.031517
7-0.03617-0.33150.370545
80.0618260.56660.286235
90.1664151.52520.06548
10-0.298143-2.73250.00383
110.0769380.70520.241334
120.6926036.34780
130.0202490.18560.426609
14-0.298069-2.73180.003838
150.0475430.43570.332072
16-0.038677-0.35450.361935
17-0.056456-0.51740.30311
180.059910.54910.292202
19-0.090459-0.82910.204707
20-0.021404-0.19620.422476
210.0229380.21020.417
22-0.296758-2.71980.003968
23-0.001621-0.01490.49409
240.5025684.60617e-06
250.0385470.35330.362378
26-0.296315-2.71580.004013
27-0.029725-0.27240.392978
28-0.059779-0.54790.292612
29-0.115395-1.05760.146631
300.0062070.05690.477385
31-0.0727-0.66630.25352
32-0.061713-0.56560.286584
330.0282030.25850.398334
34-0.190874-1.74940.041938
35-0.024605-0.22550.411065
360.4076933.73660.00017
370.0441510.40460.343383
38-0.26143-2.39610.009397
39-0.028095-0.25750.398715
40-0.042708-0.39140.348236
41-0.082145-0.75290.226816
420.0658690.60370.273836
43-0.039298-0.36020.359813
44-0.043554-0.39920.345386
450.0829410.76020.224641
46-0.128578-1.17840.120976
47-0.043043-0.39450.347106
480.331213.03560.001598


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1316271.20640.115529
2-0.297834-2.72970.003861
30.3057282.8020.003151
4-0.232993-2.13540.01782
50.2356412.15970.016824
60.0163960.15030.440456
7-0.017389-0.15940.436878
80.2230062.04390.022049
9-0.072892-0.66810.252962
10-0.239062-2.1910.015609
110.3574233.27580.000766
120.4857654.45211.3e-05
13-0.145541-1.33390.092921
14-0.163761-1.50090.068566
15-0.184075-1.68710.04765
160.1054460.96640.168303
17-0.117934-1.08090.141421
18-0.136195-1.24820.107704
19-0.062656-0.57430.283665
20-0.201028-1.84250.034468
21-0.028769-0.26370.396338
22-0.004439-0.04070.483824
23-0.011088-0.10160.459649
240.1292171.18430.119819
250.0795590.72920.233962
260.0385720.35350.362291
270.0170430.15620.438125
28-0.088527-0.81140.209726
29-0.024397-0.22360.411806
30-0.007262-0.06660.473545
31-0.021967-0.20130.420462
32-0.089528-0.82050.207116
330.0348470.31940.375116
340.0677950.62140.268026
350.0013670.01250.495017
360.0006430.00590.497657
37-0.053368-0.48910.313014
380.0765040.70120.242567
39-0.032302-0.2960.383962
400.0037520.03440.486325
410.0014040.01290.494881
420.0421820.38660.350012
43-0.030476-0.27930.390344
440.0368450.33770.368219
450.0417040.38220.351631
46-0.016697-0.1530.439369
47-0.077913-0.71410.238577
48-0.031859-0.2920.385505
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/12ah91292915970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/12ah91292915970.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/2v1hc1292915970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/2v1hc1292915970.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/3v1hc1292915970.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929159345k9m2a3n11c5f4u/3v1hc1292915970.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