SlideShare a Scribd company logo
1 of 37
Business Analytics – The Science of Data Driven Decision Making
Business Analytics – The Science of Data Driven Decision Making
Forecasting Techniques
U Dinesh Kumar
Business Analytics – The Science of Data Driven Decision Making
“Those who have knowledge don’t predict. Those Who
Predict Don’t have Knowledge”.
- Lao Tzu
Business Analytics – The Science of Data Driven Decision Making
INTRODUCTION TO FORECASTING
Business Analytics – The Science of Data Driven Decision Making
Forecasting is one of the most important and
frequently addressed problems in analytics.
Inaccurate forecasting can have significant
impact on both top line and bottom line of an
organization. For example, non-availability of
product in the market can result in customer
dissatisfaction, whereas, too much inventory
can erode the organization’s profit. Thus, it
becomes necessary to forecast the demand for
a product and service as accurately as
possible.
Business Analytics – The Science of Data Driven Decision Making
Time-Series Data and Components of Time-Series
Data
• Time-series data is a data on a response variable, Yt,
such as demand for a spare parts of a capital
equipment or a product or a service or market share of
a brand observed at different time points t.
• The variable Yt is a random variable.
• If the time series data contains observations of just a
single variable (such as demand of a product at time t),
then it is termed as univariate time series
Business Analytics – The Science of Data Driven Decision Making
Trend Component (Tt)
• Trend (pattern) is the consistent long term upward or
downward movement of the data over a period of time.
Seasonal Component (St)
• Seasonal component (or seasonality index) is the
repetitive upward or downward movement (or
fluctuations) from the trend that occurs within a
calendar year such as seasons, quarters, months, days
of the week, etc.
Business Analytics – The Science of Data Driven Decision Making
Cyclical Component (Ct):
• Cyclical component is fluctuation around the trend line
that happens due to macro-economic changes such as
recession, unemployment, etc.
• Cyclical fluctuations have repetitive patterns with a time
between repetitions of more than a year.
Irregular Component (It)
• Irregular component is the white noise or random
uncorrelated changes that follow a normal distribution
with mean value of 0 and constant variance.
Business Analytics – The Science of Data Driven Decision Making
0
10
20
30
40
50
60
70
80
90
1 3 5 7 9 11 13 15 17 19 21 23
0
5
10
15
20
25
30
35
1 3 5 7 9 11 13 15 17 19 21 23
0
5
10
15
20
25
1 3 5 7 9 11 13 15 17 19 21 23
0
10
20
30
40
50
60
70
80
1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46
(a) Trend (b) Seasonality
(c) Cyclicality (d) Irregular
Business Analytics – The Science of Data Driven Decision Making
Forecasting Techniques and Accuracy
• Mean absolute error (MAE) is the average absolute
error and should be calculated on the validation
dataset.
• The mean absolute error is given by
• Mean absolute percentage error (MAPE) is the
average of absolute percentage error.
• The mean absolute percentage error is given by
Business Analytics – The Science of Data Driven Decision Making
Mean square error is the average of squared error
calculated over the validation dataset. MSE is given by
Lower MSE implies better prediction. However, it
depends on the range of the time-series data.
• Root mean square error (RMSE) is the square root of
mean square error and is given by
Business Analytics – The Science of Data Driven Decision Making
Moving Average Method
Moving average is one of the simplest forecasting
techniques which forecasts the future value of a time-
series data using average (or weighted average) of the
past ‘N’ observations. Mathematically, a simple moving
average is calculated using the formula
The above formula is called simple moving average
(SMA) since ‘N’ past observations are given equal
weights (1/N).






t
N
t
k
k
t Y
N
F
1
1
1
Business Analytics – The Science of Data Driven Decision Making
Weighted Moving Average
In a weighted moving average, past observations are
given differential weights (usually the weight decrease as
the data becomes older). Weighted moving average is
given by
where Wk is the weight given to value of Y at time k (Yk)
and
.
1
1





t
N
t
k
k
W
Business Analytics – The Science of Data Driven Decision Making
Single Exponential Smoothing (ES)
• SES assumes a fairly steady time-series data with no
significant trend, seasonal or cyclical component
• Parameter  in Eq. is called the smoothing constant
and its value lies between 0 and 1. Since the model
uses one smoothing constant, it is called single
exponential smoothing.
1 (1 )
t t t
F Y F
     
