Home » date » 2011 » Apr » 27 »

Autocorrelatiefunctie wisselkoers

*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, 27 Apr 2011 12:48:38 +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/Apr/27/t1303908415s762phv8xzzbmws.htm/, Retrieved Wed, 27 Apr 2011 14:47:07 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,2638 1,2640 1,2261 1,1989 1,2000 1,2146 1,2266 1,2191 1,2224 1,2507 1,2997 1,3406 1,3123 1,3013 1,3185 1,2943 1,2697 1,2155 1,2041 1,2295 1,2234 1,2022 1,1789 1,1861 1,2126 1,1940 1,2028 1,2273 1,2767 1,2661 1,2681 1,2810 1,2722 1,2617 1,2888 1,3205 1,2993 1,3080 1,3246 1,3513 1,3518 1,3421 1,3726 1,3626 1,3910 1,4233 1,4683 1,4559 1,4728 1,4759 1,5520 1,5754 1,5554 1,5562 1,5759 1,4955 1,4342 1,3266 1,2744 1,3511 1,3244 1,2797 1,3050 1,3199 1,3646 1,4014 1,4092 1,4266 1,4575 1,4821 1,4908 1,4579 1,4266 1,3680 1,3570 1,3417 1,2563 1,2223 1,2811 1,2903 1,3103 1,3901 1,3654 1,3221
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9384188.60070
20.8424377.72110
30.7483356.85860
40.6370895.8390
50.519644.76264e-06
60.4059443.72050.000179
70.3060522.8050.003125
80.2461832.25630.013324
90.2130621.95270.02709
100.1939691.77780.039532
110.1919111.75890.041119
120.2082251.90840.029877
130.2399822.19950.015296
140.2763892.53320.006581
150.3047632.79320.003231
160.3112132.85230.002731
170.2929432.68490.00437
180.2655932.43420.008522
190.2266922.07770.020397
200.1640761.50380.068194
210.0902050.82670.205363
220.0176080.16140.436092
23-0.057079-0.52310.301127
24-0.110449-1.01230.157154
25-0.153486-1.40670.081599
26-0.19381-1.77630.039653
27-0.22061-2.02190.023183
28-0.240107-2.20060.015254
29-0.254084-2.32870.011138
30-0.253454-2.32290.0113
31-0.250192-2.2930.012172
32-0.249881-2.29020.012258
33-0.243354-2.23040.014194
34-0.226768-2.07840.020364
35-0.205916-1.88730.03129
36-0.197179-1.80720.037157
37-0.201882-1.85030.033895
38-0.200854-1.84090.034587
39-0.192324-1.76270.040796
40-0.194372-1.78140.039227
41-0.222254-2.0370.0224
42-0.258696-2.3710.010015
43-0.286408-2.6250.005147
44-0.315043-2.88740.002469
45-0.340911-3.12450.001222
46-0.358551-3.28620.000742
47-0.361125-3.30980.000689
48-0.34407-3.15340.001119


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9384188.60070
2-0.319933-2.93220.002168
30.0474230.43460.332471
4-0.249578-2.28740.012343
5-0.019556-0.17920.429093
6-0.072031-0.66020.255474
70.0662170.60690.27278
80.247862.27170.012831
90.0266990.24470.403644
100.0498860.45720.324348
11-0.007279-0.06670.473485
120.0602780.55250.29105
130.0694250.63630.263159
140.0206760.18950.425081
150.0058380.05350.478729
16-0.153691-1.40860.081322
17-0.127415-1.16780.1231
180.0236770.2170.414365
19-0.023634-0.21660.414518
20-0.076283-0.69910.243195
21-0.024645-0.22590.410923
22-0.030315-0.27780.390908
23-0.124738-1.14320.128093
240.1352881.23990.109226
25-0.093359-0.85560.197314
26-0.01683-0.15430.43889
27-0.098993-0.90730.183424
28-0.129833-1.18990.118711
29-0.023533-0.21570.41488
300.0280240.25680.398965
310.0374880.34360.366008
32-0.031732-0.29080.385948
330.0195310.1790.429183
340.0632310.57950.281894
350.0502470.46050.323165
36-0.06655-0.60990.271774
37-0.061093-0.55990.288509
380.0837290.76740.222502
390.0220680.20230.420102
40-0.098558-0.90330.184475
41-0.19174-1.75730.041253
420.0003520.00320.498718
430.006590.06040.475989
44-0.056339-0.51640.303481
450.1216721.11510.133986
46-0.028986-0.26570.395574
470.1356881.24360.108553
48-0.040241-0.36880.356598
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/19j5y1303908516.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/19j5y1303908516.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/29efk1303908516.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/29efk1303908516.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/3gpto1303908516.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303908415s762phv8xzzbmws/3gpto1303908516.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; 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