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, 16 Dec 2012 17:03:22 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Dec/16/t1355695416zrzrhsf8ke4p3kn.htm/, Retrieved Thu, 25 Apr 2024 17:51:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=200630, Retrieved Thu, 25 Apr 2024 17:51:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact98
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [ARIMA Forecasting] [] [2012-12-16 22:03:22] [311e8979fc66fc3b169c8163f1497ef3] [Current]
Feedback Forum

Post a new message
Dataseries X:
1021.3
1039.79
938.12
947.36
956.6
956.6
942.74
951.98
919.63
901.15
887.28
836.45
841.07
836.45
831.83
817.97
771.75
707.05
716.3
725.54
716.3
707.05
716.3
780.99
859.56
961.22
938.12
988.95
910.39
901.15
896.53
910.39
988.95
988.95
965.85
975.09
1002.82
1025.92
1081.38
1164.56
1201.53
1229.26
1275.47
1275.47
1307.82
1252.36
1261.61
1340.17
1414.11
1409.49
1432.59
1520.4
1529.64
1455.7
1427.97
1538.88
1612.82
1635.93
1603.58
1589.72
1557.37
1589.72
1668.28
1635.93
1615.68
1644.69
1622.71
1626.11
1705.55
1841.35
2029.03
2024.21
1952.87
2153.06
2339.29
2502.89
2515.37
2445.68
2491.11
2691.32
2651.8
2593.49
2697.23
2751.63
2713.9
2747.21
2982.32
3063.39
3058.7
3074.38
3341.06
3500.03
392.88
3071.52
2516.41
2350.7
2488.68
2872.65
3220.21
3078.04
3043.98
3134.34
3141.85
3128.01
3241.16
3389.48
3406.36
3449.84
3606.24
3653.99
3607.31
3712.52
3803.47
3806.33
3768.4
3952.06
4134.85
4060.9
3999.88
4004.03
3977.34
3650.08
3708.85
3764.78
3761.86
3802.55
3773.52
3428.7
3194.21
3095.56
3064.85
3022.98
2887.66
3178.86
3438.47
3493.87
3421.89
3390.28
3319.24
3287.84
3222.82
3182.69
3180.21
3116.34
3297.46
3357.48
3386.03
3319.45
3363.59
3303.47
3210.55
3050.27
3010.55
3011.65
3104.98
3087.85
3160.16
3319.22
3432.49
3475.68
3347.48
3388.81
3610.23
3691.45
3587.86
3704.62
3798.75
3956.54
4121.94
4148.56
4100.37
4060.71
4147.86
3926.61
3865.41
3978.57
3851.95
3701.22
3738.65
3766.9
3711.02
3675.22
3560.53
3723.8
3914.27
3870.77
3924.36
3968.89
3982.93
3917.09
3969.18
4149.81
4406.88
423.82
417.72
4527.16
4617.39
4656.23
4579.9
4652.4
4722.95
4845.81
4975.21
5083.64
5378.04
5684.44
5841.87
5857.23
6174.52
6413.17
6780.11
6524.94
6466.7
6495.61
6399.52
6729.98
7060.77
7423.27
8069.17
8650.68
8938.07
9482.08
10225.26
9390.27
8546.11
8073.77
8655.31
9150.1
9775.81
9785.14
9363.44
9304.18
9030.26
8920.8
8606.08
8353.75
8615.63
8128.64
8715.94
8500.8
8142.58
7614.66
7558.95
7820.75
7828.9
7904.59
8140.97
8483.01
8322.68
8268.01
8402.05
8177.78
7950.54
8049.94
7674.13
7666.36
7570.18
7694.45
7810.64
7748.43
7040.64
7077.26
7245.51
7289.12
7486.92
7519.88
7554.84
7780.89
7748.09
7152.25
6484.66
6254.58
5867.32
5544.16
5822.74
5690.63
5564.78
5088.39
4784.22
5332.46
5541.48
5723.92
5736.99
5992.07
6091.43
6158.17
6303.79
6349.71
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
6379.15
5994.58
5607.94
6046.13
6624.96
6652.54
6696
7315.16
7907.79
8066.35
7939.64
8068.48
8186.33
7975.21
8357.51
8463.38
7937.68
8034.62
8056.61
8176.95
8441.04
8697.39
8665.57
8625.77
8718.42
8822.34
8597.67
8782.05
8661.06
8265.32
8072.58
721.85
7138.6
7351.11
7077
7272.37
7577.84




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=200630&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 time2 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[374])
3627975.21-------
3638357.51-------
3648463.38-------
3657937.68-------
3668034.62-------
3678056.60999999999-------
3688176.95-------
3698441.04-------
3708697.39-------
3718665.56999999999-------
3728625.77-------
3738718.42000000001-------
3748822.34-------
3758597.678665.57445697.110213180.74890.48820.47290.55320.4729
3768782.058614.49815335.21713909.38320.47530.50250.52230.4693
3778661.068597.72315171.712714293.30010.49130.47470.58980.4692
3788265.328592.19915058.562914594.24110.45750.4910.57220.47
3798072.588590.37854963.032314868.85410.43580.54040.56620.4711
380721.858589.77834875.751815132.90540.00920.56160.54920.4722
3817138.68589.58044793.636215391.42480.33790.98830.51710.4733
3827351.118589.51524715.501615646.21910.36540.65650.4880.4742
38370778589.49364640.780415898.05930.34250.63010.49190.4751
3847272.378589.48664569.122516147.36310.36630.65260.49620.4759
3857577.848589.48424500.266816394.41440.39970.62960.48710.4767

