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 19:55:20 +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/t12927884409teyrg1qqmsjykl.htm/, Retrieved Sun, 19 Dec 2010 20:54:01 +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/t12927884409teyrg1qqmsjykl.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 time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1744661.5990.056787
2-0.293872-2.69340.004269
30.0565660.51840.302759
4-0.04507-0.41310.340302
5-0.084469-0.77420.220502
60.0743760.68170.248662
7-0.0798-0.73140.233292
8-0.001127-0.01030.495892
90.0631890.57910.282024
10-0.287087-2.63120.005061
110.1324731.21410.11405
120.7749467.10250
130.1011520.92710.178272
14-0.298515-2.73590.003794
15-0.022101-0.20260.419984
16-0.061407-0.56280.287533
17-0.101902-0.93390.176505
180.0053050.04860.48067
19-0.09928-0.90990.182735
20-0.038164-0.34980.363689
21-0.012865-0.11790.453211
22-0.273361-2.50540.007081
230.0611290.56030.288398
240.605125.5460
250.1051190.96340.169048
26-0.277572-2.5440.006395
27-0.062253-0.57060.28491
28-0.079989-0.73310.232767
29-0.127928-1.17250.122159
30-0.019811-0.18160.428177
31-0.078786-0.72210.236123
32-0.059633-0.54650.293069
33-0.001463-0.01340.494668
34-0.18112-1.660.050322
350.0387780.35540.361587
360.4856864.45141.3e-05
370.0921230.84430.200445
38-0.237666-2.17820.016095
39-0.062634-0.5740.283735
40-0.058427-0.53550.296862
41-0.088707-0.8130.209254
420.0272880.25010.40156
43-0.045367-0.41580.33931
44-0.041573-0.3810.352076
450.0428150.39240.347876
46-0.117224-1.07440.142865
470.0062230.0570.477327
480.3570243.27220.000775


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1744661.5990.056787
2-0.334492-3.06570.00146
30.2129231.95150.027167
4-0.258238-2.36680.010122
50.1169761.07210.143371
6-0.058653-0.53760.29615
7-0.08994-0.82430.206047
80.1174421.07640.142421
9-0.114714-1.05140.148051
10-0.252651-2.31560.01151
110.4244783.89041e-04
120.6098575.58940
13-0.159065-1.45790.074304
14-0.043844-0.40180.344412
15-0.166582-1.52680.06529
160.1017550.93260.176849
17-0.151588-1.38930.084203
18-0.076745-0.70340.241881
19-0.077325-0.70870.240239
20-0.164471-1.50740.06773
21-0.108808-0.99720.160756
220.0009530.00870.496525
23-0.119583-1.0960.138105
240.0888850.81460.208791
250.0386920.35460.361882
260.0579290.53090.298435
27-5.8e-05-5e-040.49979
28-0.074359-0.68150.248711
290.0168550.15450.438802
300.0022760.02090.491705
310.0159930.14660.44191
32-0.07299-0.6690.252675
330.0798590.73190.233127
340.0651050.59670.276157
35-0.010549-0.09670.461606
36-0.060032-0.55020.291821
37-0.074151-0.67960.24931
380.0469170.430.334147
39-0.037395-0.34270.366327
400.0480.43990.330561
410.0159820.14650.441947
420.0585650.53680.296428
43-0.041435-0.37980.352542
440.0835360.76560.223025
450.0209270.19180.424181
462e-0600.499992
47-0.100887-0.92460.178899
48-0.076116-0.69760.243671
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927884409teyrg1qqmsjykl/1ldwo1292788516.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927884409teyrg1qqmsjykl/1ldwo1292788516.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/19/t12927884409teyrg1qqmsjykl/3emv91292788516.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t12927884409teyrg1qqmsjykl/3emv91292788516.ps (open in new window)


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