Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationTue, 19 Dec 2017 12:09:10 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2017/Dec/19/t1513681933wwso1rai5dc37h0.htm/, Retrieved Wed, 15 May 2024 05:47:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=310276, Retrieved Wed, 15 May 2024 05:47:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact93
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2017-12-19 11:09:10] [4a18882c9dbf23bd76c659f8b4f63e4f] [Current]
Feedback Forum

Post a new message
Dataseries X:
3.521979933
3.610762613
3.749949643
3.60275095
3.711394906
3.684155287
3.47559501
3.567004718
3.749949643
3.741133077
3.749949643
3.653337098
3.724844484
3.714393361
3.807547328
3.67189914
3.745547309
3.799034756
3.553800117
3.612360063
3.718880663
3.779000134
3.714393361
3.596312076
3.682628379
3.667278807
3.773230988
3.747016072
3.718880663
3.745547309
3.620323114
3.586603906
3.75287796
3.821638719
3.720373674
3.63455622
3.730786488
3.699345175
3.790478216
3.754340156
3.687204757
3.765990988
3.65178047
3.571927663
3.821638719
3.837002868
3.709893593
3.789047812
3.703874363
3.749949643
3.918423955
3.817423819
3.739659008
3.915771948
3.720373674
3.711394906
3.919748417
3.905122507
3.874128414
3.921071853
3.839781239
3.821638719
3.943415214
3.887673765
3.811787297
3.949931843
3.681100017
3.718880663
3.94210892
3.887673765
3.922394265
3.938184072
3.889022361
3.899772718
4.057130134
3.857729279
3.947328152
4.008760402
3.75287796
3.796187489
3.989795261
4.039919223
3.999935661
3.953830017
3.969335251
3.94863049
4.092258158
3.953830017
3.994872839
4.089857679
3.90779111
3.909123846
4.032491373
4.160510591
4.062016909
3.991066044
4.065673162
4.074175221
4.092258158
4.12081535
4.028765652
4.127884173
3.996139924
3.883621529
4.150087599
4.132581344
3.947328152
3.984702819
3.84532419
3.85360442
3.973189933
3.846707069
3.897091501
3.94863049
3.799034756
3.800456557
3.999935661
3.989795261
3.94863049
3.943415214
3.925036027
3.999935661
4.152409008
3.997406088
3.987250904
4.160510591
3.936873794
3.939493351
4.137266303
4.116087308
4.112533086
4.093457188
4.042388226
4.087453964
4.312269108
4.075386484
4.167426124
4.123174713
3.938184072
4.039919223
4.188016376
4.101827933
4.077806537
4.060796479
4.055906329
4.10302056
4.25063413
4.016289164
4.042388226
4.125530985
3.988523548
3.973189933
4.098245271
4.118452885
4.062016909
3.966760687
4.022538501
4.008760402
4.148925777
4.091058322
4.064455249
4.137266303
4.057130134
3.935562515
4.108971806
4.19935581
4.116087308
4.060796479
4.071750214
4.091058322
4.161665011
4.108971806
4.083842302
4.150087599
4.010017448
3.899772718
4.19482847
4.182320158
4.068106481
4.063236498
4.070536467
4.033731527
4.217354178
4.10302056
4.018791574
4.157042917
3.979595409
3.926355381
4.188016376
4.17316903
4.13023429
4.070536467
4.093457188
4.137266303
4.25173321
4.162818697
4.082636785
4.229626616
4.021290415
4.05100262
4.200485898
4.152409008
4.15588555
4.211748623
4.131408199
4.162818697
4.327102359
4.09944029
4.176606093
4.264871652
4.074175221
4.110159685




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time2 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=310276&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]2 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=310276&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=310276&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R ServerBig Analytics Cloud Computing Center







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[200])
1883.926355381-------
1894.188016376-------
1904.17316903-------
1914.13023429-------
1924.070536467-------
1934.093457188-------
1944.137266303-------
1954.25173321-------
1964.162818697-------
1974.082636785-------
1984.229626616-------
1994.021290415-------
2004.05100262-------
2014.20054.2474.15324.34290.170910.88591
2024.15244.24024.1434.33970.04190.78280.90660.9999
2034.15594.20144.09924.30630.19710.82040.90850.9975
2044.21174.15474.0344.2790.18430.49270.90780.949
2054.13144.1514.0274.27890.38170.17610.81130.9374
2064.16284.17644.04354.31360.42330.73960.71170.9633
2074.32714.30534.15824.45760.38960.96670.75480.9995
2084.09944.19044.04294.34330.12180.03990.63820.963
2094.17664.18374.02884.34450.46580.84760.89090.947
2104.26494.26924.10444.44060.48010.85520.67470.9937
2114.07424.08463.92214.25380.4520.01840.76830.6514
2124.11024.07083.90264.24620.330.48490.58740.5874

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast \tabularnewline
time & Y[t] & F[t] & 95% LB & 95% UB & p-value(H0: Y[t] = F[t]) & P(F[t]>Y[t-1]) & P(F[t]>Y[t-s]) & P(F[t]>Y[200]) \tabularnewline
188 & 3.926355381 & - & - & - & - & - & - & - \tabularnewline
189 & 4.188016376 & - & - & - & - & - & - & - \tabularnewline
190 & 4.17316903 & - & - & - & - & - & - & - \tabularnewline
191 & 4.13023429 & - & - & - & - & - & - & - \tabularnewline
192 & 4.070536467 & - & - & - & - & - & - & - \tabularnewline
193 & 4.093457188 & - & - & - & - & - & - & - \tabularnewline
194 & 4.137266303 & - & - & - & - & - & - & - \tabularnewline
195 & 4.25173321 & - & - & - & - & - & - & - \tabularnewline
196 & 4.162818697 & - & - & - & - & - & - & - \tabularnewline
197 & 4.082636785 & - & - & - & - & - & - & - \tabularnewline
198 & 4.229626616 & - & - & - & - & - & - & - \tabularnewline
199 & 4.021290415 & - & - & - & - & - & - & - \tabularnewline
200 & 4.05100262 & - & - & - & - & - & - & - \tabularnewline
201 & 4.2005 & 4.247 & 4.1532 & 4.3429 & 0.1709 & 1 & 0.8859 & 1 \tabularnewline
202 & 4.1524 & 4.2402 & 4.143 & 4.3397 & 0.0419 & 0.7828 & 0.9066 & 0.9999 \tabularnewline
203 & 4.1559 & 4.2014 & 4.0992 & 4.3063 & 0.1971 & 0.8204 & 0.9085 & 0.9975 \tabularnewline
204 & 4.2117 & 4.1547 & 4.034 & 4.279 & 0.1843 & 0.4927 & 0.9078 & 0.949 \tabularnewline
205 & 4.1314 & 4.151 & 4.027 & 4.2789 & 0.3817 & 0.1761 & 0.8113 & 0.9374 \tabularnewline
206 & 4.1628 & 4.1764 & 4.0435 & 4.3136 & 0.4233 & 0.7396 & 0.7117 & 0.9633 \tabularnewline
207 & 4.3271 & 4.3053 & 4.1582 & 4.4576 & 0.3896 & 0.9667 & 0.7548 & 0.9995 \tabularnewline
208 & 4.0994 & 4.1904 & 4.0429 & 4.3433 & 0.1218 & 0.0399 & 0.6382 & 0.963 \tabularnewline
209 & 4.1766 & 4.1837 & 4.0288 & 4.3445 & 0.4658 & 0.8476 & 0.8909 & 0.947 \tabularnewline
210 & 4.2649 & 4.2692 & 4.1044 & 4.4406 & 0.4801 & 0.8552 & 0.6747 & 0.9937 \tabularnewline
211 & 4.0742 & 4.0846 & 3.9221 & 4.2538 & 0.452 & 0.0184 & 0.7683 & 0.6514 \tabularnewline
212 & 4.1102 & 4.0708 & 3.9026 & 4.2462 & 0.33 & 0.4849 & 0.5874 & 0.5874 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=310276&T=1

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast[/C][/ROW]
[ROW][C]time[/C][C]Y[t][/C][C]F[t][/C][C]95% LB[/C][C]95% UB[/C][C]p-value(H0: Y[t] = F[t])[/C][C]P(F[t]>Y[t-1])[/C][C]P(F[t]>Y[t-s])[/C][C]P(F[t]>Y[200])[/C][/ROW]
[ROW][C]188[/C][C]3.926355381[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]189[/C][C]4.188016376[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]190[/C][C]4.17316903[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]191[/C][C]4.13023429[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]192[/C][C]4.070536467[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]193[/C][C]4.093457188[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]194[/C][C]4.137266303[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]195[/C][C]4.25173321[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]196[/C][C]4.162818697[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]197[/C][C]4.082636785[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]198[/C][C]4.229626616[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]199[/C][C]4.021290415[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]200[/C][C]4.05100262[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]201[/C][C]4.2005[/C][C]4.247[/C][C]4.1532[/C][C]4.3429[/C][C]0.1709[/C][C]1[/C][C]0.8859[/C][C]1[/C][/ROW]
[ROW][C]202[/C][C]4.1524[/C][C]4.2402[/C][C]4.143[/C][C]4.3397[/C][C]0.0419[/C][C]0.7828[/C][C]0.9066[/C][C]0.9999[/C][/ROW]
[ROW][C]203[/C][C]4.1559[/C][C]4.2014[/C][C]4.0992[/C][C]4.3063[/C][C]0.1971[/C][C]0.8204[/C][C]0.9085[/C][C]0.9975[/C][/ROW]
[ROW][C]204[/C][C]4.2117[/C][C]4.1547[/C][C]4.034[/C][C]4.279[/C][C]0.1843[/C][C]0.4927[/C][C]0.9078[/C][C]0.949[/C][/ROW]
[ROW][C]205[/C][C]4.1314[/C][C]4.151[/C][C]4.027[/C][C]4.2789[/C][C]0.3817[/C][C]0.1761[/C][C]0.8113[/C][C]0.9374[/C][/ROW]
[ROW][C]206[/C][C]4.1628[/C][C]4.1764[/C][C]4.0435[/C][C]4.3136[/C][C]0.4233[/C][C]0.7396[/C][C]0.7117[/C][C]0.9633[/C][/ROW]
[ROW][C]207[/C][C]4.3271[/C][C]4.3053[/C][C]4.1582[/C][C]4.4576[/C][C]0.3896[/C][C]0.9667[/C][C]0.7548[/C][C]0.9995[/C][/ROW]
[ROW][C]208[/C][C]4.0994[/C][C]4.1904[/C][C]4.0429[/C][C]4.3433[/C][C]0.1218[/C][C]0.0399[/C][C]0.6382[/C][C]0.963[/C][/ROW]
[ROW][C]209[/C][C]4.1766[/C][C]4.1837[/C][C]4.0288[/C][C]4.3445[/C][C]0.4658[/C][C]0.8476[/C][C]0.8909[/C][C]0.947[/C][/ROW]
[ROW][C]210[/C][C]4.2649[/C][C]4.2692[/C][C]4.1044[/C][C]4.4406[/C][C]0.4801[/C][C]0.8552[/C][C]0.6747[/C][C]0.9937[/C][/ROW]
[ROW][C]211[/C][C]4.0742[/C][C]4.0846[/C][C]3.9221[/C][C]4.2538[/C][C]0.452[/C][C]0.0184[/C][C]0.7683[/C][C]0.6514[/C][/ROW]
[ROW][C]212[/C][C]4.1102[/C][C]4.0708[/C][C]3.9026[/C][C]4.2462[/C][C]0.33[/C][C]0.4849[/C][C]0.5874[/C][C]0.5874[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=310276&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=310276&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

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[200])
1883.926355381-------
1894.188016376-------
1904.17316903-------
1914.13023429-------
1924.070536467-------
1934.093457188-------
1944.137266303-------
1954.25173321-------
1964.162818697-------
1974.082636785-------
1984.229626616-------
1994.021290415-------
2004.05100262-------
2014.20054.2474.15324.34290.170910.88591
2024.15244.24024.1434.33970.04190.78280.90660.9999
2034.15594.20144.09924.30630.19710.82040.90850.9975
2044.21174.15474.0344.2790.18430.49270.90780.949
2054.13144.1514.0274.27890.38170.17610.81130.9374
2064.16284.17644.04354.31360.42330.73960.71170.9633
2074.32714.30534.15824.45760.38960.96670.75480.9995
2084.09944.19044.04294.34330.12180.03990.63820.963
2094.17664.18374.02884.34450.46580.84760.89090.947
2104.26494.26924.10444.44060.48010.85520.67470.9937
2114.07424.08463.92214.25380.4520.01840.76830.6514
2124.11024.07083.90264.24620.330.48490.58740.5874







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPEsMAPESq.EMSERMSEScaledEMASE
2010.0115-0.01110.01110.0110.002200-0.51010.5101
2020.012-0.02110.01610.0160.00770.00490.0702-0.96230.7362
2030.0127-0.0110.01440.01430.00210.0040.0631-0.49950.6573
2040.01530.01350.01420.01410.00330.00380.06160.62520.6493
2050.0157-0.00480.01230.01224e-040.00310.0558-0.21530.5625
2060.0168-0.00330.01080.01072e-040.00260.0513-0.14850.4935
2070.0180.0050.010.00995e-040.00230.04820.23890.4571
2080.0186-0.02220.01150.01140.00830.00310.0554-0.99750.5247
2090.0196-0.00170.01040.010300.00270.0522-0.07720.475
2100.0205-0.0010.00950.009400.00250.0496-0.04780.4322
2110.0211-0.00260.00880.00881e-040.00220.0474-0.11420.4033
2120.0220.00960.00890.00890.00160.00220.04680.43180.4057

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & sMAPE & Sq.E & MSE & RMSE & ScaledE & MASE \tabularnewline
201 & 0.0115 & -0.0111 & 0.0111 & 0.011 & 0.0022 & 0 & 0 & -0.5101 & 0.5101 \tabularnewline
202 & 0.012 & -0.0211 & 0.0161 & 0.016 & 0.0077 & 0.0049 & 0.0702 & -0.9623 & 0.7362 \tabularnewline
203 & 0.0127 & -0.011 & 0.0144 & 0.0143 & 0.0021 & 0.004 & 0.0631 & -0.4995 & 0.6573 \tabularnewline
204 & 0.0153 & 0.0135 & 0.0142 & 0.0141 & 0.0033 & 0.0038 & 0.0616 & 0.6252 & 0.6493 \tabularnewline
205 & 0.0157 & -0.0048 & 0.0123 & 0.0122 & 4e-04 & 0.0031 & 0.0558 & -0.2153 & 0.5625 \tabularnewline
206 & 0.0168 & -0.0033 & 0.0108 & 0.0107 & 2e-04 & 0.0026 & 0.0513 & -0.1485 & 0.4935 \tabularnewline
207 & 0.018 & 0.005 & 0.01 & 0.0099 & 5e-04 & 0.0023 & 0.0482 & 0.2389 & 0.4571 \tabularnewline
208 & 0.0186 & -0.0222 & 0.0115 & 0.0114 & 0.0083 & 0.0031 & 0.0554 & -0.9975 & 0.5247 \tabularnewline
209 & 0.0196 & -0.0017 & 0.0104 & 0.0103 & 0 & 0.0027 & 0.0522 & -0.0772 & 0.475 \tabularnewline
210 & 0.0205 & -0.001 & 0.0095 & 0.0094 & 0 & 0.0025 & 0.0496 & -0.0478 & 0.4322 \tabularnewline
211 & 0.0211 & -0.0026 & 0.0088 & 0.0088 & 1e-04 & 0.0022 & 0.0474 & -0.1142 & 0.4033 \tabularnewline
212 & 0.022 & 0.0096 & 0.0089 & 0.0089 & 0.0016 & 0.0022 & 0.0468 & 0.4318 & 0.4057 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=310276&T=2

