Home » date » 2007 » Nov » 29 » attachments

Autocorrelation Function (industriële productie cokes, geraff. aardolie...)

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 04:11:40 -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/Nov/29/t1196334094zuyuyk2lhzzn6rr.htm/, Retrieved Thu, 29 Nov 2007 12:01:37 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,9 104,5 106,3 108,6 110,0 110,4 109,8 108,8 108,9 109,7 110,4 111,5 112,7 113,8 113,9 113,4 113,8 114,1 113,5 113,9 116,1 118,4 120,5 122,0 121,4 120,5 120,8 110,4 109,3 108,9 110,0 112,3 114,5 114,8 113,3 112,2 112,8 113,8 114,2 114,7 115,2 115,0 114,9 114,4 113,8 114,5 116,0 116,7 116,4 116,0 115,9 115,4 115,2 115,8
 
Text written by user:
Inducing Stationary in Time Series vraag 2
 
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
017.28010
10.2627831.91310.030573
20.0960990.69960.243614
3-0.102981-0.74970.771629
4-0.319563-2.32650.988075
5-0.319684-2.32730.9881
6-0.161082-1.17270.876919
7-0.005578-0.04060.516119
80.1273840.92740.178969
90.1566631.14050.129598
100.0868410.63220.264982
110.0202380.14730.441714
12-0.030643-0.22310.587837
13-0.080926-0.58910.720868
14-0.068135-0.4960.689038
15-0.053014-0.38590.64946
160.0092610.06740.473249
170.0671080.48860.313587
18-0.005639-0.04110.516296
19-0.004467-0.03250.512912
200.0885790.64490.260899
210.069860.50860.306574
22-0.009269-0.06750.526773
23-0.07067-0.51450.695475
24-0.09639-0.70170.75704
25-0.089132-0.64890.740394
26-0.041886-0.30490.619194
270.0345010.25120.401328
280.0393380.28640.38785
290.0219470.15980.436831
30-0.016533-0.12040.547675
31-0.052833-0.38460.648974
32-0.042698-0.31080.621431
330.0024190.01760.493009
340.0261730.19050.424807
350.021490.15650.438135
360.0201060.14640.442092
370.0126140.09180.463588
38-0.015451-0.11250.544569
39-0.036886-0.26850.605334
40-0.034361-0.25020.598281
41-0.013729-0.09990.539618
420.0118960.08660.465655
430.0265860.19360.423634
440.0227470.16560.43455
450.0024520.01790.492912
46-0.014975-0.1090.543202
47-0.017997-0.1310.551871


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2627831.91310.030573
10.029050.21150.416658
2-0.145281-1.05770.852497
3-0.28668-2.08710.979146
4-0.190496-1.38680.914351
5-0.022451-0.16340.564606
60.0273480.19910.421474
70.0280810.20440.419401
8-0.022184-0.16150.563843
9-0.064593-0.47020.679945
10-0.024648-0.17940.570863
110.019150.13940.444825
12-0.007516-0.05470.521714
13-0.015946-0.11610.545991
14-0.043651-0.31780.624052
150.0076220.05550.47798
160.0468460.3410.367208
17-0.071775-0.52250.69826
18-0.041768-0.30410.61887
190.1157160.84240.201668
200.0892810.650.259257
21-0.049038-0.3570.638747
22-0.115936-0.8440.798776
23-0.05205-0.37890.646872
240.0183680.13370.447064
250.031010.22580.411129
260.0182810.13310.447314
27-0.077399-0.56350.712256
28-0.096494-0.70250.757274
29-0.051963-0.37830.646638
30-0.012257-0.08920.535385
310.0054290.03950.484311
320.0058240.04240.48317
33-0.015328-0.11160.544216
34-0.033579-0.24450.59609
35-0.033875-0.24660.59692
36-0.023015-0.16760.566214
37-0.001673-0.01220.504837
380.0108790.07920.468585
39-0.011653-0.08480.533643
40-0.041501-0.30210.618133
41-0.028629-0.20840.582152
420.0042590.0310.487692
430.0159780.11630.453918
440.0048790.03550.4859
45-0.016579-0.12070.547805
46-0.029689-0.21610.585144
47-0.025355-0.18460.572872
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196334094zuyuyk2lhzzn6rr/1isv81196334698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196334094zuyuyk2lhzzn6rr/1isv81196334698.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196334094zuyuyk2lhzzn6rr/2cbvw1196334698.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196334094zuyuyk2lhzzn6rr/2cbvw1196334698.ps (open in new window)


 
Parameters:
par1 = 1 ;
 
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