Unit 3 B Time Series Analysis
Unit 3 B Time Series Analysis
ANALYTICS –
SUPERVISED
Forecasting
• Simple Linear Regression. Multiple Linear Regression - Logistic
Regression
• Time series analysis: Variations in time series - trend analysis, cyclical
variations, seasonal variations and irregular variations, forecasting
errors.
• Using Regression Analysis for Forecasting - Linear Trend Projection -
Holt’s Model –Winter’s Model - Using Regression Analysis as a Causal
Forecasting Method - Combining Causal Variables with Trend and
Seasonality
• Chapter 13 Dinesh Kumar
Process of predicting the future while analyzing the past and present
data.
Examples of Forecasting
• Predicting demand – Inventory Level
• Manpower Planning
• Economic Growth
• Stock Market Prediction
Time Series Analysis
• Time Series Analysis is the way of studying the characteristics of the
response variable with respect to time, as the independent variable.
• Time can be Years, Months, Weeks, Days, Hours, Minutes, and
Seconds
Components of Time Series Analysis
• Level of the series – the average value for a specific time period
Components of Time Series Analysis
• Trend Component (Tt): Trend is the consistent long-term upward or
downward movement of the data over a period of time.
Components of Time Series Analysis
• Seasonal Component (St): Seasonal component (measured using
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. For
example, heating demands are high in the winter months, sales are
high in Dec.,
Components of Time Series Analysis
• 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.
Component consists of the gradual ups and downs that do not repeat
each year and so are excluded from the seasonal component.
Components of Time Series Analysis
• 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.
• White noise time series is defined by a Zero
mean change over the time, Constant
variance over the time, and Zero Co-
relation over the time.
• Is Mean level Zero?
• Is variance constant ?
• Is no co-relation with lag values?
600
500
400
Actual
300 Forecast
200
100
0
y y h il y e y t r r r r y y h il y e y t r r r r y y h il y e y t r r r r
uar uar arc Apr Ma Jun Jul gus be obe be be uar uar arc Apr Ma Jun Jul gus be obe be be uar uar arc Apr Ma Jun Jul gus be obe be be
n r
Ja Feb M Au ptem Oct vem ecem Jan ebr M Au ptem Oct vem ecem Jan ebr M Au ptem Oct vem ecem
e o D F e o D F No D
S N S N Se
Weighted Moving Average
• Weights are used to give more emphasis on the recent values. This
process makes forecasting techniques more responsive to changes
because more recent periods may be more heavily weighted.
Exponential Smoothing Methods
• Simple or single exponential smoothing
• Double exponential smoothing
• Triple exponential smoothing
• Now, the question is – if you want to forecast the stock price for
tomorrow, would you consider yesterday’s value or the price 10 days
ago or last year?
• The value of the damping factor is 0.9. Therefore, the alpha value is
0.1 as the damping factor is 1 – α.
Simple Exponential Smoothing Models