SECTION 1: LEARNING OBJECTIVES
By the end of this lesson, you will be able to:
-
Distinguish time series data from cross‑sectional data and understand its unique properties.
-
Decompose a time series into trend, seasonality, cyclical, and irregular components.
-
Understand the concept of stationarity and why it is critical for financial modelling.
-
Apply the Augmented Dickey‑Fuller (ADF) test to check for stationarity.
-
Interpret autocorrelation and partial autocorrelation functions (ACF/PACF).
-
Apply smoothing techniques (moving averages, exponential smoothing) for trend estimation.
-
Recognise common time series patterns in banking data (e.g., deposit growth, loan defaults, market returns).
-
Understand the business implications of time series analysis for forecasting and risk management.
SECTION 2: WHAT IS TIME SERIES DATA?
A time series is a sequence of data points recorded at successive equally spaced points in time. In finance and banking, almost every key metric is observed over time:
-
Daily closing prices of a stock
-
Monthly unemployment rates
-
Quarterly bank profits
-
Hourly transaction volumes
-
Daily Value‑at‑Risk (VaR) estimates
Key distinction: Unlike cross‑sectional data (where observations are independent), time series data are serially dependent – the value today is related to the value yesterday. This autocorrelation violates the independence assumption of standard regression and requires specialised techniques.
SECTION 3: COMPONENTS OF A TIME SERIES
Classical time series decomposition breaks a series into four components:
| Component | Description | Financial Example |
|---|---|---|
| Trend (T) | Long‑term upward or downward movement | Gradual increase in bank lending over decades |
| Seasonality (S) | Regular, predictable patterns within a fixed period | Higher credit card spending in December; lower trading volumes in August |
| Cyclical (C) | Fluctuations around the trend lasting more than a year (often linked to the business cycle) | Expansion and contraction phases of the economy affecting loan loss provisions |
| Irregular (I) | Random, unpredictable noise | Unexpected market shock (e.g., geopolitical event, flash crash) |
The additive model is: Y = T + S + C + I
The multiplicative model is: Y = T × S × C × I (common when seasonal amplitude grows with trend)
Business relevance: Decomposing a series helps banks separate genuine growth from seasonal blips and cyclical swings, enabling better budgeting and capacity planning.
SECTION 4: STATIONARITY – THE FOUNDATION OF TIME SERIES MODELLING
A time series is stationary if its statistical properties (mean, variance, autocorrelation) do not change over time.
Why stationarity matters:
-
Most time series models (ARIMA, GARCH) assume stationarity.
-
Non‑stationary data produce spurious regression results – you may find strong relationships that are purely due to common trends (e.g., both sunspots and stock prices increase over time, but they are unrelated).
Two types of stationarity:
-
Strict stationarity: The joint distribution of any set of observations is invariant to time shifts (very restrictive).
-
Weak stationarity (covariance‑stationary): Mean and variance are constant, and autocovariance depends only on the lag, not on time. This is the standard requirement.
How to check for stationarity:
-
Visual inspection: Plot the series. A clear upward or downward trend or changing variance suggests non‑stationarity.
-
Augmented Dickey‑Fuller (ADF) test: A formal statistical test.
-
Null hypothesis (H₀): The series has a unit root (i.e., it is non‑stationary).
-
Alternative (H₁): The series is stationary.
-
If p‑value < 0.05, reject H₀ and conclude the series is stationary.
-
What to do when a series is non‑stationary:
-
Differencing: Subtract the previous observation: Yt′=Yt−Yt−1. Repeat until stationarity is achieved.
-
Log transformation: Stabilises variance and makes multiplicative patterns additive.
-
Detrending: Fit a trend line and analyse the residuals.
Financial example: Stock prices are generally non‑stationary (they trend upward). Returns (percentage changes) are usually stationary – this is why we model returns, not prices.
SECTION 5: AUTOCORRELATION AND PARTIAL AUTOCORRELATION
5.1 Autocorrelation (ACF)
Autocorrelation measures the correlation between a series and its own lagged values.
For lag *k*, it is the correlation between Yt and Yt−k.
-
ACF plots are used to identify the order of moving average (MA) components.
-
In finance, we often see significant positive autocorrelation at lag 1 in daily returns (though usually weak) and strong autocorrelation in volatility (absolute returns).
5.2 Partial Autocorrelation (PACF)
PACF measures the correlation between Yt and Yt−k after removing the influence of intermediate lags (1, 2, …, k‑1).
-
PACF plots help identify the order of autoregressive (AR) components.
Business application: Understanding autocorrelation is crucial for risk models. If daily trading volumes are highly autocorrelated, we can use today’s volume to predict tomorrow’s, improving liquidity forecasts.
SECTION 6: SMOOTHING TECHNIQUES FOR TREND ESTIMATION
Smoothing methods reduce noise to reveal the underlying trend – useful for identifying turning points.
6.1 Moving Average (MA)
-
The simple k‑period moving average at time t is the average of the last k observations.
-
Pros: Easy to understand and implement.
-
Cons: All observations get equal weight; it lags behind sudden changes.
6.2 Exponential Smoothing (EWMA – Exponentially Weighted Moving Average)
-
This assigns exponentially decreasing weights to older observations.
St=αYt+(1−α)St−1, where α is the smoothing factor (0 < α < 1). -
A higher α gives more weight to recent observations, making the series more responsive.
-
Pros: More reactive to recent changes; widely used in volatility forecasting (e.g., RiskMetrics uses EWMA for VaR).
Financial insight: Banks use smoothing to estimate core deposit growth, excluding one‑off large withdrawals or seasonal tax payments.
SECTION 7: BUSINESS APPLICATIONS IN BANKING AND FINANCE
| Application | Time Series Technique | Purpose |
|---|---|---|
| Forecasting loan demand | Decomposition + exponential smoothing | Plan funding and liquidity requirements |
| Market risk (VaR) | EWMA volatility forecasting | Estimate daily risk exposure |
| Macroeconomic scenario analysis | Trend and cyclical decomposition | Stress‑test portfolios under different GDP paths |
| Fraud detection | Autocorrelation analysis | Detect anomalous spikes in transaction flows |
| Credit default prediction | Lagged variables in regression | Incorporate past payment behaviour |
Real‑world example – Interest Rate Forecasting:
Central bank policy rates are influenced by inflation and employment. Analysts decompose these series into trend and cyclical components to anticipate rate changes. If the cyclical component is rising, it may signal an upcoming rate hike – vital for fixed‑income portfolio managers.
SECTION 8: SUMMARY FOR THE DATA PRACTITIONER
-
Time series data are not independent – autocorrelation is both a feature and a challenge.
-
Stationarity is a prerequisite for most models; use the ADF test and apply differencing if needed.
-
Decomposition helps separate trend, seasonality, and cycles to reveal true signals.
-
ACF and PACF identify temporal dependencies and guide model selection.
-
Smoothing (moving averages, EWMA) provides quick trend estimates and volatility forecasts.
-
In banking, time series methods are indispensable for risk measurement, liquidity planning, and economic forecasting.
[END OF LESSON 6]