Home » date » 2010 » Dec » 21 »

Paper: Partial autocorrelation function (D=1)

*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:40:29 +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/t1292917122b0rjmuug7uvhr1g.htm/, Retrieved Tue, 21 Dec 2010 08:38:45 +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/t1292917122b0rjmuug7uvhr1g.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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2568342.17930.016291
20.2344341.98920.025237
30.2644072.24360.013969
40.0240130.20380.419558
50.1708931.45010.07569
60.2704662.2950.012325
70.1522011.29150.100336
80.3844743.26240.000845
90.1973191.67430.049204
100.0748320.6350.26373
110.1837531.55920.061668
12-0.136306-1.15660.12563
13-0.126801-1.07590.142773
140.1771991.50360.068531
150.0898660.76250.224114
160.0404840.34350.366106
170.0908820.77120.221568
18-0.002277-0.01930.492318
19-0.076839-0.6520.258239
20-0.003541-0.030.488058
21-0.051827-0.43980.330711
22-0.112971-0.95860.170487
23-0.066053-0.56050.288447
24-0.204-1.7310.043868
25-0.043685-0.37070.355981
26-0.094363-0.80070.212971
27-0.225894-1.91680.029618
28-0.075868-0.64380.260888
29-0.047671-0.40450.343522
30-0.268413-2.27760.012862
31-0.113156-0.96020.170093
32-0.224699-1.90660.030279
33-0.228955-1.94270.027979
34-0.119395-1.01310.157202
35-0.071789-0.60910.272172
36-0.017212-0.1460.442146
37-0.038519-0.32680.372367
38-0.150377-1.2760.103029
39-0.108311-0.9190.18057
40-0.149374-1.26750.104534
41-0.122725-1.04140.150597
42-0.048239-0.40930.34176
430.0193250.1640.435105
44-0.016269-0.1380.445295
45-0.035185-0.29860.38307
46-0.016876-0.14320.443267
47-0.11991-1.01750.156169
48-0.177498-1.50610.068206


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2568342.17930.016291
20.1803681.53050.06514
30.1867221.58440.058744
4-0.118981-1.00960.158038
50.1235521.04840.148987
60.2160391.83310.035457
70.0521120.44220.32984
80.2637112.23770.014169
9-0.011915-0.10110.459874
10-0.071047-0.60290.274249
110.0303050.25710.398899
12-0.269227-2.28450.012647
13-0.215698-1.83030.035675
140.1510431.28160.102039
150.140281.19030.118917
16-0.164249-1.39370.083848
17-0.064896-0.55070.291786
180.1456541.23590.110253
19-0.086116-0.73070.233661
200.0808660.68620.247406
210.1083830.91970.180411
22-0.272151-2.30930.0119
23-0.123873-1.05110.148365
24-0.158874-1.34810.090928
25-0.063578-0.53950.295612
26-0.055987-0.47510.318089
270.0593270.50340.308106
280.0169320.14370.44308
290.014630.12410.450776
30-0.042038-0.35670.361177
31-0.006374-0.05410.478508
32-0.067102-0.56940.285437
330.087990.74660.228863
34-0.059806-0.50750.306688
350.0322110.27330.392696
360.0625460.53070.298623
37-0.042892-0.3640.358481
380.0215860.18320.427594
39-0.000421-0.00360.498581
40-0.05921-0.50240.308455
410.1098170.93180.177269
420.0371080.31490.376883
43-0.065071-0.55210.291278
44-0.069068-0.58610.279834
45-0.013465-0.11430.454676
46-0.06797-0.57670.282957
47-0.073086-0.62020.268556
48-0.030861-0.26190.397085
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292917122b0rjmuug7uvhr1g/1y8sk1292917226.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292917122b0rjmuug7uvhr1g/1y8sk1292917226.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292917122b0rjmuug7uvhr1g/3rian1292917226.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292917122b0rjmuug7uvhr1g/3rian1292917226.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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