Home » date » 2007 » Nov » 27 » attachments

Workshop 3, Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 27 Nov 2007 03:37:09 -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/27/t1196159305ir2sqz42gwb88ih.htm/, Retrieved Tue, 27 Nov 2007 11:28:27 +0100
 
User-defined keywords:
Q2,reeks 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101.5 99.2 107.8 92.3 99.2 101.6 87.0 71.4 104.7 115.1 102.5 75.3 96.7 94.6 98.6 99.5 92.0 93.6 89.3 66.9 108.8 113.2 105.5 77.8 102.1 97.0 95.5 99.3 86.4 92.4 85.7 61.9 104.9 107.9 95.6 79.8 94.8 93.7 108.1 96.9 88.8 106.7 86.8 69.8 110.9 105.4 99.2 84.4 87.2 91.9 97.9 94.5 85.0 100.3 78.7 65.8 104.8 96.0 103.3 82.9 91.4 94.5 109.3 92.1 99.3 109.6 87.5 73.1 110.7 111.6 110.7 84.0 101.6 102.1 113.9 99.0 100.4 109.5 93.0 76.8 105.3
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.24620
1-0.581159-4.79240.999995
20.0119660.09870.460843
30.2985012.46150.008189
4-0.226911-1.87120.967187
50.0456150.37620.353987
60.1644871.35640.089731
7-0.210023-1.73190.956087
80.0173550.14310.443311
90.1634651.3480.091071
10-0.255585-2.10760.980623
110.1917171.58090.059266
12-0.121705-1.00360.840436
13-0.074663-0.61570.729921
140.126221.04080.150819
150.003480.02870.488595
16-0.20949-1.72750.955691
170.1855081.52970.065361
180.0399650.32960.371372
19-0.231288-1.90730.969643
200.2443452.01490.023934
21-0.054051-0.44570.671391
22-0.185727-1.53150.934863
230.3156612.6030.005668
24-0.140681-1.16010.874965
25-0.125534-1.03520.847873
260.2206551.81960.036614
27-0.116346-0.95940.829625
28-0.026798-0.2210.587114
290.1983131.63530.053301
30-0.320778-2.64520.994934
310.2128971.75560.041831
320.0378650.31220.377906
33-0.181006-1.49260.929918
340.1292561.06590.145125
35-0.019373-0.15980.563226
36-0.079629-0.65660.743186
370.0890410.73430.232659
380.0337910.27860.390682
39-0.178659-1.47330.927353
400.1877511.54820.063104
41-0.07603-0.6270.733606
42-0.021635-0.17840.570533
430.01670.13770.445439
440.0240080.1980.421827
45-0.041317-0.34070.632813
460.0157580.12990.448496
470.070080.57790.282623


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.581159-4.79240.999995
1-0.491926-4.05650.999935
20.0457960.37760.353437
30.1141950.94170.174846
40.0749070.61770.269418
50.2040451.68260.04852
60.0480690.39640.346531
7-0.20515-1.69170.95236
8-0.103218-0.85120.801165
9-0.217558-1.7940.961373
10-0.003248-0.02680.510644
11-0.118424-0.97650.833872
12-0.187575-1.54680.936722
13-0.154737-1.2760.896851
140.1274581.0510.148479
15-0.047047-0.3880.650371
16-0.097836-0.80680.788696
170.1435761.1840.120275
180.0016750.01380.494511
19-0.071392-0.58870.720997
200.0409490.33770.368324
21-0.167718-1.3830.914411
220.0169130.13950.444747
230.0677330.55850.289156
24-0.057747-0.47620.682267
25-0.133798-1.10330.863113
26-0.033079-0.27280.607075
27-0.019473-0.16060.563548
280.1565131.29060.100599
29-0.094454-0.77890.780626
30-0.022088-0.18210.571992
31-0.033436-0.27570.6082
320.0514940.42460.336224
33-0.014014-0.11560.54583
34-0.046712-0.38520.649355
350.0222250.18330.427565
36-0.015966-0.13170.552179
37-0.034494-0.28440.611534
38-0.006616-0.05460.521674
390.0541990.44690.328171
40-0.023025-0.18990.575012
41-0.022897-0.18880.574599
42-0.118379-0.97620.833782
43-0.068354-0.56370.712581
440.104230.85950.196541
45-0.074235-0.61220.728762
460.0627850.51770.30316
470.092180.76010.2249
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159305ir2sqz42gwb88ih/1p5el1196159827.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159305ir2sqz42gwb88ih/1p5el1196159827.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159305ir2sqz42gwb88ih/2dxin1196159827.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159305ir2sqz42gwb88ih/2dxin1196159827.ps (open in new window)


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