Home » date » 2009 » Nov » 26 »

(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: Thu, 26 Nov 2009 05:57:18 -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/Nov/26/t12592403099cb8yjwwr67zlmr.htm/, Retrieved Thu, 26 Nov 2009 13:58:32 +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/Nov/26/t12592403099cb8yjwwr67zlmr.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.4 1 -0.8 -2.9 -0.7 -0.7 1.5 3 3.2 3.1 3.9 1 1.3 0.8 1.2 2.9 3.9 4.5 4.5 3.3 2 1.5 1 2.1 3 4 5.1 4.5 4.2 3.3 2.7 1.8 1.4 0.5 -0.4 0.8 0.7 1.9 2 1.1 0.9 0.4 0.7 2.1 2.8 3.9 3.5 2 2 1.5 2.5 3.1 2.7 2.8 2.5 3 3.2 2.8 2.4 2 1.8 1.1 -1.5 -3.7
 
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.414241-2.55360.007399
20.1638071.00980.159495
30.0135190.08330.467011
4-0.390364-2.40640.010541
50.0398310.24550.403681
60.056720.34960.364268
7-0.163332-1.00680.160189
80.2207691.36090.090779
90.1250210.77070.222831
10-0.171954-1.060.147919
110.2646961.63170.055502
12-0.244204-1.50540.070247
130.020950.12910.448962
140.0296620.18290.427944
15-0.051268-0.3160.376853
16-0.036824-0.2270.410821
170.0208880.12880.449112
18-0.001915-0.01180.495321
19-0.076117-0.46920.320798
200.3175411.95750.028834
21-0.220176-1.35730.091354
220.1798071.10840.137326
23-0.130371-0.80370.213297
24-0.179686-1.10770.137486
250.1035130.63810.263619
26-0.129367-0.79750.215067
270.091520.56420.287978
280.114130.70350.243003
290.0129060.07960.468504
300.0114660.07070.472011
310.0807240.49760.310811
32-0.264447-1.63020.055665
330.0957840.59050.279191
34-0.112881-0.69580.245379
350.0750430.46260.323146
360.0523530.32270.374337


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.414241-2.55360.007399
2-0.009402-0.0580.477043
30.0943070.58130.282219
4-0.427031-2.63240.006094
5-0.403812-2.48930.008648
60.0189090.11660.45391
7-0.140275-0.86470.196312
8-0.241013-1.48570.072804
90.1258980.77610.221251
10-0.034238-0.21110.416985
110.0070170.04330.482863
12-0.054393-0.33530.36962
130.1055070.65040.259676
140.0477630.29440.385016
150.1021950.630.266242
16-0.045692-0.28170.389865
17-0.188818-1.1640.12585
180.0365090.22510.41157
19-0.131626-0.81140.211096
200.1923611.18580.121533
210.0316120.19490.423266
220.0262740.1620.436096
23-0.102087-0.62930.266456
24-0.199587-1.23030.113067
250.055170.34010.36783
26-0.131538-0.81090.211249
27-0.014253-0.08790.465224
28-0.049321-0.3040.381379
29-0.06271-0.38660.350615
30-0.025727-0.15860.437416
31-0.006704-0.04130.483625
32-0.017185-0.10590.458094
33-0.110037-0.67830.250841
34-0.047225-0.29110.386275
350.103650.63890.263348
36-0.088767-0.54720.293722
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t12592403099cb8yjwwr67zlmr/1ssb11259240236.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t12592403099cb8yjwwr67zlmr/1ssb11259240236.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t12592403099cb8yjwwr67zlmr/29drk1259240236.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t12592403099cb8yjwwr67zlmr/29drk1259240236.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 2 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 2 ; par4 = 2 ; 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