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 computationMon, 14 Dec 2009 06:34:18 -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/14/t1260797746b3ud12sg0uzu4cl.htm/, Retrieved Sun, 05 May 2024 11:03:27 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67552, Retrieved Sun, 05 May 2024 11:03:27 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact101
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2009-12-14 13:34:18] [dd88bf4749af0c195ad4f54cb428da1c] [Current]
-   P     [ARIMA Forecasting] [] [2009-12-14 13:37:19] [2f9700e78f159997f527be4a316457f5]
Feedback Forum

Post a new message
Dataseries X:
6802.96
7132.68
7073.29
7264.5
7105.33
7218.71
7225.72
7354.25
7745.46
8070.26
8366.33
8667.51
8854.34
9218.1
9332.9
9358.31
9248.66
9401.2
9652.04
9957.38
10110.63
10169.26
10343.78
10750.21
11337.5
11786.96
12083.04
12007.74
11745.93
11051.51
11445.9
11924.88
12247.63
12690.91
12910.7
13202.12
13654.67
13862.82
13523.93
14211.17
14510.35
14289.23
14111.82
13086.59
13351.54
13747.69
12855.61
12926.93
12121.95
11731.65
11639.51
12163.78
12029.53
11234.18
9852.13
9709.04
9332.75
7108.6
6691.49
6143.05




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=67552&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=67552&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67552&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])
4114510.35-------
4214289.23-------
4314111.8214215.566413660.500714770.6320.35710.39740.39740.3974
4413086.5914173.978113204.269215143.68690.0140.550.550.4079
4513351.5414150.498612806.445215494.55190.1220.93960.93960.4198
4613747.6914137.242812457.687315816.79820.32470.82040.82040.4296
4712855.6114129.758912148.79416110.72380.10370.64730.64730.4373
4812926.9314125.533811871.788216379.27940.14860.86530.86530.4434
4912121.9514123.148411620.28916626.00770.05850.82560.82560.4483
5011731.6514121.801611389.362216854.24110.04320.92430.92430.4522
5111639.5114121.041311175.232617066.850.04940.94410.94410.4554
5212163.7814120.612110975.009917266.21420.11140.93890.93890.4582
5312029.5314120.369710786.464217454.27520.10950.8750.8750.4605
5411234.1814120.232910607.857117632.60870.05360.87830.87830.4624
559852.1314120.155710437.815617802.49570.01160.93770.93770.4641
569709.0414120.112110275.241617964.98250.01230.98520.98520.4656
579332.7514120.087410119.244518120.93040.00950.98470.98470.467
587108.614120.07359969.093318271.05385e-040.98810.98810.4682
596691.4914120.06579824.180418415.9514e-040.99930.99930.4692
606143.0514120.06139683.995418556.12712e-040.99950.99950.4702

