Home » date » 2010 » Dec » 21 »

Voorspelling Dollar 3 mei

*The author of this computation has been verified*
R Software Module: /rwasp_arimaforecasting.wasp (opens new window with default values)
Title produced by software: ARIMA Forecasting
Date of computation: Mon, 20 Dec 2010 23:17:44 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys.htm/, Retrieved Tue, 21 Dec 2010 00:15:37 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.3866 1.3582 1.3332 1.3595 1.3617 1.3684 1.3394 1.3262 1.3173 1.3085 1.327 1.3182 1.293 1.291 1.2984 1.2795 1.299 1.3174 1.326 1.3111 1.2816 1.276 1.2849 1.2818 1.2829 1.2796 1.3008 1.2967 1.2938 1.2833 1.2823 1.2765 1.2634 1.2596 1.2705 1.2591 1.2798 1.2763 1.2795 1.2782 1.2644 1.2596 1.2615 1.2555 1.2555 1.2658 1.2565 1.2783 1.2786 1.2782 1.2905 1.3042 1.2942 1.313 1.3671 1.3549 1.3558 1.3507 1.3494 1.3607 1.3295 1.3193 1.3308 1.3246 1.3392 1.3425 1.3496 1.3255 1.3231 1.3273 1.3276 1.3173 1.3196 1.3058 1.2966 1.2932 1.2947 1.305 1.3232 1.3125 1.2992 1.3266 1.3275 1.3223 1.3403 1.3322 1.3363 1.3425 1.3574 1.3683 1.3623 1.3563 1.3518 1.3494 1.3612 1.369 1.3771 1.3972 1.401 1.3908 1.3901 1.3856 1.4098 1.422 1.4238 1.4207 1.4095 1.4177 1.3866 1.3959 1.4102 1.3969 1.4004 1.385 1.389 1.384 1.392 1.3932 1.3858 1.3978 1.4029 1.394 1.4096 1.4058 1.4134 1.4096 1.4049 1.4009 1.3897 1.4019 etc...
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Univariate ARIMA Extrapolation Forecast
timeY[t]F[t]95% LB95% UBp-value
(H0: Y[t] = F[t])
P(F[t]>Y[t-1])P(F[t]>Y[t-s])P(F[t]>Y[336])
3311.3486-------
3321.3373-------
3331.3339-------
3341.3311-------
3351.3321-------
3361.329-------
3371.32451.32811.3071.34890.36770.46590.19310.4659
3381.32561.32781.29781.35720.44120.58760.34250.4686
3391.33151.32761.29081.36350.41560.54340.42410.4694
3401.32381.32771.28511.36910.42720.42810.4170.475
3411.30891.32741.27971.37360.21590.56110.47340.4734
3421.29241.32741.27431.37860.09050.760.54350.4749
3431.27271.32731.26941.38310.02740.89020.52430.4766
3441.27461.32731.26481.38730.04240.96290.44560.478
3451.29691.32731.26061.39120.17520.94720.5430.4795
3461.26981.32731.25651.39480.04750.81130.70340.4803
3471.26861.32731.25271.39830.05260.94370.83220.4812
3481.25871.32731.2491.40160.03530.93910.9250.4821
3491.24921.32731.24551.40480.02420.95860.90860.4828
3501.23491.32731.24211.40780.01230.97130.77020.4834
3511.24281.32731.23881.41080.02360.9850.91150.484
3521.2271.32731.23561.41360.01140.97250.90880.4845
3531.23341.32731.23261.41630.01930.98640.93450.485
3541.24971.32731.22961.41890.04850.97770.95260.4854
3551.2361.32731.22671.42150.02870.94680.97270.4858
3561.22231.32731.22381.4240.01660.96790.95660.4862
3571.23091.32731.2211.42640.02830.98110.97640.4865
3581.22551.32731.21831.42870.02460.96870.96520.4868
3591.23841.32731.21571.4310.04650.97280.92870.4871
3601.23071.32731.21311.43330.0370.94990.95440.4874
3611.21551.32731.21061.43540.02140.960.97150.4876
3621.22181.32731.20811.43760.03040.97650.95670.4879
3631.22681.32731.20561.43970.03980.96710.96210.4881
3641.2061.32731.20321.44170.01890.95740.93610.4883
3651.19591.32731.20081.44370.01350.97940.9480.4885
3661.19421.32731.19851.44570.01380.98520.96790.4887


Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
3370.008-0.00270000
3380.0113-0.00170.0022000.003
3390.01380.00290.0024000.0033
3400.0159-0.00290.0026000.0035
3410.0178-0.0140.00483e-041e-040.0088
3420.0197-0.02630.00840.00123e-040.0164
3430.0214-0.04120.01310.0037e-040.0256
3440.023-0.03970.01640.00289e-040.0304
3450.0245-0.02290.01719e-049e-040.0304
3460.026-0.04330.01980.00330.00120.0341
3470.0273-0.04420.0220.00340.00140.037
3480.0286-0.05170.02450.00470.00160.0406
3490.0298-0.05880.02710.00610.0020.0446
3500.031-0.06960.03010.00850.00250.0496
3510.0321-0.06370.03240.00710.00280.0526
3520.0332-0.07560.03510.01010.00320.0568
3530.0342-0.07070.03720.00880.00360.0596
3540.0352-0.05850.03840.0060.00370.0607
3550.0362-0.06880.040.00830.00390.0627
3560.0372-0.07910.04190.0110.00430.0655
3570.0381-0.07260.04340.00930.00450.0673
3580.039-0.07670.04490.01040.00480.0692
3590.0399-0.0670.04590.00790.00490.0702
3600.0407-0.07280.0470.00930.00510.0715
3610.0416-0.08420.04850.01250.00540.0735
3620.0424-0.07950.04970.01110.00560.075
3630.0432-0.07570.05060.01010.00580.0761
3640.044-0.09140.05210.01470.00610.0782
3650.0448-0.0990.05370.01730.00650.0806
3660.0455-0.10030.05520.01770.00690.0829
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys/13x9f1292887059.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys/13x9f1292887059.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys/2szsj1292887060.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292886937dteex8a6ovs88ys/2szsj1292887060.ps (open in new window)


 
Parameters (Session):
par1 = 15 ; par2 = 1.9 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 1 ; par9 = 0 ; par10 = FALSE ;
 
