buad306 chapter 3 – forecasting. everyday forecasting weather time traffic other examples???

55
BUAD306 Chapter 3 – Forecasting

Upload: sylvia-garrison

Post on 21-Jan-2016

231 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

BUAD306

Chapter 3 – Forecasting

Page 2: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Everyday Forecasting

Weather Time Traffic Other examples???

Page 3: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Forecasting

What is forecasting? How is it used in business? Approaches to forecasting Forecasting techniques

Page 4: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

What is Forecasting?

Forecast: A statement about the future

Used to help managers:Plan the systemPlan the use of the system

Page 5: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Use of Forecasts

Accounting Cost/profit estimates

Finance Cash flow and funding

Human Resources Hiring/recruiting/training

Marketing Pricing, promotion, strategy

MIS IT/IS systems, services

Operations Schedules, MRP, workloads

Product/service design New products and services

Page 6: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Forecasting Basics

Assumes causal system past ==> future

Forecasts rarely perfect because of randomness

Forecasts more accurate for groups vs. individuals

Forecast accuracy decreases as time horizon increases

Page 7: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Elements of a Good Forecast

Timely – feasible horizon Reliable – works consistently Accurate – degree should be stated Expressed in meaningful units Written – for consistency of usage Easy to Use - KISS

Page 8: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Approaches to Forecasting

Judgmental – subjective inputs Time Series – historical data Associative – explanatory variables

Page 9: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Judgmental Forecasts

Executive Opinions Accuracy?? Sales Force Feedback Bias??? Consumer Surveys Outside Opinions Industry experts

Page 10: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

What would you rather evaluate?

Period A B C

1 30 18 46

2 34 17 26

3 32 19 27

4 34 19 23

5 35 22 22

6 30 23 48

7 34 23 29

8 36 25 20

9 29 24 14

10 31 26 18

11 35 27 47

12 31 28 26

13 37 29 27

14 34 31 24

15 33 33 22

16      

0

10

20

30

40

50

60

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Page 11: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Time Series Forecasts

Based on observations over a period of time

Identifies:Trend – LT movement in dataSeasonality – ST variationsCycles – wavelike variationsIrregular Variations – unusual eventsRandom Variations – chance/residual

Examples on the board

Page 12: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Forecast Variations

Trend

Irregularvariation

Seasonal Variations

908988

Cycles

Page 13: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Naïve Forecasting

Simple to use Minimal to no cost Data analysis is almost nonexistent Easily understandable Cannot provide high accuracy Can be a standard for accuracy

Examples on the board & HW#1…

Page 14: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

HW Problem 1Day Muffins Buns Cupcakes

1 30 18 46

2 34 17 26

3 32 19 27

4 34 19 23

5 35 22 22

6 30 23 48

7 34 23 29

8 36 25 20

9 29 24 14

10 31 26 18

11 35 27 47

12 31 28 26

13 37 29 27

14 34 31 24

15 33 33 22

16      

Page 15: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

HW Problem 1

0

10

20

30

40

50

60

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

MuffinsBunsCupcakes

Page 16: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Techniques for Averaging

Moving average Weighted moving average Exponential smoothing

Page 17: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Simple Moving Average

MAn = n

Aii = 1n

Where: i = index that corresponds to periods n = number of periods (data points) Ai = Actual value in time period I MA = Moving Average Ft = Forecast for period t

Page 18: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Period Sales

1 3520

2 2860

3 4005

4 3740

5 4310

6 5001

7 4890

8 ??

Four period moving average for period 7:

Four period moving average for period 8:

Four period moving average for period 9 if actual for 8 = 5025:

Example 1: Moving Average

Page 19: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Weighted Moving Average

Similar to a moving average, but assigns more weight to the most recent observations.

Total of weights must equal 1.

Page 20: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Compute a weighted moving average forecast for period 8 using the following weights: .40, .30, .20 and .10:

Example 2: Weighted Moving Average

Period Sales

1 3520

2 2860

3 4005

4 3740

5 4310

6 5001

7 4890

8 ??

Page 21: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

HW #2 – Let’s Discuss

Month Sales

Feb 19

Mar 18

Apr 15

May 20

June 18

July 22

Aug 20

Page 22: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Calculating Error

Mathematically:

et = At - Ft

Let’s discuss examples on board…

Page 23: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Exponential Smoothing

Premise--The most recent observations might have the highest predictive value….