\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
41 & 14510.35 & - & - & - & - & - & - & - \tabularnewline
42 & 14289.23 & - & - & - & - & - & - & - \tabularnewline
43 & 14111.82 & 14215.5664 & 13660.5007 & 14770.632 & 0.3571 & 0.3974 & 0.3974 & 0.3974 \tabularnewline
44 & 13086.59 & 14173.9781 & 13204.2692 & 15143.6869 & 0.014 & 0.55 & 0.55 & 0.4079 \tabularnewline
45 & 13351.54 & 14150.4986 & 12806.4452 & 15494.5519 & 0.122 & 0.9396 & 0.9396 & 0.4198 \tabularnewline
46 & 13747.69 & 14137.2428 & 12457.6873 & 15816.7982 & 0.3247 & 0.8204 & 0.8204 & 0.4296 \tabularnewline
47 & 12855.61 & 14129.7589 & 12148.794 & 16110.7238 & 0.1037 & 0.6473 & 0.6473 & 0.4373 \tabularnewline
48 & 12926.93 & 14125.5338 & 11871.7882 & 16379.2794 & 0.1486 & 0.8653 & 0.8653 & 0.4434 \tabularnewline
49 & 12121.95 & 14123.1484 & 11620.289 & 16626.0077 & 0.0585 & 0.8256 & 0.8256 & 0.4483 \tabularnewline
50 & 11731.65 & 14121.8016 & 11389.3622 & 16854.2411 & 0.0432 & 0.9243 & 0.9243 & 0.4522 \tabularnewline
51 & 11639.51 & 14121.0413 & 11175.2326 & 17066.85 & 0.0494 & 0.9441 & 0.9441 & 0.4554 \tabularnewline
52 & 12163.78 & 14120.6121 & 10975.0099 & 17266.2142 & 0.1114 & 0.9389 & 0.9389 & 0.4582 \tabularnewline
53 & 12029.53 & 14120.3697 & 10786.4642 & 17454.2752 & 0.1095 & 0.875 & 0.875 & 0.4605 \tabularnewline
54 & 11234.18 & 14120.2329 & 10607.8571 & 17632.6087 & 0.0536 & 0.8783 & 0.8783 & 0.4624 \tabularnewline
55 & 9852.13 & 14120.1557 & 10437.8156 & 17802.4957 & 0.0116 & 0.9377 & 0.9377 & 0.4641 \tabularnewline
56 & 9709.04 & 14120.1121 & 10275.2416 & 17964.9825 & 0.0123 & 0.9852 & 0.9852 & 0.4656 \tabularnewline
57 & 9332.75 & 14120.0874 & 10119.2445 & 18120.9304 & 0.0095 & 0.9847 & 0.9847 & 0.467 \tabularnewline
58 & 7108.6 & 14120.0735 & 9969.0933 & 18271.0538 & 5e-04 & 0.9881 & 0.9881 & 0.4682 \tabularnewline
59 & 6691.49 & 14120.0657 & 9824.1804 & 18415.951 & 4e-04 & 0.9993 & 0.9993 & 0.4692 \tabularnewline
60 & 6143.05 & 14120.0613 & 9683.9954 & 18556.1271 & 2e-04 & 0.9995 & 0.9995 & 0.4702 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67552&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]41[/C][C]14510.35[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]42[/C][C]14289.23[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]43[/C][C]14111.82[/C][C]14215.5664[/C][C]13660.5007[/C][C]14770.632[/C][C]0.3571[/C][C]0.3974[/C][C]0.3974[/C][C]0.3974[/C][/ROW]
[ROW][C]44[/C][C]13086.59[/C][C]14173.9781[/C][C]13204.2692[/C][C]15143.6869[/C][C]0.014[/C][C]0.55[/C][C]0.55[/C][C]0.4079[/C][/ROW]
[ROW][C]45[/C][C]13351.54[/C][C]14150.4986[/C][C]12806.4452[/C][C]15494.5519[/C][C]0.122[/C][C]0.9396[/C][C]0.9396[/C][C]0.4198[/C][/ROW]
[ROW][C]46[/C][C]13747.69[/C][C]14137.2428[/C][C]12457.6873[/C][C]15816.7982[/C][C]0.3247[/C][C]0.8204[/C][C]0.8204[/C][C]0.4296[/C][/ROW]
[ROW][C]47[/C][C]12855.61[/C][C]14129.7589[/C][C]12148.794[/C][C]16110.7238[/C][C]0.1037[/C][C]0.6473[/C][C]0.6473[/C][C]0.4373[/C][/ROW]
[ROW][C]48[/C][C]12926.93[/C][C]14125.5338[/C][C]11871.7882[/C][C]16379.2794[/C][C]0.1486[/C][C]0.8653[/C][C]0.8653[/C][C]0.4434[/C][/ROW]
[ROW][C]49[/C][C]12121.95[/C][C]14123.1484[/C][C]11620.289[/C][C]16626.0077[/C][C]0.0585[/C][C]0.8256[/C][C]0.8256[/C][C]0.4483[/C][/ROW]
[ROW][C]50[/C][C]11731.65[/C][C]14121.8016[/C][C]11389.3622[/C][C]16854.2411[/C][C]0.0432[/C][C]0.9243[/C][C]0.9243[/C][C]0.4522[/C][/ROW]
[ROW][C]51[/C][C]11639.51[/C][C]14121.0413[/C][C]11175.2326[/C][C]17066.85[/C][C]0.0494[/C][C]0.9441[/C][C]0.9441[/C][C]0.4554[/C][/ROW]
[ROW][C]52[/C][C]12163.78[/C][C]14120.6121[/C][C]10975.0099[/C][C]17266.2142[/C][C]0.1114[/C][C]0.9389[/C][C]0.9389[/C][C]0.4582[/C][/ROW]
[ROW][C]53[/C][C]12029.53[/C][C]14120.3697[/C][C]10786.4642[/C][C]17454.2752[/C][C]0.1095[/C][C]0.875[/C][C]0.875[/C][C]0.4605[/C][/ROW]
[ROW][C]54[/C][C]11234.18[/C][C]14120.2329[/C][C]10607.8571[/C][C]17632.6087[/C][C]0.0536[/C][C]0.8783[/C][C]0.8783[/C][C]0.4624[/C][/ROW]
[ROW][C]55[/C][C]9852.13[/C][C]14120.1557[/C][C]10437.8156[/C][C]17802.4957[/C][C]0.0116[/C][C]0.9377[/C][C]0.9377[/C][C]0.4641[/C][/ROW]
[ROW][C]56[/C][C]9709.04[/C][C]14120.1121[/C][C]10275.2416[/C][C]17964.9825[/C][C]0.0123[/C][C]0.9852[/C][C]0.9852[/C][C]0.4656[/C][/ROW]
[ROW][C]57[/C][C]9332.75[/C][C]14120.0874[/C][C]10119.2445[/C][C]18120.9304[/C][C]0.0095[/C][C]0.9847[/C][C]0.9847[/C][C]0.467[/C][/ROW]
[ROW][C]58[/C][C]7108.6[/C][C]14120.0735[/C][C]9969.0933[/C][C]18271.0538[/C][C]5e-04[/C][C]0.9881[/C][C]0.9881[/C][C]0.4682[/C][/ROW]
[ROW][C]59[/C][C]6691.49[/C][C]14120.0657[/C][C]9824.1804[/C][C]18415.951[/C][C]4e-04[/C][C]0.9993[/C][C]0.9993[/C][C]0.4692[/C][/ROW]
[ROW][C]60[/C][C]6143.05[/C][C]14120.0613[/C][C]9683.9954[/C][C]18556.1271[/C][C]2e-04[/C][C]0.9995[/C][C]0.9995[/C][C]0.4702[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67552&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67552&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])
4114510.35-------
4214289.23-------
4314111.8214215.566413660.500714770.6320.35710.39740.39740.3974
4413086.5914173.978113204.269215143.68690.0140.550.550.4079
4513351.5414150.498612806.445215494.55190.1220.93960.93960.4198
4613747.6914137.242812457.687315816.79820.32470.82040.82040.4296
4712855.6114129.758912148.79416110.72380.10370.64730.64730.4373
4812926.9314125.533811871.788216379.27940.14860.86530.86530.4434
4912121.9514123.148411620.28916626.00770.05850.82560.82560.4483
5011731.6514121.801611389.362216854.24110.04320.92430.92430.4522
5111639.5114121.041311175.232617066.850.04940.94410.94410.4554
5212163.7814120.612110975.009917266.21420.11140.93890.93890.4582
5312029.5314120.369710786.464217454.27520.10950.8750.8750.4605
5411234.1814120.232910607.857117632.60870.05360.87830.87830.4624
559852.1314120.155710437.815617802.49570.01160.93770.93770.4641
569709.0414120.112110275.241617964.98250.01230.98520.98520.4656
579332.7514120.087410119.244518120.93040.00950.98470.98470.467
587108.614120.07359969.093318271.05385e-040.98810.98810.4682
596691.4914120.06579824.180418415.9514e-040.99930.99930.4692
606143.0514120.06139683.995418556.12712e-040.99950.99950.4702







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
430.0199-0.0073010763.309600
440.0349-0.07670.0421182412.8553596588.0824772.3911
450.0485-0.05650.0468638334.8237610503.6629781.3473
460.0606-0.02760.042151751.3545495815.5858704.1417
470.0715-0.09020.05161623455.4691721343.5624849.3195
480.0814-0.08490.05721436650.9871840561.4666916.8214
490.0904-0.14170.06934004794.91651292594.81661136.9234
500.0987-0.16930.08185712824.89591845123.57651358.3533
510.1064-0.17570.09226157997.72922324331.81571524.5759
520.1137-0.13860.09683829191.76492474817.81061573.1554
530.1205-0.14810.10154371610.77632647253.53481627.0383
540.1269-0.20440.11018329301.39853120757.52341766.5666
550.1331-0.30230.124918216043.084281933.33542069.2833
560.1389-0.31240.138219457556.67785365906.43132316.4426
570.1446-0.3390.151622918599.71196536085.98342556.577
580.15-0.49660.173249160761.12229200128.17953033.1713
590.1552-0.52610.19455183736.732411905046.32973450.369
600.1603-0.56490.214663632708.580214778805.34363844.3212

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
43 & 0.0199 & -0.0073 & 0 & 10763.3096 & 0 & 0 \tabularnewline
44 & 0.0349 & -0.0767 & 0.042 & 1182412.8553 & 596588.0824 & 772.3911 \tabularnewline
45 & 0.0485 & -0.0565 & 0.0468 & 638334.8237 & 610503.6629 & 781.3473 \tabularnewline
46 & 0.0606 & -0.0276 & 0.042 & 151751.3545 & 495815.5858 & 704.1417 \tabularnewline
47 & 0.0715 & -0.0902 & 0.0516 & 1623455.4691 & 721343.5624 & 849.3195 \tabularnewline
48 & 0.0814 & -0.0849 & 0.0572 & 1436650.9871 & 840561.4666 & 916.8214 \tabularnewline
49 & 0.0904 & -0.1417 & 0.0693 & 4004794.9165 & 1292594.8166 & 1136.9234 \tabularnewline
50 & 0.0987 & -0.1693 & 0.0818 & 5712824.8959 & 1845123.5765 & 1358.3533 \tabularnewline
51 & 0.1064 & -0.1757 & 0.0922 & 6157997.7292 & 2324331.8157 & 1524.5759 \tabularnewline
52 & 0.1137 & -0.1386 & 0.0968 & 3829191.7649 & 2474817.8106 & 1573.1554 \tabularnewline
53 & 0.1205 & -0.1481 & 0.1015 & 4371610.7763 & 2647253.5348 & 1627.0383 \tabularnewline
54 & 0.1269 & -0.2044 & 0.1101 & 8329301.3985 & 3120757.5234 & 1766.5666 \tabularnewline
55 & 0.1331 & -0.3023 & 0.1249 & 18216043.08 & 4281933.3354 & 2069.2833 \tabularnewline
56 & 0.1389 & -0.3124 & 0.1382 & 19457556.6778 & 5365906.4313 & 2316.4426 \tabularnewline
57 & 0.1446 & -0.339 & 0.1516 & 22918599.7119 & 6536085.9834 & 2556.577 \tabularnewline
58 & 0.15 & -0.4966 & 0.1732 & 49160761.1222 & 9200128.1795 & 3033.1713 \tabularnewline
59 & 0.1552 & -0.5261 & 0.194 & 55183736.7324 & 11905046.3297 & 3450.369 \tabularnewline
60 & 0.1603 & -0.5649 & 0.2146 & 63632708.5802 & 14778805.3436 & 3844.3212 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67552&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.0199[/C][C]-0.0073[/C][C]0[/C][C]10763.3096[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]44[/C][C]0.0349[/C][C]-0.0767[/C][C]0.042[/C][C]1182412.8553[/C][C]596588.0824[/C][C]772.3911[/C][/ROW]
[ROW][C]45[/C][C]0.0485[/C][C]-0.0565[/C][C]0.0468[/C][C]638334.8237[/C][C]610503.6629[/C][C]781.3473[/C][/ROW]
[ROW][C]46[/C][C]0.0606[/C][C]-0.0276[/C][C]0.042[/C][C]151751.3545[/C][C]495815.5858[/C][C]704.1417[/C][/ROW]
[ROW][C]47[/C][C]0.0715[/C][C]-0.0902[/C][C]0.0516[/C][C]1623455.4691[/C][C]721343.5624[/C][C]849.3195[/C][/ROW]
[ROW][C]48[/C][C]0.0814[/C][C]-0.0849[/C][C]0.0572[/C][C]1436650.9871[/C][C]840561.4666[/C][C]916.8214[/C][/ROW]
[ROW][C]49[/C][C]0.0904[/C][C]-0.1417[/C][C]0.0693[/C][C]4004794.9165[/C][C]1292594.8166[/C][C]1136.9234[/C][/ROW]
[ROW][C]50[/C][C]0.0987[/C][C]-0.1693[/C][C]0.0818[/C][C]5712824.8959[/C][C]1845123.5765[/C][C]1358.3533[/C][/ROW]
[ROW][C]51[/C][C]0.1064[/C][C]-0.1757[/C][C]0.0922[/C][C]6157997.7292[/C][C]2324331.8157[/C][C]1524.5759[/C][/ROW]
[ROW][C]52[/C][C]0.1137[/C][C]-0.1386[/C][C]0.0968[/C][C]3829191.7649[/C][C]2474817.8106[/C][C]1573.1554[/C][/ROW]
[ROW][C]53[/C][C]0.1205[/C][C]-0.1481[/C][C]0.1015[/C][C]4371610.7763[/C][C]2647253.5348[/C][C]1627.0383[/C][/ROW]
[ROW][C]54[/C][C]0.1269[/C][C]-0.2044[/C][C]0.1101[/C][C]8329301.3985[/C][C]3120757.5234[/C][C]1766.5666[/C][/ROW]
[ROW][C]55[/C][C]0.1331[/C][C]-0.3023[/C][C]0.1249[/C][C]18216043.08[/C][C]4281933.3354[/C][C]2069.2833[/C][/ROW]
[ROW][C]56[/C][C]0.1389[/C][C]-0.3124[/C][C]0.1382[/C][C]19457556.6778[/C][C]5365906.4313[/C][C]2316.4426[/C][/ROW]
[ROW][C]57[/C][C]0.1446[/C][C]-0.339[/C][C]0.1516[/C][C]22918599.7119[/C][C]6536085.9834[/C][C]2556.577[/C][/ROW]
[ROW][C]58[/C][C]0.15[/C][C]-0.4966[/C][C]0.1732[/C][C]49160761.1222[/C][C]9200128.1795[/C][C]3033.1713[/C][/ROW]
[ROW][C]59[/C][C]0.1552[/C][C]-0.5261[/C][C]0.194[/C][C]55183736.7324[/C][C]11905046.3297[/C][C]3450.369[/C][/ROW]
[ROW][C]60[/C][C]0.1603[/C][C]-0.5649[/C][C]0.2146[/C][C]63632708.5802[/C][C]14778805.3436[/C][C]3844.3212[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67552&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67552&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.0199-0.0073010763.309600
440.0349-0.07670.0421182412.8553596588.0824772.3911
450.0485-0.05650.0468638334.8237610503.6629781.3473
460.0606-0.02760.042151751.3545495815.5858704.1417
470.0715-0.09020.05161623455.4691721343.5624849.3195
480.0814-0.08490.05721436650.9871840561.4666916.8214
490.0904-0.14170.06934004794.91651292594.81661136.9234
500.0987-0.16930.08185712824.89591845123.57651358.3533
510.1064-0.17570.09226157997.72922324331.81571524.5759
520.1137-0.13860.09683829191.76492474817.81061573.1554
530.1205-0.14810.10154371610.77632647253.53481627.0383
540.1269-0.20440.11018329301.39853120757.52341766.5666
550.1331-0.30230.124918216043.084281933.33542069.2833
560.1389-0.31240.138219457556.67785365906.43132316.4426
570.1446-0.3390.151622918599.71196536085.98342556.577
580.15-0.49660.173249160761.12229200128.17953033.1713
590.1552-0.52610.19455183736.732411905046.32973450.369
600.1603-0.56490.214663632708.580214778805.34363844.3212



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