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 computationThu, 11 Dec 2014 16:27:59 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/11/t14183153132lxno1ruvuk8ke3.htm/, Retrieved Thu, 16 May 2024 05:58:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=266179, Retrieved Thu, 16 May 2024 05:58:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [hwhxf] [2014-12-11 16:27:59] [7de4f24d5c21ad7c83693f758b02221d] [Current]
Feedback Forum

Post a new message
Dataseries X:
12.9
12.2
12.8
7.4
6.7
12.6
14.8
13.3
11.1
8.2
11.4
6.4
10.6
12.0
6.3
11.3
11.9
9.3
9.6
10.0
6.4
13.8
10.8
13.8
11.7
10.9
16.1
13.4
9.9
11.5
8.3
11.7
9.0
9.7
10.8
10.3
10.4
12.7
9.3
11.8
5.9
11.4
13.0
10.8
12.3
11.3
11.8
7.9
12.7
12.3
11.6
6.7
10.9
12.1
13.3
10.1
5.7
14.3
8.0
13.3
9.3
12.5
7.6
15.9
9.2
9.1
11.1
13.0
14.5
12.2
12.3
11.4
8.8
14.6
12.6
13.0
12.6
13.2
9.9
7.7
10.5
13.4
10.9
4.3
10.3
11.8
11.2
11.4
8.6
13.2
12.6
5.6
9.9
8.8
7.7
9.0
7.3
11.4
13.6
7.9
10.7
10.3
8.3
9.6
14.2
8.5
13.5
4.9
6.4
9.6
11.6
11.1
4.35
12.7
18.1
17.85
16.6
12.6
17.1
19.1
16.1
13.35
18.4
14.7
10.6
12.6
16.2
13.6
18.9
14.1
14.5
16.15
14.75
14.8
12.45
12.65
17.35
8.6
18.4
16.1
11.6
17.75
15.25
17.65
16.35
17.65
13.6
14.35
14.75
18.25
9.9
16
18.25
16.85
14.6
13.85
18.95
15.6
14.85
11.75
18.45
15.9
17.1
16.1
19.9
10.95
18.45
15.1
15
11.35
15.95
18.1
14.6
15.4
15.4
17.6
13.35
19.1
15.35
7.6
13.4
13.9
19.1
15.25
12.9
16.1
17.35
13.15
12.15
12.6
10.35
15.4
9.6
18.2
13.6
14.85
14.75
14.1
14.9
16.25
19.25
13.6
13.6
15.65
12.75
14.6
9.85
12.65
19.2
16.6
11.2
15.25
11.9
13.2
16.35
12.4
15.85
18.15
11.15
15.65
17.75
7.65
12.35
15.6
19.3
15.2
17.1
15.6
18.4
19.05
18.55
19.1
13.1
12.85
9.5
4.5
11.85
13.6
11.7
12.4
13.35
11.4
14.9
19.9
11.2
14.6
17.6
14.05
16.1
13.35
11.85
11.95
14.75
15.15
13.2
16.85
7.85
7.7
12.6
7.85
10.95
12.35
9.95
14.9
16.65
13.4
13.95
15.7
16.85
10.95
15.35
12.2
15.1
17.75
15.2
14.6
16.65
8.1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.wessa.net

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 2 seconds \tabularnewline
R Server & 'George Udny Yule' @ yule.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266179&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]2 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ yule.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266179&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266179&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ yule.wessa.net







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[266])
25415.15-------
25513.2-------
25616.85-------
2577.85-------
2587.7-------
25912.6-------
2607.85-------
26110.95-------
26212.35-------
2639.95-------
26414.9-------
26516.65-------
26613.4-------
26713.9512.76697.241118.83150.35110.41890.44430.4189
26815.712.81647.247718.93050.17760.35820.0980.4258
26916.8513.06027.42819.23930.11470.20120.95080.4571
27010.9513.05217.383519.27560.2540.11580.95410.4564
27115.3513.08327.374219.3540.23930.74750.560.4606
27212.213.40557.625119.7470.35470.27390.9570.5007
27315.113.22967.431519.60110.28250.62430.75840.4791
27417.7512.93897.136919.33050.07010.25380.57170.4438
27515.213.02917.181319.47180.25450.07550.82560.4551
27614.612.75126.899619.21370.28750.22880.25730.422
27716.6512.78796.89719.29660.12240.29260.12240.4269
2788.112.96257.016519.52890.07330.13550.4480.448

