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:09:08 +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/t12928865041dye540y8rrwefb.htm/, Retrieved Tue, 21 Dec 2010 00:08:24 +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/t12928865041dye540y8rrwefb.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[340])
3351.3321-------
3361.329-------
3371.3245-------
3381.3256-------
3391.3315-------
3401.3238-------
3411.30891.32361.30251.34440.08370.49060.30380.4906
3421.29241.32321.29331.35250.01980.83010.46510.4837
3431.27271.32331.28651.35910.00280.95430.44950.4886
3441.27461.32381.28131.36510.00980.99230.35660.4991
3451.29691.32311.27551.36930.13250.98040.48870.4887
3461.26981.32311.27011.37430.02050.84250.7070.4895
3471.26861.32311.26521.37880.02760.96960.85990.49
3481.25871.32311.26071.3830.01750.96280.95050.4908
3491.24921.32311.25651.38690.01150.97620.93210.4918
3501.23491.32311.25241.39050.00520.98410.77670.4917
3511.24281.32311.24861.3940.01320.99260.92960.4921
3521.2271.32311.24491.39730.00560.9830.92480.4924
3531.23341.32311.24141.40050.01160.99250.94850.4927
3541.24971.32311.2381.40350.03690.98560.96410.493
3551.2361.32311.23471.40640.02030.95780.98090.4932
3561.22231.32311.23151.40920.01090.97620.96610.4934
3571.23091.32311.22851.4120.0210.98690.98290.4936
3581.22551.32311.22551.41460.01830.97580.97260.4938
3591.23841.32311.22261.41710.03880.9790.93690.494
3601.23071.32311.21971.41960.03040.95720.96150.4941
3611.21551.32311.2171.4220.01650.96640.9770.4943
3621.22181.32311.21431.42440.0250.98130.96280.4944
3631.22681.32311.21161.42670.03420.97230.96760.4945
3641.2061.32311.2091.42890.01510.96270.94160.4947
3651.19591.32311.20651.43110.01050.98320.95320.4948
3661.19421.32311.2041.43320.01090.98820.97220.4949


Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
3410.008-0.011102e-0400
3420.0113-0.02330.01729e-046e-040.0241
3430.0138-0.03820.02420.00260.00120.0352
3440.0159-0.03710.02740.00240.00150.0392
3450.0178-0.01980.02597e-040.00140.0369
3460.0197-0.04030.02830.00280.00160.0401
3470.0215-0.04120.03010.0030.00180.0425
3480.0231-0.04870.03250.00410.00210.0458
3490.0246-0.05590.03510.00550.00250.0497
3500.026-0.06660.03820.00780.0030.0548
3510.0273-0.06070.04030.00640.00330.0576
3520.0286-0.07260.0430.00920.00380.0617
3530.0298-0.06780.04490.0080.00410.0643
3540.031-0.05550.04560.00540.00420.065
3550.0321-0.06580.0470.00760.00440.0667
3560.0332-0.07620.04880.01020.00480.0693
3570.0343-0.06970.050.00850.0050.0709
3580.0353-0.07370.05130.00950.00530.0726
3590.0363-0.0640.0520.00720.00540.0733
3600.0372-0.06980.05290.00850.00550.0744
3610.0382-0.08130.05420.01160.00580.0763
3620.0391-0.07650.05530.01030.0060.0776
3630.0399-0.07280.0560.00930.00620.0785
3640.0408-0.08850.05740.01370.00650.0805
3650.0416-0.09610.05890.01620.00690.0828
3660.0425-0.09740.06040.01660.00720.0851
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928865041dye540y8rrwefb/1sggr1292886544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928865041dye540y8rrwefb/1sggr1292886544.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12928865041dye540y8rrwefb/2hhdl1292886544.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12928865041dye540y8rrwefb/2hhdl1292886544.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 <- 26 #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