Essentials of Business Analytics
2nd Edition Camm Solutions Manual
Full download at link:
Test bank: https://testbankpack.com/p/test-bank-for-essentialsof-business-analytics-2nd-edition-by-camm-cochran-fryohlmann-anderson-isbn-1305627733-9781305627734/
Solution Manual: https://testbankpack.com/p/solution-manualfor-essentials-of-business-analytics-2nd-edition-by-cammcochran-fry-ohlmann-anderson-isbn-13056277339781305627734/
Chapter 8
Time Series Analysis and Forecasting
Solutions:
1. The following table shows the calculations for parts (a), (b), and (c).
8 - 1
Time Series Analysis and Forecasting
Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 1 18 2 13 18 -5 5 25 -38.46 38.46 3 16 13 3 3 9 18.75 18.75 4 11 16 -5 5 25 -45.45 45.45 5 17 11 6 6 36 35.29 35.29 6 14 17 -3 3 9 -21.43 21.43 Totals 22 104 -51.30 159.38 a. MAE = 22/5 = 4.4 b. MSE = 104/5 = 20.8
c. MAPE = 159.38/5 = 31.88
d. The forecast for week 7 is
= 14.
2. The following table shows the calculations for parts (a), (b), and (c).
a.
= 13.67/5 = 2.73
b. MSE = 54.31/5 = 10.86
c. MAPE = 105.89/5 = 21.18 d. The
3. The following table shows the measures of forecast error for both methods.
For each measure of forecast accuracy the average of all the historical data provided more accurate forecasts than simply using the most recent value.
8 - 2
Time Series Analysis and Forecasting
7 ˆ y
6
= y
Week Time Series Value Forecast Forecast Error Absolute Value of Forecast Error Squared Forecast Error Percentage Error Absolute Value of Percentage Error 1 18 2 13 18.00 -5.00 5.00 25.00 -38.46 38.46 3 16 15.50 0.50 0.50 0.25 3.13 3.13 4 11 15.67 -4.67 4.67 21.81 -42.45 42.45 5 17 14.50 2.50 2.50 6.25 14.71 14.71 6 14 15.00 -1.00 1.00 1.00 -7.14 7.14 Totals 13.67 54.31 -70.21 105.86
MAE
7 ˆ y = (y1 + y2 + y3 + y4 + y5 + y6) / 6 = (18 + 13 + 16 + 11 + 17 + 14) / 6 = 14.83.
forecast for week 7 is
Exercise 1 Exercise 2 MAE 4.40 2.73 MSE 20.80 10.86 MAPE 31.88 21.18
4 a. Month Time Series Value Forecast Forecast Error Squared Forecast Error 1 24 2 13 24 -11 121 3 20 13 7 49 4 12 20 -8 64 5 19 12 7 49
MSE = 363/6 = 60.5 The forecast for month 8 is
MSE = 216.72/6 = 36.12
c. The average of all the previous values is better because MSE is smaller.
8 - 3 6 23 19 4 16 7 15 23 -8 64 Total 363
Time Series Analysis and Forecasting
8 ˆ y = y7 = 15.
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 24 2 13 24.00 -11.00 121.00 3 20 18.50 1.50 2.25 4 12 19.00 -7.00 49.00 5 19 17.25 1.75 3.06 6 23 17.60 5.40 29.16 7 15 18.50 -3.50 12.25 Total 216.72
b.
Forecast for month 8 is 8 ˆ y = (y1 + y2 + y3 + y4 + y5 + y6 + y7) / 7 = (24 + 13 + 20 + 12 + 19 + 23 + 15) / 7
= 18.
5. a.
The data appear to follow a horizontal pattern.
b. Three-week moving average.
MSE = 35.67/3 = 11.89
c. Smoothing constant = 0.2
Time Series Analysis and Forecasting 8 - 4
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 18 2 13 3 16 4 11 15.67 -4.67 21.78 5 17 13.33 3.67 13.44 6 14 14.67 -0.67 0.44 Total 35.67
forecast for week 7 is = (y4 + y5 + y6) / 3 = (11 + 17 + 14) / 3 = 14
The
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 18 2 13 18.00 -5.00 25.00 3 16 17.00 -1.00 1.00 0 2 4 6 8 10 12 14 16 18 20 1 2 3 4 5 6 Time Series Value Week (t) 7 ˆ y
MSE = 65.15/5 = 13.03
d. The three-week moving average provides a better forecast since it has a smaller MSE.
e. Several values of will yield an MSE smaller than the MSE associated with = 0.2. The table below shows the resulting MSE from several different that you select.
The value of that yields the minimum MSE is = 0.368, which yields an MSE of 12.06.
Time Series Analysis and Forecasting 8 - 5 4 11 16.80 -5.80 33.64 5 17 15.64 1.36 1.85 6 14 15.91 -1.91 3.66 Total 65.15
week
7 ˆ y = y6 + (1-) 6 ˆ y = 0.2(14) + (1 - 0.2)15.91 = 15.53
The forecast for
7 is
MSE 0.1 15.04 0.2 13.03 0.3 12.20 0.4 12.09 0.5 12.47 0.6 13.25 0.7 14.41
= 0.368 Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 18 2 13 18 -5.00 25.00 3 16 16.16 -0.16 0.03 4 11 16.10 -5.10 26.03 5 17 14.23 2.77 7.69 6 14 15.25 -1.25 1.55 Total 60.30 MSE = 60.30/5= 12.06 6. a.
The data appear to follow a horizontal pattern.
b.Three-week moving average.
MSE = 110/4 = 27.5.
c. Smoothing constant = 0.2
Time Series Analysis and Forecasting 8 - 6
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 24 2 13 3 20 4 12 19.00 -7.00 49.00 5 19 15.00 4.00 16.00 6 23 17.00 6.00 36.00 7 15 18.00 -3.00 9.00 Total 110.00
The forecast for week 8 is 8 ˆ y = (y5 + y6 + y7) / 3 = (19 + 23 + 15) / 3 = 19.
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 24 2 13 24.00 -11.00 121.00 3 20 21.80 -1.80 3.24 0 5 10 15 20 25 30 1 2 3 4 5 6 7 Time Series Value Week (t)
MSE = 252.87/6 = 42.15 The
d.The three-week moving average provides a better forecast since it has a smaller MSE.
e. Several values of will yield an MSE smaller than the MSE associated with = 0.2. The table below shows the resulting MSE for several different values.
The value of that yields the minimum MSE is = 0.351, which yields an MSE of 39.61.
= 0.351
MSE = 237.69/6 = 39.61428577
7. a. Four and Five -week moving averages.
Time Series Analysis and Forecasting 8 - 7 4 12 21.44 -9.44 89.11 5 19 19.55 -0.55 0.30 6 23 19.44 3.56 12.66 7 15 20.15 -5.15 26.56 Total 252.87
8
8 ˆ y = y7 + (1-) 7 ˆ y =0.2(15) + (1 - 0.2)20.15 = 19.12.
forecast for week
is
MSE 0.1 48.86 0.2 42.15 0.3 39.85 0.4 39.79 0.5 41.02 0.6 43.18 0.7 46.15
Month Time Series Value Forecast Forecast Error Squared Forecast Error 1 24 2 13 24 -11.00 121.00 3 20 20.13 -0.13 0.02 4 12 20.09 -8.09 65.40 5 19 17.25 1.75 3.08 6 23 17.86 5.14 26.40 7 15 19.67 -4.67 21.79 Total 237.69
b The MSE for the four-week and five-week moving averages
For the four-week moving average:
MSE = 77.1875/8 = 9.648
For the five-week moving average:
Time Series Analysis and Forecasting 8 - 8 Week Sales 4 Period Moving Average 5 period Moving Average 1 17 2 21 3 19 4 23 5 18 20.00 6 16 20.25 19.60 7 20 19.00 19.40 8 18 19.25 19.20 9 22 18.00 19.00 10 20 19.00 18.80 11 15 20.00 19.20 12 22 18.75 19.00
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 17 2 21 3 19 4 23 5 18 20.00 -2.00 4.0000 6 16 20.25 -4.25 18.0625 7 20 19.00 1.00 1.0000 8 18 19.25 -1.25 1.5625 9 22 18.00 4.00 16.0000 10 20 19.00 1.00 1.0000 11 15 20.00 -5.00 25.0000 12 22 18.75 3.25 10.5625 Total 77.1875
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 17 2 21
MSE = 51.84/7 = 7.406
c The MSE for the moving average forecasts are:
Using the MSE as our standard, the best number of weeks of past data to use in the moving average computation is five.
8 a. Exponential smoothing forecasts using α = 0.1:
MSE = 101.78/11 = 9.253
For a smoothing constant of α = 0.2:
8 - 9 3 19 4 23 5 18 6 16 19.60 -3.60 12.96 7 20 19.40 0.60 0.36 8 18 19.20 -1.20 1.44 9 22 19.00 3.00 9.00 10 20 18.80 1.20 1.44 11 15 19.20 -4.20 17.64 12 22 19.00 3.00 9.00 Total 51.84
Time Series Analysis and Forecasting
three week 27.500 four week 9.648 five week 7.406
Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 17 17.00 2 21 17.00 4.00 16.00 3 19 17.40 1.60 2.56 4 23 17.56 5.44 29.59 5 18 18.10 -0.10 0.01 6 16 18.09 -2.09 4.38 7 20 17.88 2.12 4.48 8 18 18.10 -0.10 0.01 9 22 18.09 3.91 15.32 10 20 18.48 1.52 2.32 11 15 18.63 -3.63 13.18 12 22 18.27 3.73 13.94 Total 101.78
MSE = 98.80 / 11 = 8.982
Applying the MSE measure of forecast accuracy, a smoothing constant of α = 0.2 produces a smaller MSE and so is preferred.
b.For a smoothing constant of α = 0 1:
MAE = 28.25 / 11 = 2.568 For a smoothing constant of α = 0 2:
8 - 10 Week Time Series Value Forecast Forecast Error Squared Forecast Error 1 17 17.00 2 21 17.00 4.00 16.00 3 19 17.80 1.20 1.44 4 23 18.04 4.96 24.60 5 18 19.03 -1.03 1.07 6 16 18.83 -2.83 7.98 7 20 18.26 1.74 3.03 8 18 18.61 -0.61 0.37 9 22 18.49 3.51 12.34 10 20 19.19 0.81 0.66 11 15 19.35 -4.35 18.94 12 22 18.48 3.52 12.38 Total 98.80
Time Series Analysis and Forecasting
Week Time Series Value Forecast Forecast Error Absolute Forecast Error 1 17 17.00 2 21 17.00 4.00 4.00 3 19 17.40 1.60 1.60 4 23 17.56 5.44 5.44 5 18 18.10 -0.10 0.10 6 16 18.09 -2.09 2.09 7 20 17.88 2.12 2.12 8 18 18.10 -0.10 0.10 9 22 18.09 3.91 3.91 10 20 18.48 1.52 1.52 11 15 18.63 -3.63 3.63 12 22 18.27 3.73 3.73 Total 28.25
Time Series Analysis and Forecasting
MAE = 28.56 / 11 = 2.596
Applying the MAE measure of forecast accuracy, a smoothing constant of α = 0.1 produces a slightly smaller MAE and so is preferred.
c. For a smoothing constant of α = 0 1:
MAPE = 142.46 / 11 = 12.95
For a smoothing constant of α = 0 2:
8 - 11 Week Time Series Value Forecast Forecast Error Absolute Forecast Error 1 17 17.00 2 21 17.00 4.00 4.00 3 19 17.80 1.20 1.20 4 23 18.04 4.96 4.96 5 18 19.03 -1.03 1.03 6 16 18.83 -2.83 2.83 7 20 18.26 1.74 1.74 8 18 18.61 -0.61 0.61 9 22 18.49 3.51 3.51 10 20 19.19 0.81 0.81 11 15 19.35 -4.35 4.35 12 22 18.48 3.52 3.52 Total 28.56
Week Time Series Value Forecast Forecast Error 100*(Forecast Error/ Time Series Value) Absolute Value of 100*(Forecast Error/ Time Series Value) 1 17 17.00 2 21 17.00 4.00 19.05 19.05 3 19 17.40 1.60 8.42 8.42 4 23 17.56 5.44 23.65 23.65 5 18 18.10 -0.10 -0.58 0.58 6 16 18.09 -2.09 -13.09 13.09 7 20 17.88 2.12 10.58 10.58 8 18 18.10 -0.10 -0.53 0.53 9 22 18.09 3.91 17.79 17.79 10 20 18.48 1.52 7.61 7.61 11 15 18.63 -3.63 -24.20 24.20 12 22 18.27 3.73 16.97 16.97 Total 142.46
MAPE = 147.43 / 11 = 13.40
Applying the MAPE measure of forecast accuracy, a smoothing constant of α = 0.1 produces a smaller MAPE and so is preferred.
b.The more recent data receive the greater weight or importance in determining the forecast. The moving averages method weights the last n data values equally in determining the forecast.
8 - 12 Week Time Series Value Forecast Forecast Error 100*(Forecast Error/ Time Series Value) Absolute Value of 100*(Forecast Error/ Time Series Value) 1 17 17.00 2 21 17.00 4.00 19.05 19.05 3 19 17.80 1.20 6.32 6.32 4 23 18.04 4.96 21.57 21.57 5 18 19.03 -1.03 -5.73 5.73 6 16 18.83 -2.83 -17.66 17.66 7 20 18.26 1.74 8.70 8.70 8 18 18.61 -0.61 -3.38 3.38 9 22 18.49 3.51 15.97 15.97 10 20 19.19 0.81 4.05 4.05 11 15 19.35 -4.35 -29.01 29.01 12 22 18.48 3.52 15.99 15.99 Total 147.43
Time Series Analysis and Forecasting
9. a. 13 ˆ y = 0.2y12 + 0.16y11 + 0.64(0.2y10 + 0.8 10 ˆ y ) = 0.2y12 + 0.16y11 + 0.128y10 + 0.512 10 ˆ y 13 ˆ y = 0.2y12 + 0.16y11 + 0.128y10 + 0.512(0.2y9 + 0.8 9 ˆ y ) = 0.2y12 + 0.16y11 + 0.128y10 + 0.1024y9 + 0.4096 9 ˆ y 13 ˆ y = 0.2y12 + 0.16y11 + 0.128y10 + 0.1024y9 + 0.4096(0.2y8 + 0.8 8 ˆ y ) = 0.2y12 + 0.16y11 + 0.128y10 + 0.1024y9 + 0.08192y8 + 0.32768
10. a. 8 ˆ y
The time series plot indicates a horizontal pattern.
Time
Analysis and Forecasting 8 - 13
Series
Week Sales Volume Forecast Forecast Error Squared Value of Forecast Error 1 2750 2 3100 2750.00 350.000 122,500.00 3 3250 2890.00 360.000 129,600.00 4 2800 3034.00 -234.000 54,756.00 5 2900 2940.40 -40.400 1,632.16 6 3050 2924.24 125.760 15,815.58 7 3300 2974.54 325.456 105,921.61 8 3100 3104.73 -4.726 22.34 9 2950 3102.84 -152.836 23,358.79 10 3000 3041.70 -41.702 1,739.02 11 3200 3025.02 174.979 30,617.68 12 3150 3095.01 54.987 3,023.62 Total 488,986.80
MSE = 488,986.80/11 = 44,453 Forecast for week 13 is 13 ˆ y = y12 + (1-) 12 ˆ y = 0.4(3150) + 0.6(3095.01) = 3117.01 or 3117 halfgallons of milk. 11. a. 2000 2200 2400 2600 2800 3000 3200 3400 0 2 4 6 8 10 12 14 Sales Volumne Week
b.
Note:
The data appear to follow a horizontal pattern.
b. For the three month moving average:
MSE = 11.11 / 9 = 1.235
Time Series Analysis and Forecasting 8 - 14
Month Time Series Value Forecast Forecast Error Square Forecast Error 1 80 2 82 3 84 4 83 82.00 1.00 1.00 5 83 83.00 0.00 0.00 6 84 83.33 0.67 0.44 7 85 83.33 1.67 2.78 8 84 84.00 0.00 0.00 9 82 84.33 -2.33 5.44 10 83 83.67 -0.67 0.44 11 84 83.00 1.00 1.00 12 83 83.00 0.00 0.00 Total 11.11
75 80 85 90 1 2 3 4 5 6 7 8 9 10 11 12 % of Shipments received on time Month
For the exponential smoothing forecast for α = 0.2:
MSE = 39.80 / 11 = 3.555
Applying the MSE measure of forecast accuracy, a three-month moving average produces a smaller MSE and so is preferred.
c. Using a three-month moving average, the forecast for next month (t = 13) is
8 - 15
Time Series Analysis and Forecasting
Month Time Series Value Forecast Forecast Error Square Forecast Error 1 80 80.00 2 82 80.00 2.00 4.00 3 84 80.40 3.60 12.96 4 83 81.12 1.88 3.53 5 83 81.50 1.50 2.26 6 84 81.80 2.20 4.85 7 85 82.24 2.76 7.63 8 84 82.79 1.21 1.46 9 82 83.03 -1.03 1.06 10 83 82.83 0.17 0.03 11 84 82.86 1.14 1.30 12 83 83.09 -0.09 0.01 15.35 39.11
13 ˆ y = (y10 + y11 + y12) / 3 = (83 + 84 + 83) / 3 = 83.33.
The data appear to follow a horizontal pattern.
= 1.08 / 9 = 0.12 MSE(4-Month) = 1.09 / 8 = 0.14
The MSE for the 3-Month moving average is smaller, so use the 3-Month moving average. c. The forecast for month 13 is
8 - 16 12. a.
Time Series Analysis and Forecasting
Month Time-Series Value 3-Month Moving Average Forecast (Error)2 4-Month Moving Average Forecast (Error)2 1 9.5 2 9.3 3 9.4 4 9.6 9.40 0.04 5 9.8 9.43 0.14 9.45 0.12 6 9.7 9.60 0.01 9.53 0.03 7 9.8 9.70 0.01 9.63 0.03 8 10.5 9.77 0.53 9.73 0.59 9 9.9 10.00 0.01 9.95 0.00 10 9.7 10.07 0.14 9.98 0.08 11 9.6 10.03 0.18 9.97 0.14 12 9.6 9.73 0.02 9.92 0.10 1.08 1.09
b.
MSE(3-Month)
13 ˆ y = (y10 + y11 + y12) / 3 = (9.7 + 9.6 + 9.6) / 3 = 9.63. 7.0 7.5 8.0 8.5 9.0 9.5 10.0 10.5 11.0 1 2 3 4 5 6 7 8 9 10 11 12 Interest Rate (%) Month (t)
The data appear to follow a horizontal pattern.
= 17,988.52 / 9 = 1998.72
= 0.2) = 27,818.49 / 11 = 2528.95
Based on the above MSE values, the 3-month moving average appears better. However, exponential smoothing was penalized by including month 2 which was difficult for any method to forecast. Using only the errors for months 4 to 12, the MSE for exponential smoothing is:
MSE(= 0.2) = 14,694.49 / 9 = 1632.72
Thus, exponential smoothing was better considering months 4 to 12.
c. Using exponential smoothing with = 0.2,
Time Series Analysis and Forecasting 8 - 17 13. a.
b. Month Time-Series Value 3-Month Moving Average Forecast (Error)2 = 0.2 Forecast (Error)2 1 240 2 350 240.00 12100.00 3 230 262.00 1024.00 4 260 273.33 177.69 255.60 19.36 5 280 280.00 0.00 256.48 553.19 6 320 256.67 4010.69 261.18 3459.79 7 220 286.67 4444.89 272.95 2803.70 8 310 273.33 1344.69 262.36 2269.57 9 240 283.33 1877.49 271.89 1016.97 10 310 256.67 2844.09 265.51 1979.36 11 240 286.67 2178.09 274.41 1184.05 12 230 263.33 1110.89 267.53 1408.50 17,988.52 27,818.49 MSE(3-Month)
MSE(α
13 ˆ y = y12 + (1 - ) 12 ˆ y = 0.2(230) + 0.8(267.53) = 256.66 0 50 100 150 200 250 300 350 400 1 2 3 4 5 6 7 8 9 10 11 12 Value (millions of dollars) Month (t)
The data appear to follow a horizontal pattern.
b.Smoothing constant = 0.3.
MSE = 5613.18 / 11 = 510.29
c. The MSE values for exponential smoothing forecasts with several different values of appear below.
Analysis and Forecasting 8 - 18 14. a.
Time Series
Month t Time-Series Value yt Forecast ˆ ty Forecast Error ytˆ ty Squared Error ( ) ˆ 2 t t yy1 105 2 135 105.00 30.00 900.00 3 120 114.00 6.00 36.00 4 105 115.80 -10.80 116.64 5 90 112.56 -22.56 508.95 6 120 105.79 14.21 201.92 7 145 110.05 34.95 1221.50 8 140 120.54 19.46 378.69 9 100 126.38 -26.38 695.90 10 80 118.46 -38.46 1479.17 11 100 106.92 -6.92 47.89 12 110 104.85 5.15 26.52 Total 5613.18
The forecast for month 13 is 13 ˆ y = y12 + (1-) 12 ˆ y = 0.3(110) + 0.7(104.85) = 106.4
0 20 40 60 80 100 120 140 160 1 2 3 4 5 6 7 8 9 10 11 12 Sales Month (t)
The values of that yields the smallest possible MSE is = 0.033, which yields an MSE of 459.693
MSE = 5056.62 / 11 = 459.693
8 - 19 MSE 0.01 461.45 0.05 460.48 0.1 468.11 0.2 489.82 0.3 510.28 0.4 527.61 0.5 540.57 0.6 547.63 0.7 547.73
Time Series Analysis and Forecasting
= 0.033 Squared Time Series Forecast Forecast Month Value Forecast Error Error 1 105 2 135 105.00 30.00 900.00 3 120 105.98 14.02 196.65 4 105 106.43 -1.43 2.06 5 90 106.39 -16.39 268.53 6 120 105.85 14.15 200.13 7 145 106.31 38.69 1496.61 8 140 107.57 32.43 1051.46 9 100 108.63 -8.63 74.47 10 80 108.35 -28.35 803.65 11 100 107.43 -7.43 55.14 12 110 107.18 2.82 7.93 Total 5056.62
The data appear to follow a horizontal pattern.
b.The MSE values for exponential smoothing forecasts with several different values of appear below.
The value of that yields the minimum MSE is = 0.9102, which yields an MSE of 0.0085 Values of near 0.9102 will yield similar values for the MSE
Time Series Analysis and Forecasting 8 - 20 15. a.
MSE 0.1 0.0266 0.2 0.0171 0.3 0.0127 0.4 0.0106 0.5 0.0095 0.6 0.0090 0.7 0.0087 0.8 0.0086 0.9 0.0085 0.95 0.0085 0.99 0.0085
16. a. 7.00 7.10 7.20 7.30 7.40 7.50 7.60 7.70 7.80 7.90 8.00 1 2 3 4 5 6 7 8 9 10 Commodity Futures Index Week
b.The value of the MSE will vary depending on the ultimate value of that you select. The resulting MSE values for several different values appear below.
The value of that yields the smallest possible MSE is = 0.467, which yields an MSE of 1.22.
Time Series Analysis and Forecasting 8 - 21
MSE 0.1 1.71 0.2 1.40 0.3 1.27 0.4 1.23 0.5 1.22 0.6 1.24 0.7 1.27
= 0.467 Period Stock % Forecast Forecast Error Squared Forecast Error 1st-2011 29.8 2nd-2011 31.0 29.8.0 1.20 1.44 3rd-2011 29.9 30.36 -0.46 0.21 4th-2011 30.1 30.15 -0.05 0.00 1st-2012 32.2 30.12 2.08 4.31 2nd-2012 31.5 31.09 0.41 0.16 3rd-2012 32.0 31.28 0.72 0.51 4th-2012 31.9 31.62 0.28 0.08 1st-2013 30.0 31.75 -1.75 3.06 2nd-2013 30.93 Total 9.78 25 26 27 28 29 30 31 32 33 0 1 2 3 4 5 6 7 8 9 Percentage of Stocks iin Portfolio Period (t)
MSE = 1.22
c. The forecast for second quarter 2013 will vary depending on the ultimate value of that you selected in part b. Using an exponential smoothing model with = 0.467, the forecast for second quarter of year 3 = 30.93.
a.
The time series plot shows a linear trend.
b.From the Excel output
the regression estimates for the slope and y-intercept that minimize MSE for this time series are are b0 = 4.7 and b1 = 2.1, which results in the following forecasts, errors, and MSE:
Time Series Analysis and Forecasting 8 - 22
17.
0 2 4 6 8 10 12 14 16 1 2 3 4 5 Time Series Value Time Period (t)
The data are following a downward trend b.From the Excel
8 - 23 Year Sales Forecast Forecast Error Squared Forecast Error 1 6.00 6.80 -0.80 0.64 2 11.00 8.90 2.10 4.41 3 9.00 11.00 -2.00 4.00 4 14.00 13.10 0.90 0.81 5 15.00 15.20 -0.20 0.04 6 17.30 Total 9.9 MSE = 9.9/5 = 1.982.475. c. 6 ˆ y = b0 + b1t = 4.7 + 2.1(6) = 17.3 18 a.
Time Series Analysis and Forecasting
0 20 40 60 80 100 120 140 1 2 3 4 5 6 7 Time Series Value Time Period (t)
output
the regression estimates for the slope and y-intercept that minimize MSE for this time series are are b0 = 119.714 and b1 = -4.929, which results in the following forecasts, errors, and MSE:
Time Series Analysis and Forecasting 8 - 24
Period Time Series Value Forecast Forecast Error Squared Forecast Error 1 120 114.7857 5.2143 27.1888 2 110 109.8571 0.1429 0.0204 3 100 104.9286 -4.9286 24.2908 4 96 100.0000 -4.0000 16.0000 5 94 95.0714 -1.0714 1.1480 6 92 90.1429 1.8571 3.4490 7 88 85.2143 2.7857 7.7602 Total 79.8571 MSE = 79.8571 / 7 = 11.4082. c. 8 ˆ y = b0 + b1t = 119.714 – 4.929(8) = 80.282 19 a.
The time series plot shows a linear trend
b. From the Excel output
the regression estimates for the slope and y-intercept that minimize MSE for this time series are b0 = 4.717 and b1 = 1.457, which results in the following forecasts, errors, and MSE:
Time Series Analysis and Forecasting 8 - 25
Year Enrollment Forecast Forecast Error Squared Forecast Error 1 6.50 6.17 0.33 0.11 2 8.10 7.63 0.47 0.22 3 8.40 9.09 -0.69 0.47 0 2 4 6 8 10 12 14 16 18 20 1 2 3 4 5 6 7 8 9 Enrollment (1000s) Year (t)
The data appear to follow a downward trend
b.From the Excel output
8 - 26 4 10.20 10.54 -0.34 0.12 5 12.50 12.00 0.50 0.25 6 13.30 13.46 -0.16 0.02 7 13.70 14.91 -1.21 1.47 8 17.20 16.37 0.83 0.69 9 18.10 17.83 0.27 0.07 10 19.28 Total 3.42 MSE = 0.3808 c. 10 ˆ y = b0 + b1t = 4.717 + 1.457(10) = 19.29 20. a.
Time Series Analysis and Forecasting
0.0 2.0 4.0 6.0 8.0 10.0 12.0 14.0 16.0 0 1 2 3 4 5 6 7 8 % Spent on Administration & Fund Raising Period (t)
the regression estimates for the slope and y-intercept that minimize MSE for this time series are are b0 = 13.8 and b1 = -0.7, which results in the following forecasts, errors, and MSE:
Thus, we predict that SCC will achieve a level less than 5% in year 13 (6 years from now) at 4.7%.
Time Series Analysis and Forecasting 8 - 27
t Time Series Value Forecast Forecast Error Squared Forecast Error 1 13.9 13.10 0.80 0.64 2 12.2 12.40 -0.20 0.04 3 10.5 11.70 -1.20 1.44 4 10.4 11.00 -0.60 0.36 5 11.5 10.30 1.20 1.44 6 10.0 9.60 0.40 0.16 7 8.5 8.90 -0.40 0.16 8 Total 4.24 MSE = 4.24 / 7 = 0.606 c. 8 ˆ y = b0 + b1t = 13.8 – 0.7(8) = 8.20 d.Using the forecast model �� ̂ �� =��0 +��1�� for t = 9, 10, …15 gives us t �� ̂ �� 9 7.5 10 6.8 11 6.1 12 5.4 13 4.7 14 4.0 15 3.3
The time series plot shows an upward linear trend
b. From the Excel output
the regression estimates for the slope and y-intercept that minimize MSE for this time series are b0 = 19.993 and b1 = 1.774, which results in the following forecasts, errors, and MSE:
Time Series Analysis and Forecasting 8 - 28 21 a.
Squared Forecast Forecast Year Cost/Unit($) Forecast Error Error 1 20.00 21.77 -1.77 3.12 2 24.50 23.54 0.96 0.92 3 28.20 25.31 2.89 8.33 $0.00 $5.00 $10.00 $15.00 $20.00 $25.00 $30.00 $35.00 $40.00 1 2 3 4 5 6 7 8 Cost/Unit ($) Year (t)
c. The average cost/unit has been increasing by approximately $1.77 per year.
ˆ y = b0 + b1t = 19.993 + 1.774(9) = $35.96.
Dummy Variables Year Quarter Qtr1 Qtr2 Qtr3 yt 1 1 1 0 0 71 1 2 0 1 0 48 1 3 0 0 1 58 1 4 0 0 0 78 2 1 1 0 0 68 2 2 0 1 0 41 2 3 0 0 1 60 2 4 0 0 0 81 3 1 1 0 0 62 0 10 20 30 40 50 60 70 80 90 1 2 3 4 5 6 7 8 9 10 11 12 Time Series Value Period (t)
The time series plot shows a horizontal pattern. But, there is a seasonal pattern in the data. For instance, in each year the lowest value occurs in quarter 2 and the highest value occurs in quarter 4.
Time Series Analysis and Forecasting 8 - 29 4 27.50 27.09 0.41 0.17 5 26.60 28.86 -2.26 5.12 6 30.00 30.64 -0.64 0.40 7 31.00 32.41 -1.41 1.99 8 36.00 34.18 1.82 3.30 Total 23.35
MSE = 2.92
d. 9 22. a.
b.After putting the data into the following format:
we can use the Excel Regression tool to find the regression model that to accounts for seasonal effects in the data. From the Excel output
the regression model that minimizes MSE for this time series is: Value
c. The quarterly forecasts for next year are as follows:
Time Series Analysis and Forecasting 8 - 30 3 2 0 1 0 51 3 3 0 0 1 53 3 4 0 0 0 72
= 77 - 10 Qtr1
30.333 Qtr2 - 20 Qtr3
-
Quarter 1 forecast = 77 - 10(1) - 30.333(0) - 20(0) = 67 Quarter 2 forecast = 77 - 10(0) - 30.333(1) - 20(0) = 46.667 Quarter 3 forecast = 77 - 10(0) - 30.333(0) - 20(1) = 57 Quarter 4 forecast = 77 - 10(0) - 30.333(0) - 20(0) = 77 23. a.
Careful scrutiny of the time series plot reveals a horizontal pattern (i.e., a linear trend) with seasonality. For instance, in each year the value drops from quarter 1 to quarter 2 and the value increases from quarter 3 to quarter 4.
b.After putting the data into the following format:
We can use the Excel Regression tool to find the regression model that to accounts for trend and seasonal effects in the data. From the Excel output
Time Series Analysis and Forecasting 8 - 31
Dummy Variables Year Quarter Qtr1 Qtr2 Qtr3 yt 1 1 1 0 0 4 1 2 0 1 0 2 1 3 0 0 1 3 1 4 0 0 0 5 2 1 1 0 0 6 2 2 0 1 0 3 2 3 0 0 1 5 2 4 0 0 0 7 3 1 1 0 0 7 3 2 0 1 0 6 3 3 0 0 1 6 3 4 0 0 0 8
0 1 2 3 4 5 6 7 8 9 Year 1, Quarter 1 Year 1, Quarter 2 Year 1, Quarter 3 Year 1, Quarter 4 Year 2, Quarter 1 Year 2, Quarter 2 Year 2, Quarter 3 Year 2, Quarter 4 Year 3, Quarter 1 Year 3, Quarter 2 Year 3, Quarter 3 Year 3, Quarter 4 Time Series Values Time Period
The regression model that minimizes MSE for this time series is:
c. Based on the model in part (b), the quarterly forecasts for next year are as follows:
d.After putting the data into the following format:
Time Series Analysis and Forecasting 8 - 32
Qtr3
Value = 6.667 -1 Qtr1 – 3 Qtr2 – 2
Quarter 1 forecast = 6.667 – 1 (1) – 3 (0) – 2 (0) = 5.667 Quarter 2 forecast = 6.667 – 1 (0) – 3 (1) – 2 (0) = 3.667 Quarter 3 forecast = 6.667 – 1 (0) – 3 (0) – 2 (1) = 6.667 Quarter 4 forecast = 6.667 – 1 (0) – 3 (0) – 2 (0) = 6.667
Variables Year Quarter Qtr1 Qtr2 Qtr3 t yt 1 1 1 0 0 1 4 1 2 0 1 0 2 2 1 3 0 0 1 3 3 1 4 0 0 0 4 5 2 1 1 0 0 5 6 2 2 0 1 0 6 3 2 3 0 0 1 7 5 2 4 0 0 0 8 7 3 1 1 0 0 9 7 3 2 0 1 0 10 6 3 3 0 0 1 11 6 3 4 0 0 0 12 8
Dummy
We can use the Excel Regression tool to find the regression model that to accounts for trend and seasonal effects in the data From the Excel output
The regression model that minimizes MSE for this time series is:
e. Based on the model in part (d), the quarterly forecasts for next year are as follows:
f For the model from part (b) that only includes seasonal effects:
Time Series Analysis and Forecasting 8 - 33
Value = 3.4167 + 0.2188 Qtr1 – 2.1875 Qtr2 – 1.5938 Qtr3 + 0.4063 t
Quarter 1 forecast = 3.4167 + 0.2188(1) – 2.1875(0) – 1.5938(0) + 0.4063(13) = 8.91678 Quarter 2 forecast = 3.4167 + 0.2188(0) – 2.1875(1) – 1.5938(0) + 0.4063(14) = 6.9167 Quarter 3 forecast = 3.4167 + 0.2188(0) – 2.1875(0) – 1.5938(1) + 0.4063(15) = 7.9167 Quarter 4 forecast = 3.4167 + 0.2188(0) – 2.1875(0) – 1.5938(0) + 0.4063(16) = 9.9167
Year Quarter yt Forecast Forecast Error Squared Forecast Error 1 1 4 5.6667 -5.6667 32.1111 1 2 2 3.6667 -3.6667 13.4444 1 3 3 4.6667 -4.6667 21.7778 1 4 5 6.6667 -6.6667 44.4444 2 1 6 5.6667 -5.6667 32.1111 2 2 3 3.6667 -3.6667 13.4444 2 3 5 4.6667 -4.6667 21.7778 2 4 7 6.6667 -6.6667 44.4444
MSE = 335.3333 / 12 = 27.9444
For the model from part (d) that includes both trend and seasonal effects:
The mean squared error for the model from part (d) that includes both trend and seasonal effects is much smaller than the mean squared error for the model from part (b) that includes only seasonal effects. This supports our preliminary conclusions reached in review of the time series plot constructed in part (a) – these data show a linear trend with seasonality.
Time Series Analysis and Forecasting 8 - 34 3 1 7 5.6667 -5.6667 32.1111 3 2 6 3.6667 -3.6667 13.4444 3 3 6 4.6667 -4.6667 21.7778 3 4 8 6.6667 -6.6667 44.4444 Total
335.3333
Year Quarter t yt Forecast Forecast Error Squared Forecast Error 1 1 1 4 4.0417 -0.0417 0.0017 1 2 2 2 2.0417 -0.0417 0.0017 1 3 3 3 3.0417 -0.0417 0.0017 1 4 4 5 5.0417 -0.0417 0.0017 2 1 5 6 5.6667 0.3333 0.1111 2 2 6 3 3.6667 -0.6667 0.4444 2 3 7 5 4.6667 0.3333 0.1111 2 4 8 7 6.6667 0.3333 0.1111 3 1 9 7 7.2917 -0.2917 0.0851 3 2 10 6 5.2917 0.7083 0.5017 3 3 11 6 6.2917 -0.2917 0.0851 3 4 12 8 8.2917 -0.2917 0.0851 Total 1.5417 MSE = 1.5417 / 12 = 0 1285
There appears to be a seasonal pattern in the data and perhaps a moderate upward linear trend.
b.After putting the data into the following format:
We can use the Excel Regression tool to find the regression model that to accounts for seasonal effects in the data From the Excel output
Time Series Analysis and Forecasting 8 - 35 24 a.
Dummy Variables Year Quarter Qtr1 Qtr2 Qtr3 yt 1 1 1 0 0 1690 1 2 0 1 0 940 1 3 0 0 1 2625 1 4 0 0 0 2500 2 1 1 0 0 1800 2 2 0 1 0 900 2 3 0 0 1 2900 2 4 0 0 0 2360 3 1 1 0 0 1850 3 2 0 1 0 1100 3 3 0 0 1 2930 3 4 0 0 0 2615
0 500 1000 1500 2000 2500 3000 3500 1 2 3 4 5 6 7 8 9 10 11 12 Time Series Value Period (t)
The regression model that minimizes MSE for this time series is:
c. Based on the model in part (b), the quarterly forecasts for next year are as follows:
d.After putting the data into the following format:
Time Series Analysis and Forecasting 8 - 36
Value = 2491.6667 – 711.6667 Qtr1 – 1511.6667 Qtr2 + 326.6667 Qtr3
Quarter 1 forecast = 2491.6667 – 711.6667(1) – 1511.6667(0) + 326.6667(0) = 1780.00 Quarter 2 forecast = 2491.6667 – 711.6667(0) – 1511.6667(1) + 326.6667(0) = 980.00 Quarter 3 forecast = 2491.6667 – 711.6667(0) – 1511.6667(0) + 326.6667(1) = 2818.3333 Quarter 4 forecast = 2491.6667 – 711.6667(0) – 1511.6667(0) + 326.6667(0) = 2491.6667
Dummy Variables Year Quarter Qtr1 Qtr2 Qtr3 t yt 1 1 1 0 0 1 1690 1 2 0 1 0 2 940 1 3 0 0 1 3 2625 1 4 0 0 0 4 2500 2 1 1 0 0 5 1800 2 2 0 1 0 6 900 2 3 0 0 1 7 2900 2 4 0 0 0 8 2360 3 1 1 0 0 9 1850 3 2 0 1 0 10 1100 3 3 0 0 1 11 2930
we can use the Excel Regression tool to find the regression model that to accounts for seasonal effects in the data From the Excel output
the regression model that minimizes MSE for this time series is:
e Based on the model in part (c), the quarterly forecasts for next year are as follows:
f For the model from part (b) that only includes seasonal effects:
Time Series Analysis and Forecasting 8 - 37 3 4 0 0 0 12 2615
Value = 2306.6667 – 642.2917 Qtr1 – 1465.417 Qtr2 + 349.7917 Qtr3 + 23.125t
Quarter 1 forecast = 2306.6667 – 642.2917(1) – 1465.417(0) + 349.7917(0) + 23.125(13) = 1965.00 Quarter 2 forecast = 2306.6667 – 642.2917(0) – 1465.417(1) + 349.7917(0) + 23.125(14) = 1165.00 Quarter 3 forecast = 2306.6667 – 642.2917(0) – 1465.417(0) + 349.7917(1) + 23.125(15) = 2011.3333 Quarter 4 forecast = 2306.6667 – 642.2917(0) – 1465.417(0) + 349.7917(0) + 23.125(16) = 2676.6667
Year Quarter yt Forecast Forecast Error Squared Forecast Error 1 1 1690 1780.0000 -90.0000 8,100.0000 1 2 940 980.0000 -40.0000 1,600.0000 1 3 2625 2818.3333 -193.3333 37,377.7778 1 4 2500 2491.6667 8.3333 69.4444 2 1 1800 1780.0000 20.0000 400.0000 2 2 900 980.0000 -80.0000 6,400.0000
MSE = 124,933.3333 / 12 = 10,411.1111
For the model from part (d) that includes both trend and seasonal effects:
MSE = 56,483.3333 / 12 = 4,706.9444
The mean squared error for the model from part (d) that includes both trend and seasonal effects is much smaller than the mean squared error for the model from part (b) that includes only seasonal effects. This supports our preliminary conclusions reached in review of the time series plot constructed in part (a) – these data show a linear trend with seasonality.
8 - 38 2 3 2900 2818.3333 81.6667 6,669.4444 2 4 2360 2491.6667 -131.6667 17,336.1111 3 1 1850 1780.0000 70.0000 4,900.0000 3 2 1100 980.0000 120.0000 14,400.0000 3 3 2930 2818.3333 111.6667 12,469.4444 3 4 2615 2491.6667 123.3333 15,211.1111 Total 124,933.3333
Time Series Analysis and Forecasting
Year Quarter t yt Forecast Forecast Error Squared Forecast Error 1 1 1 1690 1687.5000 2.5000 6.2500 1 2 2 940 887.5000 52.5000 2,756.2500 1 3 3 2625 2725.8333 -100.8333 10,167.3611 1 4 4 2500 2399.1667 100.8333 10,167.3611 2 1 5 1800 1780.0000 20.0000 400.0000 2 2 6 900 980.0000 -80.0000 6,400.0000 2 3 7 2900 2818.3333 81.6667 6,669.4444 2 4 8 2360 2491.6667 -131.6667 17,336.1111 3 1 9 1850 1872.5000 -22.5000 506.2500 3 2 10 1100 1072.5000 27.5000 756.2500 3 3 11 2930 2910.8333 19.1667 367.3611 3 4 12 2615 2584.1667 30.8333 950.6944 Total 56,483.3333
Level of Nitrogen Dioxide
There appears to be a seasonal pattern in the data and perhaps a slight upward linear trend.
b.After putting the data into the following format:
Time Series Analysis and Forecasting 8 - 39 25 a.
Hourly Dummy Variables Date Hour yt 1 2 3 4 5 6 7 8 9 10 11 July 15 6:00 a.m. - 7:00 a.m. 25 1 0 0 0 0 0 0 0 0 0 0 July 15 7:00 a.m. - 8:00 a.m. 28 0 1 0 0 0 0 0 0 0 0 0 July 15 8:00 a.m. - 9:00 a.m. 35 0 0 1 0 0 0 0 0 0 0 0 July 15 9:00 a.m. - 10:00 a.m. 50 0 0 0 1 0 0 0 0 0 0 0 July 15 10:00 a.m. - 11:00 a.m. 60 0 0 0 0 1 0 0 0 0 0 0 July 15 11:00 a.m. - 12:00 p.m. 60 0 0 0 0 0 1 0 0 0 0 0 July 15 12:00 p.m. - 1:00 p.m. 40 0 0 0 0 0 0 1 0 0 0 0 July 15 1:00 p.m. - 2:00 p.m. 35 0 0 0 0 0 0 0 1 0 0 0 July 15 2:00 p.m. - 3:00 p.m. 30 0 0 0 0 0 0 0 0 1 0 0 July 15 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 July 15 4:00 p.m. - 5:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 1 July 15 5:00 p.m. - 6:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 0 July 16 6:00 a.m. - 7:00 a.m. 28 1 0 0 0 0 0 0 0 0 0 0 July 16 7:00 a.m. - 8:00 a.m. 30 0 1 0 0 0 0 0 0 0 0 0 July 16 8:00 a.m. - 9:00 a.m. 35 0 0 1 0 0 0 0 0 0 0 0 July 16 9:00 a.m. - 10:00 a.m. 48 0 0 0 1 0 0 0 0 0 0 0 July 16 10:00 a.m. - 11:00 a.m. 60 0 0 0 0 1 0 0 0 0 0 0 July 16 11:00 a.m. - 12:00 p.m. 65 0 0 0 0 0 1 0 0 0 0 0 July 16 12:00 p.m. - 1:00 p.m. 50 0 0 0 0 0 0 1 0 0 0 0 July 16 1:00 p.m. - 2:00 p.m. 40 0 0 0 0 0 0 0 1 0 0 0 0 10 20 30 40 50 60 70 80 6:00 a.m.7:00 a.m. 7:00 a.m.8:00 a.m. 8:00 a.m.9:00 a.m. 9:00 a.m.10:00 a.m. 10:00 a.m.11:00 a.m. 11:00 a.m.12:00 p.m. 12:00 p.m.1:00 p.m. 1:00 p.m.2:00 p.m. 2:00 p.m.3:00 p.m. 3:00 p.m.4:00 p.m. 4:00 p.m.5:00 p.m. 5:00 p.m.6:00 p.m. 6:00 a.m.7:00 a.m. 7:00 a.m.8:00 a.m. 8:00 a.m.9:00 a.m. 9:00 a.m.10:00 a.m. 10:00 a.m.11:00 a.m. 11:00 a.m.12:00 p.m. 12:00 p.m.1:00 p.m. 1:00 p.m.2:00 p.m. 2:00 p.m.3:00 p.m. 3:00 p.m.4:00 p.m. 4:00 p.m.5:00 p.m. 5:00 p.m.6:00 p.m. 6:00 a.m.7:00 a.m. 7:00 a.m.8:00 a.m. 8:00 a.m.9:00 a.m. 9:00 a.m.10:00 a.m. 10:00 a.m.11:00 a.m. 11:00 a.m.12:00 p.m. 12:00 p.m.1:00 p.m. 1:00 p.m.2:00 p.m. 2:00 p.m.3:00 p.m. 3:00 p.m.4:00 p.m. 4:00 p.m.5:00 p.m. 5:00 p.m.6:00 p.m. July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 15 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 16 July 17 July 17 July 17 July 17 July 17 July 17 July 17 July 17 July 17 July 17 July 17 July 17
Time Period
We can use the Excel Regression tool to find the regression model that accounts for the seasonal effects in the data From the Excel output
The regression model that minimizes MSE for this time series is:
Value = 21.6667 + 7.6667HOUR1 + 11.6667HOUR2 + 16.6667HOUR3 + 34.3333HOUR4 +
Time Series Analysis and Forecasting 8 - 40 July 16 2:00 p.m. - 3:00 p.m. 35 0 0 0 0 0 0 0 0 1 0 0 July 16 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 July 16 4:00 p.m. - 5:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 1 July 16 5:00 p.m. - 6:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 0 July 17 6:00 a.m. - 7:00 a.m. 35 1 0 0 0 0 0 0 0 0 0 0 July 17 7:00 a.m. - 8:00 a.m. 42 0 1 0 0 0 0 0 0 0 0 0 July 17 8:00 a.m. - 9:00 a.m. 45 0 0 1 0 0 0 0 0 0 0 0 July 17 9:00 a.m. - 10:00 a.m. 70 0 0 0 1 0 0 0 0 0 0 0 July 17 10:00 a.m. - 11:00 a.m. 72 0 0 0 0 1 0 0 0 0 0 0 July 17 11:00 a.m. - 12:00 p.m. 75 0 0 0 0 0 1 0 0 0 0 0 July 17 12:00 p.m. - 1:00 p.m. 60 0 0 0 0 0 0 1 0 0 0 0 July 17 1:00 p.m. - 2:00 p.m. 45 0 0 0 0 0 0 0 1 0 0 0 July 17 2:00 p.m. - 3:00 p.m. 40 0 0 0 0 0 0 0 0 1 0 0 July 17 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 July 17 4:00 p.m. - 5:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 1 July 17 5:00 p.m. - 6:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 0
42.3333HOUR5 + 45HOUR6 + 28.3333HOUR7 + 18.3333HOUR8 + 13.3333HOUR9 + 3.3333HOUR10 + 1.6667HOUR11
c. Using the model estimated in part (b), the hourly forecasts for July 18 (t = 37 through t = 48) are as follows:
d.After putting the data into the following format:
Time Series Analysis and Forecasting 8 - 41
6:00 a.m. – 7:00 a.m. forecast = 21.6667 + 7.6667= 29.3333 7:00 a.m. – 8:00 a.m. forecast = 21.6667 + 11.6667 = 33.3333 8:00 a.m. – 9:00 a.m. forecast = 21.6667 + 16.6667 = 38.3333 9:00 a.m. – 10:00 a.m. forecast = 21.6667 + 34.3333 = 56 10:00 a.m. – 11:00 a.m. forecast = 21.6667 + 42.3333 = 64 11:00 a.m. – noon forecast = 21.6667 + 45 = 66 6667 noon – 1:00 p.m. forecast = 21.6667 + 28.3333 = 50 1:00 p.m. – 2:00 p.m. forecast = 21.6667 + 18.3333 = 40 2:00 p.m. – 3:00 p.m. forecast = 21.6667 + 13.3333 = 35 3:00 p.m. – 4:00 p.m. forecast = 21.6667 + 3.3333 = 25 4:00 p.m. – 5:00 p.m. forecast = 21.6667 + 1.6667 = 23.3333 5:00 p.m. – 6:00 p.m. forecast = 21.6667 = 21.6667
Hourly Dummy Variables Date Hour yt 1 2 3 4 5 6 7 8 9 10 11 t July 15 6:00 a.m. - 7:00 a.m. 25 1 0 0 0 0 0 0 0 0 0 0 1 July 15 7:00 a.m. - 8:00 a.m. 28 0 1 0 0 0 0 0 0 0 0 0 2 July 15 8:00 a.m. - 9:00 a.m. 35 0 0 1 0 0 0 0 0 0 0 0 3 July 15 9:00 a.m. - 10:00 a.m. 50 0 0 0 1 0 0 0 0 0 0 0 4 July 15 10:00 a.m. - 11:00 a.m. 60 0 0 0 0 1 0 0 0 0 0 0 5 July 15 11:00 a.m. - 12:00 p.m. 60 0 0 0 0 0 1 0 0 0 0 0 6 July 15 12:00 p.m. - 1:00 p.m. 40 0 0 0 0 0 0 1 0 0 0 0 7 July 15 1:00 p.m. - 2:00 p.m. 35 0 0 0 0 0 0 0 1 0 0 0 8 July 15 2:00 p.m. - 3:00 p.m. 30 0 0 0 0 0 0 0 0 1 0 0 9 July 15 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 10 July 15 4:00 p.m. - 5:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 1 11 July 15 5:00 p.m. - 6:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 0 12 July 16 6:00 a.m. - 7:00 a.m. 28 1 0 0 0 0 0 0 0 0 0 0 13 July 16 7:00 a.m. - 8:00 a.m. 30 0 1 0 0 0 0 0 0 0 0 0 14 July 16 8:00 a.m. - 9:00 a.m. 35 0 0 1 0 0 0 0 0 0 0 0 15 July 16 9:00 a.m. - 10:00 a.m. 48 0 0 0 1 0 0 0 0 0 0 0 16
We can use the Excel Regression tool to find the regression model that accounts for the trend and seasonal effects in the data. From the Excel output
Time Series Analysis and Forecasting 8 - 42 July 16 10:00 a.m. - 11:00 a.m. 60 0 0 0 0 1 0 0 0 0 0 0 17 July 16 11:00 a.m. - 12:00 p.m. 65 0 0 0 0 0 1 0 0 0 0 0 18 July 16 12:00 p.m. - 1:00 p.m. 50 0 0 0 0 0 0 1 0 0 0 0 19 July 16 1:00 p.m. - 2:00 p.m. 40 0 0 0 0 0 0 0 1 0 0 0 20 July 16 2:00 p.m. - 3:00 p.m. 35 0 0 0 0 0 0 0 0 1 0 0 21 July 16 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 22 July 16 4:00 p.m. - 5:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 1 23 July 16 5:00 p.m. - 6:00 p.m. 20 0 0 0 0 0 0 0 0 0 0 0 24 July 17 6:00 a.m. - 7:00 a.m. 35 1 0 0 0 0 0 0 0 0 0 0 25 July 17 7:00 a.m. - 8:00 a.m. 42 0 1 0 0 0 0 0 0 0 0 0 26 July 17 8:00 a.m. - 9:00 a.m. 45 0 0 1 0 0 0 0 0 0 0 0 27 July 17 9:00 a.m. - 10:00 a.m. 70 0 0 0 1 0 0 0 0 0 0 0 28 July 17 10:00 a.m. - 11:00 a.m. 72 0 0 0 0 1 0 0 0 0 0 0 29 July 17 11:00 a.m. - 12:00 p.m. 75 0 0 0 0 0 1 0 0 0 0 0 30 July 17 12:00 p.m. - 1:00 p.m. 60 0 0 0 0 0 0 1 0 0 0 0 31 July 17 1:00 p.m. - 2:00 p.m. 45 0 0 0 0 0 0 0 1 0 0 0 32 July 17 2:00 p.m. - 3:00 p.m. 40 0 0 0 0 0 0 0 0 1 0 0 33 July 17 3:00 p.m. - 4:00 p.m. 25 0 0 0 0 0 0 0 0 0 1 0 34 July 17 4:00 p.m. - 5:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 1 35 July 17 5:00 p.m. - 6:00 p.m. 25 0 0 0 0 0 0 0 0 0 0 0 36
The regression model that minimizes MSE for this time series is:
e Using the model estimated in part (d), the hourly forecasts for July 18 (t = 37 through t = 48) are as follows:
f For the model from part (b) that only includes seasonal effects:
Time Series Analysis and Forecasting 8 - 43
Value = 11.1667 + 12.4792HOUR1 + 16.0417HOUR2 + 20.6042HOUR3 + 37.8333HOUR4 + 45.3958HOUR5 + 47.625HOUR6 + 30.5208HOUR7 + 20.0833HOUR8 + 14.6458HOUR9 + 4.2083HOUR10 + 2.1042HOUR11 + 0.4375t
6:00 a.m. – 7:00 a.m. forecast = 11.1667 + 12.4792 + 0.4375(37) = 39.8333 7:00 a.m. – 8:00 a.m. forecast = 11.1667 + 16.0417 + 0.4375(38) = 43.8333 8:00 a.m. – 9:00 a.m. forecast = 11.1667 + 20.6042 + 0.4375(39) = 48.8333 9:00 a.m. – 10:00 a.m. forecast = 11.1667 + 37.8333 + 0.4375(40) = 66.5 10:00 a.m. – 11:00 a.m. forecast = 11.1667 + 45.3958 + 0.4375(41) = 74.5 11:00 a.m. – noon forecast = 11.1667 + 47.625 + 0.4375(42) = 77.1667 noon – 1:00 p.m. forecast = 11.1667 + 30.5208 + 0.4375(43) = 60.5 1:00 p.m. – 2:00 p.m. forecast = 11.1667 + 20.0833 + 0.4375(44) = 50.5 2:00 p.m. – 3:00 p.m. forecast = 11.1667 + 14.6458 + 0.4375(45) = 45.5 3:00 p.m. – 4:00 p.m. forecast = 11.1667 + 4.2083 + 0.4375(46) = 35.5 4:00 p.m. – 5:00 p.m. forecast = 11.1667 + 2.1042 + 0.4375(47) = 33.8333 5:00 p.m. – 6:00 p.m. forecast = 11.1667 + 0.4375(48) = 32.1667
Date Hour yt Forecast Forecast Error Squared Forecast Error July 15 6:00 a.m. - 7:00 a.m. 25 29.3333 -4.3333 18.7778 July 15 7:00 a.m. - 8:00 a.m. 28 33.3333 -5.3333 28.4444 July 15 8:00 a.m. - 9:00 a.m. 35 38.3333 -3.3333 11.1111 July 15 9:00 a.m. - 10:00 a.m. 50 56 -6.0000 36.0000 July 15 10:00 a.m. - 11:00 a.m. 60 64 -4.0000 16.0000 July 15 11:00 a.m. - 12:00 p.m. 60 66.6667 -6.6667 44.4444 July 15 12:00 p.m. - 1:00 p.m. 40 50 -10.0000 100.0000 July 15 1:00 p.m. - 2:00 p.m. 35 40 -5.0000 25.0000 July 15 2:00 p.m. - 3:00 p.m. 30 35 -5.0000 25.0000 July 15 3:00 p.m. - 4:00 p.m. 25 25 0.0000 0.0000 July 15 4:00 p.m. - 5:00 p.m. 25 23.3333 1.6667 2.7778 July 15 5:00 p.m. - 6:00 p.m. 20 21.6667 -1.6667 2.7778
For the model from part (d) that includes both trend and seasonal effects:
Time Series Analysis and Forecasting 8 - 44 July 16 6:00 a.m. - 7:00 a.m. 28 29.3333 -1.3333 1.7778 July 16 7:00 a.m. - 8:00 a.m. 30 33.3333 -3.3333 11.1111 July 16 8:00 a.m. - 9:00 a.m. 35 38.3333 -3.3333 11.1111 July 16 9:00 a.m. - 10:00 a.m. 48 56 -8.0000 64.0000 July 16 10:00 a.m. - 11:00 a.m. 60 64 -4.0000 16.0000 July 16 11:00 a.m. - 12:00 p.m. 65 66.6667 -1.6667 2.7778 July 16 12:00 p.m. - 1:00 p.m. 50 50 0.0000 0.0000 July 16 1:00 p.m. - 2:00 p.m. 40 40 0.0000 0.0000 July 16 2:00 p.m. - 3:00 p.m. 35 35 0.0000 0.0000 July 16 3:00 p.m. - 4:00 p.m. 25 25 0.0000 0.0000 July 16 4:00 p.m. - 5:00 p.m. 20 23.3333 -3.3333 11.1111 July 16 5:00 p.m. - 6:00 p.m. 20 21.6667 -1.6667 2.7778 July 17 6:00 a.m. - 7:00 a.m. 35 29.3333 5.6667 32.1111 July 17 7:00 a.m. - 8:00 a.m. 42 33.3333 8.6667 75.1111 July 17 8:00 a.m. - 9:00 a.m. 45 38.3333 6.6667 44.4444 July 17 9:00 a.m. - 10:00 a.m. 70 56 14.0000 196.0000 July 17 10:00 a.m. - 11:00 a.m. 72 64 8.0000 64.0000 July 17 11:00 a.m. - 12:00 p.m. 75 66.6667 8.3333 69.4444 July 17 12:00 p.m. - 1:00 p.m. 60 50 10.0000 100.0000 July 17 1:00 p.m. - 2:00 p.m. 45 40 5.0000 25.0000 July 17 2:00 p.m. - 3:00 p.m. 40 35 5.0000 25.0000 July 17 3:00 p.m. - 4:00 p.m. 25 25 0.0000 0.0000 July 17 4:00 p.m. - 5:00 p.m. 25 23.3333 1.6667 2.7778 July 17 5:00 p.m. - 6:00 p.m. 25 21.6667 3.3333 11.1111 Total 1076 MSE = 1076 / 36 = 29.8889
Date Hour t yt Forecast Forecast Error Squared Forecast Error July 15 6:00 a.m. - 7:00 a.m. 1 25 24.0833 0.9167 0.8403 July 15 7:00 a.m. - 8:00 a.m. 2 28 28.0833 -0.0833 0.0069 July 15 8:00 a.m. - 9:00 a.m. 3 35 33.0833 1.9167 3.6736 July 15 9:00 a.m. - 10:00 a.m. 4 50 50.7500 -0.7500 0.5625 July 15 10:00 a.m. - 11:00 a.m. 5 60 58.7500 1.2500 1.5625 July 15 11:00 a.m. - 12:00 p.m. 6 60 61.4167 -1.4167 2.0069 July 15 12:00 p.m. - 1:00 p.m. 7 40 44.7500 -4.7500 22.5625 July 15 1:00 p.m. - 2:00 p.m. 8 35 34.7500 0.2500 0.0625 July 15 2:00 p.m. - 3:00 p.m. 9 30 29.7500 0.2500 0.0625 July 15 3:00 p.m. - 4:00 p.m. 10 25 19.7500 5.2500 27.5625 July 15 4:00 p.m. - 5:00 p.m. 11 25 18.0833 6.9167 47.8403 July 15 5:00 p.m. - 6:00 p.m. 12 20 16.4167 3.5833 12.8403
The mean squared error for the model from part (d) that includes both trend and seasonal effects is somewhat smaller than the mean squared error for the model from part (b) that includes only seasonal effects. This supports our preliminary conclusions reached in review of the time series plot constructed in part (a) – these data show a linear trend with seasonality.
8 - 45 July 16 6:00 a.m. - 7:00 a.m. 13 28 29.3333 -1.3333 1.7778 July 16 7:00 a.m. - 8:00 a.m. 14 30 33.3333 -3.3333 11.1111 July 16 8:00 a.m. - 9:00 a.m. 15 35 38.3333 -3.3333 11.1111 July 16 9:00 a.m. - 10:00 a.m. 16 48 56.0000 -8.0000 64.0000 July 16 10:00 a.m. - 11:00 a.m. 17 60 64.0000 -4.0000 16.0000 July 16 11:00 a.m. - 12:00 p.m. 18 65 66.6667 -1.6667 2.7778 July 16 12:00 p.m. - 1:00 p.m. 19 50 50.0000 0.0000 0.0000 July 16 1:00 p.m. - 2:00 p.m. 20 40 40.0000 0.0000 0.0000 July 16 2:00 p.m. - 3:00 p.m. 21 35 35.0000 0.0000 0.0000 July 16 3:00 p.m. - 4:00 p.m. 22 25 25.0000 0.0000 0.0000 July 16 4:00 p.m. - 5:00 p.m. 23 20 23.3333 -3.3333 11.1111 July 16 5:00 p.m. - 6:00 p.m. 24 20 21.6667 -1.6667 2.7778 July 17 6:00 a.m. - 7:00 a.m. 25 35 34.5833 0.4167 0.1736 July 17 7:00 a.m. - 8:00 a.m. 26 42 38.5833 3.4167 11.6736 July 17 8:00 a.m. - 9:00 a.m. 27 45 43.5833 1.4167 2.0069 July 17 9:00 a.m. - 10:00 a.m. 28 70 61.2500 8.7500 76.5625 July 17 10:00 a.m. - 11:00 a.m. 29 72 69.2500 2.7500 7.5625 July 17 11:00 a.m. - 12:00 p.m. 30 75 71.9167 3.0833 9.5069 July 17 12:00 p.m. - 1:00 p.m. 31 60 55.2500 4.7500 22.5625 July 17 1:00 p.m. - 2:00 p.m. 32 45 45.2500 -0.2500 0.0625 July 17 2:00 p.m. - 3:00 p.m. 33 40 40.2500 -0.2500 0.0625 July 17 3:00 p.m. - 4:00 p.m. 34 25 30.2500 -5.2500 27.5625 July 17 4:00 p.m. - 5:00 p.m. 35 25 28.5833 -3.5833 12.8403 July 17 5:00 p.m. - 6:00 p.m. 36 25 26.9167 -1.9167 3.6736 Total 414.5000 MSE = 414.5000 / 36 = 11.5139
Time Series Analysis and Forecasting
26 a.