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 computationFri, 23 Dec 2016 12:21:48 +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/2016/Dec/23/t1482492182tu15ltojsmpqo2e.htm/, Retrieved Tue, 07 May 2024 10:26:07 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302871, Retrieved Tue, 07 May 2024 10:26:07 +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)
-     [(Partial) Autocorrelation Function] [Autocorrelation F...] [2016-12-11 16:38:45] [48565d122ad1a5ad6c25b7f5730e03d6]
- RMP   [ARIMA Backward Selection] [Arima backward] [2016-12-18 16:46:17] [48565d122ad1a5ad6c25b7f5730e03d6]
- RM      [ARIMA Forecasting] [Arima forecast F1] [2016-12-18 18:48:42] [48565d122ad1a5ad6c25b7f5730e03d6]
- R P         [ARIMA Forecasting] [ARIMA forecast F1] [2016-12-23 11:21:48] [532823e65ff0a5fb51127419eb0f7462] [Current]
Feedback Forum

Post a new message
Dataseries X:
3567.2
3968.25
4285.35
4130.95
4219.4
4626.2
3860.75
4174.15
4668.65
4630.05
4553.7
4603.85
4310.7
4831.3
5145.3
4886.65
4934.05
5304.7
4419.45
4804.85
5105
5132.6
4982.5
4906.7
4506.4
5010.85
5392.25
5049.7
5143.9
5449.9
4520.4
4936.95
5358.55
5289.5
5123.55
4985.65
4682.65
5175.55
5374.7
5289
5176.15
5604.25
4608.8
4898.15
5448.65
5373.05
5078.6
5233.4
4629.2
5387.8
5736.65
5357.9
5337.95
5795.5
4804.05
5120.5
5850.45
5734.75
5539
5582.85
4983.1
5672
6185.8
5835.6
5930.4
6444.65
5171.05
5739.1
6413.9
6230.2
6015.45
6174.25
5579.25
6133.45
6478.7
6184.4
6185.65
6556
5123.25
6028.9
6499.95
6190.05
6027.95
6034
5128.75
6087.7
6628.15
6075.3
6352.1
6824
5412.35
6171.25
6521.35
6457.6
5930.95
5842.7
5120.1
5719.95
5946.7
5921.1
6072
6489.4
5291.15
5986.45
6538.15
6442.8
6169.55
5793
5254.85
6050.75
6606.15
6221.15
6293.4
6908.4
5498.95
6145.35




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 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 time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302871&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]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302871&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302871&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 time1 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[104])
926171.25-------
936521.35-------
946457.6-------
955930.95-------
965842.7-------
975120.1-------
985719.95-------
995946.7-------
1005921.1-------
1016072-------
1026489.4-------
1035291.15-------
1045986.45-------
1056538.156451.86136174.5796741.59560.27970.99920.31910.9992
1066442.86360.80796041.81866696.63880.31610.15030.28610.9856
1076169.555995.755651.4026361.07970.17560.00820.63590.5199
10857935981.15955553.95886441.21970.21140.21110.72240.491
1095254.855260.93514843.63355714.18910.48950.01070.72879e-04
1106050.755962.61715442.95526531.89340.38080.99260.79830.4673
1116606.156315.38535707.68136987.79240.19830.77980.85870.8312
1126221.156086.92535458.85226787.26180.35360.07310.67870.6107
1136293.46230.82165545.44287000.90860.43670.50980.6570.733
1146908.46674.9175894.80047558.27410.30220.80140.65970.9367
1155498.955377.40924716.66496130.71530.375900.58880.0565
1166145.356091.7725307.73466991.62420.45350.90170.59070.5907

