Presentation is loading. Please wait.

Presentation is loading. Please wait.

Forecasting  Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9  How many.

Similar presentations


Presentation on theme: "Forecasting  Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9  How many."— Presentation transcript:

1 Forecasting  Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9  How many cases do you think your fraternity/sorority will consume this weekend?

2 Forecasting  We could use a Moving Average forecasting method  Using a three period moving average, we would get the following forecast: 3 + 6 + 9 = 6 3

3 Forecasting  What if we used a two period moving average? 6 + 9 = 7.5 2

4 Forecasting  The number of periods used in the moving average forecast affects the “responsiveness” of the forecasting method: 1 Period 2 Period 3 Period

5 Forecasting  We can look at the Moving Average method as using a weighted average:  Rather than equal weights, it might make sense to use weights which favor more recent consumption values 3 + 6 + 9 = 3 1 1 1 3 3 3 (3) + (6) + (9) = 6

6 Forecasting  With the Weighted Moving Average, we have to select weights that are individually greater than zero and less than 1, and as a group sum to 1:  Valid Weights:.5,.3,.2.6,.3,.1 1, 1, 1 2 3 6  Invalid weights:.5,.2,.1.6, -0.1, 0.5.5,.4,.3,.2

7 Forecasting  A Weighted Moving Average forecast with weights of: 1, 1, 1 2 3 6 is as performed as follows:  How do you make the Weighted Moving Average forecast more responsive? 1 1 1 6 3 2 (3) + (6) + (9) = 7

8 Forecasting Terminology Initialization ExPost Forecast Historical Data No Historical Data

9 Forecasting Terminology  Applying this terminology to our problem using the Moving Average forecast: Initialization ExPost Forecast Model Evaluation

10 “We are now looking at a future from here, and the future we were looking at in February now includes some of our past, and we can incorporate the past into our forecast. 1993, the first half, which is now the past and was the future when we issued our first forecast, is now over” Laura D’Andrea Tyson, Head of the President’s Council of Economic Advisors, quoted in November of 1993 in the Chicago Tribune, explaining why the Administration reduced its projections of economic growth to 2 percent from the 3.1percent it predicted in February. Forecasting Terminology

11 Exponential Smoothing  Exponential Smoothing is designed to give the benefits of the Weighted Moving Average forecast with out the cumbersome problem of specifying weights. In Exponential Smoothing, there is only one parameter:   = smoothing constant (between 0 and 1) F(t+1) =  A(t) + (1-  ) F(t) F(initial) = F(2)=[A(1) +A(2)] / 2

12 tA(t)F(t) 18 256.5 375.9 436.34 565 695.4 7 6.84 8 9 10 6.84 Exponential Smoothing  Using  = 0.4, we get Initialization ExPost Forecast

13 Practice Problem tA(t)MA (n=3) Weighted MA (0.6, 0.3, 0.1) Exponential (  = 0.4) 18 24 39 411 510 6 7 8

14 Practice Problem tA(t)MA (n=3) Weighted MA (0.6, 0.3, 0.1) Exponential (  = 0.4) 18 24 6 39 5.2 41177.46.72 51089.78.432 6 1010.29.0592 7 1010.29.0592 8 1010.29.0592

15 Expanding the Exponential Smoothing Formula F(t+1) =  A(t) + (1 –  ) F(t) =  A(t) + (1 –  ) [  A(t-1) + (1 –  ) F(t-1)] =  A(t) + (1 –  )  A(t-1) + (1 –  ) 2 F(t-1) =  A(t) + (1 –  )  A(t-1) + (1 –  ) 2 [  A(t-2) + (1 –  ) F(t-2) ]  A(t) + (1 –  )  A(t-1) + (1 –  ) 2  A(t-2) + (1 –  ) 3 F(t-2) and so on... Thus, the exponential smoothing formula considers all previous actual data

16 Expanding the Exponential Smoothing Formula

17

18 Outliers (eloping point) Outlier

19 Data with Trends

20

