Home » date » 2009 » Dec » 20 »

Partial autocorrelation function 2 Paper

*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, 20 Dec 2009 10:18:56 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/20/t12613299975ywgjderognedfk.htm/, Retrieved Sun, 20 Dec 2009 18:26:39 +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/2009/Dec/20/t12613299975ywgjderognedfk.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
-1.2 -2.4 0.8 -0.1 -1.5 -4.4 -4.2 3.5 10 8.6 9.5 9.9 10.4 16 12.7 10.2 8.9 12.6 13.6 14.8 9.5 13.7 17 14.7 17.4 9 9.1 12.2 15.9 12.9 10.9 10.6 13.2 9.6 6.4 5.8 -1 -0.2 2.7 3.6 -0.9 0.3 -1.1 -2.5 -3.4 -3.5 -3.9 -4.6 -0.1 4.3 10.2 8.7 13.3 15 20.7 20.7 26.4 31.2 31.4 26.6 26.6 19.2 6.5 3.1 -0.2 -4 -12.6 -13 -17.6 -21.7 -23.2 -16.8 -19.8
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2286611.94030.028133
20.1314581.11550.134181
30.1203771.02140.155235
40.2604622.21010.015139
50.0818380.69440.244827
60.0975120.82740.205367
7-0.029539-0.25060.401401
8-0.147211-1.24910.107832
9-0.133764-1.1350.130064
10-0.061526-0.52210.301612
110.1192111.01150.157573
12-0.441471-3.7460.00018
13-0.222294-1.88620.031649
14-0.136375-1.15720.125512
150.0260090.22070.412979
16-0.15917-1.35060.090527
17-0.076853-0.65210.2582
18-0.172141-1.46070.074229
190.0230210.19530.422839
200.0013420.01140.495472
210.0012880.01090.495655
220.0721260.6120.27123
23-0.155085-1.31590.096184
24-0.037995-0.32240.374044
250.0419530.3560.361446
260.1462431.24090.109332
27-0.071515-0.60680.272939
280.0550480.46710.320919
290.0091310.07750.469227
300.0974570.82690.205499
310.0103450.08780.465149
320.06640.56340.287448
330.0687070.5830.280857
34-0.088951-0.75480.226423
35-0.001946-0.01650.493436
360.0905960.76870.222283


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2286611.94030.028133
20.083540.70890.240349
30.078340.66470.254171
40.2237581.89870.030809
5-0.031781-0.26970.394092
60.0459930.39030.348748
7-0.105069-0.89150.187804
8-0.217086-1.8420.034794
9-0.094711-0.80370.212122
10-0.030664-0.26020.397728
110.2420552.05390.021809
12-0.485664-4.1215e-05
130.038710.32850.371755
14-0.02101-0.17830.429504
150.0794650.67430.251146
160.017070.14480.44262
17-0.105567-0.89580.186682
18-0.01872-0.15880.43712
190.1072430.910.182933
20-0.073082-0.62010.268566
21-0.122393-1.03850.151246
220.0663350.56290.287635
23-0.031857-0.27030.393846
24-0.205571-1.74430.042685
250.0063890.05420.478457
260.0615270.52210.30161
270.0294010.24950.40185
280.077240.65540.257148
29-0.029878-0.25350.400294
30-0.120587-1.02320.154816
310.1197421.0160.156505
32-0.000715-0.00610.497586
33-0.054737-0.46450.32186
34-0.080145-0.68010.249325
350.002150.01820.492749
360.0094730.08040.46808
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613299975ywgjderognedfk/1j7u51261329534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613299975ywgjderognedfk/1j7u51261329534.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t12613299975ywgjderognedfk/2kow41261329534.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12613299975ywgjderognedfk/2kow41261329534.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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