Time Series & Forecasting
Time Series Fundamentals and Patterns
Forecasting Assumptions and Pattern Components:
Time series forecasting models assume that observed data consists of a combination of systematic and unsystematic patterns.
Systematic Patterns: Stable, predictable structures caused by underlying physical or economic phenomena. These include persistent trends, seasonal fluctuations, and cyclical behavior.
Unsystematic Patterns: Unpredictable variations caused by the presence of random, irregular, or residual error terms.
Core Time Series Components:
Trend: Represents the long-term movement or baseline direction in a time series over an extended period.
Directionality: Indicates whether the data is generally increasing, decreasing, or remaining constant.
Strategic Value: Crucial for detecting structural growth or decay, allowing organizations to project the broader future trajectory of a metric.
Seasonality: Refers to periodic, repetitive fluctuations that recur at regular, fixed intervals within a short time frame.
Influencing Drivers: Governed by external calendar or temporal factors, such as climate/seasons, calendar months, or specific days of the week.
Operational Value: Essential for predicting short-term recurring spikes and dips, enabling tactical resource allocation and planning, particularly in seasonal industries.
Cyclical Behavior (Cycles):
Characteristics: Recurrent, wave-like oscillations that resemble seasonal patterns but operate over longer, non-strictly periodic timeframes.
Influencing Drivers: Closely tied to broader macroeconomic shifts, multi-year business cycles, or structural market dynamics.
Strategic Value: Vital for macroeconomic analysis, corporate long-term planning, and enterprise risk management.
Trend with a Seasonal Pattern:
A composite time series structure featuring a clear long-term direction (upward or downward) combined with regular short-term periodic fluctuations.
Data Interpretation: Short-term datasets often clearly display seasonal fluctuations and linear trends, while multi-year cyclical patterns remain difficult to identify without long-term historical records.
Moving Average Forecasting Methods
Methodology Overview: Moving average techniques smooth out short-term random noise by calculating average performance over a moving historical window of periods.
Simple Moving Average (SMA):
Concept: Takes a specific subset of the most recent historical periods and computes their arithmetic mean to predict the value for the upcoming period.
General Equation:
Case Application (5-Week Production Analysis):
Week 4 Forecast Calculation ():
Uses actual production inputs from Week 1 (), Week 2 (), and Week 3 ().
Formula:
Numerical Value: Computes to approximately .
Week 5 Forecast Calculation ():
Shifts the three-period window forward to include production inputs from Week 2 (), Week 3 (), and Week 4 ().
Formula:
Numerical Value: Computes to
Weighted Moving Average (WMA):
Concept: Modifies the simple moving average by assigning distinct weight ratios () to individual historical periods, prioritizing certain periods over others.
Weight Constraint Rule: To ensure unbiased estimates and prevent systematic mathematical errors, the sum of all period weights must strictly equal 1:
Exponential Smoothing
Limitations of Moving Average Models:
Arbitrary Window Selection: Choosing the number of historical periods ( or ) relies on manual trial-and-error optimization, making model tuning tedious.
Equal Weight Allocation Flaw: Simple moving averages treat all periods within the sliding window identically, ignoring the empirical reality that recent observations generally carry higher predictive value than older observations.
Exponential Smoothing Foundations:
Utilizes all available historical data points rather than cutting off data past a arbitrary time window.
Applies exponentially decreasing weights to historical observations as they move further into the past.
Mathematical Model and Variables:
Forecasting Equation for Next Period ():
Parameter Definitions:
: Forecast for period
: Actual observed value in period
: Forecasted value previously established for period
: Smoothing constant, constrained within the continuous range:
Behavioral Mechanics of the Smoothing Constant (Alpha):
Large Alpha Values (High Sensitivity):
Accelerates the decay rate of historical weights.
Places predominant weight on the most recent actual observation ().
Enhances responsiveness to sudden, recent changes in data.
Small Alpha Values (High Smoothing):
Slows the decay rate of past observations.
Retains significant weight on older historical context and past predictions ().
Effectively filters out temporary fluctuations and short-term noise.
Step-by-Step Exponential Smoothing Example (Alpha = 0.2):
Week 1:
Forecast cannot be mathematically computed due to the absence of prior observational data.
Week 2 (Initialization Process):
System initialization sets the Week 2 forecast directly equal to the actual value observed in Week 1:
Week 3 Calculation:
Combines actual Week 2 observation () and Week 2 forecast ():
Numerical Value: Computes to
Week 4 Calculation:
Combines actual Week 3 observation () and Week 3 forecast ():
Numerical Value: Computes to