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 computationSun, 20 Dec 2009 07:44:42 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t1261320358o92ix2z2w0mpjss.htm/, Retrieved Sat, 27 Apr 2024 05:40:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69902, Retrieved Sat, 27 Apr 2024 05:40:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact105
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [Arima forecasting A] [2009-12-20 14:44:42] [e458b4e05bf28a297f8af8d9f96e59d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
210
220
212
191
180
195
136
196
182
166
147
125
164
170
171
140
155
156
141
167
171
206
187
124
163
154
226
125
162
145
98
128
159
209
150
125
214
193
140
205
192
192
186
150
246
282
264
336
301
376
416
344
326
351
249
258
311
343
278




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

\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 & 1 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69902&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]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69902&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69902&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 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[42])
30145-------
3198-------
32128-------
33159-------
34209-------
35150-------
36125-------
37214-------
38193-------
39140-------
40205-------
41192-------
42192-------
43186165.4407106.3917224.48980.24750.1890.98740.189
44150180.6192119.8901241.34830.16150.43110.95530.3567
45246189.9438128.3086251.5790.03730.8980.83740.4739
46282201.4215137.127265.71590.0070.08710.40860.613
47264185.3152116.7701253.86040.01220.00280.84370.4242
48336179.7216108.4486250.994700.01020.93380.3678
49301202.2796128.7721275.78710.00422e-040.37730.608
50376196.9036120.9316272.875600.00360.54010.5503
51416183.53104.9824262.0776000.86130.4163
52344199.7595118.8318280.68732e-0400.44950.5745
53326196.5933113.4185279.7680.00113e-040.54310.5431
54351196.5767111.18281.97332e-040.00150.54180.5418
55249189.942497.9673281.91740.10413e-040.53350.4825
56258193.723898.9298288.51770.09190.12650.8170.5142
57311196.053698.7422293.3650.01030.10610.15720.5325
58343198.907698.6943299.12090.00240.01420.05210.5537
59278194.896891.5349298.25880.05750.00250.0950.5219