\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[374]) \tabularnewline
362 & 7975.21 & - & - & - & - & - & - & - \tabularnewline
363 & 8357.51 & - & - & - & - & - & - & - \tabularnewline
364 & 8463.38 & - & - & - & - & - & - & - \tabularnewline
365 & 7937.68 & - & - & - & - & - & - & - \tabularnewline
366 & 8034.62 & - & - & - & - & - & - & - \tabularnewline
367 & 8056.60999999999 & - & - & - & - & - & - & - \tabularnewline
368 & 8176.95 & - & - & - & - & - & - & - \tabularnewline
369 & 8441.04 & - & - & - & - & - & - & - \tabularnewline
370 & 8697.39 & - & - & - & - & - & - & - \tabularnewline
371 & 8665.56999999999 & - & - & - & - & - & - & - \tabularnewline
372 & 8625.77 & - & - & - & - & - & - & - \tabularnewline
373 & 8718.42000000001 & - & - & - & - & - & - & - \tabularnewline
374 & 8822.34 & - & - & - & - & - & - & - \tabularnewline
375 & 8597.67 & 8665.5744 & 5697.1102 & 13180.7489 & 0.4882 & 0.4729 & 0.5532 & 0.4729 \tabularnewline
376 & 8782.05 & 8614.4981 & 5335.217 & 13909.3832 & 0.4753 & 0.5025 & 0.5223 & 0.4693 \tabularnewline
377 & 8661.06 & 8597.7231 & 5171.7127 & 14293.3001 & 0.4913 & 0.4747 & 0.5898 & 0.4692 \tabularnewline
378 & 8265.32 & 8592.1991 & 5058.5629 & 14594.2411 & 0.4575 & 0.491 & 0.5722 & 0.47 \tabularnewline
379 & 8072.58 & 8590.3785 & 4963.0323 & 14868.8541 & 0.4358 & 0.5404 & 0.5662 & 0.4711 \tabularnewline
380 & 721.85 & 8589.7783 & 4875.7518 & 15132.9054 & 0.0092 & 0.5616 & 0.5492 & 0.4722 \tabularnewline
381 & 7138.6 & 8589.5804 & 4793.6362 & 15391.4248 & 0.3379 & 0.9883 & 0.5171 & 0.4733 \tabularnewline
382 & 7351.11 & 8589.5152 & 4715.5016 & 15646.2191 & 0.3654 & 0.6565 & 0.488 & 0.4742 \tabularnewline
383 & 7077 & 8589.4936 & 4640.7804 & 15898.0593 & 0.3425 & 0.6301 & 0.4919 & 0.4751 \tabularnewline
384 & 7272.37 & 8589.4866 & 4569.1225 & 16147.3631 & 0.3663 & 0.6526 & 0.4962 & 0.4759 \tabularnewline
385 & 7577.84 & 8589.4842 & 4500.2668 & 16394.4144 & 0.3997 & 0.6296 & 0.4871 & 0.4767 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=200630&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[374])[/C][/ROW]
[ROW][C]362[/C][C]7975.21[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]363[/C][C]8357.51[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]364[/C][C]8463.38[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]365[/C][C]7937.68[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]366[/C][C]8034.62[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]367[/C][C]8056.60999999999[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]368[/C][C]8176.95[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]369[/C][C]8441.04[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]370[/C][C]8697.39[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]371[/C][C]8665.56999999999[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]372[/C][C]8625.77[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]373[/C][C]8718.42000000001[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]374[/C][C]8822.34[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][C]-[/C][/ROW]
[ROW][C]375[/C][C]8597.67[/C][C]8665.5744[/C][C]5697.1102[/C][C]13180.7489[/C][C]0.4882[/C][C]0.4729[/C][C]0.5532[/C][C]0.4729[/C][/ROW]
[ROW][C]376[/C][C]8782.05[/C][C]8614.4981[/C][C]5335.217[/C][C]13909.3832[/C][C]0.4753[/C][C]0.5025[/C][C]0.5223[/C][C]0.4693[/C][/ROW]
[ROW][C]377[/C][C]8661.06[/C][C]8597.7231[/C][C]5171.7127[/C][C]14293.3001[/C][C]0.4913[/C][C]0.4747[/C][C]0.5898[/C][C]0.4692[/C][/ROW]
[ROW][C]378[/C][C]8265.32[/C][C]8592.1991[/C][C]5058.5629[/C][C]14594.2411[/C][C]0.4575[/C][C]0.491[/C][C]0.5722[/C][C]0.47[/C][/ROW]
[ROW][C]379[/C][C]8072.58[/C][C]8590.3785[/C][C]4963.0323[/C][C]14868.8541[/C][C]0.4358[/C][C]0.5404[/C][C]0.5662[/C][C]0.4711[/C][/ROW]
[ROW][C]380[/C][C]721.85[/C][C]8589.7783[/C][C]4875.7518[/C][C]15132.9054[/C][C]0.0092[/C][C]0.5616[/C][C]0.5492[/C][C]0.4722[/C][/ROW]
[ROW][C]381[/C][C]7138.6[/C][C]8589.5804[/C][C]4793.6362[/C][C]15391.4248[/C][C]0.3379[/C][C]0.9883[/C][C]0.5171[/C][C]0.4733[/C][/ROW]
[ROW][C]382[/C][C]7351.11[/C][C]8589.5152[/C][C]4715.5016[/C][C]15646.2191[/C][C]0.3654[/C][C]0.6565[/C][C]0.488[/C][C]0.4742[/C][/ROW]
[ROW][C]383[/C][C]7077[/C][C]8589.4936[/C][C]4640.7804[/C][C]15898.0593[/C][C]0.3425[/C][C]0.6301[/C][C]0.4919[/C][C]0.4751[/C][/ROW]
[ROW][C]384[/C][C]7272.37[/C][C]8589.4866[/C][C]4569.1225[/C][C]16147.3631[/C][C]0.3663[/C][C]0.6526[/C][C]0.4962[/C][C]0.4759[/C][/ROW]
[ROW][C]385[/C][C]7577.84[/C][C]8589.4842[/C][C]4500.2668[/C][C]16394.4144[/C][C]0.3997[/C][C]0.6296[/C][C]0.4871[/C][C]0.4767[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=200630&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=200630&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[374])
3627975.21-------
3638357.51-------
3648463.38-------
3657937.68-------
3668034.62-------
3678056.60999999999-------
3688176.95-------
3698441.04-------
3708697.39-------
3718665.56999999999-------
3728625.77-------
3738718.42000000001-------
3748822.34-------
3758597.678665.57445697.110213180.74890.48820.47290.55320.4729
3768782.058614.49815335.21713909.38320.47530.50250.52230.4693
3778661.068597.72315171.712714293.30010.49130.47470.58980.4692
3788265.328592.19915058.562914594.24110.45750.4910.57220.47
3798072.588590.37854963.032314868.85410.43580.54040.56620.4711
380721.858589.77834875.751815132.90540.00920.56160.54920.4722
3817138.68589.58044793.636215391.42480.33790.98830.51710.4733
3827351.118589.51524715.501615646.21910.36540.65650.4880.4742
38370778589.49364640.780415898.05930.34250.63010.49190.4751
3847272.378589.48664569.122516147.36310.36630.65260.49620.4759
3857577.848589.48424500.266816394.41440.39970.62960.48710.4767