Business Analytics – The Science of Data Driven Decision Making
Advantages
• It uses all the historic data unlike the moving average
where only the past few observations are considered to
predict the future value.
• It assigns progressively decreasing weights to older
data.
Disadvantages
• Increasing n makes forecast less sensitive to changes in
data.
• It always lags behind trend as it is based on past
observations. The longer the time period n, the greater the
lag as it is slow to recognize the shifts in the level of the
data points.
• Forecast bias and systematic errors occur when the
observations exhibit strong trend or seasonal patterns.
Business Analytics – The Science of Data Driven Decision Making
Optimal Smoothing Constant in a Single
Exponential Smoothing (SES)
• Choosing optimal smoothing constant  is important for
accurate forecast. Whenever the data is smooth (without
much fluctuations), we may choose higher value of .
However, when the data is highly fluctuating, then it is
better to choose lower value of . We can find the optimal
value of the smoothing constant by solving a non-linear
optimization problem.
Business Analytics – The Science of Data Driven Decision Making
Double Exponential Smoothing – Holt’s
Method
Double exponential smoothing uses two equations to
forecast the future values of the time series, one for
forecasting the level (short term average value) and
another for capturing the trend.
The two equations are provided in Eqs.
Level (or Intercept) equation (Lt):
Lt =   Yt + (1  )  Ft
The trend equation is given by (Tt)
Tt =   (Lt – Lt1) + ( 1  )  Tt1
Business Analytics – The Science of Data Driven Decision Making
Triple Exponential Smoothing (Holt-Winter
Model)
The following three equations which account for level,
trend, and seasonality are used for forecasting
Level (or Intercept) equation:
Trend equation:
Tt =   (Lt – Lt-1) + ( 1   ) Tt-1
Seasonal equation:
 
1 1
(1 )
t
t t t
t c
Y
L L T
S
 

     
Business Analytics – The Science of Data Driven Decision Making
Predicting Seasonality Index Using Method
of Averages
Step 1: Calculate the average of value of Y for each
season (that is, if the data is monthly data, then we need
to calculate the average for each month based on the
training data). Let these averages be
Step 2: Calculate the average of the seasons’ averages
calculated in step 1 (say )
Step 3: The seasonality index for season k is given by
the ratio



c
Y
Y
Y ,...,
, 2
1

Y


Y
Yk
Business Analytics – The Science of Data Driven Decision Making
Croston’s Forecasting Method for
Intermittent Demand
Croston’s method has two components:
1. Predicting time between demand
2. Magnitude of the demand.
The primary objective of Croston’s method is to forecast
mean demand per period.
Business Analytics – The Science of Data Driven Decision Making
Regression Model for Forecasting
The forecasted value at time t, Ft, can be written as a
regression equation as follows:
Here Ft is the forecasted value of Yt, and X1t, X2t, etc. are
the predictor variables measured at time t.
0 1 1 2 2
t t t n nt t
F X X X
       
