TSF - Week 1 - MLSR
TSF - Week 1 - MLSR
Forecasting
(Time Series Analysis)
Week-1
Domain
Foundations Core Courses
Applications
● The residuals in a
decomposition of a Time
Series give us the
idiosyncratic part of the
series which is not picked up
by the Trend and Seasonality.
Proprietary content. ©Great Learning. All Rights Reserved.
Unauthorized use or distribution prohibited.
What is Time Series?
• A time series is a sequence of measurements on the same variable collected
over time
• Example :
• Daily stock price of a company
• Weekly cash withdrawal from your nearest ATM
• Monthly sales volume
• Annual GDP for a country
Benefits of Forecasting
• It helps in setting business targets/goals
• Understand the past behavior
• Plan for the future
• Evaluate the current accomplishment
Independent variable
Dependent
variable Month Sales
Price Promotion Adv Sales Jan 250
121 10 300 1000 Feb 300
115 12 250 2300 Mar 372
117 5 275 1900 April 179
125 10 600 1400 May 185
127 15 479 1300 June 194
135 25 450 1350
July ?
127 19 410 ?
Prediction Prediction
One Dependent variable – Sales
Sales = 23 -0.42 Price+ 0.16Promotion+0.03 Adv
Proprietary content. ©Great Learning. All Rights Reserved. Una
uthorized use or distribution prohibited.
What are the features of Time-Series
• Data are not independent
• Data should be equally spaced, that is, data should be available at regular
intervals
• Ordering is very important because there is dependency and changing the
order will change the meaning of the data
• When time periods are not the same: For example in a single time
series both yearly and quarterly data cannot be mixed
• Gathering information
a) Understanding historical pattern of data
b) Using past knowledge forecasting for future
If volume of data is limited, forecasts will not be reliable enough
If data is available for very long past, data may not be useful at all
V
o
L
Series stable
trend
seasonality
residual
Upward Trend
Downward Trend
Proprietary content. ©Great Learning. All Rights Reserved. Una
uthorized use or distribution prohibited.
Seasonality
• Representing intra-year stable fluctuations repeatable year after
year with respect to timing, direction and magnitude
Trend : Initial years Outliers : No Long run cycle: from 1974 to 1980
• It’s a part of the series that can’t be explained through systematic components , that is, trend
or seasonality
Keeping the above statement in mind, we will analyze the data and try to
understand the production of Beer across various years in Australia. We
will use descriptive statistics measures to do so. We will also do a plot of
the Time Series, decompose the Time Series data and try to understand
how beer production has changed over the past years.
• Get noticed by your management with your outstanding analysis backed by data
science.
• Network with members from the data science vertical of your organization and seek
opportunities to contribute in small projects.
• Share your success stories with us and the world to position yourself as a subject matter
expert in data science.
Proprietary content. ©Great Learning. All Rights Reserved.
Unauthorized use or distribution prohibited.
Proprietary content. ©Great Learning. All Rights Reserved. Una
uthorized use or distribution prohibited.