Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_arimaforecasting.wasp
Title produced by softwareARIMA Forecasting
Date of computationSun, 16 Dec 2007 15:13:01 -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/2007/Dec/16/t119784225752yx4csvduqi95q.htm/, Retrieved Thu, 02 May 2024 13:01:03 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=4275, Retrieved Thu, 02 May 2024 13:01:03 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [paper] [2007-12-16 22:13:01] [3463f71ebce131edf0c83e066f45702c] [Current]
Feedback Forum

Post a new message
Dataseries X:
99,8
96,8
87,0
96,3
107,1
115,2
106,1
89,5
91,3
97,6
100,7
104,6
94,7
101,8
102,5
105,3
110,3
109,8
117,3
118,8
131,3
125,9
133,1
147,0
145,8
164,4
149,8
137,7
151,7
156,8
180,0
180,4
170,4
191,6
199,5
218,2
217,5
205,0
194,0
199,3
219,3
211,1
215,2
240,2
242,2
240,7
255,4
253,0
218,2
203,7
205,6
215,6
188,5
202,9
214,0
230,3
230,0
241,0
259,6
247,8
270,3




Summary of compuational 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 compuational 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=4275&T=0

[TABLE]
[ROW][C]Summary of compuational 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=4275&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4275&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 compuational 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[41])
40199.3-------
41219.3-------
42211.1222.6108192.9704256.8040.25470.57530.57530.5753
43215.2219.1569178.8711268.5160.43760.62550.62550.4977
44240.2213.0366167.5861270.81360.17840.47070.47070.4159
45242.2211.6024163.7544273.43130.1660.18230.18230.4036
46240.7213.0837162.6742279.11410.20620.19370.19370.4268
47255.4215.0124161.5713286.12960.13280.23950.23950.453
48253215.5098158.946292.20280.1690.1540.1540.4614
49218.2214.9426155.6472296.8270.46890.18120.18120.4585
50203.7214.3002152.6819300.78610.40510.46480.46480.4549
51205.6214.1457150.3845304.9410.42680.58920.58920.4557
52215.6214.35148.482309.43770.48970.57160.57160.4594
53188.5214.5655146.6336313.96870.30360.49190.49190.4628
54202.9214.6121144.7158318.26770.41240.68930.68930.4647
55214214.539142.7991322.32010.49610.58380.58380.4655
56230.3214.4666140.9804326.25750.39070.50330.50330.4662
57230214.4529139.2867330.18260.39620.39420.39420.4673
58241214.4789137.6854334.10350.33190.39960.39960.4685
59259.6214.5032136.1375337.9790.2370.3370.3370.4697
60247.8214.5071134.6278341.78150.30410.24370.24370.4706
61270.3214.4979133.1611345.51640.20190.30920.30920.4714

