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 computationWed, 17 Dec 2014 16:00:58 +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/17/t1418832186g5hnakum7v3iy9s.htm/, Retrieved Mon, 13 May 2024 10:11:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=270470, Retrieved Mon, 13 May 2024 10:11:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact103
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Univariate Data Series] [] [2008-12-14 11:54:22] [d2d412c7f4d35ffbf5ee5ee89db327d4]
- RMP   [ARIMA Backward Selection] [] [2011-12-06 20:20:50] [b98453cac15ba1066b407e146608df68]
- RMP     [ARIMA Forecasting] [] [2013-11-22 17:46:21] [0307e7a6407eb638caabc417e3a6b260]
- RMPD        [ARIMA Forecasting] [] [2014-12-17 16:00:58] [6fc1b517ba5ef695988bbc0a377c4b82] [Current]
- R P           [ARIMA Forecasting] [] [2014-12-17 18:55:33] [bcf5edf18529a33bd1494456d2c6cb9a]
Feedback Forum

Post a new message
Dataseries X:
12.90
7.40
12.20
12.80
7.40
6.70
12.60
14.80
13.30
11.10
8.20
11.40
6.40
10.60
12.00
6.30
11.30
11.90
9.30
9.60
10.00
6.40
13.80
10.80
13.80
11.70
10.90
16.10
13.40
9.90
11.50
8.30
11.70
6.10
9.00
9.70
10.80
10.30
10.40
12.70
9.30
11.80
5.90
11.40
13.00
10.80
12.30
11.30
11.80
7.90
12.70
12.30
11.60
6.70
10.90
12.10
13.30
10.10
5.70
14.30
8.00
13.30
9.30
12.50
7.60
15.90
9.20
9.10
11.10
13.00
14.50
12.20
12.30
11.40
8.80
14.60
7.30
12.60
13.00
12.60
13.20
9.90
7.70
10.50
13.40
10.90
4.30
10.30
11.80
11.20
11.40
8.60
13.20
12.60
5.60
9.90
8.80
7.70
9.00
7.30
11.40
13.60
7.90
10.70
10.30
8.30
9.60
14.20
8.50
13.50
4.90
6.40
9.60
11.60
11.10
4.35
12.70
18.10
17.85
16.60
12.60
17.10
19.10
16.10
13.35
18.40
14.70
10.60
12.60
16.20
13.60
18.90
14.10
14.50
16.15
14.75
14.80
12.45
12.65
17.35
8.60
18.40
16.10
11.60
17.75
15.25
17.65
15.60
16.35
17.65
13.60
11.70
14.35
14.75
18.25
9.90
16.00
18.25
16.85
14.60
13.85
18.95
15.60
14.85
11.75
18.45
15.90
17.10
16.10
19.90
10.95
18.45
15.10
15.00
11.35
15.95
18.10
14.60
15.40
15.40
17.60
13.35
19.10
15.35
7.60
13.40
13.90
19.10
15.25
12.90
16.10
17.35
13.15
12.15
12.60
10.35
15.40
9.60
18.20
13.60
14.85
14.75
14.10
14.90
16.25
19.25
13.60
13.60
15.65
12.75
14.60
9.85
12.65
11.90
19.20
16.60
11.20
15.25
11.90
13.20
16.35
12.40
15.85
14.35
18.15
11.15
15.65
17.75
7.65
12.35
15.60
19.30
15.20
17.10
15.60
18.40
19.05
18.55
19.10
13.10
12.85
9.50
4.50
11.85
13.60
11.70
12.40
13.35
11.40
14.90
19.90
17.75
11.20
14.60
17.60
14.05
16.10
13.35
11.85
11.95
14.75
15.15
13.20
16.85
7.85
7.70
12.60
7.85
10.95
12.35
9.95
14.90
16.65
13.40
13.95
15.70
16.85
10.95
15.35
12.20
15.10
17.75
15.20
14.60
16.65
8.10




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gertrude Mary Cox' @ cox.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 & 3 seconds \tabularnewline
R Server & 'Gertrude Mary Cox' @ cox.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270470&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]3 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gertrude Mary Cox' @ cox.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270470&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270470&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 time3 seconds
R Server'Gertrude Mary Cox' @ cox.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[274])
26215.15-------
26313.2-------
26416.85-------
2657.85-------
2667.7-------
26712.6-------
2687.85-------
26910.95-------
27012.35-------
2719.95-------
27214.9-------
27316.65-------
27413.4-------
27513.9513.25.20721.1930.4270.48040.50.4804
27615.716.858.85724.8430.3890.76150.50.8012
27716.857.85-0.14315.8430.01370.02710.50.0868
27810.957.7-0.29315.6930.21270.01240.50.0811
27915.3512.64.60720.5930.250.65710.50.4222
28012.27.85-0.14315.8430.14310.03290.50.0868
28115.110.952.95718.9430.15440.37960.50.274
28217.7512.354.35720.3430.09270.250.50.3984
28315.29.951.95717.9430.0990.02790.50.1988
28414.614.96.90722.8930.47070.47070.50.6435
28516.6516.658.65724.6430.50.69240.50.7873
2868.113.45.40721.3930.09690.21270.50.5