21 Simple Linear Regression Model Y = mx + b Simple linear regression can be used to forecast data with trends Y is the regressed forecast value or dependent variable in the model, b is the intercept value of the regression line, and m is the slope of the regression line. 0 1 2 3 4 5 x (Time) Y b m

22 Simple Linear Regression Model In linear regression, the squared errors are minimized Error

23 Formulas for Calculating “m” and “b”

24 Simple Linear Regression Problem Applying the model to the following data:

25 Calculate “m” and “b”

26 Evaluate Results

27 Practice Problem Question: Given the data below, what is the simple linear regression model that can be used to predict sales?

28 Calculate “m” and “b”

29 Evaluate Results F(t) = 143.5 + 6.3 (t)

30 Simple Linear Regression in Excel  If the Analysis ToolPak is loaded, extensive regression analysis can be performed using the regression function

31 Simple Linear Regression in Excel  To get the slope and intercept easily, use the slope and intercept functions: = slope(y-range, x-range) = intercept(y-range, x-range )

32 Limitations in Linear Regression As with the moving average model, all data points count equally with simple linear regression

33 Holt’s Trend Model  To forecast data with trends, we can use an exponential smoothing model with trend, frequently known as Holt’s model:  We will use linear regression to initialize the model L(t) =  A(t) + (1-  ) F(t) T(t) =  L(t) - L(t-1) ] + (1-  ) T(t-1) F(t+1) = L(t) + T(t)

34 Holt’s Trend Model First, we’ll initialize the model: L(4) = 20.5+4(9.9)=60.1 T(4) = 9.9

35 Updating in Holt’s Trend Model 52 L(t) =  A(t) + (1-  ) F(t)   L(5) = 0.3 (52) + 0.7 (70)=64.6 T(t) =  [L(t) - L(t-1) ] + (1-  ) T(t-1) T(5) = 0.4 [64.6 – 60.1] + 0.6 (9.9) = 7.74 F(t+1) = L(t) + T(t) F(6) = 64.6 + 7.74 = 72.34 64.67.74 72.346

36 Updating in Holt’s Trend Model 63   L(6) = 0.3 (63) + 0.7 (72.34)=69.54 T(6) = 0.4 [69.54 – 64.60] + 0.6 (7.74) = 6.62 F(7) = 69.54 + 6.62 = 76.16 69.546.62 76.167 72

37 Holt’s Model Results Initialization ExPost Forecast

38 Initialization ExPost Forecast Holt’s Model Results Regression

39 Practice Problem

40

41

42 Seasonal Model (No Trend)

43 L(t) =  A(t) / S(t-p) + (1-  ) L(t-1) S(t) =  A(t) / L(t)] + (1-  ) S(t-p) Seasonal Model Exponential Formulas p is the number of periods in a season Quarterly data: p = 4 Monthly data: p = 12 F(t+1) = L(t) * S(t+1-p)

44 Seasonal Model Initialization S(5) = 0.60 S(6) = 1.00 S(7) = 1.55 S(8) = 0.85 L(8) = 26.5

45 Seasonal Model Forecasting  

46 Seasonal Model Forecasting

47 Practice Problem  

48 Practice Problem Initialization S(5) = 1.51 S(6) = 0.55 S(7) = 0.72 S(8) = 1.22 L(8) = 22.875

49 Practice Problem Forecasting  

50 Winter’s Model for Data with Trend and Seasonal Components L(t) =  A(t) / S(t-p) + (1-  )[L(t-1)+T(t-1)] T(t) =  L(t) - L(t-1)] + (1-  ) T(t-1) S(t) =  A(t) / L(t)] + (1-  ) S(t-p) F(t+1) =  L(t) + T(t)] S(t+1-p)

51 Seasonal-Trend Model Decomposition  To initialize Winter’s Model, we will use Decomposition Forecasting, which itself can be used to make forecasts.

52 52 Decomposition Forecasting  There are two ways to decompose forecast data with trend and seasonal components: – Use regression to get the trend, use the trend line to get seasonal factors – Use averaging to get seasonal factors, “deseasonalize” the data, then use regression to get the trend. We will use the second method

