Forecasts
To make forecasts people uses two kinds of information: (i) Current factors or conditions (ii) Past experience in a similar situation * Forecasts are the basis for budgeting, planning capacity, sales, production and inventory, personnel, purchasing and more. * Forecasts play an important role in the planning process because they enable a manager to anticipate the future so he can plan accordingly. Example: (i) Accounting: New product cost estimates, profit projections, cash management etc. (ii) Human resources: Hiring activities, recruitment, training etc. (iii) Operations: Scheduling, work assignment, inventory planning etc. There are two uses of forecasts. (i) To help managers plan the system (ii) To help them plan the use of the system. Planning systems involves long-term plans about the types of products to offer, what facilities and equipments to have, where to locate etc. Planning the use of systems refers to short-term and intermediate-term planning which involves planning inventory and work force, planning purchasing and production, budgeting and scheduling.
(iv)
DBH3
(v) (vi)
DBH3
(ii) (iii)
DBH3
Trends
(ii) Seasonality: It refers to short-term regular variations related to calendar or time of a day. Example: Restaurants, supermarkets experiences weekly or daily seasonality.
Seasonality (iii) Cycles: Cycles are wavelike variations lasting more than one year. Example: Economic, political and agricultural conditions.
Cycles
DBH3 (iv) Irregular variations: It caused by unusual circumstances, not relative of typical behavior. These need to be identified and remove from the data.
Irregular Trends
(v) Random variations: Random variations are residual variations that remains after all other behaviors have been accounted for. The small bumps in the figures are random variation.
A
Ft ! MAn !
i !1
t i
where
i = An index that corresponds to time period n = No. of period in the moving average Ai = Actual value in period t-i MA = Moving average Ft = Forecast for time period t
DBH3 For example, MA3 implies a three-period moving average forecast, and MA5 implies a five-period moving average forecast. Example: Compute a 3-period moving average forecast given demand for shopping carts for the last five periods. Period Demand 1 42 2 40 3 43 4 40 5 41 Solution: i = An index that corresponds to time period n =3= No. of period in the moving average Ai = Actual value in period t-i MA = Moving average Ft = Forecast for time period t
3
43 40 41 ! 41.33 3 3 If the actual demand in period 6 turns out to be 38, the moving average forecast for
A
i !1
t i
period 7 would be
i !1
50
40
e a
30
20 0 2 4 Pe i 6 8 10
A3a
5-pe i
vi g ave age, the g eate the f ecast will lag cha ges i pute a easy t u e sta . 6
t i
40 41 38 ! 39.67 . 3
10 pe i s.
DBH3 * A possible disadvantage is that all values in the average are weighted equally. For example, in a 10-period moving average, each value has weight of 1/10. Hence, the oldest value has the same weight as the most recent value. Decreasing the number of values in the average increases in weight of more recent values. Example 2: Given the following data: Period No. of complaints 1 60 2 65 3 55 4 58 5 64 (a) Use naive approach to make the forecast for the next period. (b) Compute a 3-period moving average forecast. Weighted moving average: A weighted average is similar to the moving average, except that it assigns more weight to the most recent values in a time series. For example, the most recent value might be assigned a value of 0.4, the next most recent value a weight of 0.3, the next after that a weight of 0.2, and the next after that a weight of 0.1. Note that the sum of the weights is 1.0. The weighted moving average can be computed by the following formula
Ft ! wn At n wn 1 At ( n 1) wn 2 At ( n 2 ) ......w2 At 2 w1 At 1
The advantage of a weighted average over a simple moving average is that the weighted average is more reflective of the most recent occurrences. However, the choice of the weight is somewhat arbitrary and generally involves the use of trial and error to find a suitable weighting scheme. Example 1: Given the demand for shopping carts for the last five periods. Period Demand 1 42 2 40 3 43 4 40 5 41 (a) Compute a weighted moving average forecast using a weight of 0.4 for the most recent period, 0.3 for the next most recent, 0.2 for the next, and the next after that a weight of 0.1. (b) If the actual demand for period 6 is 39, forecast demand for period 7 using the same weights as in part (a).
tn 4
n 1
t ( n 1) t 3
n 2
t ( n 2)
......
t 1
t 2
t 4
t2
tn 4
n 1
t ( n 1) t 3
n 2
t ( n 2)
......
t 1
t 2
t4
t 2
Example 2: Given the following data: Period No. of complaints 1 60 2 65 3 55 4 58 5 64 (a) Compute a weighted moving average forecast using a weight of 0.4 for the most recent period, 0.3 for the next most recent, 0.2 for the next, and the next after that a weight of 0.1. (b) If the actual demand for period 6 is 59, forecast demand for period 7 using the same weights as in part (a). Exponential smoothing: Weighted averaging method based on previous forecast plus a percentage of the forecast error. It is sophisticated weighted average method that is still relatively easy to use and understand. Next forecast = Previous forecast + E (actual previous forecast) That is, t ! t 1 E t 1 t 1 where E = The smoothing constant = % of the error At 1 = Actual value in the previous period Ft = Forecast for time period t Ft 1 = Forecast for the previous time period Commonly used value of E ranges from 0.05 to 0.5. Low values are used when the average tends to be stable. Higher values of E are used when the average is not stable.
(b)
1 1
t 1
t 1
DBH3
Example 1: Given the following data: Period No. of complaints 1 60 2 65 3 55 4 58 5 64 Use exponential smoothing approach with a smoothing constant of 0.4 to make the forecast for the next period. Solution: Period 1 2 3 4 5 6 No. of complaints 60 65 55 58 64 Forecast Calculations 60 is the initial forecast 60 60 + 0.4(65-60) = 62 62 62 + 0.4(55-62) = 59.2 59.2 59.2 + 0.4(58-59.2) = 58.72 58.72 58.72 + 0.4(64-58.72) = 60.83 60.83
Example 2: Given the demand for shopping carts for the last five periods. Period Demand 1 42 2 40 3 43 4 40 5 41 Use exponential smoothing approach with a smoothing constant of 0.3 to make the forecast for the next period.
DBH3 Techniques for Trends: Analysis of trends involves developing an equation that will suitably describe the trend. It may be linear or may not be. Linear trends are fairly common. There are two techniques that can be used to develop forecasts when trend is present. (i) Use of a trend equation (ii) An extension of exponential smoothing. Trend Equation: A linear trend equation has the form Ft ! a b t where
t = Specified no. of time periods from t = 0 a = Value of t at t = 0 b = Slope of the line t = Forecast for time period t
! a bt
(y
(t
b!
(y (t
The coefficients of the line a and b can be computed from the historical data using the formulas: b! n ty t y
2
and a !
y b t ! y bt
n
10
t
DBH3 Example: Cell phone for a firm over the last 10 weeks are shown as follows. Would a linear trend line be appropriate? Determine the equation of the trend line and predict sales for weeks 11 and 12. Week Unit Sales
780 770 760 750 Sa es 740 730 720 710 700 690 0 2 4 Weeks 6 8 10
1 700
2 724
3 720
4 728
5 6 740 742
7 758
8 750
t 1 3 4 5 6 7 8 9 10
9 770
y 700 724 720 728 740 742 758 750 770 775 7407
10 775
ty 700 1448 160 912 3700 4452 5306 6000 6930 7750 41358
b!
n ty t y n t 2 t
2
a!
The forecast for period 11 is F11 ! a b t ! 699.4 7.51 v 11 ! 782.01 The forecast for period 12 is 11 ! a b t ! 699.4 7.51 v 12 ! 789.52
800 790 780 770 760 Sales 750 740 730 720 710 700 690 -3 2 We e k s 7 12
t ! 55, t
!
! 385
11
DBH3 Example2: Plot the following data on a graph and verify visually that a linear trend line is appropriate. Develop a line trend equation. Then use the equation to predict the next two values of the series. Period 1 Demand 44 2 52 3 50 4 54 5 55 6 55 7 60 8 56 9 62
Associative forecasting techniques: The essence of associative techniques is the development of an equation that summarizes the effects of predictor variables (which is used to predict values of the variable of interest). Linear regression method is used for this analysis. Linear regression method: Technique for fitting a line to a set of points. The objective in linear regression is to obtain an equation of a straight line that minimizes the sum of squared vertical deviations of data points from the line. The least squares line has the equation y c ! a bx
y
y c ! a bx
x = predictor or independent variable a = Value of y c at x = 0 b = Slope of the line y c = Predicted or dependent variable (y
b! (y (x
(x
The line intersect the y axis where y = a. The slope of the line is b. The coefficients of the line a and b can be computed from the formulas: n xy x y y b x ! y bx where n is the number of periods and a ! b! 2 n n x 2 x and y is the time series. Example: Healthy hamburger has a chain of 12 stores in California. Sales figures and profits for the stores given below. Obtain a regression line for the data and predict for a store assuming sales of $10 million.
12
DBH3 Unit sales 7 x $ million Profit y 0.15 $ million 2 0.10 6 0.13 4 14 15 16 12 0.2 14 0.27 20 0.44 15 7
0.34 0.17
Solution: Step1: Plot the data and decide if a linear model is reasonable. Step2: n xy x y 12 v 3529 132 v 271 x y Forecasts ! 0.0159 ! b! 2 7 .15 0.1621124 12 v 1796 132 v 132 n x 2 x
6 4 14 15 16 12 14 0 15 7 0.10 0.13 0.15 0. 5 0. 7 0. 4 0. 0 0. 7 0.44 0.34 0.17 0.0824612 0.1461822 0.1143217 0. 73624 0. 895543 0.3054845 0. 417636 0. 73624 0.3692054 0. 895543 0.1621124
12 n Obtain the regression y c ! 0.0506 0.0159 x . For example, for sale of x = 7, estimated profit is y c ! 0.0506 0.0159 v 7 ! 0.1621124 or $162,1124.
y 50 45 40 35 30 25 20 15 10 5 0 0 5 10 15 20 25
a!
Example: The owner of a hardware store has noted a sales pattern for window locks that seems to be parallel the number of break-ins reported each week in the newspaper. The data are: sales 46 18 20 22 27 34 14 37 30 Break-ins 3 3 3 5 4 7 2 6 4 (a) (b) (c) Plot the data to see the type of the graph Obtain a regression equation for the data. Estimate sales when the number of break-ins is 5.
Comments on the use of linear regression: 1. Variations around the line are random. 13
DBH3 2. Deviations around the line should be narrowly distributed. 3. Predictions are made within the range of the observed values. Forecast accuracy: Forecasting accuracy is a significant factor when deciding among forecasting alternatives. Accuracy is based on the historical error performance of a forecast. Three common methods for measuring historical errors are: At Ft (i) Mean absolute deviation (MAD): Average absolute error. MAD = n 2 At Ft
(ii) Mean squared error (MSE): Average of squared errors. MSE = n 1 (iii) Mean absolute percent error (MAPE): Average absolute percent error. At Ft v 100 At MAPE = n Example: Compute MAD, MSE, and MAPE for the following data. Period Actual 1 2 3 4 5 6 7 8 217 213 216 210 213 219 216 212 Forecast 215 216 215 214 211 214 217 216 Error (A-F) 2 -3 1 -4 2 5 -1 -4 -2
Error
Error 2 4 9 1 16 4 25 1 16 76 ! 22 ! 2.75 8
Error
0.92% 1.41 0.46 1.9 0.94 2.28 0.46 1.89 10.26%
z Actual v 100
2 3 1 4 2 5 1 4 22
(i) Mean absolute deviation (MAD) = (ii) Mean squared error (MSE) =
A
n 1
Ft
n 2 At Ft
! 1.28
Example 2: Calculate MAD, MSE and MAPE for the following data and compare them. Month 1 2 Demand 492 470 Forecast Technique 1 Technique 2 488 495 484 482 14
DBH3 3 4 5 6 485 493 498 492 480 490 497 493 478 488 492 493
Control forecast/ Monitor forecast: Tracking signal method: Tracking signal method is used to monitor a forecast. This method is an older method which is the ratio of the cumulative forecast error to the corresponding value of MAD. Tracking signalt =
Ft
MADt Example: For above example, At Ft ! 2 ! 0.7 Tracking signalt = 2.75 MADt
15