\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[104]) \tabularnewline
92 & 6171.25 & - & - & - & - & - & - & - \tabularnewline
93 & 6521.35 & - & - & - & - & - & - & - \tabularnewline
94 & 6457.6 & - & - & - & - & - & - & - \tabularnewline
95 & 5930.95 & - & - & - & - & - & - & - \tabularnewline
96 & 5842.7 & - & - & - & - & - & - & - \tabularnewline
97 & 5120.1 & - & - & - & - & - & - & - \tabularnewline
98 & 5719.95 & - & - & - & - & - & - & - \tabularnewline
99 & 5946.7 & - & - & - & - & - & - & - \tabularnewline
100 & 5921.1 & - & - & - & - & - & - & - \tabularnewline
101 & 6072 & - & - & - & - & - & - & - \tabularnewline
102 & 6489.4 & - & - & - & - & - & - & - \tabularnewline
103 & 5291.15 & - & - & - & - & - & - & - \tabularnewline
104 & 5986.45 & - & - & - & - & - & - & - \tabularnewline
105 & 6538.15 & 6451.8613 & 6174.579 & 6741.5956 & 0.2797 & 0.9992 & 0.3191 & 0.9992 \tabularnewline
106 & 6442.8 & 6360.8079 & 6041.8186 & 6696.6388 & 0.3161 & 0.1503 & 0.2861 & 0.9856 \tabularnewline
107 & 6169.55 & 5995.75 & 5651.402 & 6361.0797 & 0.1756 & 0.0082 & 0.6359 & 0.5199 \tabularnewline
108 & 5793 & 5981.1595 & 5553.9588 & 6441.2197 & 0.2114 & 0.2111 & 0.7224 & 0.491 \tabularnewline
109 & 5254.85 & 5260.9351 & 4843.6335 & 5714.1891 & 0.4895 & 0.0107 & 0.7287 & 9e-04 \tabularnewline
110 & 6050.75 & 5962.6171 & 5442.9552 & 6531.8934 & 0.3808 & 0.9926 & 0.7983 & 0.4673 \tabularnewline
111 & 6606.15 & 6315.3853 & 5707.6813 & 6987.7924 & 0.1983 & 0.7798 & 0.8587 & 0.8312 \tabularnewline
112 & 6221.15 & 6086.9253 & 5458.8522 & 6787.2618 & 0.3536 & 0.0731 & 0.6787 & 0.6107 \tabularnewline
113 & 6293.4 & 6230.8216 & 5545.4428 & 7000.9086 & 0.4367 & 0.5098 & 0.657 & 0.733 \tabularnewline
114 & 6908.4 & 6674.917 & 5894.8004 & 7558.2741 & 0.3022 & 0.8014 & 0.6597 & 0.9367 \tabularnewline
115 & 5498.95 & 5377.4092 & 4716.6649 & 6130.7153 & 0.3759 & 0 & 0.5888 & 0.0565 \tabularnewline
116 & 6145.35 & 6091.772 & 5307.7346 & 6991.6242 & 0.4535 & 0.9017 & 0.5907 & 0.5907 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302871&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[104])[/C][/ROW]
[ROW][C]92[/C][C]6171.25[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]93[/C][C]6521.35[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]94[/C][C]6457.6[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]95[/C][C]5930.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]96[/C][C]5842.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]97[/C][C]5120.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]98[/C][C]5719.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]99[/C][C]5946.7[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]100[/C][C]5921.1[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]101[/C][C]6072[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]102[/C][C]6489.4[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]103[/C][C]5291.15[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]104[/C][C]5986.45[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]105[/C][C]6538.15[/C][C]6451.8613[/C][C]6174.579[/C][C]6741.5956[/C][C]0.2797[/C][C]0.9992[/C][C]0.3191[/C][C]0.9992[/C][/ROW]
[ROW][C]106[/C][C]6442.8[/C][C]6360.8079[/C][C]6041.8186[/C][C]6696.6388[/C][C]0.3161[/C][C]0.1503[/C][C]0.2861[/C][C]0.9856[/C][/ROW]
[ROW][C]107[/C][C]6169.55[/C][C]5995.75[/C][C]5651.402[/C][C]6361.0797[/C][C]0.1756[/C][C]0.0082[/C][C]0.6359[/C][C]0.5199[/C][/ROW]
[ROW][C]108[/C][C]5793[/C][C]5981.1595[/C][C]5553.9588[/C][C]6441.2197[/C][C]0.2114[/C][C]0.2111[/C][C]0.7224[/C][C]0.491[/C][/ROW]
[ROW][C]109[/C][C]5254.85[/C][C]5260.9351[/C][C]4843.6335[/C][C]5714.1891[/C][C]0.4895[/C][C]0.0107[/C][C]0.7287[/C][C]9e-04[/C][/ROW]
[ROW][C]110[/C][C]6050.75[/C][C]5962.6171[/C][C]5442.9552[/C][C]6531.8934[/C][C]0.3808[/C][C]0.9926[/C][C]0.7983[/C][C]0.4673[/C][/ROW]
[ROW][C]111[/C][C]6606.15[/C][C]6315.3853[/C][C]5707.6813[/C][C]6987.7924[/C][C]0.1983[/C][C]0.7798[/C][C]0.8587[/C][C]0.8312[/C][/ROW]
[ROW][C]112[/C][C]6221.15[/C][C]6086.9253[/C][C]5458.8522[/C][C]6787.2618[/C][C]0.3536[/C][C]0.0731[/C][C]0.6787[/C][C]0.6107[/C][/ROW]
[ROW][C]113[/C][C]6293.4[/C][C]6230.8216[/C][C]5545.4428[/C][C]7000.9086[/C][C]0.4367[/C][C]0.5098[/C][C]0.657[/C][C]0.733[/C][/ROW]
[ROW][C]114[/C][C]6908.4[/C][C]6674.917[/C][C]5894.8004[/C][C]7558.2741[/C][C]0.3022[/C][C]0.8014[/C][C]0.6597[/C][C]0.9367[/C][/ROW]
[ROW][C]115[/C][C]5498.95[/C][C]5377.4092[/C][C]4716.6649[/C][C]6130.7153[/C][C]0.3759[/C][C]0[/C][C]0.5888[/C][C]0.0565[/C][/ROW]
[ROW][C]116[/C][C]6145.35[/C][C]6091.772[/C][C]5307.7346[/C][C]6991.6242[/C][C]0.4535[/C][C]0.9017[/C][C]0.5907[/C][C]0.5907[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302871&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302871&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[104])
926171.25-------
936521.35-------
946457.6-------
955930.95-------
965842.7-------
975120.1-------
985719.95-------
995946.7-------
1005921.1-------
1016072-------
1026489.4-------
1035291.15-------
1045986.45-------
1056538.156451.86136174.5796741.59560.27970.99920.31910.9992
1066442.86360.80796041.81866696.63880.31610.15030.28610.9856
1076169.555995.755651.4026361.07970.17560.00820.63590.5199
10857935981.15955553.95886441.21970.21140.21110.72240.491
1095254.855260.93514843.63355714.18910.48950.01070.72879e-04
1106050.755962.61715442.95526531.89340.38080.99260.79830.4673
1116606.156315.38535707.68136987.79240.19830.77980.85870.8312
1126221.156086.92535458.85226787.26180.35360.07310.67870.6107
1136293.46230.82165545.44287000.90860.43670.50980.6570.733
1146908.46674.9175894.80047558.27410.30220.80140.65970.9367
1155498.955377.40924716.66496130.71530.375900.58880.0565
1166145.356091.7725307.73466991.62420.45350.90170.59070.5907







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPEsMAPESq.EMSERMSEScaledEMASE
1050.02290.01320.01320.01337445.7386000.16470.1647
1060.02690.01270.0130.0136722.70747084.22384.16780.15650.1606
1070.03110.02820.0180.018230206.425214791.6237121.62080.33180.2177
1080.0392-0.03250.02160.021735403.991519944.7157141.2258-0.35920.253
1090.044-0.00120.01750.017637.028215963.1782126.3455-0.01160.2048
1100.04870.01460.0170.01717767.40514597.216120.81890.16820.1987
1110.05430.0440.02090.021184544.092924589.627156.81080.5550.2496
1120.05870.02160.0210.021218016.273323767.9578154.16860.25620.2504
1130.06310.00990.01980.01993916.052121562.1905146.84070.11950.2359
1140.06750.03380.02120.021454514.314324857.4028157.66230.44570.2568
1150.07150.02210.02120.021514772.156623940.5623154.72740.2320.2546
1160.07540.00870.02020.02042870.606522184.7326148.94540.10230.2419

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & sMAPE & Sq.E & MSE & RMSE & ScaledE & MASE \tabularnewline
105 & 0.0229 & 0.0132 & 0.0132 & 0.0133 & 7445.7386 & 0 & 0 & 0.1647 & 0.1647 \tabularnewline
106 & 0.0269 & 0.0127 & 0.013 & 0.013 & 6722.7074 & 7084.223 & 84.1678 & 0.1565 & 0.1606 \tabularnewline
107 & 0.0311 & 0.0282 & 0.018 & 0.0182 & 30206.4252 & 14791.6237 & 121.6208 & 0.3318 & 0.2177 \tabularnewline
108 & 0.0392 & -0.0325 & 0.0216 & 0.0217 & 35403.9915 & 19944.7157 & 141.2258 & -0.3592 & 0.253 \tabularnewline
109 & 0.044 & -0.0012 & 0.0175 & 0.0176 & 37.0282 & 15963.1782 & 126.3455 & -0.0116 & 0.2048 \tabularnewline
110 & 0.0487 & 0.0146 & 0.017 & 0.0171 & 7767.405 & 14597.216 & 120.8189 & 0.1682 & 0.1987 \tabularnewline
111 & 0.0543 & 0.044 & 0.0209 & 0.0211 & 84544.0929 & 24589.627 & 156.8108 & 0.555 & 0.2496 \tabularnewline
112 & 0.0587 & 0.0216 & 0.021 & 0.0212 & 18016.2733 & 23767.9578 & 154.1686 & 0.2562 & 0.2504 \tabularnewline
113 & 0.0631 & 0.0099 & 0.0198 & 0.0199 & 3916.0521 & 21562.1905 & 146.8407 & 0.1195 & 0.2359 \tabularnewline
114 & 0.0675 & 0.0338 & 0.0212 & 0.0214 & 54514.3143 & 24857.4028 & 157.6623 & 0.4457 & 0.2568 \tabularnewline
115 & 0.0715 & 0.0221 & 0.0212 & 0.0215 & 14772.1566 & 23940.5623 & 154.7274 & 0.232 & 0.2546 \tabularnewline
116 & 0.0754 & 0.0087 & 0.0202 & 0.0204 & 2870.6065 & 22184.7326 & 148.9454 & 0.1023 & 0.2419 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302871&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]105[/C][C]0.0229[/C][C]0.0132[/C][C]0.0132[/C][C]0.0133[/C][C]7445.7386[/C][C]0[/C][C]0[/C][C]0.1647[/C][C]0.1647[/C][/ROW]
[ROW][C]106[/C][C]0.0269[/C][C]0.0127[/C][C]0.013[/C][C]0.013[/C][C]6722.7074[/C][C]7084.223[/C][C]84.1678[/C][C]0.1565[/C][C]0.1606[/C][/ROW]
[ROW][C]107[/C][C]0.0311[/C][C]0.0282[/C][C]0.018[/C][C]0.0182[/C][C]30206.4252[/C][C]14791.6237[/C][C]121.6208[/C][C]0.3318[/C][C]0.2177[/C][/ROW]
[ROW][C]108[/C][C]0.0392[/C][C]-0.0325[/C][C]0.0216[/C][C]0.0217[/C][C]35403.9915[/C][C]19944.7157[/C][C]141.2258[/C][C]-0.3592[/C][C]0.253[/C][/ROW]
[ROW][C]109[/C][C]0.044[/C][C]-0.0012[/C][C]0.0175[/C][C]0.0176[/C][C]37.0282[/C][C]15963.1782[/C][C]126.3455[/C][C]-0.0116[/C][C]0.2048[/C][/ROW]
[ROW][C]110[/C][C]0.0487[/C][C]0.0146[/C][C]0.017[/C][C]0.0171[/C][C]7767.405[/C][C]14597.216[/C][C]120.8189[/C][C]0.1682[/C][C]0.1987[/C][/ROW]
[ROW][C]111[/C][C]0.0543[/C][C]0.044[/C][C]0.0209[/C][C]0.0211[/C][C]84544.0929[/C][C]24589.627[/C][C]156.8108[/C][C]0.555[/C][C]0.2496[/C][/ROW]
[ROW][C]112[/C][C]0.0587[/C][C]0.0216[/C][C]0.021[/C][C]0.0212[/C][C]18016.2733[/C][C]23767.9578[/C][C]154.1686[/C][C]0.2562[/C][C]0.2504[/C][/ROW]
[ROW][C]113[/C][C]0.0631[/C][C]0.0099[/C][C]0.0198[/C][C]0.0199[/C][C]3916.0521[/C][C]21562.1905[/C][C]146.8407[/C][C]0.1195[/C][C]0.2359[/C][/ROW]
[ROW][C]114[/C][C]0.0675[/C][C]0.0338[/C][C]0.0212[/C][C]0.0214[/C][C]54514.3143[/C][C]24857.4028[/C][C]157.6623[/C][C]0.4457[/C][C]0.2568[/C][/ROW]
[ROW][C]115[/C][C]0.0715[/C][C]0.0221[/C][C]0.0212[/C][C]0.0215[/C][C]14772.1566[/C][C]23940.5623[/C][C]154.7274[/C][C]0.232[/C][C]0.2546[/C][/ROW]
[ROW][C]116[/C][C]0.0754[/C][C]0.0087[/C][C]0.0202[/C][C]0.0204[/C][C]2870.6065[/C][C]22184.7326[/C][C]148.9454[/C][C]0.1023[/C][C]0.2419[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302871&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302871&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
1050.02290.01320.01320.01337445.7386000.16470.1647
1060.02690.01270.0130.0136722.70747084.22384.16780.15650.1606
1070.03110.02820.0180.018230206.425214791.6237121.62080.33180.2177
1080.0392-0.03250.02160.021735403.991519944.7157141.2258-0.35920.253
1090.044-0.00120.01750.017637.028215963.1782126.3455-0.01160.2048
1100.04870.01460.0170.01717767.40514597.216120.81890.16820.1987
1110.05430.0440.02090.021184544.092924589.627156.81080.5550.2496
1120.05870.02160.0210.021218016.273323767.9578154.16860.25620.2504
1130.06310.00990.01980.01993916.052121562.1905146.84070.11950.2359
1140.06750.03380.02120.021454514.314324857.4028157.66230.44570.2568
1150.07150.02210.02120.021514772.156623940.5623154.72740.2320.2546
1160.07540.00870.02020.02042870.606522184.7326148.94540.10230.2419



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