\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[42]) \tabularnewline
30 & 145 & - & - & - & - & - & - & - \tabularnewline
31 & 98 & - & - & - & - & - & - & - \tabularnewline
32 & 128 & - & - & - & - & - & - & - \tabularnewline
33 & 159 & - & - & - & - & - & - & - \tabularnewline
34 & 209 & - & - & - & - & - & - & - \tabularnewline
35 & 150 & - & - & - & - & - & - & - \tabularnewline
36 & 125 & - & - & - & - & - & - & - \tabularnewline
37 & 214 & - & - & - & - & - & - & - \tabularnewline
38 & 193 & - & - & - & - & - & - & - \tabularnewline
39 & 140 & - & - & - & - & - & - & - \tabularnewline
40 & 205 & - & - & - & - & - & - & - \tabularnewline
41 & 192 & - & - & - & - & - & - & - \tabularnewline
42 & 192 & - & - & - & - & - & - & - \tabularnewline
43 & 186 & 165.4407 & 106.3917 & 224.4898 & 0.2475 & 0.189 & 0.9874 & 0.189 \tabularnewline
44 & 150 & 180.6192 & 119.8901 & 241.3483 & 0.1615 & 0.4311 & 0.9553 & 0.3567 \tabularnewline
45 & 246 & 189.9438 & 128.3086 & 251.579 & 0.0373 & 0.898 & 0.8374 & 0.4739 \tabularnewline
46 & 282 & 201.4215 & 137.127 & 265.7159 & 0.007 & 0.0871 & 0.4086 & 0.613 \tabularnewline
47 & 264 & 185.3152 & 116.7701 & 253.8604 & 0.0122 & 0.0028 & 0.8437 & 0.4242 \tabularnewline
48 & 336 & 179.7216 & 108.4486 & 250.9947 & 0 & 0.0102 & 0.9338 & 0.3678 \tabularnewline
49 & 301 & 202.2796 & 128.7721 & 275.7871 & 0.0042 & 2e-04 & 0.3773 & 0.608 \tabularnewline
50 & 376 & 196.9036 & 120.9316 & 272.8756 & 0 & 0.0036 & 0.5401 & 0.5503 \tabularnewline
51 & 416 & 183.53 & 104.9824 & 262.0776 & 0 & 0 & 0.8613 & 0.4163 \tabularnewline
52 & 344 & 199.7595 & 118.8318 & 280.6873 & 2e-04 & 0 & 0.4495 & 0.5745 \tabularnewline
53 & 326 & 196.5933 & 113.4185 & 279.768 & 0.0011 & 3e-04 & 0.5431 & 0.5431 \tabularnewline
54 & 351 & 196.5767 & 111.18 & 281.9733 & 2e-04 & 0.0015 & 0.5418 & 0.5418 \tabularnewline
55 & 249 & 189.9424 & 97.9673 & 281.9174 & 0.1041 & 3e-04 & 0.5335 & 0.4825 \tabularnewline
56 & 258 & 193.7238 & 98.9298 & 288.5177 & 0.0919 & 0.1265 & 0.817 & 0.5142 \tabularnewline
57 & 311 & 196.0536 & 98.7422 & 293.365 & 0.0103 & 0.1061 & 0.1572 & 0.5325 \tabularnewline
58 & 343 & 198.9076 & 98.6943 & 299.1209 & 0.0024 & 0.0142 & 0.0521 & 0.5537 \tabularnewline
59 & 278 & 194.8968 & 91.5349 & 298.2588 & 0.0575 & 0.0025 & 0.095 & 0.5219 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69902&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[42])[/C][/ROW]
[ROW][C]30[/C][C]145[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]31[/C][C]98[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]32[/C][C]128[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]33[/C][C]159[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]34[/C][C]209[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]35[/C][C]150[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]36[/C][C]125[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]37[/C][C]214[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]38[/C][C]193[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]39[/C][C]140[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]40[/C][C]205[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]192[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]192[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]186[/C][C]165.4407[/C][C]106.3917[/C][C]224.4898[/C][C]0.2475[/C][C]0.189[/C][C]0.9874[/C][C]0.189[/C][/ROW]
[ROW][C]44[/C][C]150[/C][C]180.6192[/C][C]119.8901[/C][C]241.3483[/C][C]0.1615[/C][C]0.4311[/C][C]0.9553[/C][C]0.3567[/C][/ROW]
[ROW][C]45[/C][C]246[/C][C]189.9438[/C][C]128.3086[/C][C]251.579[/C][C]0.0373[/C][C]0.898[/C][C]0.8374[/C][C]0.4739[/C][/ROW]
[ROW][C]46[/C][C]282[/C][C]201.4215[/C][C]137.127[/C][C]265.7159[/C][C]0.007[/C][C]0.0871[/C][C]0.4086[/C][C]0.613[/C][/ROW]
[ROW][C]47[/C][C]264[/C][C]185.3152[/C][C]116.7701[/C][C]253.8604[/C][C]0.0122[/C][C]0.0028[/C][C]0.8437[/C][C]0.4242[/C][/ROW]
[ROW][C]48[/C][C]336[/C][C]179.7216[/C][C]108.4486[/C][C]250.9947[/C][C]0[/C][C]0.0102[/C][C]0.9338[/C][C]0.3678[/C][/ROW]
[ROW][C]49[/C][C]301[/C][C]202.2796[/C][C]128.7721[/C][C]275.7871[/C][C]0.0042[/C][C]2e-04[/C][C]0.3773[/C][C]0.608[/C][/ROW]
[ROW][C]50[/C][C]376[/C][C]196.9036[/C][C]120.9316[/C][C]272.8756[/C][C]0[/C][C]0.0036[/C][C]0.5401[/C][C]0.5503[/C][/ROW]
[ROW][C]51[/C][C]416[/C][C]183.53[/C][C]104.9824[/C][C]262.0776[/C][C]0[/C][C]0[/C][C]0.8613[/C][C]0.4163[/C][/ROW]
[ROW][C]52[/C][C]344[/C][C]199.7595[/C][C]118.8318[/C][C]280.6873[/C][C]2e-04[/C][C]0[/C][C]0.4495[/C][C]0.5745[/C][/ROW]
[ROW][C]53[/C][C]326[/C][C]196.5933[/C][C]113.4185[/C][C]279.768[/C][C]0.0011[/C][C]3e-04[/C][C]0.5431[/C][C]0.5431[/C][/ROW]
[ROW][C]54[/C][C]351[/C][C]196.5767[/C][C]111.18[/C][C]281.9733[/C][C]2e-04[/C][C]0.0015[/C][C]0.5418[/C][C]0.5418[/C][/ROW]
[ROW][C]55[/C][C]249[/C][C]189.9424[/C][C]97.9673[/C][C]281.9174[/C][C]0.1041[/C][C]3e-04[/C][C]0.5335[/C][C]0.4825[/C][/ROW]
[ROW][C]56[/C][C]258[/C][C]193.7238[/C][C]98.9298[/C][C]288.5177[/C][C]0.0919[/C][C]0.1265[/C][C]0.817[/C][C]0.5142[/C][/ROW]
[ROW][C]57[/C][C]311[/C][C]196.0536[/C][C]98.7422[/C][C]293.365[/C][C]0.0103[/C][C]0.1061[/C][C]0.1572[/C][C]0.5325[/C][/ROW]
[ROW][C]58[/C][C]343[/C][C]198.9076[/C][C]98.6943[/C][C]299.1209[/C][C]0.0024[/C][C]0.0142[/C][C]0.0521[/C][C]0.5537[/C][/ROW]
[ROW][C]59[/C][C]278[/C][C]194.8968[/C][C]91.5349[/C][C]298.2588[/C][C]0.0575[/C][C]0.0025[/C][C]0.095[/C][C]0.5219[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69902&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69902&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[42])
30145-------
3198-------
32128-------
33159-------
34209-------
35150-------
36125-------
37214-------
38193-------
39140-------
40205-------
41192-------
42192-------
43186165.4407106.3917224.48980.24750.1890.98740.189
44150180.6192119.8901241.34830.16150.43110.95530.3567
45246189.9438128.3086251.5790.03730.8980.83740.4739
46282201.4215137.127265.71590.0070.08710.40860.613
47264185.3152116.7701253.86040.01220.00280.84370.4242
48336179.7216108.4486250.994700.01020.93380.3678
49301202.2796128.7721275.78710.00422e-040.37730.608
50376196.9036120.9316272.875600.00360.54010.5503
51416183.53104.9824262.0776000.86130.4163
52344199.7595118.8318280.68732e-0400.44950.5745
53326196.5933113.4185279.7680.00113e-040.54310.5431
54351196.5767111.18281.97332e-040.00150.54180.5418
55249189.942497.9673281.91740.10413e-040.53350.4825
56258193.723898.9298288.51770.09190.12650.8170.5142
57311196.053698.7422293.3650.01030.10610.15720.5325
58343198.907698.6943299.12090.00240.01420.05210.5537
59278194.896891.5349298.25880.05750.00250.0950.5219







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
430.18210.12430422.682900
440.1715-0.16950.1469937.5363680.109626.0789
450.16560.29510.19633142.29851500.839238.7407
460.16290.40.24726492.89762748.853852.4295
470.18870.42460.28276191.29333437.341758.6288
480.20230.86960.380524422.92576934.93983.2763
490.18540.4880.39599745.71757336.478885.6532
500.19690.90960.460132075.507610428.8574102.1218
510.21841.26670.549754042.296915274.7951123.5912
520.20670.72210.566920805.313815827.847125.8088
530.21590.65820.575216746.098915911.3244126.1401
540.22160.78560.592823846.560116572.5941128.7346
550.24710.31090.57113487.804915566.0718124.7641
560.24970.33180.5544131.43614749.3121121.4467
570.25320.58630.556213212.672714646.8695121.0243
580.25710.72440.566720762.61615029.1037122.5932
590.27060.42640.55846906.134114551.2819120.6287

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
43 & 0.1821 & 0.1243 & 0 & 422.6829 & 0 & 0 \tabularnewline
44 & 0.1715 & -0.1695 & 0.1469 & 937.5363 & 680.1096 & 26.0789 \tabularnewline
45 & 0.1656 & 0.2951 & 0.1963 & 3142.2985 & 1500.8392 & 38.7407 \tabularnewline
46 & 0.1629 & 0.4 & 0.2472 & 6492.8976 & 2748.8538 & 52.4295 \tabularnewline
47 & 0.1887 & 0.4246 & 0.2827 & 6191.2933 & 3437.3417 & 58.6288 \tabularnewline
48 & 0.2023 & 0.8696 & 0.3805 & 24422.9257 & 6934.939 & 83.2763 \tabularnewline
49 & 0.1854 & 0.488 & 0.3959 & 9745.7175 & 7336.4788 & 85.6532 \tabularnewline
50 & 0.1969 & 0.9096 & 0.4601 & 32075.5076 & 10428.8574 & 102.1218 \tabularnewline
51 & 0.2184 & 1.2667 & 0.5497 & 54042.2969 & 15274.7951 & 123.5912 \tabularnewline
52 & 0.2067 & 0.7221 & 0.5669 & 20805.3138 & 15827.847 & 125.8088 \tabularnewline
53 & 0.2159 & 0.6582 & 0.5752 & 16746.0989 & 15911.3244 & 126.1401 \tabularnewline
54 & 0.2216 & 0.7856 & 0.5928 & 23846.5601 & 16572.5941 & 128.7346 \tabularnewline
55 & 0.2471 & 0.3109 & 0.5711 & 3487.8049 & 15566.0718 & 124.7641 \tabularnewline
56 & 0.2497 & 0.3318 & 0.554 & 4131.436 & 14749.3121 & 121.4467 \tabularnewline
57 & 0.2532 & 0.5863 & 0.5562 & 13212.6727 & 14646.8695 & 121.0243 \tabularnewline
58 & 0.2571 & 0.7244 & 0.5667 & 20762.616 & 15029.1037 & 122.5932 \tabularnewline
59 & 0.2706 & 0.4264 & 0.5584 & 6906.1341 & 14551.2819 & 120.6287 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69902&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]Sq.E[/C][C]MSE[/C][C]RMSE[/C][/ROW]
[ROW][C]43[/C][C]0.1821[/C][C]0.1243[/C][C]0[/C][C]422.6829[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]44[/C][C]0.1715[/C][C]-0.1695[/C][C]0.1469[/C][C]937.5363[/C][C]680.1096[/C][C]26.0789[/C][/ROW]
[ROW][C]45[/C][C]0.1656[/C][C]0.2951[/C][C]0.1963[/C][C]3142.2985[/C][C]1500.8392[/C][C]38.7407[/C][/ROW]
[ROW][C]46[/C][C]0.1629[/C][C]0.4[/C][C]0.2472[/C][C]6492.8976[/C][C]2748.8538[/C][C]52.4295[/C][/ROW]
[ROW][C]47[/C][C]0.1887[/C][C]0.4246[/C][C]0.2827[/C][C]6191.2933[/C][C]3437.3417[/C][C]58.6288[/C][/ROW]
[ROW][C]48[/C][C]0.2023[/C][C]0.8696[/C][C]0.3805[/C][C]24422.9257[/C][C]6934.939[/C][C]83.2763[/C][/ROW]
[ROW][C]49[/C][C]0.1854[/C][C]0.488[/C][C]0.3959[/C][C]9745.7175[/C][C]7336.4788[/C][C]85.6532[/C][/ROW]
[ROW][C]50[/C][C]0.1969[/C][C]0.9096[/C][C]0.4601[/C][C]32075.5076[/C][C]10428.8574[/C][C]102.1218[/C][/ROW]
[ROW][C]51[/C][C]0.2184[/C][C]1.2667[/C][C]0.5497[/C][C]54042.2969[/C][C]15274.7951[/C][C]123.5912[/C][/ROW]
[ROW][C]52[/C][C]0.2067[/C][C]0.7221[/C][C]0.5669[/C][C]20805.3138[/C][C]15827.847[/C][C]125.8088[/C][/ROW]
[ROW][C]53[/C][C]0.2159[/C][C]0.6582[/C][C]0.5752[/C][C]16746.0989[/C][C]15911.3244[/C][C]126.1401[/C][/ROW]
[ROW][C]54[/C][C]0.2216[/C][C]0.7856[/C][C]0.5928[/C][C]23846.5601[/C][C]16572.5941[/C][C]128.7346[/C][/ROW]
[ROW][C]55[/C][C]0.2471[/C][C]0.3109[/C][C]0.5711[/C][C]3487.8049[/C][C]15566.0718[/C][C]124.7641[/C][/ROW]
[ROW][C]56[/C][C]0.2497[/C][C]0.3318[/C][C]0.554[/C][C]4131.436[/C][C]14749.3121[/C][C]121.4467[/C][/ROW]
[ROW][C]57[/C][C]0.2532[/C][C]0.5863[/C][C]0.5562[/C][C]13212.6727[/C][C]14646.8695[/C][C]121.0243[/C][/ROW]
[ROW][C]58[/C][C]0.2571[/C][C]0.7244[/C][C]0.5667[/C][C]20762.616[/C][C]15029.1037[/C][C]122.5932[/C][/ROW]
[ROW][C]59[/C][C]0.2706[/C][C]0.4264[/C][C]0.5584[/C][C]6906.1341[/C][C]14551.2819[/C][C]120.6287[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69902&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69902&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.PEMAPESq.EMSERMSE
430.18210.12430422.682900
440.1715-0.16950.1469937.5363680.109626.0789
450.16560.29510.19633142.29851500.839238.7407
460.16290.40.24726492.89762748.853852.4295
470.18870.42460.28276191.29333437.341758.6288
480.20230.86960.380524422.92576934.93983.2763
490.18540.4880.39599745.71757336.478885.6532
500.19690.90960.460132075.507610428.8574102.1218
510.21841.26670.549754042.296915274.7951123.5912
520.20670.72210.566920805.313815827.847125.8088
530.21590.65820.575216746.098915911.3244126.1401
540.22160.78560.592823846.560116572.5941128.7346
550.24710.31090.57113487.804915566.0718124.7641
560.24970.33180.5544131.43614749.3121121.4467
570.25320.58630.556213212.672714646.8695121.0243
580.25710.72440.566720762.61615029.1037122.5932
590.27060.42640.55846906.134114551.2819120.6287



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