Parameters (R input):
par1 = 15 ; par2 = 1.9 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = 1 ; par9 = 0 ; par10 = FALSE ;
 
R code (references can be found in the software module):
par1 <- 30 #cut off periods
par2 <- as.numeric(par2) #lambda
par3 <- as.numeric(par3) #degree of non-seasonal differencing
par4 <- as.numeric(par4) #degree of seasonal differencing
par5 <- 5 #seasonal period
par6 <- as.numeric(par6) #p
par7 <- as.numeric(par7) #q
par8 <- as.numeric(par8) #P
par9 <- as.numeric(par9) #Q
if (par10 == 'TRUE') par10 <- TRUE
if (par10 == 'FALSE') par10 <- FALSE
if (par2 == 0) x <- log(x)
if (par2 != 0) x <- x^par2
lx <- length(x)
first <- lx - 2*par1
nx <- lx - par1
nx1 <- nx + 1
fx <- lx - nx
if (fx < 1) {
fx <- par5
nx1 <- lx + fx - 1
first <- lx - 2*fx
}
first <- 1
if (fx < 3) fx <- round(lx/10,0)
(arima.out <- arima(x[1:nx], order=c(par6,par3,par7), seasonal=list(order=c(par8,par4,par9), period=par5), include.mean=par10, method='ML'))
(forecast <- predict(arima.out,par1))
(lb <- forecast$pred - 1.96 * forecast$se)
(ub <- forecast$pred + 1.96 * forecast$se)
if (par2 == 0) {
x <- exp(x)
forecast$pred <- exp(forecast$pred)
lb <- exp(lb)
ub <- exp(ub)
}
if (par2 != 0) {
x <- x^(1/par2)
forecast$pred <- forecast$pred^(1/par2)
lb <- lb^(1/par2)
ub <- ub^(1/par2)
}
if (par2 < 0) {
olb <- lb
lb <- ub
ub <- olb
}
(actandfor <- c(x[1:nx], forecast$pred))
(perc.se <- (ub-forecast$pred)/1.96/forecast$pred)
bitmap(file='test1.png')
opar <- par(mar=c(4,4,2,2),las=1)
ylim <- c( min(x[first:nx],lb), max(x[first:nx],ub))
plot(x,ylim=ylim,type='n',xlim=c(first,lx))
usr <- par('usr')
rect(usr[1],usr[3],nx+1,usr[4],border=NA,col='lemonchiffon')
rect(nx1,usr[3],usr[2],usr[4],border=NA,col='lavender')
abline(h= (-3:3)*2 , col ='gray', lty =3)
polygon( c(nx1:lx,lx:nx1), c(lb,rev(ub)), col = 'orange', lty=2,border=NA)
lines(nx1:lx, lb , lty=2)
lines(nx1:lx, ub , lty=2)
lines(x, lwd=2)
lines(nx1:lx, forecast$pred , lwd=2 , col ='white')
box()
par(opar)
dev.off()
prob.dec <- array(NA, dim=fx)
prob.sdec <- array(NA, dim=fx)
prob.ldec <- array(NA, dim=fx)
prob.pval <- array(NA, dim=fx)
perf.pe <- array(0, dim=fx)
perf.mape <- array(0, dim=fx)
perf.mape1 <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.mse1 <- array(0, dim=fx)
perf.rmse <- array(0, dim=fx)
for (i in 1:fx) {
locSD <- (ub[i] - forecast$pred[i]) / 1.96
perf.pe[i] = (x[nx+i] - forecast$pred[i]) / forecast$pred[i]
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
prob.dec[i] = pnorm((x[nx+i-1] - forecast$pred[i]) / locSD)
prob.sdec[i] = pnorm((x[nx+i-par5] - forecast$pred[i]) / locSD)
prob.ldec[i] = pnorm((x[nx] - forecast$pred[i]) / locSD)
prob.pval[i] = pnorm(abs(x[nx+i] - forecast$pred[i]) / locSD)
}
perf.mape[1] = abs(perf.pe[1])
perf.mse[1] = abs(perf.se[1])
for (i in 2:fx) {
perf.mape[i] = perf.mape[i-1] + abs(perf.pe[i])
perf.mape1[i] = perf.mape[i] / i
perf.mse[i] = perf.mse[i-1] + perf.se[i]
perf.mse1[i] = perf.mse[i] / i
}
perf.rmse = sqrt(perf.mse1)
bitmap(file='test2.png')
plot(forecast$pred, pch=19, type='b',main='ARIMA Extrapolation Forecast', ylab='Forecast and 95% CI', xlab='time',ylim=c(min(lb),max(ub)))
dum <- forecast$pred
dum[1:par1] <- x[(nx+1):lx]
lines(dum, lty=1)
lines(ub,lty=3)
lines(lb,lty=3)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'Y[t]',1,header=TRUE)
a<-table.element(a,'F[t]',1,header=TRUE)
a<-table.element(a,'95% LB',1,header=TRUE)
a<-table.element(a,'95% UB',1,header=TRUE)
a<-table.element(a,'p-value<br />(H0: Y[t] = F[t])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-1])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-s])',1,header=TRUE)
mylab <- paste('P(F[t]>Y[',nx,sep='')
mylab <- paste(mylab,'])',sep='')
a<-table.element(a,mylab,1,header=TRUE)
a<-table.row.end(a)
for (i in (nx-par5):nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.row.end(a)
}
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(x[nx+i],4))
a<-table.element(a,round(forecast$pred[i],4))
a<-table.element(a,round(lb[i],4))
a<-table.element(a,round(ub[i],4))
a<-table.element(a,round((1-prob.pval[i]),4))
a<-table.element(a,round((1-prob.dec[i]),4))
a<-table.element(a,round((1-prob.sdec[i]),4))
a<-table.element(a,round((1-prob.ldec[i]),4))
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,'Univariate ARIMA Extrapolation Forecast Performance',7,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'% S.E.',1,header=TRUE)
a<-table.element(a,'PE',1,header=TRUE)
a<-table.element(a,'MAPE',1,header=TRUE)
a<-table.element(a,'Sq.E',1,header=TRUE)
a<-table.element(a,'MSE',1,header=TRUE)
a<-table.element(a,'RMSE',1,header=TRUE)
a<-table.row.end(a)
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(perc.se[i],4))
a<-table.element(a,round(perf.pe[i],4))
a<-table.element(a,round(perf.mape1[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse1[i],4))
a<-table.element(a,round(perf.rmse[i],4))
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