Home » date » 2008 » Dec » 16 »

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: Tue, 16 Dec 2008 14:14: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/2008/Dec/16/t1229462099ok20g63mtj5af8w.htm/, Retrieved Tue, 16 Dec 2008 22:15:00 +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/2008/Dec/16/t1229462099ok20g63mtj5af8w.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
91.2 99.2 108.2 101.5 106.9 104.4 77.9 60 99.5 95 105.6 102.5 93.3 97.3 127 111.7 96.4 133 72.2 95.8 124.1 127.6 110.7 104.6 112.7 115.3 139.4 119 97.4 154 81.5 88.8 127.7 105.1 114.9 106.4 104.5 121.6 141.4 99 126.7 134.1 81.3 88.6 132.7 132.9 134.4 103.7 119.7 115 132.9 108.5 113.9 142 97.7 92.2 128.8 134.9 128.2 114.8
 
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.1025130.79410.215145
2-0.102028-0.79030.21623
30.2285191.77010.040896
40.0533310.41310.340503
50.1271850.98520.164249
60.2278231.76470.041351
70.0703320.54480.29396
80.0542660.42030.337868
90.1655451.28230.102334
10-0.186272-1.44290.077131
110.0310980.24090.405234
120.5654094.37962.4e-05
13-0.037461-0.29020.386342
14-0.244997-1.89770.031272
150.0673040.52130.302026
16-0.054954-0.42570.335934
17-0.023036-0.17840.429491
180.0597740.4630.322516
19-0.006792-0.05260.479109
20-0.060872-0.47150.319493
210.0818970.63440.264126
22-0.234008-1.81260.037447
23-0.012885-0.09980.460416
240.3467042.68560.004675
25-0.065447-0.50690.307025
26-0.153126-1.18610.120128
270.02850.22080.413015
28-0.082317-0.63760.263072
29-0.02281-0.17670.430175
300.0450770.34920.364095
31-0.020385-0.15790.437533
32-0.032621-0.25270.400688
33-0.018916-0.14650.442
34-0.149348-1.15680.12596
35-0.035136-0.27220.393214
360.1608481.24590.108818


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1025130.79410.215145
2-0.113732-0.8810.190926
30.2578361.99720.025173
4-0.022483-0.17420.431165
50.1992931.54370.063958
60.1448541.1220.133158
70.0717750.5560.290151
80.0304270.23570.40724
90.1000050.77460.220799
10-0.301666-2.33670.011406
110.0750770.58150.281526
120.462993.58630.000337
13-0.148268-1.14850.127664
14-0.263868-2.04390.02268
15-0.078017-0.60430.273955
16-0.033322-0.25810.398602
17-0.084127-0.65160.25856
18-0.089296-0.69170.245902
190.1361991.0550.14783
20-0.080838-0.62620.266789
210.0886080.68640.247567
22-0.044604-0.34550.365464
230.119950.92910.178273
24-0.054022-0.41850.338555
250.0841060.65150.258612
260.1086480.84160.201682
27-0.034851-0.270.39406
28-0.154185-1.19430.118528
290.0490020.37960.352803
30-0.037404-0.28970.386512
31-0.051833-0.40150.34474
32-0.063993-0.49570.310963
33-0.069864-0.54120.295198
340.0575020.44540.328814
35-0.067322-0.52150.301977
36-0.079579-0.61640.269977
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229462099ok20g63mtj5af8w/12hbt1229462041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229462099ok20g63mtj5af8w/12hbt1229462041.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229462099ok20g63mtj5af8w/2py5h1229462041.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/16/t1229462099ok20g63mtj5af8w/2py5h1229462041.ps (open in new window)


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