Home » date » 2009 » Dec » 10 »

(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, 10 Dec 2009 01:34:53 -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/10/t12604342948xfbyrducb4ne14.htm/, Retrieved Thu, 10 Dec 2009 09:38:16 +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/10/t12604342948xfbyrducb4ne14.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 «
60 52 60 26 2 60 60 60 50 39 46 60 52 52 66 58 23 48 73 73 46 50 50 36 60 67 67 12 60 60 46 60 60 60 60 60 60 60 77 25 35 60 38 37 60 60 60 60 60 72 55 60 43 66 60 75 98 60 60 60 60
 
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.169461.32350.0953
2-0.153497-1.19890.117611
30.0320770.25050.40151
40.0368210.28760.38732
50.0014380.01120.495538
60.0653770.51060.305734
70.1513891.18240.12082
8-0.075428-0.58910.278982
9-0.092576-0.7230.23621
10-0.052592-0.41080.341345
110.0039060.03050.487883
120.221431.72940.044396
130.0973210.76010.22506
14-0.149533-1.16790.123698
15-0.119957-0.93690.176253
16-0.09165-0.71580.23842
17-0.036746-0.2870.387543
180.0986310.77030.222037
190.1642861.28310.102153
200.0474990.3710.355969
21-0.120618-0.94210.174939
22-0.111554-0.87130.193512
230.2308981.80340.038134
240.0827960.64670.260141
25-0.053914-0.42110.337589
260.0015130.01180.495306
270.0467280.3650.358204
28-0.120151-0.93840.175867
29-0.141015-1.10140.137533
300.0670530.52370.301193
310.049720.38830.349563
32-0.046005-0.35930.360302
33-0.126206-0.98570.164088
34-0.098652-0.77050.22199
350.0521280.40710.342667
360.1357741.06040.146565


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.169461.32350.0953
2-0.187601-1.46520.073999
30.101120.78980.21636
4-0.020807-0.16250.435723
50.0213690.16690.434001
60.066770.52150.301955
70.1338431.04530.149993
8-0.122449-0.95640.171333
9-0.008451-0.0660.473795
10-0.094669-0.73940.231254
110.0246890.19280.423867
120.2205651.72270.045008
130.0068860.05380.478644
14-0.125879-0.98310.16471
15-0.050453-0.39410.347458
16-0.132259-1.0330.152848
170.0039430.03080.487766
180.0910270.71090.239914
190.0873940.68260.248732
200.081570.63710.263228
21-0.055582-0.43410.332869
22-0.094699-0.73960.231182
230.2916632.2780.013123
24-0.145952-1.13990.129387
25-0.033763-0.26370.39645
260.0229980.17960.429024
270.0737810.57630.283283
28-0.078693-0.61460.270549
29-0.058494-0.45690.3247
30-0.130181-1.01670.156645
310.0299890.23420.407798
32-0.051746-0.40420.343757
33-0.06692-0.52270.30155
340.0421080.32890.37169
350.0289650.22620.410892
360.1001840.78250.218485
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/10/t12604342948xfbyrducb4ne14/1acsv1260434091.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t12604342948xfbyrducb4ne14/1acsv1260434091.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/10/t12604342948xfbyrducb4ne14/2iphj1260434091.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/10/t12604342948xfbyrducb4ne14/2iphj1260434091.ps (open in new window)


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