\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[41]) \tabularnewline
40 & 199.3 & - & - & - & - & - & - & - \tabularnewline
41 & 219.3 & - & - & - & - & - & - & - \tabularnewline
42 & 211.1 & 222.6108 & 192.9704 & 256.804 & 0.2547 & 0.5753 & 0.5753 & 0.5753 \tabularnewline
43 & 215.2 & 219.1569 & 178.8711 & 268.516 & 0.4376 & 0.6255 & 0.6255 & 0.4977 \tabularnewline
44 & 240.2 & 213.0366 & 167.5861 & 270.8136 & 0.1784 & 0.4707 & 0.4707 & 0.4159 \tabularnewline
45 & 242.2 & 211.6024 & 163.7544 & 273.4313 & 0.166 & 0.1823 & 0.1823 & 0.4036 \tabularnewline
46 & 240.7 & 213.0837 & 162.6742 & 279.1141 & 0.2062 & 0.1937 & 0.1937 & 0.4268 \tabularnewline
47 & 255.4 & 215.0124 & 161.5713 & 286.1296 & 0.1328 & 0.2395 & 0.2395 & 0.453 \tabularnewline
48 & 253 & 215.5098 & 158.946 & 292.2028 & 0.169 & 0.154 & 0.154 & 0.4614 \tabularnewline
49 & 218.2 & 214.9426 & 155.6472 & 296.827 & 0.4689 & 0.1812 & 0.1812 & 0.4585 \tabularnewline
50 & 203.7 & 214.3002 & 152.6819 & 300.7861 & 0.4051 & 0.4648 & 0.4648 & 0.4549 \tabularnewline
51 & 205.6 & 214.1457 & 150.3845 & 304.941 & 0.4268 & 0.5892 & 0.5892 & 0.4557 \tabularnewline
52 & 215.6 & 214.35 & 148.482 & 309.4377 & 0.4897 & 0.5716 & 0.5716 & 0.4594 \tabularnewline
53 & 188.5 & 214.5655 & 146.6336 & 313.9687 & 0.3036 & 0.4919 & 0.4919 & 0.4628 \tabularnewline
54 & 202.9 & 214.6121 & 144.7158 & 318.2677 & 0.4124 & 0.6893 & 0.6893 & 0.4647 \tabularnewline
55 & 214 & 214.539 & 142.7991 & 322.3201 & 0.4961 & 0.5838 & 0.5838 & 0.4655 \tabularnewline
56 & 230.3 & 214.4666 & 140.9804 & 326.2575 & 0.3907 & 0.5033 & 0.5033 & 0.4662 \tabularnewline
57 & 230 & 214.4529 & 139.2867 & 330.1826 & 0.3962 & 0.3942 & 0.3942 & 0.4673 \tabularnewline
58 & 241 & 214.4789 & 137.6854 & 334.1035 & 0.3319 & 0.3996 & 0.3996 & 0.4685 \tabularnewline
59 & 259.6 & 214.5032 & 136.1375 & 337.979 & 0.237 & 0.337 & 0.337 & 0.4697 \tabularnewline
60 & 247.8 & 214.5071 & 134.6278 & 341.7815 & 0.3041 & 0.2437 & 0.2437 & 0.4706 \tabularnewline
61 & 270.3 & 214.4979 & 133.1611 & 345.5164 & 0.2019 & 0.3092 & 0.3092 & 0.4714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4275&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[41])[/C][/ROW]
[ROW][C]40[/C][C]199.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]41[/C][C]219.3[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]211.1[/C][C]222.6108[/C][C]192.9704[/C][C]256.804[/C][C]0.2547[/C][C]0.5753[/C][C]0.5753[/C][C]0.5753[/C][/ROW]
[ROW][C]43[/C][C]215.2[/C][C]219.1569[/C][C]178.8711[/C][C]268.516[/C][C]0.4376[/C][C]0.6255[/C][C]0.6255[/C][C]0.4977[/C][/ROW]
[ROW][C]44[/C][C]240.2[/C][C]213.0366[/C][C]167.5861[/C][C]270.8136[/C][C]0.1784[/C][C]0.4707[/C][C]0.4707[/C][C]0.4159[/C][/ROW]
[ROW][C]45[/C][C]242.2[/C][C]211.6024[/C][C]163.7544[/C][C]273.4313[/C][C]0.166[/C][C]0.1823[/C][C]0.1823[/C][C]0.4036[/C][/ROW]
[ROW][C]46[/C][C]240.7[/C][C]213.0837[/C][C]162.6742[/C][C]279.1141[/C][C]0.2062[/C][C]0.1937[/C][C]0.1937[/C][C]0.4268[/C][/ROW]
[ROW][C]47[/C][C]255.4[/C][C]215.0124[/C][C]161.5713[/C][C]286.1296[/C][C]0.1328[/C][C]0.2395[/C][C]0.2395[/C][C]0.453[/C][/ROW]
[ROW][C]48[/C][C]253[/C][C]215.5098[/C][C]158.946[/C][C]292.2028[/C][C]0.169[/C][C]0.154[/C][C]0.154[/C][C]0.4614[/C][/ROW]
[ROW][C]49[/C][C]218.2[/C][C]214.9426[/C][C]155.6472[/C][C]296.827[/C][C]0.4689[/C][C]0.1812[/C][C]0.1812[/C][C]0.4585[/C][/ROW]
[ROW][C]50[/C][C]203.7[/C][C]214.3002[/C][C]152.6819[/C][C]300.7861[/C][C]0.4051[/C][C]0.4648[/C][C]0.4648[/C][C]0.4549[/C][/ROW]
[ROW][C]51[/C][C]205.6[/C][C]214.1457[/C][C]150.3845[/C][C]304.941[/C][C]0.4268[/C][C]0.5892[/C][C]0.5892[/C][C]0.4557[/C][/ROW]
[ROW][C]52[/C][C]215.6[/C][C]214.35[/C][C]148.482[/C][C]309.4377[/C][C]0.4897[/C][C]0.5716[/C][C]0.5716[/C][C]0.4594[/C][/ROW]
[ROW][C]53[/C][C]188.5[/C][C]214.5655[/C][C]146.6336[/C][C]313.9687[/C][C]0.3036[/C][C]0.4919[/C][C]0.4919[/C][C]0.4628[/C][/ROW]
[ROW][C]54[/C][C]202.9[/C][C]214.6121[/C][C]144.7158[/C][C]318.2677[/C][C]0.4124[/C][C]0.6893[/C][C]0.6893[/C][C]0.4647[/C][/ROW]
[ROW][C]55[/C][C]214[/C][C]214.539[/C][C]142.7991[/C][C]322.3201[/C][C]0.4961[/C][C]0.5838[/C][C]0.5838[/C][C]0.4655[/C][/ROW]
[ROW][C]56[/C][C]230.3[/C][C]214.4666[/C][C]140.9804[/C][C]326.2575[/C][C]0.3907[/C][C]0.5033[/C][C]0.5033[/C][C]0.4662[/C][/ROW]
[ROW][C]57[/C][C]230[/C][C]214.4529[/C][C]139.2867[/C][C]330.1826[/C][C]0.3962[/C][C]0.3942[/C][C]0.3942[/C][C]0.4673[/C][/ROW]
[ROW][C]58[/C][C]241[/C][C]214.4789[/C][C]137.6854[/C][C]334.1035[/C][C]0.3319[/C][C]0.3996[/C][C]0.3996[/C][C]0.4685[/C][/ROW]
[ROW][C]59[/C][C]259.6[/C][C]214.5032[/C][C]136.1375[/C][C]337.979[/C][C]0.237[/C][C]0.337[/C][C]0.337[/C][C]0.4697[/C][/ROW]
[ROW][C]60[/C][C]247.8[/C][C]214.5071[/C][C]134.6278[/C][C]341.7815[/C][C]0.3041[/C][C]0.2437[/C][C]0.2437[/C][C]0.4706[/C][/ROW]
[ROW][C]61[/C][C]270.3[/C][C]214.4979[/C][C]133.1611[/C][C]345.5164[/C][C]0.2019[/C][C]0.3092[/C][C]0.3092[/C][C]0.4714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4275&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4275&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[41])
40199.3-------
41219.3-------
42211.1222.6108192.9704256.8040.25470.57530.57530.5753
43215.2219.1569178.8711268.5160.43760.62550.62550.4977
44240.2213.0366167.5861270.81360.17840.47070.47070.4159
45242.2211.6024163.7544273.43130.1660.18230.18230.4036
46240.7213.0837162.6742279.11410.20620.19370.19370.4268
47255.4215.0124161.5713286.12960.13280.23950.23950.453
48253215.5098158.946292.20280.1690.1540.1540.4614
49218.2214.9426155.6472296.8270.46890.18120.18120.4585
50203.7214.3002152.6819300.78610.40510.46480.46480.4549
51205.6214.1457150.3845304.9410.42680.58920.58920.4557
52215.6214.35148.482309.43770.48970.57160.57160.4594
53188.5214.5655146.6336313.96870.30360.49190.49190.4628
54202.9214.6121144.7158318.26770.41240.68930.68930.4647
55214214.539142.7991322.32010.49610.58380.58380.4655
56230.3214.4666140.9804326.25750.39070.50330.50330.4662
57230214.4529139.2867330.18260.39620.39420.39420.4673
58241214.4789137.6854334.10350.33190.39960.39960.4685
59259.6214.5032136.1375337.9790.2370.3370.3370.4697
60247.8214.5071134.6278341.78150.30410.24370.24370.4706
61270.3214.4979133.1611345.51640.20190.30920.30920.4714







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
420.0784-0.05170.0026132.49936.6252.5739
430.1149-0.01819e-0415.65710.78290.8848
440.13840.12750.0064737.848436.89246.0739
450.14910.14460.0072936.214746.81076.8418
460.15810.12960.0065762.659438.1336.1752
470.16880.18780.00941631.1681.5589.0309
480.18160.1740.00871405.516570.27588.3831
490.19440.01528e-0410.6110.53050.7284
500.2059-0.04950.0025112.36525.61832.3703
510.2163-0.03990.00273.02963.65151.9109
520.22630.00583e-041.56250.07810.2795
530.2364-0.12150.0061679.411233.97065.8284
540.2464-0.05460.0027137.17396.85872.6189
550.2563-0.00251e-040.29060.01450.1205
560.26590.07380.0037250.696912.53483.5405
570.27530.07250.0036241.711912.08563.4764
580.28460.12370.0062703.370835.16855.9303
590.29370.21020.01052033.7235101.686210.084
600.30270.15520.00781108.418555.42097.4445
610.31160.26020.0133113.8746155.693712.4777

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
42 & 0.0784 & -0.0517 & 0.0026 & 132.4993 & 6.625 & 2.5739 \tabularnewline
43 & 0.1149 & -0.0181 & 9e-04 & 15.6571 & 0.7829 & 0.8848 \tabularnewline
44 & 0.1384 & 0.1275 & 0.0064 & 737.8484 & 36.8924 & 6.0739 \tabularnewline
45 & 0.1491 & 0.1446 & 0.0072 & 936.2147 & 46.8107 & 6.8418 \tabularnewline
46 & 0.1581 & 0.1296 & 0.0065 & 762.6594 & 38.133 & 6.1752 \tabularnewline
47 & 0.1688 & 0.1878 & 0.0094 & 1631.16 & 81.558 & 9.0309 \tabularnewline
48 & 0.1816 & 0.174 & 0.0087 & 1405.5165 & 70.2758 & 8.3831 \tabularnewline
49 & 0.1944 & 0.0152 & 8e-04 & 10.611 & 0.5305 & 0.7284 \tabularnewline
50 & 0.2059 & -0.0495 & 0.0025 & 112.3652 & 5.6183 & 2.3703 \tabularnewline
51 & 0.2163 & -0.0399 & 0.002 & 73.0296 & 3.6515 & 1.9109 \tabularnewline
52 & 0.2263 & 0.0058 & 3e-04 & 1.5625 & 0.0781 & 0.2795 \tabularnewline
53 & 0.2364 & -0.1215 & 0.0061 & 679.4112 & 33.9706 & 5.8284 \tabularnewline
54 & 0.2464 & -0.0546 & 0.0027 & 137.1739 & 6.8587 & 2.6189 \tabularnewline
55 & 0.2563 & -0.0025 & 1e-04 & 0.2906 & 0.0145 & 0.1205 \tabularnewline
56 & 0.2659 & 0.0738 & 0.0037 & 250.6969 & 12.5348 & 3.5405 \tabularnewline
57 & 0.2753 & 0.0725 & 0.0036 & 241.7119 & 12.0856 & 3.4764 \tabularnewline
58 & 0.2846 & 0.1237 & 0.0062 & 703.3708 & 35.1685 & 5.9303 \tabularnewline
59 & 0.2937 & 0.2102 & 0.0105 & 2033.7235 & 101.6862 & 10.084 \tabularnewline
60 & 0.3027 & 0.1552 & 0.0078 & 1108.4185 & 55.4209 & 7.4445 \tabularnewline
61 & 0.3116 & 0.2602 & 0.013 & 3113.8746 & 155.6937 & 12.4777 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=4275&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]42[/C][C]0.0784[/C][C]-0.0517[/C][C]0.0026[/C][C]132.4993[/C][C]6.625[/C][C]2.5739[/C][/ROW]
[ROW][C]43[/C][C]0.1149[/C][C]-0.0181[/C][C]9e-04[/C][C]15.6571[/C][C]0.7829[/C][C]0.8848[/C][/ROW]
[ROW][C]44[/C][C]0.1384[/C][C]0.1275[/C][C]0.0064[/C][C]737.8484[/C][C]36.8924[/C][C]6.0739[/C][/ROW]
[ROW][C]45[/C][C]0.1491[/C][C]0.1446[/C][C]0.0072[/C][C]936.2147[/C][C]46.8107[/C][C]6.8418[/C][/ROW]
[ROW][C]46[/C][C]0.1581[/C][C]0.1296[/C][C]0.0065[/C][C]762.6594[/C][C]38.133[/C][C]6.1752[/C][/ROW]
[ROW][C]47[/C][C]0.1688[/C][C]0.1878[/C][C]0.0094[/C][C]1631.16[/C][C]81.558[/C][C]9.0309[/C][/ROW]
[ROW][C]48[/C][C]0.1816[/C][C]0.174[/C][C]0.0087[/C][C]1405.5165[/C][C]70.2758[/C][C]8.3831[/C][/ROW]
[ROW][C]49[/C][C]0.1944[/C][C]0.0152[/C][C]8e-04[/C][C]10.611[/C][C]0.5305[/C][C]0.7284[/C][/ROW]
[ROW][C]50[/C][C]0.2059[/C][C]-0.0495[/C][C]0.0025[/C][C]112.3652[/C][C]5.6183[/C][C]2.3703[/C][/ROW]
[ROW][C]51[/C][C]0.2163[/C][C]-0.0399[/C][C]0.002[/C][C]73.0296[/C][C]3.6515[/C][C]1.9109[/C][/ROW]
[ROW][C]52[/C][C]0.2263[/C][C]0.0058[/C][C]3e-04[/C][C]1.5625[/C][C]0.0781[/C][C]0.2795[/C][/ROW]
[ROW][C]53[/C][C]0.2364[/C][C]-0.1215[/C][C]0.0061[/C][C]679.4112[/C][C]33.9706[/C][C]5.8284[/C][/ROW]
[ROW][C]54[/C][C]0.2464[/C][C]-0.0546[/C][C]0.0027[/C][C]137.1739[/C][C]6.8587[/C][C]2.6189[/C][/ROW]
[ROW][C]55[/C][C]0.2563[/C][C]-0.0025[/C][C]1e-04[/C][C]0.2906[/C][C]0.0145[/C][C]0.1205[/C][/ROW]
[ROW][C]56[/C][C]0.2659[/C][C]0.0738[/C][C]0.0037[/C][C]250.6969[/C][C]12.5348[/C][C]3.5405[/C][/ROW]
[ROW][C]57[/C][C]0.2753[/C][C]0.0725[/C][C]0.0036[/C][C]241.7119[/C][C]12.0856[/C][C]3.4764[/C][/ROW]
[ROW][C]58[/C][C]0.2846[/C][C]0.1237[/C][C]0.0062[/C][C]703.3708[/C][C]35.1685[/C][C]5.9303[/C][/ROW]
[ROW][C]59[/C][C]0.2937[/C][C]0.2102[/C][C]0.0105[/C][C]2033.7235[/C][C]101.6862[/C][C]10.084[/C][/ROW]
[ROW][C]60[/C][C]0.3027[/C][C]0.1552[/C][C]0.0078[/C][C]1108.4185[/C][C]55.4209[/C][C]7.4445[/C][/ROW]
[ROW][C]61[/C][C]0.3116[/C][C]0.2602[/C][C]0.013[/C][C]3113.8746[/C][C]155.6937[/C][C]12.4777[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=4275&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=4275&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
420.0784-0.05170.0026132.49936.6252.5739
430.1149-0.01819e-0415.65710.78290.8848
440.13840.12750.0064737.848436.89246.0739
450.14910.14460.0072936.214746.81076.8418
460.15810.12960.0065762.659438.1336.1752
470.16880.18780.00941631.1681.5589.0309
480.18160.1740.00871405.516570.27588.3831
490.19440.01528e-0410.6110.53050.7284
500.2059-0.04950.0025112.36525.61832.3703
510.2163-0.03990.00273.02963.65151.9109
520.22630.00583e-041.56250.07810.2795
530.2364-0.12150.0061679.411233.97065.8284
540.2464-0.05460.0027137.17396.85872.6189
550.2563-0.00251e-040.29060.01450.1205
560.26590.07380.0037250.696912.53483.5405
570.27530.07250.0036241.711912.08563.4764
580.28460.12370.0062703.370835.16855.9303
590.29370.21020.01052033.7235101.686210.084
600.30270.15520.00781108.418555.42097.4445
610.31160.26020.0133113.8746155.693712.4777



Parameters (Session):
Parameters (R input):
par1 = 20 ; par2 = 0.0 ; par3 = 1 ; par4 = 0 ; par5 = 1 ; 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,fx))
(lb <- forecast$pred - 1.96 * forecast$se)
(ub <- forecast$pred + 1.96 * forecast$se)
if (par2 == 0) {
x <- exp(x)
forecast$pred <- exp(forecast$pred)
lb <- exp(lb)
ub <- exp(ub)
}
if (par2 != 0) {
x <- x^(1/par2)
forecast$pred <- forecast$pred^(1/par2)
lb <- lb^(1/par2)
ub <- ub^(1/par2)
}
if (par2 < 0) {
olb <- lb
lb <- ub
ub <- olb
}
(actandfor <- c(x[1:nx], forecast$pred))
(perc.se <- (ub-forecast$pred)/1.96/forecast$pred)
bitmap(file='test1.png')
opar <- par(mar=c(4,4,2,2),las=1)
ylim <- c( min(x[first:nx],lb), max(x[first:nx],ub))
plot(x,ylim=ylim,type='n',xlim=c(first,lx))
usr <- par('usr')
rect(usr[1],usr[3],nx+1,usr[4],border=NA,col='lemonchiffon')
rect(nx1,usr[3],usr[2],usr[4],border=NA,col='lavender')
abline(h= (-3:3)*2 , col ='gray', lty =3)
polygon( c(nx1:lx,lx:nx1), c(lb,rev(ub)), col = 'orange', lty=2,border=NA)
lines(nx1:lx, lb , lty=2)
lines(nx1:lx, ub , lty=2)
lines(x, lwd=2)
lines(nx1:lx, forecast$pred , lwd=2 , col ='white')
box()
par(opar)
dev.off()
prob.dec <- array(NA, dim=fx)
prob.sdec <- array(NA, dim=fx)
prob.ldec <- array(NA, dim=fx)
prob.pval <- array(NA, dim=fx)
perf.pe <- array(0, dim=fx)
perf.mape <- array(0, dim=fx)
perf.se <- array(0, dim=fx)
perf.mse <- array(0, dim=fx)
perf.rmse <- array(0, dim=fx)
for (i in 1:fx) {
locSD <- (ub[i] - forecast$pred[i]) / 1.96
perf.pe[i] = (x[nx+i] - forecast$pred[i]) / forecast$pred[i]
perf.mape[i] = perf.mape[i] + abs(perf.pe[i])
perf.se[i] = (x[nx+i] - forecast$pred[i])^2
perf.mse[i] = perf.mse[i] + perf.se[i]
prob.dec[i] = pnorm((x[nx+i-1] - forecast$pred[i]) / locSD)
prob.sdec[i] = pnorm((x[nx+i-par5] - forecast$pred[i]) / locSD)
prob.ldec[i] = pnorm((x[nx] - forecast$pred[i]) / locSD)
prob.pval[i] = pnorm(abs(x[nx+i] - forecast$pred[i]) / locSD)
}
perf.mape = perf.mape / fx
perf.mse = perf.mse / fx
perf.rmse = sqrt(perf.mse)
bitmap(file='test2.png')
plot(forecast$pred, pch=19, type='b',main='ARIMA Extrapolation Forecast', ylab='Forecast and 95% CI', xlab='time',ylim=c(min(lb),max(ub)))
dum <- forecast$pred
dum[1:12] <- x[(nx+1):lx]
lines(dum, lty=1)
lines(ub,lty=3)
lines(lb,lty=3)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast',9,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'Y[t]',1,header=TRUE)
a<-table.element(a,'F[t]',1,header=TRUE)
a<-table.element(a,'95% LB',1,header=TRUE)
a<-table.element(a,'95% UB',1,header=TRUE)
a<-table.element(a,'p-value
(H0: Y[t] = F[t])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-1])',1,header=TRUE)
a<-table.element(a,'P(F[t]>Y[t-s])',1,header=TRUE)
mylab <- paste('P(F[t]>Y[',nx,sep='')
mylab <- paste(mylab,'])',sep='')
a<-table.element(a,mylab,1,header=TRUE)
a<-table.row.end(a)
for (i in (nx-par5):nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.element(a,'-')
a<-table.row.end(a)
}
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(x[nx+i],4))
a<-table.element(a,round(forecast$pred[i],4))
a<-table.element(a,round(lb[i],4))
a<-table.element(a,round(ub[i],4))
a<-table.element(a,round((1-prob.pval[i]),4))
a<-table.element(a,round((1-prob.dec[i]),4))
a<-table.element(a,round((1-prob.sdec[i]),4))
a<-table.element(a,round((1-prob.ldec[i]),4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Univariate ARIMA Extrapolation Forecast Performance',7,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'time',1,header=TRUE)
a<-table.element(a,'% S.E.',1,header=TRUE)
a<-table.element(a,'PE',1,header=TRUE)
a<-table.element(a,'MAPE',1,header=TRUE)
a<-table.element(a,'Sq.E',1,header=TRUE)
a<-table.element(a,'MSE',1,header=TRUE)
a<-table.element(a,'RMSE',1,header=TRUE)
a<-table.row.end(a)
for (i in 1:fx) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,round(perc.se[i],4))
a<-table.element(a,round(perf.pe[i],4))
a<-table.element(a,round(perf.mape[i],4))
a<-table.element(a,round(perf.se[i],4))
a<-table.element(a,round(perf.mse[i],4))
a<-table.element(a,round(perf.rmse[i],4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')