Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.

Similar presentations


Presentation on theme: "1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole."— Presentation transcript:

1 1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Slides by John Loucks St. Edward’s University

2 2 2 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Chapter 15, Part B Forecasting n Trend Projection n Seasonality and Trend

3 3 3 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Linear Trend Model n If a time series exhibits a linear trend, curve fitting can be used to develop a best-fitting linear trend line. n Curve fitting minimizes the sum of squared error between the observed and fitted time series data where the model is a trend line. n We build a nonlinear optimization model to find the best values for the intercept and slope of the trend line.

4 4 4 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Linear Trend Model n The linear trend line is estimated by the equation: where: T t = linear trend forecast in period t where: T t = linear trend forecast in period t b 0 = intercept of the linear trend line b 0 = intercept of the linear trend line b 1 = slope of the linear trend line b 1 = slope of the linear trend line t = time period t = time period T t = b 0 + b 1 t

5 5 5 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Linear Trend Model n Nonlinear Curve-Fitting Optimization Model s.t. s.t. T t = b 0 +  b 1 t t = 1, 2, 3, … n T t = b 0 +  b 1 t t = 1, 2, 3, … n  There are n + 2 decision variables.  The decision variables are b 0, b 1, and T t.  There are n constraints.

6 6 6 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Linear Trend Model The number of plumbing repair jobs performed by The number of plumbing repair jobs performed by Auger's Plumbing Service in the last nine months is listed on the right. listed on the right. n Example: Auger’s Plumbing Service Month Jobs March 353 May 342 April 387 July 396 June 374 August 409 September 399 October 412 November 408 Month Jobs Forecast the number of repair jobs Auger's will repair jobs Auger's will perform in December perform in December using the least squares using the least squares method. method.

