Chapter 5 - Basic Forecasting Method - 2024-Bị Cắt Xén
Chapter 5 - Basic Forecasting Method - 2024-Bị Cắt Xén
Yˆt 1 Yt (Yt Yt 1 )
• The method incorporates the overall trend (drift) in the • Forecast value is equal to the previous observed
data series from the first observation to the last and value plus a proportion of the most recently observed
extrapolates the trend observed in the historical data. rate of change in the variable.
• not be suitable when the time
series has seasonality, • Use (Yt-1-Yt-2) to consider the direction from which we
Y Y cyclical patterns, the trend is arrived at the most recent observation.
Y t h Yt t 1 h nonlinear.
t 1 • the trend between the first
and the last observed value Yt Yt 1 p Yt 1 Yt 2
where: is representative of the
overall trend in the series, where
Y1 is the first observed value
which might not include Y1 is the first observed value.
Yt is the last observed value series with structural breaks. p is the proportion of the change between
t is the total number of observations
periods t-2 and t-1 that we choose to include in
h is the number of periods ahead you are forecasting
the forecast
6 9
Associative Forecasting - Regression Analysis
Forecast Accuracy of Naïve Model vs. Modified Naive Model
• Based on identification of related variables that can be
• Example 1: The quarterly sales of saws from 2000 to used to predict values of the variable of interest.
2006 for the Acme Tool Company. Sales of bikes in an area may be related to the percentage of
Naïve Modified Naïve the young population living in that area.
p 0.6 Ice cream sales can be related to temperature
House sales forecasts on mortgage refinancing rates,
MAD 152.308 MAD 151.852 smaller rates imply higher sales.
MSE 39907.692 MSE 29074.074 Changes in interest rate leads to certain business activities
RMSE 199.769 RMSE 170.511 – House sales
MAPE 0.357 MAPE 0.368 – Industrial investments
Increase in energy cost leads to price increases in products
MPE -0.005 MPE -0.072 and services
ME 14.615 ME 7.407
10
11
Associative Forecasting - Regression Analysis Regression Analysis: Trend Models
• Regression analysis established a temporal • Quadratic Trend Model: Yt b0 b1t b2t 2 for t 1, 2, , n quadratic trend
relationship for the forecast variable. the relationship between the independent and dependent
The variable to be predicted (demand) is referred to as the variable is represented by a second-degree polynomial.
dependent variable Use when the data shows a curve, with the rate of change in
The variable of time-stamp (dấu thời gian) used in predicting the dependent variable increasing or decreasing over time.
is called the independent variable. • Exponential Trend Model: Yt b0 eb1t for t 1, 2, , n exponential trend
• The simplest of relationship is a linear regression. The dependent variable grows or declines at a constant
percentage rate over time.
• The basic equation for the straight line that express Use when the data shows exponential growth or decay, such
demand (Y) as a function of time (t) is as population growth or compound interest
Yt 0 1t t • Any trend model’s forecasts become less reliable as
Yt b0 b1t they are extrapolated farther into the future.
Yt 0 1 X t t
14 16
Y Y Y Y ... Yt k 1 Y t i 1
Initialization Y Y ... Yt i
Yˆt 1 t t 1 t 2 i 1
part: Yˆt 1 1 2 i 1
k k
t t where: 𝑌 = forecast demand for period t+1
where: 𝑌 = forecast made at for period t for time/period t+1 , Yt-i = actual demand in periods t-i
Yi = actual demand in periods i, k = number of terms in the moving average
t = number of time periods which we count • The moving average for time period t is the arithmetic
mean of the k most recent observations.
• SMA is used when the forces generating the series to be • The moving average model does not handle trend or
forecast have stabilized and the environment in which the seasonality very well, although it does better than the
series exists is generally unchanging. simple average method.
• The choice of the value of k should be determined by
experimentation and often lies within the ranges of 3 to 8.
19 21
Ex: Three period moving average forecast Weighted average
Yi
• The weighted average is more reflective of
Y t 1 MAt 1, k i t k 1
, the most recent occurrences.
k
MAt 1, k : MA forecast made in period t using n actual observations
Double Moving Averages (DMA)
Moving Averages (MA) or Trailing Moving Average (TMA)
• Third, calculate a forecast by DMA, compute the
• The number of points k used for the average increases, coefficient of the “linear trend line” by adding to the single
the curve becomes smoother and smoother. Choosing a moving average Mt the difference between the single and
value for k is a balance between eliminating noise while
still capturing the data’s true structure. the second moving averages (Mt-M’t), we get
A small number k is most desirable
A small number k places heavy weight on recent historical
observations, that might catch up more rapidly to the current level
A large number k is desirable when there are wide, infrequent
• Fourth, compute an additional adjustment factor, which is
fluctuations in the series similar to a slope measure that can change over the series
For smoothing out: MA(4) yields an average of the four quarters, where
MA(12), eliminates or averages out the seasonal effects k = the number of periods in the
moving average
• Minitab can be used to compute a k moving average
• Check the autocorrelation function for the residuals from • Last, make the forecast p periods into the future Y t p at bt p
where
the k moving average method p = the number of periods ahead to be forecast
26 28
31