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:37:56 -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/t1196864894lgr7207krrxsp40.htm/, Retrieved Wed, 05 Dec 2007 15:28:17 +0100
 
User-defined keywords:
Leroy Y, Van Hove N, Goetschalckx J, Jacobs J, Vandewalle N
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-3.5 -15.7 25.8 -6.3 -8.4 33.5 -5.7 -17.2 -3.8 3 10.5 2.5 -3.9 -12.9 5.4 1.3 -8 26.9 0.5 -24.1 -6.9 11.2 5.9 4.5 -3.5 -6.7 3.7 0.4 -6.3 20.5 10.2 -30.1 -2.1 8.8 -5.4 13.6 -4.8 -22.9 9.9 8.3 -20.2 28.7 -1.9 -21.4 0.2 9 -4.6 12 -4.3 -15.9 11.1 6.8 -30.4 46.4 -5.9 -27 11.7 -9.2 1.2 3.6
 
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
016.92820
1-0.547706-3.79460.999793
20.0284820.19730.422203
30.2537371.75790.042566
4-0.278842-1.93190.970355
50.2154321.49260.071048
6-0.026367-0.18270.57209
7-0.098897-0.68520.751736
80.0345550.23940.405907
9-0.019471-0.13490.553373
100.0132310.09170.463671
11-0.066948-0.46380.677568
120.0158030.10950.456638
13-0.100863-0.69880.755975
14-0.007227-0.05010.519864
150.2513561.74140.044006
16-0.416507-2.88560.997082
170.2226271.54240.064772
180.064240.44510.329135
19-0.209329-1.45030.923257
200.2222521.53980.065087
21-0.034155-0.23660.593026
22-0.181229-1.25560.892329
230.3398582.35460.01134
24-0.149153-1.03340.846694
25-0.055387-0.38370.648563
260.19561.35520.090856
27-0.246337-1.70670.952827
280.2447691.69580.0482
29-0.130911-0.9070.815525
300.0108460.07510.470206
31-0.015555-0.10780.542686
320.0044940.03110.487645
330.0307090.21280.416209
34-0.100904-0.69910.756062
350.0868370.60160.275127
36-0.115881-0.80280.78699
370.0023040.0160.493665
380.1528251.05880.147495
39-0.206755-1.43240.920751
400.0962160.66660.254109
410.0263060.18230.428075
42-0.112107-0.77670.779427
430.1402430.97160.168052
44-0.079915-0.55370.708813
450.0563010.39010.349108
46-0.008184-0.05670.52249
47-0.000391-0.00270.501074


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.547706-3.79460.999793
1-0.387847-2.68710.995063
20.1058670.73350.233421
3-0.050418-0.34930.635808
40.1171930.81190.210418
50.1206440.83580.203692
60.0391790.27140.393608
7-0.148002-1.02540.844839
8-0.144257-0.99940.838704
9-0.06505-0.45070.672875
10-0.122299-0.84730.799486
11-0.105004-0.72750.764769
12-0.225866-1.56480.937905
13-0.270508-1.87410.966497
140.2141571.48370.07221
15-0.149654-1.03680.847496
16-0.148093-1.0260.844986
170.0025170.01740.49308
180.0152150.10540.458243
19-0.086428-0.59880.723936
200.0975940.67610.251096
21-0.144489-1.0010.839088
220.1506331.04360.150946
230.1311490.90860.184043
24-0.05844-0.40490.656319
250.0250150.17330.431568
26-0.13742-0.95210.827086
270.0992970.68790.247398
28-0.151365-1.04870.850213
29-0.040942-0.28370.611054
300.0296080.20510.419168
310.0084960.05890.476653
320.0019540.01350.494627
330.032970.22840.410143
340.0266630.18470.427112
35-0.060315-0.41790.661048
36-0.017965-0.12450.549266
37-0.109708-0.76010.774538
380.0637260.44150.330415
390.048970.33930.367941
40-0.090612-0.62780.733437
41-0.011919-0.08260.532733
42-0.150689-1.0440.849144
430.0132260.09160.463687
440.0548910.38030.352702
45-0.029362-0.20340.580169
46-0.05949-0.41220.658971
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864894lgr7207krrxsp40/1izmi1196865473.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/05/t1196864894lgr7207krrxsp40/1izmi1196865473.ps (open in new window)


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