[TABLE]
[ROW][C]Univariate ARIMA Extrapolation Forecast Performance[/C][/ROW]
[ROW][C]time[/C][C]% S.E.[/C][C]PE[/C][C]MAPE[/C][C]sMAPE[/C][C]Sq.E[/C][C]MSE[/C][C]RMSE[/C][C]ScaledE[/C][C]MASE[/C][/ROW]
[ROW][C]201[/C][C]0.0115[/C][C]-0.0111[/C][C]0.0111[/C][C]0.011[/C][C]0.0022[/C][C]0[/C][C]0[/C][C]-0.5101[/C][C]0.5101[/C][/ROW]
[ROW][C]202[/C][C]0.012[/C][C]-0.0211[/C][C]0.0161[/C][C]0.016[/C][C]0.0077[/C][C]0.0049[/C][C]0.0702[/C][C]-0.9623[/C][C]0.7362[/C][/ROW]
[ROW][C]203[/C][C]0.0127[/C][C]-0.011[/C][C]0.0144[/C][C]0.0143[/C][C]0.0021[/C][C]0.004[/C][C]0.0631[/C][C]-0.4995[/C][C]0.6573[/C][/ROW]
[ROW][C]204[/C][C]0.0153[/C][C]0.0135[/C][C]0.0142[/C][C]0.0141[/C][C]0.0033[/C][C]0.0038[/C][C]0.0616[/C][C]0.6252[/C][C]0.6493[/C][/ROW]
[ROW][C]205[/C][C]0.0157[/C][C]-0.0048[/C][C]0.0123[/C][C]0.0122[/C][C]4e-04[/C][C]0.0031[/C][C]0.0558[/C][C]-0.2153[/C][C]0.5625[/C][/ROW]
[ROW][C]206[/C][C]0.0168[/C][C]-0.0033[/C][C]0.0108[/C][C]0.0107[/C][C]2e-04[/C][C]0.0026[/C][C]0.0513[/C][C]-0.1485[/C][C]0.4935[/C][/ROW]
[ROW][C]207[/C][C]0.018[/C][C]0.005[/C][C]0.01[/C][C]0.0099[/C][C]5e-04[/C][C]0.0023[/C][C]0.0482[/C][C]0.2389[/C][C]0.4571[/C][/ROW]
[ROW][C]208[/C][C]0.0186[/C][C]-0.0222[/C][C]0.0115[/C][C]0.0114[/C][C]0.0083[/C][C]0.0031[/C][C]0.0554[/C][C]-0.9975[/C][C]0.5247[/C][/ROW]
[ROW][C]209[/C][C]0.0196[/C][C]-0.0017[/C][C]0.0104[/C][C]0.0103[/C][C]0[/C][C]0.0027[/C][C]0.0522[/C][C]-0.0772[/C][C]0.475[/C][/ROW]
[ROW][C]210[/C][C]0.0205[/C][C]-0.001[/C][C]0.0095[/C][C]0.0094[/C][C]0[/C][C]0.0025[/C][C]0.0496[/C][C]-0.0478[/C][C]0.4322[/C][/ROW]
[ROW][C]211[/C][C]0.0211[/C][C]-0.0026[/C][C]0.0088[/C][C]0.0088[/C][C]1e-04[/C][C]0.0022[/C][C]0.0474[/C][C]-0.1142[/C][C]0.4033[/C][/ROW]
[ROW][C]212[/C][C]0.022[/C][C]0.0096[/C][C]0.0089[/C][C]0.0089[/C][C]0.0016[/C][C]0.0022[/C][C]0.0468[/C][C]0.4318[/C][C]0.4057[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=310276&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=310276&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPEsMAPESq.EMSERMSEScaledEMASE
2010.0115-0.01110.01110.0110.002200-0.51010.5101
2020.012-0.02110.01610.0160.00770.00490.0702-0.96230.7362
2030.0127-0.0110.01440.01430.00210.0040.0631-0.49950.6573
2040.01530.01350.01420.01410.00330.00380.06160.62520.6493
2050.0157-0.00480.01230.01224e-040.00310.0558-0.21530.5625
2060.0168-0.00330.01080.01072e-040.00260.0513-0.14850.4935
2070.0180.0050.010.00995e-040.00230.04820.23890.4571
2080.0186-0.02220.01150.01140.00830.00310.0554-0.99750.5247
2090.0196-0.00170.01040.010300.00270.0522-0.07720.475
2100.0205-0.0010.00950.009400.00250.0496-0.04780.4322
2110.0211-0.00260.00880.00881e-040.00220.0474-0.11420.4033
2120.0220.00960.00890.00890.00160.00220.04680.43180.4057



Parameters (Session):
par1 = 12 ; par2 = 0.0 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 2 ; par7 = 1 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 0.0 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = 2 ; par7 = 1 ; par8 = 0 ; par9 = 1 ; 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*2
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.spe <- array(0, dim=fx)
perf.scalederr <- array(0, dim=fx)
perf.mase <- array(0, dim=fx)
perf.mase1 <- array(0, dim=fx)
perf.mape <- array(0, dim=fx)
perf.smape <- array(0, dim=fx)
perf.mape1 <- array(0, dim=fx)
perf.smape1 <- 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)
perf.scaleddenom <- 0
for (i in 2:fx) {
perf.scaleddenom = perf.scaleddenom + abs(x[nx+i] - x[nx+i-1])
}
perf.scaleddenom = perf.scaleddenom / (fx-1)
for (i in 1:fx) {
locSD <- (ub[i] - forecast$pred[i]) / 1.96
perf.scalederr[i] = (x[nx+i] - forecast$pred[i]) / perf.scaleddenom
perf.pe[i] = (x[nx+i] - forecast$pred[i]) / x[nx+i]
perf.spe[i] = 2*(x[nx+i] - forecast$pred[i]) / (x[nx+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.smape[1] = abs(perf.spe[1])
perf.mape1[1] = perf.mape[1]
perf.smape1[1] = perf.smape[1]
perf.mse[1] = perf.se[1]
perf.mase[1] = abs(perf.scalederr[1])
perf.mase1[1] = perf.mase[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.smape[i] = perf.smape[i-1] + abs(perf.spe[i])
perf.smape1[i] = perf.smape[i] / i
perf.mse[i] = perf.mse[i-1] + perf.se[i]
perf.mse1[i] = perf.mse[i] / i
perf.mase[i] = perf.mase[i-1] + abs(perf.scalederr[i])
perf.mase1[i] = perf.mase[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
(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',10,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,'sMAPE',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.element(a,'ScaledE',1,header=TRUE)
a<-table.element(a,'MASE',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.smape1[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.element(a,round(perf.scalederr[i],4))
a<-table.element(a,round(perf.mase1[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')