7 7 7 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. The objective function minimizes the sum of the squared error. Minimize { (353 – T 1 ) 2 + (387 – T 2 ) 2 + (342 – T 3 ) 2 Minimize { (353 – T 1 ) 2 + (387 – T 2 ) 2 + (342 – T 3 ) 2 + (374 – T 4 ) 2 + (396 – T 5 ) 2 + (409 – T 6 ) 2 + (399 – T 7 ) 2 + (412 – T 8 ) 2 + (408 – T 9 ) 2 } n Example: Auger’s Plumbing Service Linear Trend Model

8 8 8 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. n Example: Auger’s Plumbing Service Linear Trend Model The following constraints define the forecasts as a linear function of parameters b 0 and b 1. T 1 = b 0 + b 1 1 T 6 = b 0 + b 1 6 T 1 = b 0 + b 1 1 T 6 = b 0 + b 1 6 T 2 = b 0 + b 1 2 T 7 = b 0 + b 1 7 T 2 = b 0 + b 1 2 T 7 = b 0 + b 1 7 T 3 = b 0 + b 1 3 T 8 = b 0 + b 1 8 T 3 = b 0 + b 1 3 T 8 = b 0 + b 1 8 T 4 = b 0 + b 1 4 T 9 = b 0 + b 1 9 T 4 = b 0 + b 1 4 T 9 = b 0 + b 1 9 T 5 = b 0 + b 1 5 T 5 = b 0 + b 1 5

9 9 9 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Trend Projection n Example: Auger’s Plumbing Service The solution to the nonlinear curve-fitting optimization model is: b 0 = and b 1 = 7.4 b 0 = and b 1 = 7.4 T 1 = T 6 = T 1 = T 6 = T 2 = T 7 = T 2 = T 7 = T 3 = T 8 = T 3 = T 8 = T 4 = T 9 = T 4 = T 9 = T 5 = T 5 =

10 10 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Mar. Apr. May Jun. Jul.Aug.Sep.Oct.Nov MonthJobs TrendForecast Forecast Error ErrorAbsolute Squared Abs.%Error Total Trend Projection n Forecast Accuracy

11 11 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Trend Projection n Forecast Accuracy

12 12 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Nonlinear Trend Regression n Sometimes time series have a curvilinear or nonlinear trend. n One example is this quadratic trend equation: n A variety of nonlinear functions can be used to develop an estimate of the trend in a time series. T t = b 0 + b 1 t + b 2 t 2 n Another example is this exponential trend equation: T t = b 0 ( b 1 ) t

13 13 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. n Example: Cholesterol Drug Sales Nonlinear Trend Regression Consider the annual revenue in millions of dollars Consider the annual revenue in millions of dollars for a cholesterol drug for the first ten years of sales. for a cholesterol drug for the first ten years of sales. This data indicates an This data indicates an overall increasing trend. overall increasing trend. A curvilinear function A curvilinear function appears to be needed to appears to be needed to model the long-term model the long-term trend. trend. Year Sales Year Sales Year Sales

14 14 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Quadratic Trend Equation n Model Formulation

15 15 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. This model can be solved with Excel Solver or LINGO. The optimal values are: b 0 = , b 1 = -2.11, b 2 =.922 b 0 = , b 1 = -2.11, b 2 =.922 Sum of squared errors = MSE = /10 = The fitted curve is: T t = – 2.11 t t 2 Quadratic Trend Equation n Model Solution

16 16 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Exponential Trend Equation n Model Formulation

17 17 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Exponential Trend Equation Based on MSE, the quadratic model provides a better fit than the exponential model. n Solution This model can be solved with Excel Solver or LINGO. The optimal values are: b 0 = 15.42, b 1 = 1.20 b 0 = 15.42, b 1 = 1.20 Sum of squared errors = MSE = /10 = The fitted curve is: T t = 15.42(1.20) t

18 18 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n To the extent that seasonality exists, we need to incorporate it into our forecasting models to ensure accurate forecasts. n We will first look at the case of a seasonal time series with no trend and then discuss how to model seasonality with trend.

19 19 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend Year Quarter 1 Quarter 2 Quarter 3 Quarter n Example: Umbrella Sales n Sometimes it is difficult to identify patterns in a time series presented in a table. n Plotting the time series can be very informative.

20 20 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n Umbrella Sales Time Series Plot

21 21 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n The time series plot does not indicate any long-term trend in sales. n However, close inspection of the plot does reveal a seasonal pattern. n The first and third quarters have moderate sales, n the second quarter the highest sales, and n the fourth quarter tends to be the lowest quarter in terms of sales.

22 22 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n We will treat the season as a categorical variable. n Recall that when a categorical variable has k levels, k – 1 dummy variables are required. n If there are four seasons, we need three dummy variables. n Qtr1 = 1 if Quarter 1, 0 otherwise n Qtr2 = 1 if Quarter 2, 0 otherwise n Qtr3 = 1 if Quarter 3, 0 otherwise

23 23 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n General Form of the Equation is: n Optimal Model is: n The forecasts of quarterly sales in year 6 are: n Quarter 1: Sales = (1) + 57(0) + 26(0) = 124 n Quarter 2: Sales = (0) + 57(1) + 26(0) = 152 n Quarter 3: Sales = (0) + 57(0) + 26(1) = 121 n Quarter 4: Sales = (0) + 57(0) + 26(0) = 95

24 24 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality without Trend n Model Formulation

25 25 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality and Trend n We will now extend the curve-fitting approach to include situations where the time series contains both a seasonal effect and a linear trend. n We will introduce an additional variable to represent time.

26 26 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Business at Terry's Tie Shop can be viewed as falling into three distinct seasons: (1) Christmas falling into three distinct seasons: (1) Christmas (November and December); (2) Father's Day (late (November and December); (2) Father's Day (late May to mid June); and (3) all other times. May to mid June); and (3) all other times. n Example: Terry’s Tie Shop Seasonality and Trend Average weekly sales ($) during each of the three seasons during the past four years are shown on the next slide. three seasons during the past four years are shown on the next slide.

27 27 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality and Trend n Example: Terry’s Tie Shop Determine a forecast for the average weekly sales in year 5 for each of the three seasons. Year Season

28 28 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality and Trend n There are three seasons, so we will need two dummy variables. n Seas1 t = 1 if Season 1 in time period t, 0 otherwise n Seas2 t = 1 if Season 2 in time period t, 0 otherwise n General Form of the Equation is:

29 29 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality and Trend n Model Formulation

30 30 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. Seasonality and Trend n The forecasts of average weekly sales in the three seasons of year 5 (time periods 13, 14, and 15) are: Seas. 1: Sales 13 = (1) (0) (13) Seas. 1: Sales 13 = (1) (0) (13) = = Seas. 2: Sales 14 = (0) (1) (14) Seas. 2: Sales 14 = (0) (1) (14) = = Seas. 3: Sales 15 = (0) (0) (15) Seas. 3: Sales 15 = (0) (0) (15) = = n Optimal Model

31 31 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. or duplicated, or posted to a publicly accessible website, in whole or in part. End of Chapter 15, Part B


Download ppt "1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole."

Similar presentations


Ads by Google