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 06:00:19 -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/t1259240493kynrfxy77dhkj93.htm/, Retrieved Thu, 26 Nov 2009 14:01:36 +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/t1259240493kynrfxy77dhkj93.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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.446977-3.51950.000408
20.1360181.0710.144159
30.0519820.40930.341862
4-0.356131-2.80420.003364
50.0166240.13090.448139
60.1522391.19870.117596
7-0.282824-2.2270.014795
80.2928662.3060.012233
90.0059190.04660.481488
10-0.03917-0.30840.379396
110.1742711.37220.087471
12-0.17537-1.38090.086139
130.0178090.14020.444468
14-0.030343-0.23890.405977
15-0.086692-0.68260.248697
160.0398250.31360.377445
170.0059560.04690.481374
180.0265290.20890.417611
190.0296940.23380.40795
200.1270381.00030.160528
21-0.129752-1.02170.155454
220.0736740.58010.281973
23-0.038762-0.30520.380613
24-0.153724-1.21040.115355
250.1234850.97230.167334
26-0.085142-0.67040.252544
27-0.01761-0.13870.445084
280.1202980.94720.1736
29-0.030725-0.24190.404816
30-0.022385-0.17630.430331
310.143411.12920.13158
32-0.205541-1.61840.055323
330.1137060.89530.187039
34-0.073925-0.58210.281311
35-0.033194-0.26140.397335
360.1460971.15040.127205


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.446977-3.51950.000408
2-0.079693-0.62750.266317
30.1031320.81210.209931
4-0.357588-2.81560.003259
5-0.419572-3.30370.000794
60.0495550.39020.348864
7-0.214421-1.68840.048184
8-0.195081-1.53610.064805
90.0001750.00140.499454
100.0876250.690.246397
110.0670430.52790.299728
12-0.085713-0.67490.251123
130.1233950.97160.16751
140.0417980.32910.371589
15-0.048132-0.3790.352994
16-0.046078-0.36280.358989
17-0.030823-0.24270.40452
180.0194920.15350.439258
19-0.14387-1.13280.130823
200.1731481.36340.088849
210.0131760.10370.458853
22-0.037592-0.2960.38411
230.1191130.93790.175968
24-0.046407-0.36540.358026
250.042880.33760.368388
26-0.083113-0.65440.257626
27-0.020493-0.16140.436168
28-0.102587-0.80780.211154
29-0.063581-0.50060.3092
30-0.060358-0.47530.318135
31-0.052488-0.41330.340409
32-0.061076-0.48090.316135
33-0.031477-0.24780.402536
34-0.019401-0.15280.439539
35-0.000321-0.00250.498995
360.1669811.31480.096709
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259240493kynrfxy77dhkj93/1kgs21259240418.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259240493kynrfxy77dhkj93/1kgs21259240418.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259240493kynrfxy77dhkj93/2bush1259240418.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259240493kynrfxy77dhkj93/2bush1259240418.ps (open in new window)


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