\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[274]) \tabularnewline
262 & 15.15 & - & - & - & - & - & - & - \tabularnewline
263 & 13.2 & - & - & - & - & - & - & - \tabularnewline
264 & 16.85 & - & - & - & - & - & - & - \tabularnewline
265 & 7.85 & - & - & - & - & - & - & - \tabularnewline
266 & 7.7 & - & - & - & - & - & - & - \tabularnewline
267 & 12.6 & - & - & - & - & - & - & - \tabularnewline
268 & 7.85 & - & - & - & - & - & - & - \tabularnewline
269 & 10.95 & - & - & - & - & - & - & - \tabularnewline
270 & 12.35 & - & - & - & - & - & - & - \tabularnewline
271 & 9.95 & - & - & - & - & - & - & - \tabularnewline
272 & 14.9 & - & - & - & - & - & - & - \tabularnewline
273 & 16.65 & - & - & - & - & - & - & - \tabularnewline
274 & 13.4 & - & - & - & - & - & - & - \tabularnewline
275 & 13.95 & 13.2 & 5.207 & 21.193 & 0.427 & 0.4804 & 0.5 & 0.4804 \tabularnewline
276 & 15.7 & 16.85 & 8.857 & 24.843 & 0.389 & 0.7615 & 0.5 & 0.8012 \tabularnewline
277 & 16.85 & 7.85 & -0.143 & 15.843 & 0.0137 & 0.0271 & 0.5 & 0.0868 \tabularnewline
278 & 10.95 & 7.7 & -0.293 & 15.693 & 0.2127 & 0.0124 & 0.5 & 0.0811 \tabularnewline
279 & 15.35 & 12.6 & 4.607 & 20.593 & 0.25 & 0.6571 & 0.5 & 0.4222 \tabularnewline
280 & 12.2 & 7.85 & -0.143 & 15.843 & 0.1431 & 0.0329 & 0.5 & 0.0868 \tabularnewline
281 & 15.1 & 10.95 & 2.957 & 18.943 & 0.1544 & 0.3796 & 0.5 & 0.274 \tabularnewline
282 & 17.75 & 12.35 & 4.357 & 20.343 & 0.0927 & 0.25 & 0.5 & 0.3984 \tabularnewline
283 & 15.2 & 9.95 & 1.957 & 17.943 & 0.099 & 0.0279 & 0.5 & 0.1988 \tabularnewline
284 & 14.6 & 14.9 & 6.907 & 22.893 & 0.4707 & 0.4707 & 0.5 & 0.6435 \tabularnewline
285 & 16.65 & 16.65 & 8.657 & 24.643 & 0.5 & 0.6924 & 0.5 & 0.7873 \tabularnewline
286 & 8.1 & 13.4 & 5.407 & 21.393 & 0.0969 & 0.2127 & 0.5 & 0.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270470&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[274])[/C][/ROW]
[ROW][C]262[/C][C]15.15[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]263[/C][C]13.2[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]264[/C][C]16.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]265[/C][C]7.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]266[/C][C]7.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]267[/C][C]12.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]268[/C][C]7.85[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]269[/C][C]10.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]270[/C][C]12.35[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]271[/C][C]9.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]272[/C][C]14.9[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]273[/C][C]16.65[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]274[/C][C]13.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]275[/C][C]13.95[/C][C]13.2[/C][C]5.207[/C][C]21.193[/C][C]0.427[/C][C]0.4804[/C][C]0.5[/C][C]0.4804[/C][/ROW]
[ROW][C]276[/C][C]15.7[/C][C]16.85[/C][C]8.857[/C][C]24.843[/C][C]0.389[/C][C]0.7615[/C][C]0.5[/C][C]0.8012[/C][/ROW]
[ROW][C]277[/C][C]16.85[/C][C]7.85[/C][C]-0.143[/C][C]15.843[/C][C]0.0137[/C][C]0.0271[/C][C]0.5[/C][C]0.0868[/C][/ROW]
[ROW][C]278[/C][C]10.95[/C][C]7.7[/C][C]-0.293[/C][C]15.693[/C][C]0.2127[/C][C]0.0124[/C][C]0.5[/C][C]0.0811[/C][/ROW]
[ROW][C]279[/C][C]15.35[/C][C]12.6[/C][C]4.607[/C][C]20.593[/C][C]0.25[/C][C]0.6571[/C][C]0.5[/C][C]0.4222[/C][/ROW]
[ROW][C]280[/C][C]12.2[/C][C]7.85[/C][C]-0.143[/C][C]15.843[/C][C]0.1431[/C][C]0.0329[/C][C]0.5[/C][C]0.0868[/C][/ROW]
[ROW][C]281[/C][C]15.1[/C][C]10.95[/C][C]2.957[/C][C]18.943[/C][C]0.1544[/C][C]0.3796[/C][C]0.5[/C][C]0.274[/C][/ROW]
[ROW][C]282[/C][C]17.75[/C][C]12.35[/C][C]4.357[/C][C]20.343[/C][C]0.0927[/C][C]0.25[/C][C]0.5[/C][C]0.3984[/C][/ROW]
[ROW][C]283[/C][C]15.2[/C][C]9.95[/C][C]1.957[/C][C]17.943[/C][C]0.099[/C][C]0.0279[/C][C]0.5[/C][C]0.1988[/C][/ROW]
[ROW][C]284[/C][C]14.6[/C][C]14.9[/C][C]6.907[/C][C]22.893[/C][C]0.4707[/C][C]0.4707[/C][C]0.5[/C][C]0.6435[/C][/ROW]
[ROW][C]285[/C][C]16.65[/C][C]16.65[/C][C]8.657[/C][C]24.643[/C][C]0.5[/C][C]0.6924[/C][C]0.5[/C][C]0.7873[/C][/ROW]
[ROW][C]286[/C][C]8.1[/C][C]13.4[/C][C]5.407[/C][C]21.393[/C][C]0.0969[/C][C]0.2127[/C][C]0.5[/C][C]0.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270470&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270470&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[274])
26215.15-------
26313.2-------
26416.85-------
2657.85-------
2667.7-------
26712.6-------
2687.85-------
26910.95-------
27012.35-------
2719.95-------
27214.9-------
27316.65-------
27413.4-------
27513.9513.25.20721.1930.4270.48040.50.4804
27615.716.858.85724.8430.3890.76150.50.8012
27716.857.85-0.14315.8430.01370.02710.50.0868
27810.957.7-0.29315.6930.21270.01240.50.0811
27915.3512.64.60720.5930.250.65710.50.4222
28012.27.85-0.14315.8430.14310.03290.50.0868
28115.110.952.95718.9430.15440.37960.50.274
28217.7512.354.35720.3430.09270.250.50.3984
28315.29.951.95717.9430.0990.02790.50.1988
28414.614.96.90722.8930.47070.47070.50.6435
28516.6516.658.65724.6430.50.69240.50.7873
2868.113.45.40721.3930.09690.21270.50.5







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPEsMAPESq.EMSERMSEScaledEMASE
2750.30890.05380.05380.05520.5625000.23140.2314
2760.242-0.07320.06350.0631.32250.94250.9708-0.35480.2931
2770.51950.53410.22040.28498127.62835.25632.7771.1211
2780.52960.29680.23950.300810.562523.36194.83341.00281.0915
2790.32370.17920.22740.287.562520.2024.49470.84851.0429
2800.51950.35660.24890.305618.922519.98884.47091.34221.0928
2810.37240.27480.25260.307517.222519.59364.42651.28051.1196
2820.33020.30420.25910.313929.1620.78944.55951.66621.1879
2830.40990.34540.26870.325427.562521.54194.64131.61991.2359
2840.2737-0.02050.24390.29490.0919.39684.4042-0.09261.1216
2850.244900.22170.2681017.63344.199201.0196
2860.3043-0.65430.25770.286828.0918.50484.3017-1.63531.0709

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & sMAPE & Sq.E & MSE & RMSE & ScaledE & MASE \tabularnewline
275 & 0.3089 & 0.0538 & 0.0538 & 0.0552 & 0.5625 & 0 & 0 & 0.2314 & 0.2314 \tabularnewline
276 & 0.242 & -0.0732 & 0.0635 & 0.063 & 1.3225 & 0.9425 & 0.9708 & -0.3548 & 0.2931 \tabularnewline
277 & 0.5195 & 0.5341 & 0.2204 & 0.2849 & 81 & 27.6283 & 5.2563 & 2.777 & 1.1211 \tabularnewline
278 & 0.5296 & 0.2968 & 0.2395 & 0.3008 & 10.5625 & 23.3619 & 4.8334 & 1.0028 & 1.0915 \tabularnewline
279 & 0.3237 & 0.1792 & 0.2274 & 0.28 & 7.5625 & 20.202 & 4.4947 & 0.8485 & 1.0429 \tabularnewline
280 & 0.5195 & 0.3566 & 0.2489 & 0.3056 & 18.9225 & 19.9888 & 4.4709 & 1.3422 & 1.0928 \tabularnewline
281 & 0.3724 & 0.2748 & 0.2526 & 0.3075 & 17.2225 & 19.5936 & 4.4265 & 1.2805 & 1.1196 \tabularnewline
282 & 0.3302 & 0.3042 & 0.2591 & 0.3139 & 29.16 & 20.7894 & 4.5595 & 1.6662 & 1.1879 \tabularnewline
283 & 0.4099 & 0.3454 & 0.2687 & 0.3254 & 27.5625 & 21.5419 & 4.6413 & 1.6199 & 1.2359 \tabularnewline
284 & 0.2737 & -0.0205 & 0.2439 & 0.2949 & 0.09 & 19.3968 & 4.4042 & -0.0926 & 1.1216 \tabularnewline
285 & 0.2449 & 0 & 0.2217 & 0.2681 & 0 & 17.6334 & 4.1992 & 0 & 1.0196 \tabularnewline
286 & 0.3043 & -0.6543 & 0.2577 & 0.2868 & 28.09 & 18.5048 & 4.3017 & -1.6353 & 1.0709 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=270470&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]275[/C][C]0.3089[/C][C]0.0538[/C][C]0.0538[/C][C]0.0552[/C][C]0.5625[/C][C]0[/C][C]0[/C][C]0.2314[/C][C]0.2314[/C][/ROW]
[ROW][C]276[/C][C]0.242[/C][C]-0.0732[/C][C]0.0635[/C][C]0.063[/C][C]1.3225[/C][C]0.9425[/C][C]0.9708[/C][C]-0.3548[/C][C]0.2931[/C][/ROW]
[ROW][C]277[/C][C]0.5195[/C][C]0.5341[/C][C]0.2204[/C][C]0.2849[/C][C]81[/C][C]27.6283[/C][C]5.2563[/C][C]2.777[/C][C]1.1211[/C][/ROW]
[ROW][C]278[/C][C]0.5296[/C][C]0.2968[/C][C]0.2395[/C][C]0.3008[/C][C]10.5625[/C][C]23.3619[/C][C]4.8334[/C][C]1.0028[/C][C]1.0915[/C][/ROW]
[ROW][C]279[/C][C]0.3237[/C][C]0.1792[/C][C]0.2274[/C][C]0.28[/C][C]7.5625[/C][C]20.202[/C][C]4.4947[/C][C]0.8485[/C][C]1.0429[/C][/ROW]
[ROW][C]280[/C][C]0.5195[/C][C]0.3566[/C][C]0.2489[/C][C]0.3056[/C][C]18.9225[/C][C]19.9888[/C][C]4.4709[/C][C]1.3422[/C][C]1.0928[/C][/ROW]
[ROW][C]281[/C][C]0.3724[/C][C]0.2748[/C][C]0.2526[/C][C]0.3075[/C][C]17.2225[/C][C]19.5936[/C][C]4.4265[/C][C]1.2805[/C][C]1.1196[/C][/ROW]
[ROW][C]282[/C][C]0.3302[/C][C]0.3042[/C][C]0.2591[/C][C]0.3139[/C][C]29.16[/C][C]20.7894[/C][C]4.5595[/C][C]1.6662[/C][C]1.1879[/C][/ROW]
[ROW][C]283[/C][C]0.4099[/C][C]0.3454[/C][C]0.2687[/C][C]0.3254[/C][C]27.5625[/C][C]21.5419[/C][C]4.6413[/C][C]1.6199[/C][C]1.2359[/C][/ROW]
[ROW][C]284[/C][C]0.2737[/C][C]-0.0205[/C][C]0.2439[/C][C]0.2949[/C][C]0.09[/C][C]19.3968[/C][C]4.4042[/C][C]-0.0926[/C][C]1.1216[/C][/ROW]
[ROW][C]285[/C][C]0.2449[/C][C]0[/C][C]0.2217[/C][C]0.2681[/C][C]0[/C][C]17.6334[/C][C]4.1992[/C][C]0[/C][C]1.0196[/C][/ROW]
[ROW][C]286[/C][C]0.3043[/C][C]-0.6543[/C][C]0.2577[/C][C]0.2868[/C][C]28.09[/C][C]18.5048[/C][C]4.3017[/C][C]-1.6353[/C][C]1.0709[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=270470&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=270470&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
2750.30890.05380.05380.05520.5625000.23140.2314
2760.242-0.07320.06350.0631.32250.94250.9708-0.35480.2931
2770.51950.53410.22040.28498127.62835.25632.7771.1211
2780.52960.29680.23950.300810.562523.36194.83341.00281.0915
2790.32370.17920.22740.287.562520.2024.49470.84851.0429
2800.51950.35660.24890.305618.922519.98884.47091.34221.0928
2810.37240.27480.25260.307517.222519.59364.42651.28051.1196
2820.33020.30420.25910.313929.1620.78944.55951.66621.1879
2830.40990.34540.26870.325427.562521.54194.64131.61991.2359
2840.2737-0.02050.24390.29490.0919.39684.4042-0.09261.1216
2850.244900.22170.2681017.63344.199201.0196
2860.3043-0.65430.25770.286828.0918.50484.3017-1.63531.0709



Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ;
Parameters (R input):
par1 = 12 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = 0 ; 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,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')