Home » date » 2011 » May » 18 »

Autocorrelatie(aanpassing) Goudkoers Brussel

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 May 2011 17:09:15 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm.htm/, Retrieved Wed, 18 May 2011 19:05:47 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KEYWORD: KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
32819 32700 32242 32810 33865 32226 31077 31293 30236 30160 32436 30695 27525 26434 25739 25204 24977 24320 22680 22052 21467 21383 21777 21928 21814 22937 23595 20830 19650 19195 19644 18483 18079 19178 18391 18441 18584 20108 20148 19394 17745 17696 17032 16438 15683 15594 15713 15937 16171 15928 16348 15579 15305 15648 14954 15137 15839 16050 15168 17064 16005 14886 14931 14544 13812 13031 12574 11964 11451 11346 11353 10702 10646 10556 10463 10407 10625 10872 10805 10653 10574 10431 10383 10296 10872 10635 10297 10570 10662 10709 10413 10846 10371 9924 9828
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0897250.86990.193282
2-0.22529-2.18430.015715
30.0893310.86610.194321
40.0400090.38790.349482
5-0.153976-1.49280.069413
60.0921770.89370.186886
70.1172251.13650.12931
8-0.156932-1.52150.065744
9-0.023927-0.2320.408528
10-0.08953-0.8680.193795
110.0219750.21310.415873
120.0959330.93010.177349
130.0613980.59530.276545
14-0.077974-0.7560.225775
150.1068541.0360.151432
160.1073341.04060.150355
17-0.153332-1.48660.070233
18-0.105548-1.02330.154389
19-0.073476-0.71240.238997
200.0102490.09940.460531
21-0.031025-0.30080.382116
220.1721831.66940.049185
230.037590.36440.358172
24-0.09361-0.90760.183209
25-0.077288-0.74930.227763
260.0639750.62030.268295
270.0880650.85380.197687
28-0.022883-0.22190.412452
290.0228820.22180.412456
30-0.0647-0.62730.265994
310.0128650.12470.4505
32-0.047046-0.45610.324675
330.0694590.67340.251162
340.0922030.89390.186818
35-0.055667-0.53970.295337
36-0.045415-0.44030.330359
370.0325820.31590.37639
38-0.016055-0.15570.438318
39-0.018356-0.1780.429565
400.0279110.27060.393645
41-0.092209-0.8940.186803
42-0.048094-0.46630.321045
430.0323810.31390.37713
44-0.075074-0.72790.234252
45-0.062261-0.60360.273766
460.0848370.82250.206431
47-0.038994-0.37810.353117
48-0.058759-0.56970.285124


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0897250.86990.193282
2-0.235234-2.28070.012413
30.1445021.4010.082254
4-0.046319-0.44910.327204
5-0.107405-1.04130.150197
60.1287251.2480.107559
70.0231750.22470.411353
8-0.112299-1.08880.139518
90.0384360.37270.355124
10-0.213427-2.06930.020633
110.1422291.3790.08559
120.0252840.24510.403442
130.0413140.40060.344829
14-0.038691-0.37510.354208
150.1327581.28710.100603
160.0515730.50.309115
17-0.09466-0.91780.180546
18-0.128856-1.24930.107328
19-0.150744-1.46150.073604
200.0578910.56130.287972
21-0.022249-0.21570.414839
220.1907131.8490.033798
23-0.00165-0.0160.493636
24-0.019621-0.19020.424767
25-0.054728-0.53060.298471
260.0426250.41330.340177
27-0.006982-0.06770.473086
28-0.053053-0.51440.304101
29-0.012947-0.12550.450188
30-0.001739-0.01690.493293
310.0895850.86860.193651
32-0.012405-0.12030.452262
330.0926710.89850.185613
340.0643320.62370.267159
35-0.116878-1.13320.130013
360.0061840.060.476159
37-0.062452-0.60550.273155
38-0.109778-1.06430.144952
390.12221.18480.119548
40-0.037288-0.36150.359262
410.0297980.28890.386645
42-0.061214-0.59350.27714
430.0036510.03540.485918
44-0.130016-1.26060.105295
45-0.022484-0.2180.413954
460.0039710.03850.484686
47-0.05071-0.49170.312054
480.0403190.39090.348376
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/1kn4w1305738551.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/1kn4w1305738551.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/2cz151305738551.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/2cz151305738551.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/3ben91305738551.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t13057383434fo22egthd7jcgm/3ben91305738551.ps (open in new window)


 
Parameters (Session):
par1 = Goudkoers Brussel 2003-2011 ; par2 = http://www.nbb.be/belgostat/PresentationLinker?TableId=751000059&Lang=N ; par3 = Goudkoers Brussel (EUR/kg) ; par4 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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