Home » date » 2009 » May » 14 »

Autocorrelation2 6b bis - Kelly Michielsen - MAR 201b

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 14 May 2009 05:49:35 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/14/t1242301822fsrmf0r8y5ztgll.htm/, Retrieved Thu, 14 May 2009 13:50:24 +0200
 
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/May/14/t1242301822fsrmf0r8y5ztgll.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 «
104.9 110.9 104.8 94.1 95.8 99.3 101.1 104.0 99.0 105.4 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145.0 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 174.8 180.5 196.8 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 198.8 207.5 190.7 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 265.7 287.6 283.3 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 321.9 239.4 191.0 159.7 166.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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5893525.00082e-06
20.3879373.29180.000772
30.0904410.76740.22267
4-0.027388-0.23240.408445
5-0.220667-1.87240.032605
6-0.210607-1.78710.039068
7-0.114978-0.97560.166259
8-0.095486-0.81020.210239
9-0.154613-1.31190.096855
10-0.045357-0.38490.350736
11-0.042151-0.35770.360821
12-0.077544-0.6580.256323
13-0.137663-1.16810.123308
14-0.032014-0.27160.393336
150.0093180.07910.468599
16-0.084878-0.72020.236862
17-0.100792-0.85520.197625
18-0.088566-0.75150.227398
19-0.062449-0.52990.298905
20-0.072322-0.61370.270683
210.0254950.21630.414671
220.0549710.46640.321152
230.0871120.73920.231104
240.0699460.59350.277349
250.1587711.34720.091068
260.1136150.96410.169123
270.0183280.15550.438423
28-0.045209-0.38360.351198
29-0.055637-0.47210.319143
30-0.051849-0.440.330646
31-0.076838-0.6520.258242
32-0.039384-0.33420.369605
33-0.015224-0.12920.448789
34-0.003801-0.03230.487179
350.0517210.43890.331035
360.0372840.31640.37632
370.0277190.23520.407359
38-0.024697-0.20960.417301
39-0.02772-0.23520.407357
40-0.022451-0.19050.424724
41-0.015541-0.13190.447727
42-0.011005-0.09340.462929
43-0.064177-0.54460.29387
44-0.026245-0.22270.412203
45-0.003065-0.0260.489662
460.0250850.21290.416021
470.0300370.25490.399775
48-0.005525-0.04690.48137


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5893525.00082e-06
20.0622080.52790.299612
3-0.24707-2.09650.019778
4-0.016806-0.14260.443499
5-0.199011-1.68870.047806
60.0263550.22360.411839
70.1565241.32820.094161
8-0.141109-1.19740.117548
9-0.197932-1.67950.048694
100.18321.55450.062225
11-0.070703-0.59990.275215
12-0.146133-1.240.109504
13-0.031409-0.26650.395301
140.0809640.6870.247143
150.0373730.31710.376035
16-0.223264-1.89450.031091
17-0.091269-0.77440.220602
180.0123020.10440.458576
190.0813980.69070.245992
20-0.025211-0.21390.415605
21-0.029638-0.25150.401078
22-0.098606-0.83670.202765
230.1475021.25160.107384
240.0452470.38390.351078
25-0.011976-0.10160.45967
26-0.06015-0.51040.305669
27-0.098074-0.83220.204028
280.0588650.49950.309478
29-0.025488-0.21630.414692
300.0038660.03280.48696
31-0.052257-0.44340.329397
320.0116150.09860.460882
33-0.004141-0.03510.486034
340.0355640.30180.381849
350.0569490.48320.315201
36-0.128874-1.09350.138902
370.0104630.08880.46475
380.0379910.32240.374054
390.0017550.01490.494081
40-0.06557-0.55640.28984
410.0369130.31320.37751
420.0083880.07120.471727
43-0.102224-0.86740.194303
440.0786850.66770.253242
450.0048040.04080.483797
46-0.039624-0.33620.368841
470.0324320.27520.391978
48-0.081435-0.6910.245893
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301822fsrmf0r8y5ztgll/19g9v1242301773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301822fsrmf0r8y5ztgll/19g9v1242301773.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301822fsrmf0r8y5ztgll/2d4gv1242301773.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/14/t1242301822fsrmf0r8y5ztgll/2d4gv1242301773.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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