Home » date » 2009 » Dec » 14 »

*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: Mon, 14 Dec 2009 03:13:26 -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/14/t1260785734qtud04t9406lwv0.htm/, Retrieved Mon, 14 Dec 2009 11:15:37 +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/14/t1260785734qtud04t9406lwv0.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 «
95,1 97,0 112,7 102,9 97,4 111,4 87,4 96,8 114,1 110,3 103,9 101,6 94,6 95,9 104,7 102,8 98,1 113,9 80,9 95,7 113,2 105,9 108,8 102,3 99,0 100,7 115,5 100,7 109,9 114,6 85,4 100,5 114,8 116,5 112,9 102,0 106,0 105,3 118,8 106,1 109,3 117,2 92,5 104,2 112,5 122,4 113,3 100,0 110,7 112,8 109,8 117,3 109,1 115,9 96,0 99,8 116,8 115,7 99,4 94,3
 
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.629949-4.31874e-05
20.0776010.5320.298613
30.1868791.28120.103208
4-0.190481-1.30590.098976
50.0726340.4980.310419
60.0646550.44330.329809
7-0.129494-0.88780.189594
80.0747570.51250.305348
90.0413830.28370.38894
10-0.117001-0.80210.213261
110.1177820.80750.211732
12-0.06748-0.46260.322885
130.0292380.20040.420999
14-0.058093-0.39830.346119
150.1099840.7540.227301
16-0.123043-0.84350.2016
170.0569940.39070.348882
180.065780.4510.327043
19-0.127466-0.87390.193319
200.0687660.47140.319755
210.0824310.56510.28734
22-0.28277-1.93860.029286
230.3938812.70030.0048
24-0.2787-1.91070.031079
250.0210520.14430.442931
260.1305570.89510.18766
27-0.108244-0.74210.230864
280.0275260.18870.425566
290.029740.20390.419662
30-0.023859-0.16360.435387
31-0.030837-0.21140.416741
320.0744070.51010.306181
33-0.105243-0.72150.237084
340.0888170.60890.272761
35-0.08724-0.59810.276327
360.0615410.42190.337509


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.629949-4.31874e-05
2-0.529267-3.62850.00035
3-0.165301-1.13320.131429
4-0.106078-0.72720.235345
5-0.081184-0.55660.290232
60.0497530.34110.367279
7-0.007089-0.04860.480721
8-0.052904-0.36270.359232
90.0396290.27170.393528
10-0.021486-0.14730.441763
110.0302570.20740.418285
12-0.006688-0.04590.481811
130.0613040.42030.338098
14-0.098625-0.67610.251133
150.0308510.21150.416704
16-0.037825-0.25930.398263
17-0.06264-0.42940.334783
180.0690840.47360.318984
190.0334660.22940.409765
20-0.035818-0.24560.403548
210.1298730.89040.188902
22-0.240634-1.64970.052836
230.1176890.80680.211913
240.0130090.08920.464658
25-0.008756-0.060.476194
26-0.092871-0.63670.263708
270.0027270.01870.492581
280.0181480.12440.450759
29-0.013626-0.09340.462984
300.0600650.41180.341184
310.0087460.060.476222
32-0.028544-0.19570.422849
33-0.058601-0.40170.344846
34-0.073536-0.50410.308261
35-0.142957-0.98010.166036
36-0.166002-1.13810.130433
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260785734qtud04t9406lwv0/1pkci1260785605.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260785734qtud04t9406lwv0/1pkci1260785605.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260785734qtud04t9406lwv0/2rhng1260785605.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260785734qtud04t9406lwv0/2rhng1260785605.ps (open in new window)


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