Home » date » 2007 » Dec » 05 » attachments

Workshop 5 ACF PACF Belgische uitvoer

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 Dec 2007 11:03:45 -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/05/t1196877071kjq2amlwasicuoz.htm/, Retrieved Wed, 05 Dec 2007 18:51:13 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15761,3 16943,0 15070,3 13659,6 14768,9 14725,1 15998,1 15370,6 14956,9 15469,7 15101,8 11703,7 16283,6 16726,5 14968,9 14861,0 14583,3 15305,8 17903,9 16379,4 15420,3 17870,5 15912,8 13866,5 17823,2 17872,0 17420,4 16704,4 15991,2 16583,6 19123,5 17838,7 17209,4 18586,5 16258,1 15141,6 19202,1 17746,5 19090,1 18040,3 17515,5 17751,8 21072,4 17170,0 19439,5 19795,4 17574,9 16165,4 19464,6 19932,1 19961,2 17343,4 18924,2 18574,1 21350,6 18840,1 20304,8 21132,4 19753,9 18009,9 20390,4
 
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
0170
1-0.070736-0.49510.688646
20.0518010.36260.359228
30.3266972.28690.013281
4-0.015076-0.10550.541807
5-0.023598-0.16520.565262
60.0797470.55820.289614
7-0.278331-1.94830.971442
80.0160730.11250.455438
9-0.037029-0.25920.601719
10-0.159966-1.11980.865863
11-0.096602-0.67620.748958
12-0.184461-1.29120.898659
13-0.069075-0.48350.684562
140.0678230.47480.318534
15-0.097542-0.68280.751025
16-0.168631-1.18040.878233
170.1766171.23630.111117
180.0521230.36490.358394
19-0.054087-0.37860.646693
200.0286690.20070.420889
210.1225890.85810.197501
22-0.199351-1.39550.915415
230.1597181.1180.134503
24-0.085576-0.5990.724044
25-0.200949-1.40660.917077
260.0426790.29880.383196
27-0.041424-0.290.613468
28-0.107508-0.75260.772341
290.0488970.34230.366803
30-0.108177-0.75720.773734
310.1098060.76860.222896
320.0538040.37660.354039
33-0.115912-0.81140.789466
340.1545731.0820.142272
350.0901840.63130.265394
36-0.030907-0.21630.585192
370.139220.97450.167287
380.1063190.74420.230146
39-0.008558-0.05990.523764
400.0828410.57990.282324
410.0122180.08550.466094
42-0.062895-0.44030.66916
43-0.034577-0.2420.595121
44-0.038383-0.26870.605349
45-0.084289-0.590.721056
46-0.046944-0.32860.628075
47-0.005879-0.04110.516328


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.070736-0.49510.688646
10.0470330.32920.371691
20.3359372.35160.01138
30.036630.25640.399355
4-0.070417-0.49290.687864
5-0.045582-0.31910.624486
6-0.313202-2.19240.983435
7-0.015885-0.11120.544043
8-0.004172-0.02920.511591
90.0341080.23880.406145
10-0.091297-0.63910.737127
11-0.250396-1.75280.957052
12-0.060468-0.42330.663026
130.109770.76840.222972
140.1152060.80640.211943
15-0.196697-1.37690.912595
160.0180540.12640.449974
170.0628550.440.330941
18-0.030078-0.21050.582943
19-0.088723-0.62110.731281
200.0973080.68120.249489
21-0.271394-1.89980.968321
22-0.018769-0.13140.551993
23-0.091221-0.63850.736955
24-0.095255-0.66680.74598
25-0.032985-0.23090.590822
26-0.090371-0.63260.735031
270.0078250.05480.478271
28-0.007679-0.05380.521325
290.0028190.01970.492168
300.0388060.27160.393519
31-0.080626-0.56440.712466
32-0.093543-0.65480.742172
330.0042210.02950.488275
340.0503910.35270.3629
350.0005380.00380.498505
36-0.041426-0.290.613474
370.0154830.10840.457069
380.0641850.44930.327599
39-0.069789-0.48850.68632
40-0.04108-0.28760.612551
41-0.08824-0.61770.730177
420.0147980.10360.45896
43-0.109985-0.76990.777472
440.0018750.01310.49479
450.0199180.13940.444843
460.0539110.37740.353761
470.0448790.31420.37737
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196877071kjq2amlwasicuoz/1s7su1196877822.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196877071kjq2amlwasicuoz/1s7su1196877822.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196877071kjq2amlwasicuoz/2ju981196877822.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196877071kjq2amlwasicuoz/2ju981196877822.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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