FORECASTING
FORECASTING
Shane Garcia
Jaymar Bagon
Glen Jonas De los Trinos
Lecture Outline
Forecasting basics
Moving Average
Exponential
Smoothing
Linear Trend Line
Forecast Accuracy
Forecasting Basics
Components
Methods
Methods
where
n = number of periods in the moving average
D = data in period i
The major disadvantage of the Simple Moving
Average method is that it does not react well to
variations that occur for a reason, such as
trends and seasonal effects (although this
method does reflect trends to a moderate
extent).
The Simple Moving Average method can be
adjusted to reflect more closely more recent
fluctuations in the data and seasonal effects.
This adjusted method is referred to as a
Weighted Moving Average method.
Weighted Moving
Average
where:
•This means that our forecast for the next period is based on 20% of recent
demand (Dt) and 80% of past demand.
Time Series –
Exponential Smoothing
SIMPLE EXPONENTIAL SMOOTHING
•The higher α is (the closer α is to one), the more sensitive the forecast will be
to changes in recent demand.
•The most commonly used values of αare in the range from .01 to .50.
•To develop the series of forecasts for the data i, start with period 1 (January)
and compute the forecast for period 2 (February) by using α = 0.30.
•The formula for exponential smoothing also requires a forecast for period 1,
which we do not have, so we will use the demand for period 1 as both demand
and the forecast for period 1.
Time Series –
Exponential Smoothing
SIMPLE EXPONENTIAL SMOOTHING
Simple Exponential Smoothing Example
F2 = αD1 + (1 - α)F1
= (.30)(37) + (.70)(37) = 37 units
Time Series –
Exponential Smoothing
SIMPLE EXPONENTIAL SMOOTHING
Simple Exponential Smoothing Example
•The final forecast is for period 13, January, and is the forecast of interest to
PM Computer Services:
F13 = α D12 + (1 - α)F12 = (.30)(54) + (.70)(50.84) = 51.79 units
Time Series – Simple Exponential Smoothing
Time Series – Simple Exponential Smoothing
• In general, when demand is relatively stable, without any trend, using a small
value for α is more appropriate to simply smooth out the forecast.
•It reflects the weight given to the most recent trend data.
• The adjusted forecast for February, AF2, is the same as the exponentially
smoothed forecast because the trend computing factor will be zero (i.e., F1
and F2 are the same and T2 = 0).
Time Series –
Exponential Smoothing
SIMPLE EXPONENTIAL SMOOTHING
Adjusted Exponential Smoothing Example
•Thus, we will compute the adjusted forecast for March, AF3, as follows,
starting with the determination of the trend factor, T3:
Time Series –
Exponential Smoothing
SIMPLE EXPONENTIAL SMOOTHING
Adjusted Exponential Smoothing
Daily temperature
Monthly sales
Yearly population growth
Time Series –
Linear Trend Line
Linear Trend Line
Linear regression is most often thought of as a causal method of forecasting
in which a mathematical relationship is developed between demand and
some other factor that causes demand behavior.
However, when demand displays an obvious trend over time, a least squares
regression line, or linear trend line, can be used to forecast demand.
A linear trend line is a linear regression model that relates demand to time.
Time Series – Linear Trend Line
The linear regression takes form of a linear equation as follows:
01 where
a = intercept
b = slope of the line
x = the time period
y = forecast for demand for period x
Time Series – Linear Trend Line
The linear regression takes form of a linear equation as follows:
and and
Time Series – Linear Trend Line
The linear regression takes form of a linear equation as follows:
x (period) y (demand) xy x2
1 37 37 1
2 40 80 4
3 41 123 9
4 37 148 16
5 45 225 25
6 50 300 36
7 43 301 49
8 47 376 64
9 56 504 81
10 52 520 100
11 55 605 121
12 54 648 144
78 557 3,867 650
Time Series – Linear Trend Line
Using these values for ẋ and ӯ the values, the parameters for the
linear trend line are computed as follows:
x (period) y (demand) xy x2
1 37 37 1
2 40 80 4
3 41 123 9
4 37 148 16
5 45 225 25
6 50 300 36
7 43 301 49
8 47 376 64
9 56 504 81
10 52 520 100
11 55 605 121
12 54 648 144
y = 35.2 + 1.72x
A linear trend line will not adjust to a change in trend as will exponential
smoothing.
Time Series – Linear Trend Line
Time Series –
Seasonal Adjustments
Seasonal Adjustments
One method for developing a demand for seasonal factors is dividing the actual demand for
each seasonal period by the total annual demand, according to the following formula:
A company sells winter jackets and records the following quarterly demand over the past year:
The marketing team forecasts a total annual demand of 3,600 jackets for next year.
📋 Final Answer:
Seasonal Factors: Seasonally Adjusted Forecast:
Q1: 0.15 Q1: 540 jackets
Q2: 0.225 Q2: 810 jackets
Q3: 0.30 Q3: 1,080 jackets
Q4: 0.325 Q4: 1,170 jackets
Time Series – Seasonal Adjustments
Seasonal Adjustments Example 2:
Turkey Demand (1,000s)
In this case, because the demand data in the table seem to exhibit a generally increasing trend,
we compute a linear trend line for the 3 years of data in the table to use as a rough forecast
estimate:
y = 40.97 + 4.30x = 40.97 + 4.30(4) = 58.17 or 58,170 turkey
Time Series – Seasonal Adjustments
Seasonal Adjustments Example 2:
Turkey Demand (1,000s)
Year QUARTER 1 QUARTER 2 QUARTER 3 QUARTER 4 TOTAL
2003 12.6 8.6 6.3 17.5 45
2004 14.1 10.3 7.5 18.2 50.1
2005 15.3 10.6 8.1 19.6 53.6
Total 42 29.5 21.9 55.3 148.7
Using this annual forecast of demand, the seasonally adjusted forecasts, SFi, for 2006 are as
follows:
Thank You
For Listening!