Home » date » 2007 » Dec » 05 » attachments

Workshop 5 Q1

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 07:22:47 -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/t1196864010tlgfl6u2wswt7f4.htm/, Retrieved Wed, 05 Dec 2007 15:13:32 +0100
 
User-defined keywords:
Goetschalckx J, Vandewalle N, Van Hove N, Leroy Y, Jacobs J
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.409 -0.625 -0.211 -0.676 0.274 0.893 -0.544 -0.161 -0.296 0.742 0.495 -0.178 0.313 -0.66 -0.103 -0.463 -0.149 0.865 0.243 -1.022 -0.236 0.72 -0.171 0.576 0.019 0.005 -0.106 -0.667 0.102 0.702 0.066 -0.604 -0.123 0.552 0.083 0.254 0.307 -0.581 0.277 -0.7 0.089 0.245 -0.017 -0.329 -0.167 0.237 0.727 -0.167 0.282 -0.585 -0.057 -0.502 -0.01 0.633 -0.28 -0.311 0.13 1.168 0.09 0.55
 
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
016.92820
1-0.519363-3.59830.999622
20.1248360.86490.195701
30.1208720.83740.203251
4-0.143455-0.99390.837369
50.0736660.51040.306064
6-0.046771-0.3240.626341
7-0.022123-0.15330.560586
80.180031.24730.109172
9-0.218877-1.51640.932015
100.0416450.28850.387093
110.1355960.93940.176105
12-0.303472-2.10250.979611
130.2372821.64390.053362
14-0.084767-0.58730.720116
150.0551410.3820.352065
16-0.141903-0.98310.834765
170.0285410.19770.422041
180.0345440.23930.405936
19-0.067403-0.4670.678688
20-0.054678-0.37880.646754
210.1902571.31810.096857
22-0.182977-1.26770.894491
230.1510361.04640.150307
24-0.21258-1.47280.926333
250.1545161.07050.144869
260.0532310.36880.35695
27-0.231494-1.60380.942345
280.2589011.79370.039579
29-0.062889-0.43570.667498
30-0.055162-0.38220.647991
310.0765820.53060.299079
320.0160480.11120.455967
33-0.035879-0.24860.597626
340.1065970.73850.231895
35-0.119564-0.82840.794217
360.1019980.70670.241596
37-0.105963-0.73410.766781
38-0.057204-0.39630.653188
390.1676321.16140.125613
40-0.175682-1.21720.885253
410.0250620.17360.431442
420.0654450.45340.326146
43-0.049493-0.34290.633414
44-0.000835-0.00580.502295
45-0.001158-0.0080.503183
460.0050640.03510.486079
47-0.010831-0.0750.529753


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.519363-3.59830.999622
1-0.198425-1.37470.9122
20.136160.94330.175114
30.0194920.1350.446571
4-0.010139-0.07020.527855
5-0.062731-0.43460.667105
6-0.068775-0.47650.682055
70.1998111.38430.08633
8-0.020261-0.14040.555524
9-0.169106-1.17160.876429
100.0536390.37160.355905
11-0.180401-1.24990.891293
12-0.006372-0.04410.517514
130.0391740.27140.393621
140.1297520.89890.186584
15-0.226225-1.56730.938196
16-0.169571-1.17480.87707
17-0.01668-0.11560.545759
180.0026430.01830.492733
19-0.058114-0.40260.655494
200.0694790.48140.316223
21-0.107383-0.7440.769739
220.1124180.77890.219944
23-0.215654-1.49410.929152
24-0.008717-0.06040.523953
250.1644141.13910.130159
26-0.078655-0.54490.705839
27-0.100536-0.69650.755274
280.0652220.45190.326697
290.1131040.78360.21856
30-0.00315-0.02180.50866
310.0551930.38240.35193
320.0270280.18730.426124
330.020560.14240.443662
340.0657140.45530.325481
35-0.182772-1.26630.894238
36-0.032049-0.2220.587389
37-0.053811-0.37280.644536
380.0278910.19320.423796
39-0.133275-0.92340.819779
40-0.03922-0.27170.6065
410.0172840.11970.452592
42-0.006253-0.04330.517189
430.011760.08150.467701
440.0954240.66110.255849
45-0.027053-0.18740.573943
46-0.110891-0.76830.776957
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864010tlgfl6u2wswt7f4/16q1q1196864565.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864010tlgfl6u2wswt7f4/16q1q1196864565.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864010tlgfl6u2wswt7f4/2fp131196864565.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864010tlgfl6u2wswt7f4/2fp131196864565.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