53 Decomposition Forecasting  The following data contains trend and seasonal components:

54 Decomposition Forecasting  The seasonal factors are obtained by the same method used for the Seasonal Model forecast:

55 Decomposition Forecasting  With the seasonal factors, the data can be deseasonalized by dividing the data by the seasonal factors: Regression on the Deseasonalizeddata will give the trend

56 Regression Results

57 Decomposition Forecast  Regression on the deseasonalized data produces the following results: Slope (m) = 7.71 Intercept (b) = 101.2  Forecasts can be performed using the following equation [mx + b](seasonal factor) Note that the parentheses do matter!

58 Decomposition Forecasting  The decomposition data can be used to make forecasts

59 Winter’s Model Initialization  We can use the decomposition forecast to define the following Smoothing Model parameters:  So from our previous model, we have L(n) = b + m (n) T(n) = m S(j) = S(j-p) L(n) = 101.2 + 8 (7.71) = 162.88 T(n) = 7.71 S(5) = 0.80 S(6) = 1.35 S(7) = 1.05 S(8) = 0.79

60 Winter’s Model Example

61

62 Practice Problem    Forecast Sales for 2006 using Winter’s Model Use 2003 and 2004 to initialize the model Use:

63 Practice Problem Initialization

64 Practice Problem Forecasting

65 Evaluating Forecasts “Trust, but Verify” Ronald W. Reagan  Computer software gives us the ability to mess up more data on a greater scale more efficiently  While software like SAP can automatically select models and model parameters for a set of data, and usually does so correctly, when the data is important, a human should review the model results  One of the best tools is the human eye

66 Visual Review  How would you evaluate this forecast?

67 Forecast Evaluation Initialization ExPost Forecast Where Forecast is Evaluated Do not include initialization data in evaluation

68 Errors All error measures compare the forecast model to the actual data for the ExPost Forecast region

69 Errors Measure All error measures are based on the comparison of forecast values to actual values in the ExPost Forecast region—do not include data from initialization.

70 Bias and MAD

71  Bias tells us whether we have a tendency to over- or under- forecast. If our forecasts are “in the middle” of the data, then the errors should be equally positive and negative, and should sum to zero  MAD (Mean Absolute Deviation) is the average error, ignoring whether the error is positive or negative.  Errors are bad, and the closer to zero an error is, the better the forecast is likely to be.  Error measures tell how well the method worked in the ExPost forecast region. How well the forecast will work in the future is uncertain Bias and MAD

72 Practice

73

74 Exp.  = 0.3 Exp.  = 0.8

75 Absolute vs. Relative Measures  Forecasts were made for two sets of data. Which forecast was better? Data Set 1 Bias = 18.72 MAD = 43.99 Data Set 2 Bias = 182 MAD = 912.5  What would you say now? Data Set 1Data Set 2

76 MPE and MAPE  When the numbers in a data set are larger in magnitude, then the error measures are likely to be large as well, even though the fit might not be as “good”  Mean Percentage Error (MPE) and Mean Absolute Percentage Error (MAPE) are relative forms of the Bias and MAD, respectively.  MPE and MAPE can be used to compare forecasts for different sets of data

77 MPE and MAPE  Mean Percentage Error (MPE)  Mean Absolute Percentage Error (MAPE)

78 MPE and MAPE Data Set 1

79 MPE and MAPE Data Set 2

80 MPE and MAPE Data Set 2Data Set 1

81 Practice

82

83 Tracking Signal  What’s happened in this situation? How could we detect this in an automatic forecasting environment?

84 Tracking Signal  The tracking signal can be calculated after each actual sales value is recorded. The tracking signal is calculated as:  The tracking signal is a relative measure, like MPE and MAPE, so it can be compared to a set value (typically 4 or 5) to identify when forecasting parameters and/or models need to be changed.

85 Tracking Signal

86 TS = -5.78

87 Practice

88


Download ppt "Forecasting  Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9  How many."

Similar presentations


Ads by Google