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:11:41 +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/t1292771407m3uk2do3hihnrks.htm/, Retrieved Sun, 19 Dec 2010 16:10:10 +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/t1292771407m3uk2do3hihnrks.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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.095476-0.81010.210264
2-0.058103-0.4930.311749
3-0.071144-0.60370.273979
4-0.017956-0.15240.439663
50.1138850.96630.168553
6-0.048082-0.4080.342245
70.0841050.71370.238873
8-0.1267-1.07510.142963
90.0133340.11310.455116
100.0585510.49680.310414
110.0390460.33130.370684
12-0.049521-0.42020.337796
13-0.023586-0.20010.420969
140.0525260.44570.328575
150.0843180.71550.238319
160.041570.35270.36266
17-0.092664-0.78630.217141
18-0.085757-0.72770.234586
19-0.045279-0.38420.350979
20-0.00082-0.0070.497235
21-0.01839-0.1560.438219
220.0586020.49730.310261
23-0.087467-0.74220.230196
24-0.129289-1.09710.138137
250.041430.35150.363102
260.070830.6010.27486
27-0.076915-0.65260.258032
28-0.088926-0.75460.226487
29-0.044038-0.37370.354873
300.0083530.07090.471844
31-0.003171-0.02690.489305
32-0.060395-0.51250.304944
330.0384980.32670.372435
34-0.050791-0.4310.333886
350.0269170.22840.409994
360.0980130.83170.204174
37-0.054605-0.46330.322259
38-0.101-0.8570.197141
39-0.069552-0.59020.278461
400.0537220.45580.324935
410.0115550.0980.461084
420.0200720.17030.432618
430.0231590.19650.422382
440.0155590.1320.447667
45-0.062897-0.53370.297596
46-0.049745-0.42210.337106
470.0160050.13580.446177
480.0106050.090.464274


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.095476-0.81010.210264
2-0.067837-0.57560.283334
3-0.084703-0.71870.237318
4-0.038957-0.33060.370968
50.0995690.84490.200491
6-0.036183-0.3070.379857
70.0886580.75230.227165
8-0.103339-0.87690.191739
90.0022190.01880.492516
100.0447290.37950.352702
110.0477860.40550.343165
12-0.059704-0.50660.30699
130.0109680.09310.463053
140.0354320.30060.382275
150.1009390.85650.197282
160.0455440.38650.350149
17-0.063256-0.53670.29655
18-0.086874-0.73710.231714
19-0.058448-0.49590.310722
20-0.062803-0.53290.297871
21-0.062775-0.53270.297953
220.0575130.4880.313512
23-0.064811-0.54990.292032
24-0.136083-1.15470.126015
25-0.005691-0.04830.480811
260.0462060.39210.348082
27-0.098787-0.83820.202335
28-0.07663-0.65020.258808
29-0.0782-0.66350.254549
30-0.027367-0.23220.408514
31-0.030934-0.26250.39685
32-0.079308-0.6730.251567
330.048590.41230.340672
340.0138920.11790.453247
350.0071220.06040.47599
360.0764370.64860.259335
37-0.03964-0.33640.368791
38-0.10293-0.87340.192678
39-0.055279-0.46910.320223
40-0.010638-0.09030.464164
41-0.047111-0.39970.345263
420.0168970.14340.443196
430.0579230.49150.312287
440.0483660.41040.341367
45-0.077208-0.65510.257236
46-0.09901-0.84010.201808
47-0.076333-0.64770.259616
48-0.054489-0.46240.32261
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/1mpnf1292771498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/1mpnf1292771498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/2fymi1292771498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/2fymi1292771498.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/3qq331292771498.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292771407m3uk2do3hihnrks/3qq331292771498.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 = 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