Business Analytics – The Science of Data Driven Decision Making
Auto-Regressive (AR) Models
Auto-regression is regression of a variable on itself
measured at different time points. Auto-regressive
model with lag 1, AR(1), is given by
Yt+1 =  Yt + t+1
which can be re-written as
1
1 )
( 
 



 t
t
t Y
Y 



Business Analytics – The Science of Data Driven Decision Making
AR Model Identification: ACF and PACF
• Auto-correlation is the correlation between Yt measured
at different time periods (for example, Yt and Yt-1 or Yt
and Yt-k).
• Auto-correlation indicates the memory of a process,
that is, how far in time can it remember what has
happened before. The auto-correlation of k-lags
(correlation between Yt and Yt-k) is given by
• where n is the number of observations in the sample. A
plot of auto-correlation for different values of k is called
auto-correlation function (ACF) or correlogram.
 








 

























n
t
t
n
k
t
t
k
t
k
Y
Y
Y
Y
Y
Y
1
2
1

Business Analytics – The Science of Data Driven Decision Making
Moving Average Process MA(q)
• Moving average (MA) processes are regression models in
which the past residuals are used for forecasting future
values of the time-series data.
• Moving average process of lag 1, MA(1), is given by
• Alternatively, a moving average process of lag 1 can be
written as
1
1
1 



 t
t
t
Y 



1
1
1 


 t
t
t
Y 


Business Analytics – The Science of Data Driven Decision Making
Auto-Regressive Moving Average (ARMA)
Process
Auto-regressive moving average (ARMA) is a
combination auto-regressive and moving average
process. ARMA(p, q) process combines AR(p) and
MA(q) processes. ARMA(p, q) model is given by
1
Part
Average
Moving
1
1
2
1
Part
Regressive
Auto
1
1
2
1
1 ...
... 






 







 t
q
t
q
t
t
p
t
p
t
t
t Y
Y
Y
Y 













 




 





 




 

Business Analytics – The Science of Data Driven Decision Making
Auto-Regressive Integrated Moving Average
(ARIMA) Process
ARIMA models are used when the time-series data is
non-stationary.
ARIMA model was proposed by Box and Jenkins
(1970) and thus is also known as BoxJenkins
methodology
ARIMA has the following three components and is
represented as ARIMA(p, d, q):
Auto-regressive component with p lags AR(p).
Integration component (d).
Moving average with q lags, MA(q).
Business Analytics – The Science of Data Driven Decision Making
ACF of a non-stationary process (slowly decreasing
auto-correlation values).
Business Analytics – The Science of Data Driven Decision Making
Dickey Fuller Test
The test statistic is given by
)
(
Statistic
Test
DF





e
S
Augmented DickeyFuller Test
When t+1 is not white noise, the actual series may not be
AR(1); it may have more significant lags.
The model in Eq. can be written as
Business Analytics – The Science of Data Driven Decision Making
ARIMA(p, d, q) Model Building
Business Analytics – The Science of Data Driven Decision Making
LjungBox Test for Auto-Correlations
LjungBox is a test of lack of fit of the forecasting model
and checks whether the auto-correlations for the errors
are different from zero. The null and alternative
hypotheses are given by
H0: The model does not show lack of fit
H1: The model exhibits lack of fit
The LjungBox statistic (Q-Statistic) is given by
Business Analytics – The Science of Data Driven Decision Making
Power of Forecasting Model:
Theil’s Coefficient
The power of forecasting model is a comparison between
Naïve forecasting model and model developed using
Theil’s coefficient and U-statistic.
Theil’s coefficient (U-statistic) is given by (Theil, 1965)
Business Analytics – The Science of Data Driven Decision Making
Summary
 Forecasting is one of the important tasks carried out
using analytics by many organizations since accurate
forecasting is important for taking several decisions such
as man-power planning, materials requirement planning,
budgeting and supply chain related issues.
 Forecasting is carried out on a time-series data in which
the dependent variable Yt is observed at differ time
periods t.
 Several techniques such moving average, exponential
smoothing and auto-regressive models are used for
forecasting future value of Yt.
Business Analytics – The Science of Data Driven Decision Making
 The forecasting models are validated using accuracy
measures such as RMSE, MAPE, AIC and BIC.
 Simple techniques such as moving average and
exponential smoothing may outperform complex
regression based models in certain scenarios. Thus, it
is important to develop forecasting models using
several techniques before selecting the final model.
 Regression model in the presence of independent
variables may outperform other techniques.
Business Analytics – The Science of Data Driven Decision Making
Summary – AR Models
 Auto Regressive (AR) models are regression based
models in which dependent variable is Yt and the
independent variables are Yt-1, Yt-2 etc.
 AR models can be used only when the data is
stationary.
 Moving average (MA) models are regression models
in which the independent variables are past error
values.
 Auto regressive integrated moving average (ARIMA)
has 3 components. Auto-regressive component with p
lags AR(p), moving average component with q lags
MA(q) and integration which is differencing the original
data to make it stationary.
Business Analytics – The Science of Data Driven Decision Making
 One of the necessary conditions of acceptance of
ARIMA model is that the residuals should follow white
noise.
 In ARIMA, the model identification, that is identifying
the value of p in AR and q in MA is achieved through
auto-correlation function (ACF) and partial auto-
correlation function (PACF).
 The stationarity of time series data is usually checked
using Dickey Fuller and Augmented Dickey Fuller test.
 The overall model accuracy of forecasting model is
tested using Ljung-Box test.
Business Analytics – The Science of Data Driven Decision Making
References
• Ali F (2017), “Amazon could Drive 80% of U.S. e-Commerce Growth”,
Digital 360 Commerce, March 8 2017. Available at
https://www.digitalcommerce360.com/2017/03/08/amazon-drive-80-u-s-e-
commerce-growth-next-year/, accessed on 10 May 2017.
• Box G E P and Jenkins G M (1970), “Time Series Analysis, Forecasting
and Control”, Holden Day, San Francisco.
• Chatfield C (1986), “Simple is Best?”, Editorial in the International Journal
of Forecasting, 2, 401-402.
• Croston J D (1972), “Forecasting and Stock Control for Intermittent
Demands”, 23(3), 289-303.
• Dickey D A and Fuller W A (1979), “Distribution of Estimation of Auto-
Regressive Time Series with a Unit Root”, Journal of the American
Statistical Association, 74, 427-431.
• Hill K (2011), “Extreme Engineering: The Boeing 747”, Science Based Life
– Add Little Reason to Your Day, 25 July 2011, available at
https://sciencebasedlife.wordpress.com/2011/07/25/extreme-engineering-
the-boeing-747/ accessed on 10 May 2017.
Business Analytics – The Science of Data Driven Decision Making
• Makridakis S, Wheelwright S C and Hyndman R J (1998),
“Forecasting – Methods and Applications”, Third Edition, John
Wiley & Sons, USA
• Parker G C and Segura E L (1971), “How to get a Better Forecast”,
Harvard Business Review, March-April 1971, 99-109.
• Taylor, J W (2011), “Multi-Item Sales Forecasting with Total and
Split Exponential Smoothing”, The Journal of the Operational
Research Society, 62(3), 555-563.
• Theil H (1965), “Economic Forecasts and Policy”, North Holland,
Amsterdam
• Yaffee R A and McGee M (2000), “An Introduction to Time Series
Analysis and Forecasting: With Applications of SAS and SPSS”,
Academic Press, New York.
• Winters P R (1960), “Forecasting Sales by Exponentially Weighted
Moving Averages”, Management Science, 6(3), 324-342.

More Related Content

Similar to 1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx

A Study on Performance Analysis of Different Prediction Techniques in Predict...
A Study on Performance Analysis of Different Prediction Techniques in Predict...A Study on Performance Analysis of Different Prediction Techniques in Predict...
A Study on Performance Analysis of Different Prediction Techniques in Predict...IJRES Journal
 
Forecasting of demand (management)
Forecasting of demand (management)Forecasting of demand (management)
Forecasting of demand (management)Manthan Chavda
 
Forecasting demand planning
Forecasting demand planningForecasting demand planning
Forecasting demand planningManonmaniA3
 
Chapter 7 demand forecasting in a supply chain
Chapter 7 demand forecasting in a supply chainChapter 7 demand forecasting in a supply chain
Chapter 7 demand forecasting in a supply chainsajidsharif2022
 
Episode 12 : Research Methodology ( Part 2 )
Episode 12 :  Research Methodology ( Part 2 )Episode 12 :  Research Methodology ( Part 2 )
Episode 12 : Research Methodology ( Part 2 )SAJJAD KHUDHUR ABBAS
 
forecastingtechniques 2.pdf
forecastingtechniques 2.pdfforecastingtechniques 2.pdf
forecastingtechniques 2.pdfvijay511413
 
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docxForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docxbudbarber38650
 
Statistics online lecture 01.pptx
Statistics online lecture  01.pptxStatistics online lecture  01.pptx
Statistics online lecture 01.pptxIkramUlhaq93
 
IRJET- Overview of Forecasting Techniques
IRJET- Overview of Forecasting TechniquesIRJET- Overview of Forecasting Techniques
IRJET- Overview of Forecasting TechniquesIRJET Journal
 
Episode 18 : Research Methodology ( Part 8 )
Episode 18 :  Research Methodology ( Part 8 )Episode 18 :  Research Methodology ( Part 8 )
Episode 18 : Research Methodology ( Part 8 )SAJJAD KHUDHUR ABBAS
 
Enterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_ComponentsEnterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_Componentsnanfei
 
Time series mnr
Time series mnrTime series mnr
Time series mnrNH Rao
 
Project for Quantitative Analysis by Wichian
Project for Quantitative Analysis by WichianProject for Quantitative Analysis by Wichian
Project for Quantitative Analysis by WichianWichian Srichaipanya
 
time series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdftime series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdfssuser220491
 
Industrial engineering notes for gate
Industrial engineering notes for gateIndustrial engineering notes for gate
Industrial engineering notes for gateSoumith V
 

Similar to 1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx (20)

A Study on Performance Analysis of Different Prediction Techniques in Predict...
A Study on Performance Analysis of Different Prediction Techniques in Predict...A Study on Performance Analysis of Different Prediction Techniques in Predict...
A Study on Performance Analysis of Different Prediction Techniques in Predict...
 
Forecasting techniques
Forecasting techniquesForecasting techniques
Forecasting techniques
 
forecasting
forecastingforecasting
forecasting
 
Stats LECTURE 1.pptx
Stats LECTURE 1.pptxStats LECTURE 1.pptx
Stats LECTURE 1.pptx
 
Forecasting of demand (management)
Forecasting of demand (management)Forecasting of demand (management)
Forecasting of demand (management)
 
Time Series FORECASTING
Time Series FORECASTINGTime Series FORECASTING
Time Series FORECASTING
 
Forecasting demand planning
Forecasting demand planningForecasting demand planning
Forecasting demand planning
 
Chapter 7 demand forecasting in a supply chain
Chapter 7 demand forecasting in a supply chainChapter 7 demand forecasting in a supply chain
Chapter 7 demand forecasting in a supply chain
 
Episode 12 : Research Methodology ( Part 2 )
Episode 12 :  Research Methodology ( Part 2 )Episode 12 :  Research Methodology ( Part 2 )
Episode 12 : Research Methodology ( Part 2 )
 
forecastingtechniques 2.pdf
forecastingtechniques 2.pdfforecastingtechniques 2.pdf
forecastingtechniques 2.pdf
 
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docxForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
 
Statistics online lecture 01.pptx
Statistics online lecture  01.pptxStatistics online lecture  01.pptx
Statistics online lecture 01.pptx
 
IRJET- Overview of Forecasting Techniques
IRJET- Overview of Forecasting TechniquesIRJET- Overview of Forecasting Techniques
IRJET- Overview of Forecasting Techniques
 
Forecasting
ForecastingForecasting
Forecasting
 
Episode 18 : Research Methodology ( Part 8 )
Episode 18 :  Research Methodology ( Part 8 )Episode 18 :  Research Methodology ( Part 8 )
Episode 18 : Research Methodology ( Part 8 )
 
Enterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_ComponentsEnterprise_Planning_TimeSeries_And_Components
Enterprise_Planning_TimeSeries_And_Components
 
Time series mnr
Time series mnrTime series mnr
Time series mnr
 
Project for Quantitative Analysis by Wichian
Project for Quantitative Analysis by WichianProject for Quantitative Analysis by Wichian
Project for Quantitative Analysis by Wichian
 
time series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdftime series.ppt [Autosaved].pdf
time series.ppt [Autosaved].pdf
 
Industrial engineering notes for gate
Industrial engineering notes for gateIndustrial engineering notes for gate
Industrial engineering notes for gate
 

Recently uploaded

Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

1.3-CHAPTER 13 FORECASTING_BA_UDineshK.pptx

  • 1. Business Analytics – The Science of Data Driven Decision Making
  • 2. Business Analytics – The Science of Data Driven Decision Making Forecasting Techniques U Dinesh Kumar
  • 3. Business Analytics – The Science of Data Driven Decision Making “Those who have knowledge don’t predict. Those Who Predict Don’t have Knowledge”. - Lao Tzu
  • 4. Business Analytics – The Science of Data Driven Decision Making INTRODUCTION TO FORECASTING
  • 5. Business Analytics – The Science of Data Driven Decision Making Forecasting is one of the most important and frequently addressed problems in analytics. Inaccurate forecasting can have significant impact on both top line and bottom line of an organization. For example, non-availability of product in the market can result in customer dissatisfaction, whereas, too much inventory can erode the organization’s profit. Thus, it becomes necessary to forecast the demand for a product and service as accurately as possible.
  • 6. Business Analytics – The Science of Data Driven Decision Making Time-Series Data and Components of Time-Series Data • Time-series data is a data on a response variable, Yt, such as demand for a spare parts of a capital equipment or a product or a service or market share of a brand observed at different time points t. • The variable Yt is a random variable. • If the time series data contains observations of just a single variable (such as demand of a product at time t), then it is termed as univariate time series
  • 7. Business Analytics – The Science of Data Driven Decision Making Trend Component (Tt) • Trend (pattern) is the consistent long term upward or downward movement of the data over a period of time. Seasonal Component (St) • Seasonal component (or seasonality index) is the repetitive upward or downward movement (or fluctuations) from the trend that occurs within a calendar year such as seasons, quarters, months, days of the week, etc.
  • 8. Business Analytics – The Science of Data Driven Decision Making Cyclical Component (Ct): • Cyclical component is fluctuation around the trend line that happens due to macro-economic changes such as recession, unemployment, etc. • Cyclical fluctuations have repetitive patterns with a time between repetitions of more than a year. Irregular Component (It) • Irregular component is the white noise or random uncorrelated changes that follow a normal distribution with mean value of 0 and constant variance.
  • 9. Business Analytics – The Science of Data Driven Decision Making 0 10 20 30 40 50 60 70 80 90 1 3 5 7 9 11 13 15 17 19 21 23 0 5 10 15 20 25 30 35 1 3 5 7 9 11 13 15 17 19 21 23 0 5 10 15 20 25 1 3 5 7 9 11 13 15 17 19 21 23 0 10 20 30 40 50 60 70 80 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 (a) Trend (b) Seasonality (c) Cyclicality (d) Irregular
  • 10. Business Analytics – The Science of Data Driven Decision Making Forecasting Techniques and Accuracy • Mean absolute error (MAE) is the average absolute error and should be calculated on the validation dataset. • The mean absolute error is given by • Mean absolute percentage error (MAPE) is the average of absolute percentage error. • The mean absolute percentage error is given by
  • 11. Business Analytics – The Science of Data Driven Decision Making Mean square error is the average of squared error calculated over the validation dataset. MSE is given by Lower MSE implies better prediction. However, it depends on the range of the time-series data. • Root mean square error (RMSE) is the square root of mean square error and is given by
  • 12. Business Analytics – The Science of Data Driven Decision Making Moving Average Method Moving average is one of the simplest forecasting techniques which forecasts the future value of a time- series data using average (or weighted average) of the past ‘N’ observations. Mathematically, a simple moving average is calculated using the formula The above formula is called simple moving average (SMA) since ‘N’ past observations are given equal weights (1/N).       t N t k k t Y N F 1 1 1
  • 13. Business Analytics – The Science of Data Driven Decision Making Weighted Moving Average In a weighted moving average, past observations are given differential weights (usually the weight decrease as the data becomes older). Weighted moving average is given by where Wk is the weight given to value of Y at time k (Yk) and . 1 1      t N t k k W
  • 14. Business Analytics – The Science of Data Driven Decision Making Single Exponential Smoothing (ES) • SES assumes a fairly steady time-series data with no significant trend, seasonal or cyclical component • Parameter  in Eq. is called the smoothing constant and its value lies between 0 and 1. Since the model uses one smoothing constant, it is called single exponential smoothing. 1 (1 ) t t t F Y F      
  • 15. Business Analytics – The Science of Data Driven Decision Making Advantages • It uses all the historic data unlike the moving average where only the past few observations are considered to predict the future value. • It assigns progressively decreasing weights to older data. Disadvantages • Increasing n makes forecast less sensitive to changes in data. • It always lags behind trend as it is based on past observations. The longer the time period n, the greater the lag as it is slow to recognize the shifts in the level of the data points. • Forecast bias and systematic errors occur when the observations exhibit strong trend or seasonal patterns.
  • 16. Business Analytics – The Science of Data Driven Decision Making Optimal Smoothing Constant in a Single Exponential Smoothing (SES) • Choosing optimal smoothing constant  is important for accurate forecast. Whenever the data is smooth (without much fluctuations), we may choose higher value of . However, when the data is highly fluctuating, then it is better to choose lower value of . We can find the optimal value of the smoothing constant by solving a non-linear optimization problem.
  • 17. Business Analytics – The Science of Data Driven Decision Making Double Exponential Smoothing – Holt’s Method Double exponential smoothing uses two equations to forecast the future values of the time series, one for forecasting the level (short term average value) and another for capturing the trend. The two equations are provided in Eqs. Level (or Intercept) equation (Lt): Lt =   Yt + (1  )  Ft The trend equation is given by (Tt) Tt =   (Lt – Lt1) + ( 1  )  Tt1
  • 18. Business Analytics – The Science of Data Driven Decision Making Triple Exponential Smoothing (Holt-Winter Model) The following three equations which account for level, trend, and seasonality are used for forecasting Level (or Intercept) equation: Trend equation: Tt =   (Lt – Lt-1) + ( 1   ) Tt-1 Seasonal equation:   1 1 (1 ) t t t t t c Y L L T S         
  • 19. Business Analytics – The Science of Data Driven Decision Making Predicting Seasonality Index Using Method of Averages Step 1: Calculate the average of value of Y for each season (that is, if the data is monthly data, then we need to calculate the average for each month based on the training data). Let these averages be Step 2: Calculate the average of the seasons’ averages calculated in step 1 (say ) Step 3: The seasonality index for season k is given by the ratio    c Y Y Y ,..., , 2 1  Y   Y Yk
  • 20. Business Analytics – The Science of Data Driven Decision Making Croston’s Forecasting Method for Intermittent Demand Croston’s method has two components: 1. Predicting time between demand 2. Magnitude of the demand. The primary objective of Croston’s method is to forecast mean demand per period.
  • 21. Business Analytics – The Science of Data Driven Decision Making Regression Model for Forecasting The forecasted value at time t, Ft, can be written as a regression equation as follows: Here Ft is the forecasted value of Yt, and X1t, X2t, etc. are the predictor variables measured at time t. 0 1 1 2 2 t t t n nt t F X X X        
  • 22. Business Analytics – The Science of Data Driven Decision Making Auto-Regressive (AR) Models Auto-regression is regression of a variable on itself measured at different time points. Auto-regressive model with lag 1, AR(1), is given by Yt+1 =  Yt + t+1 which can be re-written as 1 1 ) (        t t t Y Y    
  • 23. Business Analytics – The Science of Data Driven Decision Making AR Model Identification: ACF and PACF • Auto-correlation is the correlation between Yt measured at different time periods (for example, Yt and Yt-1 or Yt and Yt-k). • Auto-correlation indicates the memory of a process, that is, how far in time can it remember what has happened before. The auto-correlation of k-lags (correlation between Yt and Yt-k) is given by • where n is the number of observations in the sample. A plot of auto-correlation for different values of k is called auto-correlation function (ACF) or correlogram.                                      n t t n k t t k t k Y Y Y Y Y Y 1 2 1 
  • 24. Business Analytics – The Science of Data Driven Decision Making Moving Average Process MA(q) • Moving average (MA) processes are regression models in which the past residuals are used for forecasting future values of the time-series data. • Moving average process of lag 1, MA(1), is given by • Alternatively, a moving average process of lag 1 can be written as 1 1 1      t t t Y     1 1 1     t t t Y   
  • 25. Business Analytics – The Science of Data Driven Decision Making Auto-Regressive Moving Average (ARMA) Process Auto-regressive moving average (ARMA) is a combination auto-regressive and moving average process. ARMA(p, q) process combines AR(p) and MA(q) processes. ARMA(p, q) model is given by 1 Part Average Moving 1 1 2 1 Part Regressive Auto 1 1 2 1 1 ... ...                  t q t q t t p t p t t t Y Y Y Y                                    
  • 26. Business Analytics – The Science of Data Driven Decision Making Auto-Regressive Integrated Moving Average (ARIMA) Process ARIMA models are used when the time-series data is non-stationary. ARIMA model was proposed by Box and Jenkins (1970) and thus is also known as BoxJenkins methodology ARIMA has the following three components and is represented as ARIMA(p, d, q): Auto-regressive component with p lags AR(p). Integration component (d). Moving average with q lags, MA(q).
  • 27. Business Analytics – The Science of Data Driven Decision Making ACF of a non-stationary process (slowly decreasing auto-correlation values).
  • 28. Business Analytics – The Science of Data Driven Decision Making Dickey Fuller Test The test statistic is given by ) ( Statistic Test DF      e S Augmented DickeyFuller Test When t+1 is not white noise, the actual series may not be AR(1); it may have more significant lags. The model in Eq. can be written as
  • 29. Business Analytics – The Science of Data Driven Decision Making ARIMA(p, d, q) Model Building
  • 30. Business Analytics – The Science of Data Driven Decision Making LjungBox Test for Auto-Correlations LjungBox is a test of lack of fit of the forecasting model and checks whether the auto-correlations for the errors are different from zero. The null and alternative hypotheses are given by H0: The model does not show lack of fit H1: The model exhibits lack of fit The LjungBox statistic (Q-Statistic) is given by
  • 31. Business Analytics – The Science of Data Driven Decision Making Power of Forecasting Model: Theil’s Coefficient The power of forecasting model is a comparison between Naïve forecasting model and model developed using Theil’s coefficient and U-statistic. Theil’s coefficient (U-statistic) is given by (Theil, 1965)
  • 32. Business Analytics – The Science of Data Driven Decision Making Summary  Forecasting is one of the important tasks carried out using analytics by many organizations since accurate forecasting is important for taking several decisions such as man-power planning, materials requirement planning, budgeting and supply chain related issues.  Forecasting is carried out on a time-series data in which the dependent variable Yt is observed at differ time periods t.  Several techniques such moving average, exponential smoothing and auto-regressive models are used for forecasting future value of Yt.
  • 33. Business Analytics – The Science of Data Driven Decision Making  The forecasting models are validated using accuracy measures such as RMSE, MAPE, AIC and BIC.  Simple techniques such as moving average and exponential smoothing may outperform complex regression based models in certain scenarios. Thus, it is important to develop forecasting models using several techniques before selecting the final model.  Regression model in the presence of independent variables may outperform other techniques.
  • 34. Business Analytics – The Science of Data Driven Decision Making Summary – AR Models  Auto Regressive (AR) models are regression based models in which dependent variable is Yt and the independent variables are Yt-1, Yt-2 etc.  AR models can be used only when the data is stationary.  Moving average (MA) models are regression models in which the independent variables are past error values.  Auto regressive integrated moving average (ARIMA) has 3 components. Auto-regressive component with p lags AR(p), moving average component with q lags MA(q) and integration which is differencing the original data to make it stationary.
  • 35. Business Analytics – The Science of Data Driven Decision Making  One of the necessary conditions of acceptance of ARIMA model is that the residuals should follow white noise.  In ARIMA, the model identification, that is identifying the value of p in AR and q in MA is achieved through auto-correlation function (ACF) and partial auto- correlation function (PACF).  The stationarity of time series data is usually checked using Dickey Fuller and Augmented Dickey Fuller test.  The overall model accuracy of forecasting model is tested using Ljung-Box test.
  • 36. Business Analytics – The Science of Data Driven Decision Making References • Ali F (2017), “Amazon could Drive 80% of U.S. e-Commerce Growth”, Digital 360 Commerce, March 8 2017. Available at https://www.digitalcommerce360.com/2017/03/08/amazon-drive-80-u-s-e- commerce-growth-next-year/, accessed on 10 May 2017. • Box G E P and Jenkins G M (1970), “Time Series Analysis, Forecasting and Control”, Holden Day, San Francisco. • Chatfield C (1986), “Simple is Best?”, Editorial in the International Journal of Forecasting, 2, 401-402. • Croston J D (1972), “Forecasting and Stock Control for Intermittent Demands”, 23(3), 289-303. • Dickey D A and Fuller W A (1979), “Distribution of Estimation of Auto- Regressive Time Series with a Unit Root”, Journal of the American Statistical Association, 74, 427-431. • Hill K (2011), “Extreme Engineering: The Boeing 747”, Science Based Life – Add Little Reason to Your Day, 25 July 2011, available at https://sciencebasedlife.wordpress.com/2011/07/25/extreme-engineering- the-boeing-747/ accessed on 10 May 2017.
  • 37. Business Analytics – The Science of Data Driven Decision Making • Makridakis S, Wheelwright S C and Hyndman R J (1998), “Forecasting – Methods and Applications”, Third Edition, John Wiley & Sons, USA • Parker G C and Segura E L (1971), “How to get a Better Forecast”, Harvard Business Review, March-April 1971, 99-109. • Taylor, J W (2011), “Multi-Item Sales Forecasting with Total and Split Exponential Smoothing”, The Journal of the Operational Research Society, 62(3), 555-563. • Theil H (1965), “Economic Forecasts and Policy”, North Holland, Amsterdam • Yaffee R A and McGee M (2000), “An Introduction to Time Series Analysis and Forecasting: With Applications of SAS and SPSS”, Academic Press, New York. • Winters P R (1960), “Forecasting Sales by Exponentially Weighted Moving Averages”, Management Science, 6(3), 324-342.