Home » date » 2009 » Dec » 16 »

*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: Wed, 16 Dec 2009 09:40:14 -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/16/t1260981649xti3ph30e0094pi.htm/, Retrieved Wed, 16 Dec 2009 17:40:51 +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/16/t1260981649xti3ph30e0094pi.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 «
19915 19843 19761 20858 21968 23061 22661 22269 21857 21568 21274 20987 19683 19381 19071 20772 22485 24181 23479 22782 22067 21489 20903 20330 19736 19483 19242 20334 21423 22523 21986 21462 20908 20575 20237 19904 19610 19251 18941 20450 21946 23409 22741 22069 21539 21189 20960 20704 19697 19598 19456 20316 21083 22158 21469 20892 20578 20233 19947 20049
 
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.8759346.06870
20.6542994.53311.9e-05
30.4374493.03070.001962
40.272721.88950.032439
50.1418490.98280.165327
60.026920.18650.426416
7-0.082722-0.57310.284621
8-0.18457-1.27870.103568
9-0.288955-2.00190.02548
10-0.437465-3.03080.001961
11-0.597859-4.14216.9e-05
12-0.691728-4.79248e-06
13-0.656982-4.55171.8e-05
14-0.549845-3.80940.000198
15-0.431586-2.99010.002195
16-0.345212-2.39170.010368
17-0.271231-1.87910.033152
18-0.18245-1.2640.106158
19-0.06714-0.46520.321959
200.0364440.25250.400869
210.1292480.89550.187506
220.2304991.59690.058421
230.3386612.34630.011568
240.4008332.77710.003901
250.3990552.76470.004029
260.3353612.32350.012219
270.2562831.77560.041071
280.2104351.45790.075685
290.1855041.28520.102443
300.1465461.01530.157527
310.0831260.57590.283682
320.0310850.21540.415199
33-0.015914-0.11030.456332
34-0.062829-0.43530.33265
35-0.120345-0.83380.20427
36-0.165987-1.150.127922


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8759346.06870
2-0.485362-3.36270.000762
30.0635120.440.330947
40.0343430.23790.406472
5-0.127505-0.88340.190716
6-0.070384-0.48760.314015
7-0.094982-0.65810.256823
8-0.089622-0.62090.268795
9-0.17928-1.24210.11012
10-0.406721-2.81780.0035
11-0.162379-1.1250.133093
120.0361410.25040.401675
130.1688011.16950.123992
14-0.147929-1.02490.155279
15-0.080662-0.55880.289433
16-0.124043-0.85940.197197
17-0.010422-0.07220.471369
180.0120540.08350.466896
190.0904640.62680.266895
20-0.126047-0.87330.19343
21-0.04299-0.29780.383555
22-0.088991-0.61660.270222
230.011010.07630.469758
24-0.132877-0.92060.180932
250.041530.28770.387398
26-0.201813-1.39820.08424
27-0.067182-0.46540.321858
28-0.024369-0.16880.433319
29-0.000734-0.00510.497982
30-0.064638-0.44780.328147
31-0.010507-0.07280.471136
320.0098040.06790.473065
33-0.034015-0.23570.407349
34-0.024861-0.17220.431987
350.0113240.07850.468897
36-0.022271-0.15430.43901
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260981649xti3ph30e0094pi/10d4z1260981611.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260981649xti3ph30e0094pi/10d4z1260981611.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260981649xti3ph30e0094pi/2gyey1260981611.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260981649xti3ph30e0094pi/2gyey1260981611.ps (open in new window)


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