Peter Sarlin. Toward robust early-warning models: A horse race, ensembles and model uncertainty
1. RiskLab
Toward robust early-warning models:
A horse race, ensembles and model uncertainty
Peter Sarlin, joint with Markus Holopainen
Hanken School of Economics and RiskLab Finland
Seminar at Bank of Estonia
June 30, 2015
2. RiskLab Motivation
An acute interest in new approaches to assess systemic risk
Financial crises triggered by various shocks (unpredictable)...
...but widespread imbalances build-up ex ante (identiable)
Early-warning models to identify systemic risk at early stages
Yet: which method(s) to use when can we trust results?
3. RiskLab Systemic risk
Systemic risk along two dimensions (Borio, 2009)
1. Build-up of risk in tranquil times abrupt unraveling in crisis
2. How risk is distributed and how shocks transmit in the system
Three types of systemic risks (ECB, 2010):
endogenous build-up and unraveling of widespread imbalances
exogenous aggregate shocks
contagion and spillover
4. RiskLabEarly-warning indicators models
Text-book example of 2-class classication: crisis vs. tranquil
To identify vulnerable states of a country you need...
Dates of historical crisis occurrences
Indicators to identify sources of vulnerability
Estimate the probability of being in a vulnerable state
Signaling: Monitor univariate indicators
Non/linear approaches for combining indicators
Set a threshold on the probability to optimize a loss function
Transforms probabilities into binary point forecasts (0/1)
Depends on preferences between type I/II errors
5. RiskLabEWIs Financial Stability Maps
Mapping the State of Financial Stability (joint with Peltonen)
How to represent mutliple indicators visually?
Large-volume and high-dimensional data
Clustering: Reduce large volumes of data
Projection: From high-dimensional to low-dimensional
Financial Stability Map based upon 14 macro-nancial
indicators for 28 economies from 1990Q12011Q4
VisRisk: A visualization platform for systemic risk analytics
6. RiskLabInterconnectedness EWMs
Interconnectedness of the banking sector as a vulnerability to crises
(joint with Rancan Peltonen)
This paper enriches an EWM with network measures
Financial networks of institutional sectors in Europe
MFI, INS, OFI, NFC, GOV, HH and ROW
Loans, deposits, debt and shares
Centrality of the MFI as an indicator for banking crises
Interconnectedness of the banking sector entails a vulnerability
Cross-border linkages capture vulnerabilities to crises...
...and larger domestic sectoral linkages amplies vulnerability...
...which yields useful predictions.
Most vulnerability descends from loans and debt securities
7. RiskLab Bank EWM
Predicting Bank Distress in Europe (with Betz, Oprica, Peltonen)
One of the rst EWMs for individual banks and analysis of
determinants of bank vulnerabilities in the EU
Introduces a new dataset of bank distress in Europe
Micro-macro perspective: banking sector MIP indicators
Loss function accounts for importance of individual banks
Conclusions
Importance of complementing bank-specic vulnerabilities with
macro-nancial indicators
EWM based on publicly available data would have been useful
to predict individual bank distress during this crisis
For a policymaker, it is essential to be more concerned of type
I/II errors related to systemically important banks
8. RiskLab Networks EWMs
Network linkages to predict bank distress (with Piloiu Peltonen)
Does predictive performance improve if the EWM is
augmented with estimated bank interdependencies?
Banks are interconnected, yet EWMs model individual distress
A bank's risk modeled as a function of its neighbors' risk
Conclusions
Two-step estimation incorporating neighbors' vulnerabilities
Accounting for interconnections improves EWM performance
Allows comparing relative eciency of dierent networks
9. RiskLabRiskRank: Joint measurement
RiskRank: Measuring interconnected systemic risk (with Mezei)
EWMs aggregate indicators network measures connectivity
We assume a hierarchical system of interconnected nodes
RiskRank: Joint measure of cyclical cross-sectional risk
Conclusions
Bottom-up aggregation: direct, indirect feedback eects
Improved performance for bank and country models
General framework to combine the 2 systemic risk dimensions
10. RiskLab This paper
A three-fold contribution:
Conduct a horse race of early-warning models (EWMs)
Test various approaches to aggregating these methods
Estimate model performance and output uncertainty
Key questions:
How EWMs perform in an objective robust ranking?
Is one above others or should they be used concurrently?
Statistical signicance
is a method better than others?
are the probabilities above the threshold?
11. RiskLab Literature
Early-warning method comparisons
Often entirely missing
Bilateral tests (e.g., Peltonen, '06; Marghescu et al., '11)
ESCB's horse race show: little comparability (Alessi et al., '14)
Aggregation or ensemble learning
No previous use of model aggregation
Parctly incorporated in RandomForest by Alessi Detken ('14)
Statistical signicance and uncertainty
El-Shagi et al. ('13): is a model useful?
Hurlin et al. ('14): similarity of two rms' risk measures
12. RiskLab Data
Quarterly data for 15 EU countries, from 19762014Q3
Systemic banking crises
Laeven and Valencia ESCB Heads of Research
Pre-crisis indicator: 5-12 quarters
Late-pre, crisis, and post-crisis periods removed
Macro-nancial indicators
asset price misalignments (house and stock prices)
excessive credit growth (growth and gaps)
business cycle indicators (GDP and ination)
macroeconomic factors (debt and CA)
13. RiskLab Methods in this paper
A horse race of multiple methods for early-warning exercises
Signal extraction
LDA QDA
Logit Logit LASSO
Naive Bayes
KNN
Classication tree Random forest
ANN ELM
SVM
14. RiskLab Taxonomy of methods
Predictive analytics
Clustering Classification
Covariance matrix
LDA
QDA
Logit
Logit
LASSO
Frequency table
Signal
extraction
Naive
Bayes
Decision
tree
Random
forest
Similarity
functions
KNN
Others
ANN
ELM
SVM
Regression
15. RiskLabEnsembles and uncertainty
Ensemble approaches for concurrent use of EWMs
Best-of voting
Arithmetic weighted averages of probabilities
Empirical resampling distributions to assess uncertainty
Use repeated cross-validation and bootstrapping
Model performance uncertainty
Variation in relative Usefulness of EWMs
Model output uncertainty
Variation in probabilities and thresholds
16. RiskLab Evaluation criterion
Apply usefulness criterion (Alessi-Detken, '11 Sarlin, '13):
Actual class Ij
Crisis No crisis
Predicted class Pj
Signal True positive (TP) False positive (FP)
No signal False negative (FN) True negative (TN)
Find the threshold that minimizes a loss function that depends
on policymakers' preferences µ between Type I errors
(T1 = FN/(FN + TP)) (missed crises) and Type II errors
(T2 = FP/(TN + FP)) (false alarms) and unconditional
probabilities of the events P1 and P2
L(µ) = µT1P1 + (1 − µ)T2P2
Dene absolute usefulness Ua as the dierence between the
loss of disregarding the model (available Ua) and the loss of
the model
Ua(µ) = min [µP1, (1 − µ) P2] − L(µ)
17. RiskLabEvaluation estimation strategies
Relative usefulness Ur is the ratio of captured Ua to available
Ua, given µ and P1
Ur (µ) = Ua(µ)/min [µP1, (1 − µ) P2]
Model selection to optimize free parameters via a grid search
Cross-validation exercise (repeated CV)
Assess generalization performance
10 folds
Real-time recursive exercise (bootstrapping)
Test prediction performance from 2006Q2 - 2014Q3
Use only data available at that specic point in time
22. RiskLab Conclusion
A three-fold contribution...
Objectively test many methods for early-warning analysis [1]
Introduce ensemble learning to early-warning analysis
Estimate model performance and output uncertainty
...and conclusion
Machine and ensemble learning approaches perform well
Aggregation decreases variation in model performance
Accounting for output uncertainty improves model performance
25. RiskLab Variables
Variable name Definition Transformation andadditional information
House prices to income Nominal house prices and nominal disposable income per head Ratio, indexbased in 2010
Current account to GDP Nominal current account balance and nominal GDP Ratio
Government debt to GDP Nominal general government consolidated gross debt and nominal GDP Ratio
Debt to service ratio Debt service costs and nominal income of households and non-financial corporations Ratio
Loans to income Nominal household loans and gross disposable income Ratio
Credit to GDP Nominal total credit to the private non-financial sector and nominal GDP Ratio
Bond yield Real long-termgovernment bond yield Level
GDP growth Real gross domestic product 1-year growth rate
Credit growth Real total credit to private non-financial sector 1-year growth rate
Inflation Real consumer price index 1-year growth rate
House price growth Real residential property price index 1-year growth rate
Stock price growth Real stock price index 1-year growth rate
Credit to GDP gap Nominal bank credit to the private non-financial sector and nominal GDP Absolute deviation fromtrend, λ =400,000
House price gap Deviation fromtrend of the real residential property price index Relative deviation fromtrend, λ =400,000
26. RiskLab Machine learning
Unsupervised learning
Exploring the past
Univariate, bivariate and multivariate
Supervised learning
Predicting the future
Regression and classication
28. RiskLab Predictive modelling
Examples of approaches for supervised learning:
linear discriminant analysis
logit analysis
decision trees
articial neural networks
support vector machines
As well as ensembles of multiple models
29. RiskLab Bias vs. variance
Model t: Opportunity and risk
ANNs are universal approximators for any continuous function
Logit analysis tends to be robust on any sample
Bias: error from erroneous assumptions in the learning
algorithm (undert)
Variance: error from sensitivity to small uctuations in the
training set (overt)
Regularize complexity with model selection criteria
Cross-validation: partitioning into folds and testing on the fold
left out
but also leave-one-out CV, AIC, BIC etc
30. RiskLab What is an ANN?
ANNs are composed of nodes connected by links
Layers of nodes: Input, hidden and output
Link weights are network parameters that are tuned iteratively
by a learning algorithm
Optimization to update network parameters
Commonly backpropagation to compute the actual gradients
Derivative of the cost function with respect to the weights
Update weights in a gradient-related direction
Optimization through gradient descent, Levenberg-Marquardt,
Gauss-Newton, ML, etc
32. RiskLab Logit/LDA vs. ANN
f (·)
Logit/LDA through ANNs
Input: x1,x2, x3 (and interceptb)
Output: hw,b(x) = f wT
x = f
3
i=1 wi xi + b
Let f (·) be a sigmoidal function: f (z) = 1
1+exp(−z)
Or a step function with threshold θ: f (z) =
1 if z ≥ θ
0 if z θ
34. RiskLabWhat is a Random Forest?
Decision tree
Top-down approach by splitting data into two classes
Sequential signal extraction
Trees are grown as long as it benets the classication
This might lead to overtting: pruned via CV to generalize
Random Forest: Bagging of decision trees
Draw samples with replacement and m variables from data
Estimate decision tree models for each resampling
Use voting to combine model output
35. RiskLab Ensemble learning
Simultaneous use of multiple statistical learning algorithms to
improve predictive performance
Often gains in accuracy, generalization and robustness
Gains from uncorrelated output/diversity
Bagging: aggregate (var/obs) resampled models into one
model output
Boosting: output from multiple models averaged with specied
weights
Stacking: another layer of models on top of individual model
output
36. RiskLab Model uncertainty
General procedure applied to model performance output
Estimate SE from empirical resampling distributions
Find critical t values from the empirical distribution
Perform mean-comparison tests as overlapping condence
intervals do not assure statistical signicance
37. RiskLab Model selection
Method Parameters
Signal extraction Debt service ratio
LASSO λ = 0.0012
KNN k = 2 Distance = 1
Random forest No. of trees = 180 No. of predictors sampled = 5
ANN No. of hidden layer units = 8 Max no. of iterations = 200
ELM No. of hidden layer units = 300 Activation function = Tan-sig
SVM γ = 0.4 Cost = 1