Therefore, we should give more weight to the more recent time periods when forecasting.

Page 24: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Exponential Smoothing

Ft = Ft-1 + (At-1 - Ft-1)

Next forecast = Previous forecast + (Actual -Previous Forecast)

Smoothing Constant

Page 25: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

About

= Smoothing constant selected by forecaster

It is a percentage of the forecast error The closer the value is to zero, the

slower the forecast will be to adjust to forecast errors (greater smoothing)

The higher the value is to 1.00, the greater the responsiveness to errors and the less smoothing

READ TEXT

Page 26: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Ft = Ft-1 + (At-1 - Ft-1)

Example 3: Exponential Smoothing

Assume a starting forecast of 4030 for period 3.

Given data at left and = .10, what would the forecast be for period 8?

Period Sales

1 3520

2 2860

3 4005

4 3740

5 4310

6 5001

7 4890

8 ??

Page 27: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Example 3: Exponential Smoothing

Period Act Forecast Calc Fore

3 4005 4030

4 3740

5 4310

6 5001

7 4890

8

Page 28: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

HW #2 – Let’s Discuss

Month Sales

Feb 19

Mar 18

Apr 15

May 20

June 18

July 22

Aug 20

Page 29: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Techniques for Seasonality

Seasonal Variations – regularly repeating movements in series values that can be tied to recurring events

Computing Seasonal Relatives: READ THE TEXTLook at HW #12 – don’t have to know this for exam

Page 30: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Using Seasonal Relatives

Allows you to incorporate seasonality or deseasonalize dataIncorporate: Useful when trend and

seasonality are apparentDeseasonalize – Remove seasonal

components to get a clearer picture of non-seasonal components

Page 31: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Example 4: Using Seasonal Relatives

A publisher wants to predict quarterly demand for a certain book for periods 9 and 16, which happen to be in the 3rd and 2nd quarters of a particular year. The data series consists of both trend and seasonality. The trend portion of demand is projected using the equation: yt=12,500 + 150.5t.

Quarter relatives are Q1= 1.3, Q2=.8, Q3=1.4, Q4=.9

Use this information to predict demand for periods 9 and 16.The trend values:

Applying the relatives:

Page 32: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

HW #11 – Let’s Discuss

The following equation summarizes the trend portion of quarterly sales of condos over a long cycle. Prepare a forecast for each Q of 2014 and 1Q15.

Ft = 40 – 6.5t + 2t2

Ft = unit salest= 0 at 1Q 2012

Quarter Relative

1 1.1

2 1

3 .6

4 1.3

Page 33: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Assoc. Forecasting Technique:Simple Linear Regression

Predictor variables - used to predict values of variable interest

Regression - technique for fitting a line to a set of points

Least squares line - minimizes sum of squared deviations around the line

Page 34: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Linear Regression Assumptions

Variations around line are randomNo patterns are apparent

Deviations around the line should be normally distributed

Predictions are being made only in the range of observed values

Should use minimum of 20 observations for best results

Page 35: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Suppose you analyze the following data...

0

10

20

30

40

50

0 5 10 15 20 25

X Y7 152 106 134 15

14 2515 2716 2412 2014 2720 4415 347 17

Page 36: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

The regression line has the following equation:

y c = a + bx

Where: y c = Predicted (dependent) variablex = Predictor (independent) variableb = slope of the linea = Value of y c when x=0

b = n (xy) - (x)(y)n(x2) - (x)2

a = y - bx n

Page 37: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Example 5 - Linear Regression:

Suppose that a manufacturing company made batches of a certain product. The accountant for the company wished to determine the cost of a batch of product given the following data:

Size of batch203040507080

100120150

Cost of batch (in 1000s)$1.43.44.13.86.76.67.8

10.411.7

Question… which is the dependent (y) and which is the independent (x) variable?

Page 38: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Batch (x) Cost (y) xy x^220 1.4 28 40030 3.4 102 90040 4.1 164 160050 3.8 190 250070 6.7 469 490080 6.6 528 6400

100 7.8 780 10000120 10.4 1248 14400150 11.7 1755 22500

SUM = 660 55.9 5264 63600

Page 39: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

We are now ready to determine the values of b and a:

b = n (xy) - (x)(y) = 9 (5264) - (660)(55.9)

n(x2) - (x)2 9(63600) - (660)2

= 47376-36894 = 10482 =

572400-435600 136800

Batch (x) Cost (y) xy x^2SUM = 660 55.9 5264 63600

