Home » date » 2007 » Dec » 16 » attachments

Autocorrelation Function

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Dec 2007 08:38:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/16/t1197818597qapurbvzn3ngusw.htm/, Retrieved Sun, 16 Dec 2007 16:23:19 +0100
 
User-defined keywords:
d=2 D=0 industriele productie
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97,5 97,1 97,5 98,5 100,5 102,8 105,2 107,4 108,0 107,6 107,0 105,8 104,3 103,8 104,4 106,2 108,5 109,8 110,3 109,7 108,7 108,9 109,7 110,4 111,4 112,6 113,6 113,8 113,2 113,6 113,9 113,4 113,8 116,0 118,3 120,5 121,9 121,2 120,2 120,6 110,2 109,2 108,7 109,9 112,2 114,5 114,7 113,2 112,1 112,6 113,6 114,0 114,5 115,0 114,9 114,8 114,3 113,7 114,5 116,0 116,6 116,2 115,7 115,6 115,2 115,0 115,7 115,9 115,6 115,9 117,0 117,9 118,8 119,9
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.48530
1-0.36198-3.07150.998498
20.0469620.39850.345727
3-0.011467-0.09730.53862
4-0.136506-1.15830.874714
5-0.145063-1.23090.888817
6-0.003939-0.03340.513287
7-0.003878-0.03290.513079
80.0753350.63920.262348
90.073580.62430.267187
100.0082720.07020.472119
110.0113960.09670.461618
120.0195340.16570.43441
13-0.07223-0.61290.729061
14-0.007286-0.06180.524564
15-0.03969-0.33680.63137
160.0018420.01560.493787
170.0795090.67470.251028
18-0.043755-0.37130.644236
19-0.046867-0.39770.653979
200.0979470.83110.20433
210.043750.37120.355777
22-0.025888-0.21970.586623
23-0.032032-0.27180.606723
24-0.063931-0.54250.705415
25-0.023915-0.20290.580118
26-0.047486-0.40290.655905
270.0261540.22190.412501
280.1241851.05370.147761
290.0586310.49750.310177
30-0.037403-0.31740.624063
310.0184920.15690.437879
32-0.007666-0.0650.525842
33-0.081716-0.69340.754849
34-0.014096-0.11960.547436
35-0.01892-0.16050.563547
36-0.01974-0.16750.566276
370.0461930.3920.348123
380.0002180.00190.499264
390.0256350.21750.414208
40-0.005549-0.04710.518713
41-0.008521-0.07230.528718
42-0.00648-0.0550.521847
430.0016870.01430.494308
440.0079510.06750.473197
450.012030.10210.459489
46-0.003762-0.03190.512688
47-0.009953-0.08450.533535


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.36198-3.07150.998498
1-0.096744-0.82090.792794
2-0.032343-0.27440.607735
3-0.171705-1.4570.925264
4-0.31072-2.63660.994874
5-0.255236-2.16570.983178
6-0.199369-1.69170.952487
7-0.111226-0.94380.825781
8-0.065993-0.560.711382
9-0.112102-0.95120.827662
10-0.122417-1.03870.848799
11-0.049561-0.42050.662328
12-0.068369-0.58010.71818
13-0.052584-0.44620.671602
14-0.091704-0.77810.78048
15-0.089424-0.75880.774773
160.0271030.230.40938
17-0.033426-0.28360.611246
18-0.165725-1.40620.91802
19-0.063523-0.5390.70423
200.0986160.83680.20274
210.1159720.98410.164192
220.0074790.06350.474786
23-0.113363-0.96190.830345
24-0.088799-0.75350.773192
25-0.087363-0.74130.769537
26-0.070213-0.59580.723404
270.0325070.27580.391734
280.0658460.55870.289043
29-0.027142-0.23030.590747
30-0.019948-0.16930.566969
310.0775460.6580.25632
320.0830530.70470.241627
330.0860860.73050.233738
340.0874020.74160.230362
350.0465890.39530.346887
360.0145180.12320.451151
37-0.034434-0.29220.614505
380.0065350.05550.477965
39-0.000349-0.0030.501177
40-0.051268-0.4350.667578
41-0.095913-0.81380.790792
42-0.097145-0.82430.793754
43-0.06767-0.57420.716189
44-0.052334-0.44410.670837
45-0.029653-0.25160.598972
46-0.004425-0.03750.514924
47-0.047058-0.39930.654574
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197818597qapurbvzn3ngusw/1hxeh1197819537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197818597qapurbvzn3ngusw/1hxeh1197819537.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197818597qapurbvzn3ngusw/29b5t1197819537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/16/t1197818597qapurbvzn3ngusw/29b5t1197819537.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 2 ; 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 1:par1) {
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(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-1,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(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:

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