Univariate ARIMA Extrapolation Forecast Performance
time% S.E.PEMAPESq.EMSERMSE
3750.2658-0.007804611.004600
3760.31360.01940.013628073.645116342.3248127.8371
3770.3380.00740.01164011.565212232.0716110.5987
3780.3564-0.0380.0182106849.962335886.5443189.4374
3790.3729-0.06030.0266268115.308682332.2971286.9361
3800.3886-0.9160.174861904295.87610385992.89363222.7307
3810.404-0.16890.1742105344.16129203043.07473033.6518
3820.4192-0.14420.17031533647.35028244368.60912871.3009
3830.4341-0.17610.17092287637.04027582509.54592753.6357
3840.4489-0.15330.16911734796.02176997738.19352645.3238
3850.4636-0.11780.16451023424.02156454618.72332540.5942

\begin{tabular}{lllllllll}
\hline
Univariate ARIMA Extrapolation Forecast Performance \tabularnewline
time & % S.E. & PE & MAPE & Sq.E & MSE & RMSE \tabularnewline
375 & 0.2658 & -0.0078 & 0 & 4611.0046 & 0 & 0 \tabularnewline
376 & 0.3136 & 0.0194 & 0.0136 & 28073.6451 & 16342.3248 & 127.8371 \tabularnewline
377 & 0.338 & 0.0074 & 0.0116 & 4011.5652 & 12232.0716 & 110.5987 \tabularnewline
378 & 0.3564 & -0.038 & 0.0182 & 106849.9623 & 35886.5443 & 189.4374 \tabularnewline
379 & 0.3729 & -0.0603 & 0.0266 & 268115.3086 & 82332.2971 & 286.9361 \tabularnewline
380 & 0.3886 & -0.916 & 0.1748 & 61904295.876 & 10385992.8936 & 3222.7307 \tabularnewline
381 & 0.404 & -0.1689 & 0.174 & 2105344.1612 & 9203043.0747 & 3033.6518 \tabularnewline
382 & 0.4192 & -0.1442 & 0.1703 & 1533647.3502 & 8244368.6091 & 2871.3009 \tabularnewline
383 & 0.4341 & -0.1761 & 0.1709 & 2287637.0402 & 7582509.5459 & 2753.6357 \tabularnewline
384 & 0.4489 & -0.1533 & 0.1691 & 1734796.0217 & 6997738.1935 & 2645.3238 \tabularnewline
385 & 0.4636 & -0.1178 & 0.1645 & 1023424.0215 & 6454618.7233 & 2540.5942 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=200630&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]375[/C][C]0.2658[/C][C]-0.0078[/C][C]0[/C][C]4611.0046[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]376[/C][C]0.3136[/C][C]0.0194[/C][C]0.0136[/C][C]28073.6451[/C][C]16342.3248[/C][C]127.8371[/C][/ROW]
[ROW][C]377[/C][C]0.338[/C][C]0.0074[/C][C]0.0116[/C][C]4011.5652[/C][C]12232.0716[/C][C]110.5987[/C][/ROW]
[ROW][C]378[/C][C]0.3564[/C][C]-0.038[/C][C]0.0182[/C][C]106849.9623[/C][C]35886.5443[/C][C]189.4374[/C][/ROW]
[ROW][C]379[/C][C]0.3729[/C][C]-0.0603[/C][C]0.0266[/C][C]268115.3086[/C][C]82332.2971[/C][C]286.9361[/C][/ROW]
[ROW][C]380[/C][C]0.3886[/C][C]-0.916[/C][C]0.1748[/C][C]61904295.876[/C][C]10385992.8936[/C][C]3222.7307[/C][/ROW]
[ROW][C]381[/C][C]0.404[/C][C]-0.1689[/C][C]0.174[/C][C]2105344.1612[/C][C]9203043.0747[/C][C]3033.6518[/C][/ROW]
[ROW][C]382[/C][C]0.4192[/C][C]-0.1442[/C][C]0.1703[/C][C]1533647.3502[/C][C]8244368.6091[/C][C]2871.3009[/C][/ROW]
[ROW][C]383[/C][C]0.4341[/C][C]-0.1761[/C][C]0.1709[/C][C]2287637.0402[/C][C]7582509.5459[/C][C]2753.6357[/C][/ROW]
[ROW][C]384[/C][C]0.4489[/C][C]-0.1533[/C][C]0.1691[/C][C]1734796.0217[/C][C]6997738.1935[/C][C]2645.3238[/C][/ROW]
[ROW][C]385[/C][C]0.4636[/C][C]-0.1178[/C][C]0.1645[/C][C]1023424.0215[/C][C]6454618.7233[/C][C]2540.5942[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=200630&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=200630&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
3750.2658-0.007804611.004600
3760.31360.01940.013628073.645116342.3248127.8371
3770.3380.00740.01164011.565212232.0716110.5987
3780.3564-0.0380.0182106849.962335886.5443189.4374
3790.3729-0.06030.0266268115.308682332.2971286.9361
3800.3886-0.9160.174861904295.87610385992.89363222.7307
3810.404-0.16890.1742105344.16129203043.07473033.6518
3820.4192-0.14420.17031533647.35028244368.60912871.3009
3830.4341-0.17610.17092287637.04027582509.54592753.6357
3840.4489-0.15330.16911734796.02176997738.19352645.3238
3850.4636-0.11780.16451023424.02156454618.72332540.5942



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