a = y - bx = 55.9 - .0766(660) = n 9

Page 40: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Our linear regression equation:

y c = a + bx

y c =

What is the cost of a batch of 125 pieces?

y c =

Page 41: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Batch (x) Cost (y)20 1.430 3.440 4.150 3.870 6.780 6.6

100 7.8120 10.4150 11.7 0

24

6

8

1012

14

0 100 200Batch size

Co

st

Series1

Linear (Series1)

Page 42: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Problem #7

Freight car

loadings at a

busy port are as

follows:

Week # Week #

1 220 10 380

2 245 11 420

3 280 12 450

4 275 13 460

5 300 14 475

6 310 15 500

7 350 16 510

8 360 17 525

9 400 18 541

Page 43: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Problem #7Period (t) Loads (y) t^2 t * y

1 220 1 220 2 245 4 490 3 280 9 840 4 275 16 1,100 5 300 25 1,500 6 310 36 1,860 7 350 49 2,450 8 360 64 2,880 9 400 81 3,600

10 380 100 3,800 11 420 121 4,620 12 450 144 5,400 13 460 169 5,980 14 475 196 6,650 15 500 225 7,500 16 510 256 8,160 17 525 289 8,925 18 541 324 9,738

SUM 171 7,001 2,109 75,713

b = n (xy) - (x)(y)

n(x2) - (x)2

a = y - bx n

Page 44: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Correlation (r)

A measure of the relationship between two variables

• Strength• Direction (positive or negative)

Ranges from -1.00 to +1.00• Correlation close to 0 signifies a weak

relationship – other variables may be at play

• Correlation close to +1 or -1 signifies a strong relationship

Page 45: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Calculating a Correlation Coefficient

r = n( xy) - ( x)( y)

n( x2)- ( x)2 * n( y2) - ( y)2

Page 46: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Batch (x) Cost (y) xy x^2 y^2SUM = 660 55.9 5264 63600 439.11

r = n( xy) - ( x)( y)

n( x2)- ( x)2 * n( y2) - ( y)2

r = 9 () - ()()9()- ()2 * 9() - ()2

r = 47376 - 36894 = 10482 = .985 136800 * 827.18 369.86 * 28.76

Example 6: Continued

Page 47: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Coefficient of Determination (r2)

How well a regression line “fits” the data

Ranges from 0.00 to 1.00 The closer to 1.0, the better the fit

Page 48: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

0

5

10

15

0 50 100 150 200

Batch size

Co

st

Series1

Linear(Series1)

r = .985r2 = .9852 = .97

Example 6: Continued

Page 49: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Conclusion of Example

R = .985 Positive, close to one

R2 = .9852 = .97Closer to one, the better the fit to the

line

Page 50: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Forecast Accuracy

Error - difference between actual value and predicted value

Mean absolute deviation (MAD)Average absolute error

Mean squared error (MSE)Average of squared error

Why can’t we simply calculate error for each observed period and then select the technique with the lowest error?

Page 51: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Error Example

Period Actual 3PMA 5PMA3P WMA.6, .3, .1 EX SM .2 LR

1 55 55.692 60 55 60.663 75 56 65.634 58 63.33333 68.5 59.8 70.65 80 64.33333 63.3 59.44 75.576 90 71 65.6 72.9 63.552 80.547 70 76 72.6 83.8 68.8416 85.518 92 80 74.6 77 69.07328 90.489 100 84 78 85.2 73.65862 95.45

10 87.33333 86.4 94.6 78.9269 100.42

#errors? 6 4 6 8 9

Does the # of errors calculated impact the "accuracy" comparison???

Page 52: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Calculating Error

Mathematically:

What do the negative errors mean?

How do they affect total error?

et = At - Ft

Page 53: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Calculating MAD and MSE

MAD = Actual forecastn

MSE = Actual forecast)

-1

2n

(

Page 54: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

Conclusions with MAD & MSE

The MAD and MSE can be used as a comparison tool for several forecasting techniques.

The forecasting technique that yields the lowest MAD and MSE is the preferred forecasting method.

Page 55: BUAD306 Chapter 3 – Forecasting. Everyday Forecasting Weather Time Traffic Other examples???

MAD & MSE Comparison

Tech MAD MSE

3 Period MA 3.6 8.1

Exp Sm .02 2.2 5.6

Exp Sm .04 2.6 6.1

Which technique would you select for your forecast approach?