Home » date » 2009 » Dec » 13 »

autocorrelation cola

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 13 Dec 2009 07:40:03 -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/13/t1260715244ip61q2nj61qwa5o.htm/, Retrieved Sun, 13 Dec 2009 15:40:59 +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/13/t1260715244ip61q2nj61qwa5o.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.25 1.25 1.26 1.26 1.26 1.26 1.27 1.27 1.29 1.31 1.32 1.32 1.33 1.33 1.32 1.32 1.31 1.3 1.31 1.29 1.3 1.3 1.32 1.31 1.35 1.35 1.36 1.37 1.37 1.37 1.32 1.32 1.31 1.31 1.34 1.31 1.26 1.27 1.24 1.25 1.27 1.25 1.26 1.27 1.26 1.26 1.28 1.27 1.28 1.27 1.26 1.27 1.27 1.28 1.27 1.26 1.3 1.31 1.28 1.29 1.31 1.29 1.29 1.32 1.3 1.29 1.31 1.29 1.33 1.35 1.32 1.33 1.34 1.34 1.33 1.33 1.35 1.32
 
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.196959-1.72830.043971
2-0.147578-1.2950.099597
30.2993152.62650.005203
4-0.176195-1.54610.06309
5-0.043358-0.38050.352323
60.1667111.46290.073785
7-0.086617-0.76010.224771
8-0.078963-0.69290.245229
90.01910.16760.433667
10-0.120025-1.05320.147768
11-0.076501-0.67130.252022
120.0453550.3980.345871
130.0771660.67710.250176
14-0.056835-0.49870.309698
15-0.023559-0.20670.418383
160.1048850.92040.180129
170.0836220.73380.232656
18-0.12871-1.12940.131112
190.092340.81030.210138
200.0794960.69760.243773
21-0.230201-2.020.023431
220.1021230.89610.186489
230.0610940.53610.296718
24-0.12708-1.11510.134134
250.0020960.01840.492685
260.0185350.16260.435614
27-0.19819-1.73910.043006
28-0.005324-0.04670.481429
290.123121.08040.141674
30-0.156196-1.37060.087239
310.0044590.03910.484445
320.0531080.4660.321258
33-0.148243-1.30080.098599
340.0698790.61320.270781
350.0691140.60650.272994
36-0.041095-0.36060.359689
37-0.037468-0.32880.371606
38-0.04592-0.40290.344051
390.0554370.48650.314011
40-0.073805-0.64760.259572
410.0224280.19680.42225
420.0974310.8550.197614
43-0.100626-0.8830.189996
440.0933380.8190.207646
450.0449890.39480.34705
46-0.083522-0.73290.232922
470.1053170.92420.179146
480.059530.52240.301455


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.196959-1.72830.043971
2-0.193892-1.70140.046452
30.2447632.14780.017438
4-0.105707-0.92760.178263
5-0.016716-0.14670.441883
60.0556710.48850.313289
70.0131090.1150.454361
8-0.076764-0.67360.25129
9-0.085417-0.74950.227911
10-0.125352-1.10.137389
11-0.10879-0.95460.171377
12-0.035345-0.31010.378643
130.1221781.07210.143511
140.006120.05370.478654
15-0.038441-0.33730.368398
160.0641980.56330.287421
170.177891.5610.061315
18-0.104076-0.91330.181977
19-0.016611-0.14580.442247
200.0301610.26470.395989
21-0.150484-1.32050.095291
22-0.019893-0.17460.430941
230.0318770.27970.390222
240.0518650.45510.325153
25-0.094422-0.82860.20496
26-0.012415-0.10890.456767
27-0.111215-0.97590.166082
28-0.093308-0.81880.207721
290.0041780.03670.485426
30-0.088011-0.77230.221152
31-0.040825-0.35820.360572
32-0.088609-0.77750.219612
33-0.100115-0.87850.191202
340.0558320.48990.312789
35-0.007776-0.06820.472888
36-0.020785-0.18240.427878
37-0.131312-1.15230.12639
38-0.108107-0.94860.172887
39-0.018788-0.16490.434741
40-0.08788-0.77110.221491
41-0.000919-0.00810.496795
420.0045010.03950.484297
43-0.012835-0.11260.45531
440.1529681.34230.091724
450.0449590.39450.347147
46-0.029722-0.26080.397467
470.0325930.2860.387823
48-0.002932-0.02570.489772
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260715244ip61q2nj61qwa5o/1uomm1260715201.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260715244ip61q2nj61qwa5o/1uomm1260715201.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/13/t1260715244ip61q2nj61qwa5o/2r12b1260715201.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/13/t1260715244ip61q2nj61qwa5o/2r12b1260715201.ps (open in new window)


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