Home » date » 2008 » Dec » 14 »

werkloosheid

*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: Sun, 14 Dec 2008 11:02:13 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/14/t1229277829fh0qq3ovyx25pzq.htm/, Retrieved Sun, 14 Dec 2008 19:03:51 +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/2008/Dec/14/t1229277829fh0qq3ovyx25pzq.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
180144 173666 165688 161570 156145 153730 182698 200765 176512 166618 158644 159585 163095 159044 155511 153745 150569 150605 179612 194690 189917 184128 175335 179566 181140 177876 175041 169292 166070 166972 206348 215706 202108 195411 193111 195198 198770 194163 190420 189733 186029 191531 232571 243477 227247 217859 208679 213188 216234 213586 209465 204045 200237 203666 241476 260307 243324 244460 233575 237217 235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


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[48])
36195198-------
37198770-------
38194163-------
39190420-------
40189733-------
41186029-------
42191531-------
43232571-------
44243477-------
45227247-------
46217859-------
47208679-------
48213188-------
49216234216831.5318207050.9225226612.14110.45230.76740.99990.7674
50213586212226.6444198189.0316226264.25730.42470.28790.99420.4466
51209465208483.7068191203.0611225764.35250.45570.28140.97980.2968
52204045207796.7086187791.9108227801.50650.35660.43510.96160.2987
53200237204092.7087181692.6349226492.78250.36790.50170.9430.2131
54203666209594.7087185031.8367234157.58070.31810.77240.92530.3872
55241476250634.7087224084.6418277184.77560.24950.99970.90880.9971
56260307261540.7087233142.1625289939.25490.46610.91690.89370.9996
57243324245310.7087215176.8606275444.55680.44860.16470.880.9817
58244460235922.7087204148.1878267697.22960.29920.3240.86740.9196
59233575226742.7087193408.1688260077.24860.34390.14880.85590.7873
60237217231251.7087196426.9628266076.45460.36850.4480.84530.8453
61235243234895.2405194806.1184274984.36260.49320.45480.81920.8557
62230354230290.3531185423.1168275157.58950.49890.41440.76720.7725
63227184226547.4155177360.5887275734.24230.48990.43970.7520.7028
64221678225860.4173172703.7704279017.06430.43870.48050.78940.6798
65217142222156.4174165306.4868279006.3480.43140.50660.77510.6214
66219452227658.4174167340.9232287975.91160.39490.63370.78220.6809
67256446268698.4174205102.1471332294.68770.35290.93550.79930.9564
68265845279604.4174212890.3177346318.51710.3430.75190.71460.9745
69248624263374.4174193681.831333067.00380.33910.47230.71360.9209
70241114253986.4174181437.5229326535.31190.3640.55760.60160.8648
71229245244806.4174169509.4879320103.34690.34270.53830.6150.7948
72231805249315.4174171367.2738327263.5610.32990.69310.61950.8182
73219277252958.9492169459.5774336458.3210.21460.69020.66120.8247
74219313248354.0618159552.2828337155.84080.26080.73950.65440.7812
75212610244611.1242150803.4346338418.81380.25190.70140.64210.7443
76214771243924.1261145364.375342483.87710.2810.73330.67090.7295
77211142240220.1261137127.125343313.12720.29020.68570.66960.6964
78211457245722.1261138286.9864353157.26590.26590.73590.68410.7236
79240048286762.1261175153.6514398370.60080.2060.9070.70280.9018
80240636297668.1261182036.8415413299.41080.16680.83560.70520.9239
81230580281438.1261161919.3562400956.8960.20210.74830.70480.8685
82208795272050.1261148766.3935395333.85870.15730.74510.68860.8253
83197922262870.1261135933.0508389807.20150.1580.79810.69820.7785
84194596267379.1261136890.9524397867.29980.13710.85160.70340.7922


Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
490.023-0.00281e-04357044.22459917.895199.5886
500.03370.00642e-041847847.622351329.1006226.5593
510.04230.00471e-04962936.336526748.2316163.5489
520.0491-0.01815e-0414075317.7705390981.0492625.2848
530.056-0.01895e-0414866489.5888412958.0441642.6181
540.0598-0.02838e-0435149586.8831976377.4134988.1181
550.054-0.03650.00183881945.10442330054.03071526.4515
560.0554-0.00471e-041522037.163642278.8101205.6181
570.0627-0.00812e-043947011.4701109639.2075331.1181
580.06870.03620.00172885342.69172024592.85251422.8819
590.0750.03018e-0446680204.36861296672.34361138.7152
600.07680.02587e-0435584700.2594988463.8961994.2152
610.08710.00150120936.68383359.352357.9599
620.09943e-0404050.9263112.525710.6078
630.11080.00281e-04405239.816811256.6616106.0974
640.1201-0.01855e-0417492614.8871485905.9691697.0696
650.1306-0.02266e-0425144381.9028698455.0529835.7362
660.1352-0.0360.00167345286.63711870702.40661367.7362
670.1208-0.04560.0013150121732.28544170048.1192042.0696
680.1217-0.04920.0014189321567.34655258932.42632293.2362
690.135-0.0560.0016217574813.64476043744.82352458.4029
700.1457-0.05070.0014165699129.86864602753.60752145.4029
710.1569-0.06360.0018242157711.67696726603.10212593.5696
720.1595-0.07020.002306614717.72468517075.49242918.4029
730.1684-0.13320.00371134473700.751531513158.35425613.6582
740.1824-0.11690.0032843383271.3423427313.09284840.177
750.1957-0.13080.00361024071950.691528446443.07485333.5207
760.2062-0.11950.0033849904758.638123608465.51774858.8543
770.219-0.1210.0034845537417.895323487150.49714846.3544
780.2231-0.13940.00391174098867.239632613857.42335710.8544
790.1986-0.16290.00452182209578.096560616932.72497785.6877
800.1982-0.19160.00533252663408.475190351761.34659505.3544
810.2167-0.18070.0052586548991.285271848583.09138476.3544
820.2312-0.23250.00654001210979.0236111144749.417310542.521
830.2464-0.24710.00694218259085.0275117173863.47310824.6877
840.249-0.27220.00765297383446.1504147149540.170812130.521
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229277829fh0qq3ovyx25pzq/1ew9z1229277731.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229277829fh0qq3ovyx25pzq/1ew9z1229277731.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229277829fh0qq3ovyx25pzq/240xg1229277731.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/14/t1229277829fh0qq3ovyx25pzq/240xg1229277731.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1.3 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 1 ; par7 = 0 ; par8 = 0 ; par9 = 0 ; par10 = FALSE ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1) #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 <- as.numeric(par5) #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,fx))
(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.se <- array(0, dim=fx)
perf.mse <- 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.mape[i] = perf.mape[i] + abs(perf.pe[i])
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
perf.mse[i] = perf.mse[i] + perf.se[i]
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 = perf.mape / fx
perf.mse = perf.mse / fx
perf.rmse = sqrt(perf.mse)
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:12] <- 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.mape[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse[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