\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[266]) \tabularnewline
254 & 15.15 & - & - & - & - & - & - & - \tabularnewline
255 & 13.2 & - & - & - & - & - & - & - \tabularnewline
256 & 16.85 & - & - & - & - & - & - & - \tabularnewline
257 & 7.85 & - & - & - & - & - & - & - \tabularnewline
258 & 7.7 & - & - & - & - & - & - & - \tabularnewline
259 & 12.6 & - & - & - & - & - & - & - \tabularnewline
260 & 7.85 & - & - & - & - & - & - & - \tabularnewline
261 & 10.95 & - & - & - & - & - & - & - \tabularnewline
262 & 12.35 & - & - & - & - & - & - & - \tabularnewline
263 & 9.95 & - & - & - & - & - & - & - \tabularnewline
264 & 14.9 & - & - & - & - & - & - & - \tabularnewline
265 & 16.65 & - & - & - & - & - & - & - \tabularnewline
266 & 13.4 & - & - & - & - & - & - & - \tabularnewline
267 & 13.95 & 12.7669 & 7.2411 & 18.8315 & 0.3511 & 0.4189 & 0.4443 & 0.4189 \tabularnewline
268 & 15.7 & 12.8164 & 7.2477 & 18.9305 & 0.1776 & 0.3582 & 0.098 & 0.4258 \tabularnewline
269 & 16.85 & 13.0602 & 7.428 & 19.2393 & 0.1147 & 0.2012 & 0.9508 & 0.4571 \tabularnewline
270 & 10.95 & 13.0521 & 7.3835 & 19.2756 & 0.254 & 0.1158 & 0.9541 & 0.4564 \tabularnewline
271 & 15.35 & 13.0832 & 7.3742 & 19.354 & 0.2393 & 0.7475 & 0.56 & 0.4606 \tabularnewline
272 & 12.2 & 13.4055 & 7.6251 & 19.747 & 0.3547 & 0.2739 & 0.957 & 0.5007 \tabularnewline
273 & 15.1 & 13.2296 & 7.4315 & 19.6011 & 0.2825 & 0.6243 & 0.7584 & 0.4791 \tabularnewline
274 & 17.75 & 12.9389 & 7.1369 & 19.3305 & 0.0701 & 0.2538 & 0.5717 & 0.4438 \tabularnewline
275 & 15.2 & 13.0291 & 7.1813 & 19.4718 & 0.2545 & 0.0755 & 0.8256 & 0.4551 \tabularnewline
276 & 14.6 & 12.7512 & 6.8996 & 19.2137 & 0.2875 & 0.2288 & 0.2573 & 0.422 \tabularnewline
277 & 16.65 & 12.7879 & 6.897 & 19.2966 & 0.1224 & 0.2926 & 0.1224 & 0.4269 \tabularnewline
278 & 8.1 & 12.9625 & 7.0165 & 19.5289 & 0.0733 & 0.1355 & 0.448 & 0.448 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266179&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[266])[/C][/ROW]
[ROW][C]254[/C][C]15.15[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]255[/C][C]13.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]256[/C][C]16.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]257[/C][C]7.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]258[/C][C]7.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]259[/C][C]12.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]260[/C][C]7.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]261[/C][C]10.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]262[/C][C]12.35[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]263[/C][C]9.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]264[/C][C]14.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]265[/C][C]16.65[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]266[/C][C]13.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]267[/C][C]13.95[/C][C]12.7669[/C][C]7.2411[/C][C]18.8315[/C][C]0.3511[/C][C]0.4189[/C][C]0.4443[/C][C]0.4189[/C][/ROW]
[ROW][C]268[/C][C]15.7[/C][C]12.8164[/C][C]7.2477[/C][C]18.9305[/C][C]0.1776[/C][C]0.3582[/C][C]0.098[/C][C]0.4258[/C][/ROW]
[ROW][C]269[/C][C]16.85[/C][C]13.0602[/C][C]7.428[/C][C]19.2393[/C][C]0.1147[/C][C]0.2012[/C][C]0.9508[/C][C]0.4571[/C][/ROW]
[ROW][C]270[/C][C]10.95[/C][C]13.0521[/C][C]7.3835[/C][C]19.2756[/C][C]0.254[/C][C]0.1158[/C][C]0.9541[/C][C]0.4564[/C][/ROW]
[ROW][C]271[/C][C]15.35[/C][C]13.0832[/C][C]7.3742[/C][C]19.354[/C][C]0.2393[/C][C]0.7475[/C][C]0.56[/C][C]0.4606[/C][/ROW]
[ROW][C]272[/C][C]12.2[/C][C]13.4055[/C][C]7.6251[/C][C]19.747[/C][C]0.3547[/C][C]0.2739[/C][C]0.957[/C][C]0.5007[/C][/ROW]
[ROW][C]273[/C][C]15.1[/C][C]13.2296[/C][C]7.4315[/C][C]19.6011[/C][C]0.2825[/C][C]0.6243[/C][C]0.7584[/C][C]0.4791[/C][/ROW]
[ROW][C]274[/C][C]17.75[/C][C]12.9389[/C][C]7.1369[/C][C]19.3305[/C][C]0.0701[/C][C]0.2538[/C][C]0.5717[/C][C]0.4438[/C][/ROW]
[ROW][C]275[/C][C]15.2[/C][C]13.0291[/C][C]7.1813[/C][C]19.4718[/C][C]0.2545[/C][C]0.0755[/C][C]0.8256[/C][C]0.4551[/C][/ROW]
[ROW][C]276[/C][C]14.6[/C][C]12.7512[/C][C]6.8996[/C][C]19.2137[/C][C]0.2875[/C][C]0.2288[/C][C]0.2573[/C][C]0.422[/C][/ROW]
[ROW][C]277[/C][C]16.65[/C][C]12.7879[/C][C]6.897[/C][C]19.2966[/C][C]0.1224[/C][C]0.2926[/C][C]0.1224[/C][C]0.4269[/C][/ROW]
[ROW][C]278[/C][C]8.1[/C][C]12.9625[/C][C]7.0165[/C][C]19.5289[/C][C]0.0733[/C][C]0.1355[/C][C]0.448[/C][C]0.448[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266179&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266179&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[266])
25415.15-------
25513.2-------
25616.85-------
2577.85-------
2587.7-------
25912.6-------
2607.85-------
26110.95-------
26212.35-------
2639.95-------
26414.9-------
26516.65-------
26613.4-------
26713.9512.76697.241118.83150.35110.41890.44430.4189
26815.712.81647.247718.93050.17760.35820.0980.4258
26916.8513.06027.42819.23930.11470.20120.95080.4571
27010.9513.05217.383519.27560.2540.11580.95410.4564
27115.3513.08327.374219.3540.23930.74750.560.4606
27212.213.40557.625119.7470.35470.27390.9570.5007
27315.113.22967.431519.60110.28250.62430.75840.4791
27417.7512.93897.136919.33050.07010.25380.57170.4438
27515.213.02917.181319.47180.25450.07550.82560.4551
27614.612.75126.899619.21370.28750.22880.25730.422
27716.6512.78796.89719.29660.12240.29260.12240.4269
2788.112.96257.016519.52890.07330.13550.4480.448







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPEsMAPESq.EMSERMSEScaledEMASE
2670.24240.08480.08480.08861.3997000.3650.365
2680.24340.18370.13420.14548.31494.85732.20390.88970.6274
2690.24140.22490.16450.181414.36248.02572.8331.16940.808
2700.2433-0.1920.17130.17984.41897.1242.6691-0.64860.7682
2710.24450.14770.16660.17585.13866.72692.59360.69940.7544
2720.2414-0.09880.15530.16221.45325.8482.4183-0.3720.6907
2730.24570.12390.15080.15793.49865.51232.34780.57710.6745
2740.2520.2710.16580.177323.14637.71662.77791.48450.7757
2750.25230.14280.16330.17474.71267.38282.71710.66980.764
2760.25860.12660.15960.17083.41816.98632.64320.57050.7446
2770.25970.2320.16620.179114.91567.70722.77621.19170.7852
2780.2585-0.60030.20240.202623.64379.03523.0059-1.50030.8448

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & sMAPE & Sq.E & MSE & RMSE & ScaledE & MASE \tabularnewline
267 & 0.2424 & 0.0848 & 0.0848 & 0.0886 & 1.3997 & 0 & 0 & 0.365 & 0.365 \tabularnewline
268 & 0.2434 & 0.1837 & 0.1342 & 0.1454 & 8.3149 & 4.8573 & 2.2039 & 0.8897 & 0.6274 \tabularnewline
269 & 0.2414 & 0.2249 & 0.1645 & 0.1814 & 14.3624 & 8.0257 & 2.833 & 1.1694 & 0.808 \tabularnewline
270 & 0.2433 & -0.192 & 0.1713 & 0.1798 & 4.4189 & 7.124 & 2.6691 & -0.6486 & 0.7682 \tabularnewline
271 & 0.2445 & 0.1477 & 0.1666 & 0.1758 & 5.1386 & 6.7269 & 2.5936 & 0.6994 & 0.7544 \tabularnewline
272 & 0.2414 & -0.0988 & 0.1553 & 0.1622 & 1.4532 & 5.848 & 2.4183 & -0.372 & 0.6907 \tabularnewline
273 & 0.2457 & 0.1239 & 0.1508 & 0.1579 & 3.4986 & 5.5123 & 2.3478 & 0.5771 & 0.6745 \tabularnewline
274 & 0.252 & 0.271 & 0.1658 & 0.1773 & 23.1463 & 7.7166 & 2.7779 & 1.4845 & 0.7757 \tabularnewline
275 & 0.2523 & 0.1428 & 0.1633 & 0.1747 & 4.7126 & 7.3828 & 2.7171 & 0.6698 & 0.764 \tabularnewline
276 & 0.2586 & 0.1266 & 0.1596 & 0.1708 & 3.4181 & 6.9863 & 2.6432 & 0.5705 & 0.7446 \tabularnewline
277 & 0.2597 & 0.232 & 0.1662 & 0.1791 & 14.9156 & 7.7072 & 2.7762 & 1.1917 & 0.7852 \tabularnewline
278 & 0.2585 & -0.6003 & 0.2024 & 0.2026 & 23.6437 & 9.0352 & 3.0059 & -1.5003 & 0.8448 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266179&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]267[/C][C]0.2424[/C][C]0.0848[/C][C]0.0848[/C][C]0.0886[/C][C]1.3997[/C][C]0[/C][C]0[/C][C]0.365[/C][C]0.365[/C][/ROW]
[ROW][C]268[/C][C]0.2434[/C][C]0.1837[/C][C]0.1342[/C][C]0.1454[/C][C]8.3149[/C][C]4.8573[/C][C]2.2039[/C][C]0.8897[/C][C]0.6274[/C][/ROW]
[ROW][C]269[/C][C]0.2414[/C][C]0.2249[/C][C]0.1645[/C][C]0.1814[/C][C]14.3624[/C][C]8.0257[/C][C]2.833[/C][C]1.1694[/C][C]0.808[/C][/ROW]
[ROW][C]270[/C][C]0.2433[/C][C]-0.192[/C][C]0.1713[/C][C]0.1798[/C][C]4.4189[/C][C]7.124[/C][C]2.6691[/C][C]-0.6486[/C][C]0.7682[/C][/ROW]
[ROW][C]271[/C][C]0.2445[/C][C]0.1477[/C][C]0.1666[/C][C]0.1758[/C][C]5.1386[/C][C]6.7269[/C][C]2.5936[/C][C]0.6994[/C][C]0.7544[/C][/ROW]
[ROW][C]272[/C][C]0.2414[/C][C]-0.0988[/C][C]0.1553[/C][C]0.1622[/C][C]1.4532[/C][C]5.848[/C][C]2.4183[/C][C]-0.372[/C][C]0.6907[/C][/ROW]
[ROW][C]273[/C][C]0.2457[/C][C]0.1239[/C][C]0.1508[/C][C]0.1579[/C][C]3.4986[/C][C]5.5123[/C][C]2.3478[/C][C]0.5771[/C][C]0.6745[/C][/ROW]
[ROW][C]274[/C][C]0.252[/C][C]0.271[/C][C]0.1658[/C][C]0.1773[/C][C]23.1463[/C][C]7.7166[/C][C]2.7779[/C][C]1.4845[/C][C]0.7757[/C][/ROW]
[ROW][C]275[/C][C]0.2523[/C][C]0.1428[/C][C]0.1633[/C][C]0.1747[/C][C]4.7126[/C][C]7.3828[/C][C]2.7171[/C][C]0.6698[/C][C]0.764[/C][/ROW]
[ROW][C]276[/C][C]0.2586[/C][C]0.1266[/C][C]0.1596[/C][C]0.1708[/C][C]3.4181[/C][C]6.9863[/C][C]2.6432[/C][C]0.5705[/C][C]0.7446[/C][/ROW]
[ROW][C]277[/C][C]0.2597[/C][C]0.232[/C][C]0.1662[/C][C]0.1791[/C][C]14.9156[/C][C]7.7072[/C][C]2.7762[/C][C]1.1917[/C][C]0.7852[/C][/ROW]
[ROW][C]278[/C][C]0.2585[/C][C]-0.6003[/C][C]0.2024[/C][C]0.2026[/C][C]23.6437[/C][C]9.0352[/C][C]3.0059[/C][C]-1.5003[/C][C]0.8448[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266179&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266179&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
2670.24240.08480.08480.08861.3997000.3650.365
2680.24340.18370.13420.14548.31494.85732.20390.88970.6274
2690.24140.22490.16450.181414.36248.02572.8331.16940.808
2700.2433-0.1920.17130.17984.41897.1242.6691-0.64860.7682
2710.24450.14770.16660.17585.13866.72692.59360.69940.7544
2720.2414-0.09880.15530.16221.45325.8482.4183-0.3720.6907
2730.24570.12390.15080.15793.49865.51232.34780.57710.6745
2740.2520.2710.16580.177323.14637.71662.77791.48450.7757
2750.25230.14280.16330.17474.71267.38282.71710.66980.764
2760.25860.12660.15960.17083.41816.98632.64320.57050.7446
2770.25970.2320.16620.179114.91567.70722.77621.19170.7852
2780.2585-0.60030.20240.202623.64379.03523.0059-1.50030.8448



Parameters (Session):
par1 = 12 ; par2 = 0.8 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 0 ; par7 = 1 ; par8 = 1 ; par9 = 1 ; par10 = FALSE ;
Parameters (R input):
par1 = 12 ; par2 = 0.8 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = 0 ; par7 = 1 ; par8 = 1 ; 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
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.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')