Market Risk Predictive Modeling Guide
Market Risk Predictive Modeling Guide
Our projects
Model Development Data Analysis Stress Testing
Model Validation Data Mining Forecasting
Course Assessment
Please note that you are not limited to methods presented today (and it is more than welcomed to new approaches)
Non-Maturity Deposit Modelling
1. Case study – you will obtain dataset for modelling balance of non-maturity deposits. Your task will be to analyze the dataset, split it to train set and test
set. With train dataset, you will develop selected model for non-maturity deposit balances. Then you will take your test dataset and see how your model
performs.
2. Outputs – PPT presentation or PDF, summarizing the abovementioned outputs, and scripts in Python, R or VBA (including the spreadsheet) that were
used. Please send these outputs to Tomas.Sobotka@cz.ey.com. Submission deadline: 7 May 2021
3. Output presentation for EY (most important!)– short (10-15 minutes) presentation + Q&A about results of this assessment; the presentation will be
delivered online and will take place during the week starting from 10 May 2021.
Page 5
Questions 1: Basic Demographics
Conditional probability:
𝑃(𝐴 ∩ 𝐵)
Example:
• 𝑃 𝐴𝐵 = 𝑃(𝐵)
≈ “probability of event A occurring if event B occurs”
• Rolling dice
Independence of two events: • What is probability of 𝐴 = {1}
• Two events 𝐴, 𝐵 ∈ ℱ are said to be independent if: conditional on B = {1,3,5}?
• 𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 𝑃(𝐵) • What is a conditional
probability of two independent
events?
Technically: Examples:
• We denote,
𝑋 = 𝑥 = 𝜔 ∈ Ω: 𝑋 𝜔 = 𝑥 • Rolling dice
𝑋 < 𝑥 = 𝜔 ∈ Ω: 𝑋 𝜔 < 𝑥 • 2 dice rolled at once, 𝑋 is the
𝑎 < 𝑋 < 𝑏 = 𝜔 ∈ Ω: 𝑎 < 𝑋 𝜔 < 𝑏 sum of casted values on dice
• Identity function
• Analogously, random variables 𝑋1 , 𝑋2 are independent if for all • Coin tossing bet
𝑥1 , 𝑥2 : • Random walk of a drunk
𝑃 𝑋1 = 𝑥1 ; 𝑋2 = 𝑥2 = 𝑃 𝑋1 = 𝑥1 𝑃(𝑋2 = 𝑥2 )
𝜔=H $100
Realization
of 𝜔 ∈ Ω
𝜔=T
Page 10 Predictive Modeling for Market Risk in the Banking Book $0
Useful Functions: CDF & PDF
• Let 𝜏 be a subset of [0, +∞], then a family of random variables indexed by 𝜏: 𝑋𝑡 𝑡∈𝜏 is a stochastic
process. Two basic observations (for real-values stochastic processes):
• 𝑋𝑡 𝜔 : 𝜏 ↦ ℝ for a fixed 𝜔 is a sample path (or trajectory)
• 𝑋𝑡 𝜔 : Ω ↦ ℝ for a fixed 𝑡 is a random variable
Generalized GBM
• Linear approach to modeling a relationship between one dependent variable (outcome) and multiple independent variables
(inputs)
𝑦 = 𝑥𝑇𝛽
• Linearity
y
• Independence of observations
• MLE:
𝑌 = (𝑋 𝑇 𝑋)−1 𝑋 𝑇 𝑌
Page 18
Key products offered by banks
Assets Liabilities
Corporate segment
Investment loans
Working capital loans
Hedge
Asset
Loan
Loans & Deposits
Advances
Time
Liability
Deposit
Other Borrowing
Hedge
Liquid Assets (Wholesale)
Banks play an important role as an intermediary in the financial system. They typically have two main functions:
1. Take on deposits from the public (typically ‘short term’ in nature)
2. Lend out loans / mortgages (typically ‘long term’ in nature)
• Banking Book assets and liabilities are those which are intended to be held on the balance sheet until
maturity at amortized value.
• The banking book can also include those derivatives that are used to hedge exposures arising from the
banking book activity, including interest rate risk.
Behavioral
• In order to match assets and liabilities with the same interest finance
rate profile, banks need to know the maturity (re-price) date of
Psychology
those assets and liabilities.
• The following assets and liabilities are often associated with
customer optionality and therefore the maturity is not clear:
Finance / Decision-
Product Type Optionality economics making
Fixed Term Loan Customers may have the option to re-pay the loan earlier
than its maturity/reprice date
Fixed Term Deposit Customers may have the option to withdraw deposits
earlier than the fixed term or to top-up deposits at the
original fixed term rate
Non-Maturity Deposit There is no stated maturity but customers have the
option to withdraw at any time
Pipeline Banks need to take a view on assets/liabilities which are
contractual but have not hit the balance sheet yet.
Banks employ a number of techniques to assess the likely behaviour of these balances in order to match assets and
liabilities of the same interest rate profile:
Determined
using
statistical
2. Non-maturing deposits modelling of
behaviours
under different
scenarios
• Market
• interbank and governments
• Macro-economic
• inflation, economic growth
• Behavioral
• reaction of customers to the market (withdrawing, saving, …)
• Personal
• Age, education, job, ..
Page 26
Questions 5: Non-maturity deposits
c) Floor add-on
► The first step in the deposit characterization process is to divide demand deposits into segments, which is critical
for an accurate analysis.
► The main goal of product segmentation is to find homogeneous enough segments, while ensuring a minimum
threshold of materiality and simplicity.
► The segmentation process tries to reach a balance between three ideals: Homogenity
Materiality Simplicity
► Segmentation process requires deep knowledge on the specifics, management strategy and historical behavior of
the products.
15 000
► Balance volatility model determines what level of balances Step 2: Measure variation from the trend
14 000
will remain with the bank in the long term given a level of
13 000
confidence.
12 000 Step 1: Fit the trend line
Balance
► As an output, balance volatility model divides the balances 11 000
into two portions: 10 000
► Core balances which remain with the bank under almost 9 000
all market conditions 8 000 Step 3: Determine the core portion
Remaining balance in %
80
► Balance volatility model fits the product balances to trend
models (exponential, linear or logarithmic) and find the 60
20
-
- 10 20 30 40 50 60
Months
Challenges
► To distinguish between seasonal outflows and surge outflows (due to environmental
changes)
► Lack of historical balance data to support the granular segmentation analytics
► Difficult to have statistically sound models of type 1. for all products
► One might need to switch to a simpler expert model instead
► Good model governance is key here
Overview
Model goal ► As previously, a blend of Modelling
quantifiable statistical models and approaches
► To stabilize NII and
expert adjustments is put in place
to ensure correct ► Two main concepts
inputs for FTP ► Adjustments should align for are utilized,
mechanisms forward looking expectations on sometimes they are
rates and for business rationale combined together
► Main output of the model – (i.e. via cointegration
replication portfolio analysis)
► Characterization of administered rates for deposit products describes the significance of market rate changes on the rates paid by bank to the
customer.
► By modeling the behavior of interest rates paid relative to market rates, a better understanding of repricing behavior and the sensitivity of
interest expenses to market rates can be gained.
► The interest rate paid to indeterminate maturity products’ depositors is typically a combination of one or more market rates, and fixed
component.
Interest rate
3,5%
change in interest rate across the life Product rate
3,0%
of the deposit
2,5% 1M PRIBOR
2,0% 3M PRIBOR
► Provides a better convexity measure ► Operationally easier 1,5% 6M PRIBOR
to the deposit profile ► Requires a less frequent update to 1,0%
12M PRIBOR
► Captures the asymmetrical behavior the hedging strategy 0,5%
as well as beta response to changes
in the level of rates
► Challenging operationally ► Could be significantly off from the Short term β Long term β
► Difficult to apply to FTP spot beta at a given time, resulting
in disincentives ► Influenced by tactical ► Influenced by statistically determined
► Can be difficult to implement micro- pricing expectations, line of historical experience (long term), and
level hedging strategy ► Reduces transparency for the
business Judgment, and business judgement.
Business
► Requires frequent beta assumption acute historical experience ► Reflects deposit rate paid in equilibrium
review. Most common review
frequency range from 6-12 months
Challenges
► What historical time-frame to use (e.g. short-term β vs long term
β), also applicable for portfolio optimization
► Manage operational complexity, especially for replicating
portfolio and dynamic β approaches
► Finding a correct segmentation of NMD volumes
• FTP rate
• An all-in FTP rate for a deposit product is the sum of base rate, term liquidity premium, and a contingent liquidity
cost.
Balance 1 Balance 2
1500 1000
800
1000
600
400
500
200
0 0
1 4 7 10 13 16 19 22 25 28 31 1 4 7 10 13 16 19 22 25 28 31
Balance 3 Balance 4
115 1500
110
1000
105
500
100
95 0
1 4 7 10 13 16 19 22 25 28 31 1 4 7 10 13 16 19 22 25 28 31
Page 42
Practical Part – Jupyter Notebook
• Please note that you are not limited to methods presented today (and it is more than
welcomed to new approaches)
• Non-Maturity Deposit Modelling
• 1. Case study – you will obtain dataset for modelling balance of non-maturity deposits. Your
task will be to analyze the dataset, split it to train set and test set. With train dataset, you will
develop selected model for non-maturity deposit balances. Then you will take your test dataset
and see how your model performs.
• 2. Outputs – PPT presentation or PDF, summarizing the abovementioned outputs, and scripts
in Python, R or VBA (including the spreadsheet) that were used. Please send these outputs to
Tomas.Sobotka@cz.ey.com. Submission deadline: 7 May 2021
• 3. Output presentation to the Bank Board – short (10-15 minutes) presentation about results of
this assessment; the presentation will be delivered online. Presentations will take place during
week starting from 10 May 2021.
3. How your model performs (make prediction for the fourth year and compare the prediction
with the real values)
• You will present your results to the Bank Board (four of us)
Page 47
Optimization (1)
• The mathematical optimization (also known as mathematical programming) forms a cornerstone of quantitative
portfolio optimization; it can be described as a process of looking for the extreme of a function (maximum or
minimum).
• Apart from asset allocation, optimization has many uses in quantitative finance – model calibration, financial
derivates pricing or asset-liability management.
• Optimization problem can be summarized by three components:
min 𝑓(𝑥)
𝑤∈ℂ
𝑠. 𝑡. ℂ: 𝑔𝑖 𝒙 ≤ 0 𝑖 = 1, … , 𝐼 (inequality constraints) (25)
ℎ𝑗 𝒙 = 0 𝑗 = 1, … , 𝐽 (equality constraints)
• Global (maxima/minima) – extreme of the function in the set of all feasible Local maxima
solutions.
About EY
EY is a global leader in assurance, tax, transaction and advisory
services. The insights and quality services we deliver help build trust and
confidence in the capital markets and in economies the world over. We
develop outstanding leaders who team to deliver on our promises to all
of our stakeholders. In so doing, we play a critical role in building a better
working world for our people, for our clients and for our communities.
EY refers to the global organization and may refer to one or more of the
member firms of Ernst & Young Global Limited, each of which is a separate legal
entity. Ernst & Young Global Limited, a UK company limited by guarantee,
does not provide services to clients. For more information about our
organization, please visit ey.com.
© 2019 Ernst & Young, s.r.o. | Ernst & Young Audit, s.r.o. | E & Y Valuations s.r.o.
All Rights Reserved.
This material has been prepared for general informational purposes only and is not
intended to be relied upon as accounting, tax, or other professional advice. Please refer
to your advisors for specific advice.
ey.com