Home » date » 2007 » Dec » 06 » attachments

Workshop 5 Q1 wisselkoers

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 06 Dec 2007 06:12:11 -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/06/t11969461795ftgf2bz8zx86x2.htm/, Retrieved Thu, 06 Dec 2007 14:03:02 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.0003 0.0203 0.0169 0.0439 0.0151 0.0034 0.0041 0.0734 0.0081 -0.0291 -0.0233 0.0083 0.047 0.001 0.0584 0.0327 0.0033 -0.0384 -0.0277 0.0022 0.0131 0.0128 -0.009 0.0042 0.0272 0.0501 0.0417 -0.0289 -0.0105 0.0187 -0.0263 -0.0244 -0.0529 -0.0128 0.0255 -0.0036 -0.0241 -0.0229 0.007 0.0247 -0.0165 0.0082 0.0251 0.0499 -0.012 0.0034 0.0127 -0.0084 -0.0116 0.027 0.0332 -0.0214 0.0075 0.0168 0.0274 -0.0005 -0.0092 0.0297 -0.0094 0.0274
 
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
017.68110
1-0.237156-1.82160.963209
2-0.288173-2.21350.984629
3-0.143389-1.10140.8624
40.220731.69550.04763
50.1530591.17570.122226
6-0.319923-2.45740.991523
70.0724160.55620.290076
80.0042140.03240.487144
90.0787970.60520.273667
10-0.043073-0.33080.629034
110.0301810.23180.408738
12-0.047242-0.36290.641001
13-0.022284-0.17120.567659
140.176481.35560.090202
15-0.078553-0.60340.725716
16-0.141668-1.08820.859528
170.006090.04680.481425
180.0851730.65420.257753
190.079240.60870.272545
20-0.091911-0.7060.758511
21-0.01867-0.14340.556771
220.0356370.27370.392624
230.0478480.36750.35727
240.0329530.25310.400529
25-0.139733-1.07330.856249
26-0.02352-0.18070.571375
270.0909760.69880.243712
280.0683090.52470.300883
29-0.064358-0.49430.688551
30-0.123989-0.95240.827604
310.1993521.53130.065526
32-0.043961-0.33770.631596
33-0.146981-1.1290.868262
340.0305010.23430.407788
350.0665730.51140.305504
360.0835210.64150.26183
37-0.194783-1.49620.930029
380.1409331.08250.141711
39-0.003716-0.02850.511339
40-0.005829-0.04480.517779
41-0.083206-0.63910.737391
420.0951280.73070.233929
430.0740480.56880.285834
44-0.214464-1.64730.947597
450.0818130.62840.266078
460.0011740.0090.496418
470.0747440.57410.284035


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.237156-1.82160.963209
1-0.364941-2.80320.996581
2-0.395102-3.03480.998212
3-0.1189-0.91330.817597
40.0434150.33350.369977
5-0.299171-2.2980.987437
6-0.028004-0.21510.584786
7-0.17558-1.34870.908699
8-0.162247-1.24620.8912
9-0.093496-0.71820.762252
100.0158520.12180.45175
11-0.164545-1.26390.894381
12-0.072697-0.55840.710656
130.1367221.05020.148958
14-0.003632-0.02790.51108
15-0.118032-0.90660.815853
160.0163490.12560.450245
17-0.14287-1.09740.861539
18-0.047465-0.36460.641637
190.0601380.46190.322916
20-0.016064-0.12340.548891
21-0.03873-0.29750.61643
220.0934790.7180.237787
230.1061130.81510.209155
24-0.077823-0.59780.72386
25-0.017539-0.13470.553355
260.0652830.50140.308962
27-0.030165-0.23170.591216
280.0603680.46370.322287
290.0235460.18090.428548
300.1544271.18620.120154
31-0.008897-0.06830.527128
32-0.160513-1.23290.888752
33-0.038623-0.29670.616118
34-0.118073-0.90690.815934
35-0.056892-0.4370.668146
36-0.125037-0.96040.829619
370.0391460.30070.382355
38-0.066258-0.50890.693653
39-0.001033-0.00790.503151
40-0.126396-0.97090.832211
41-0.013309-0.10220.540539
420.0300720.2310.409061
43-0.08378-0.64350.738812
44-0.033253-0.25540.600357
45-0.017392-0.13360.552908
46-0.003677-0.02820.511217
470.0191710.14730.441716
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969461795ftgf2bz8zx86x2/1uw0z1196946729.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969461795ftgf2bz8zx86x2/1uw0z1196946729.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969461795ftgf2bz8zx86x2/26ite1196946729.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969461795ftgf2bz8zx86x2/26ite1196946729.ps (open in new window)


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