You are on page 1of 5

Risk Practice

Applying machine learning


in capital markets: Pricing,
valuation adjustments,
and market risk
By enhancing crisis-challenged financial models with machine-learning
techniques such as neural networks, banks can emerge stronger from
the present crisis.
This article was a collaborative effort by Juan Aristi Baquero, Akos Gyarmati, Marie-Paule Laurent,
Pedro J Silva, and Torsten Wegner, representing views from McKinsey’s Risk Practice.

© Boris SV/Getty Images

October 2020
When the COVID-19 outbreak became a global 2020, banks should aim to optimize their trading
pandemic, financial-markets volatility hit its books and risk positions. This ambition requires
highest level in more than a decade, amid pervasive more accurate and timely valuations. With those
uncertainty over the long-term economic impact. priorities in mind, more advanced models and
Calm has returned to markets in recent months, but sufficient computational power are imperatives.
volatility continues to trend above its long-term Indeed, “speed” is of the essence.
average. Amid persistent uncertainty, financial
institutions are seeking to develop more advanced In response, some leading institutions have started
quantitative capabilities to support faster and more to incorporate advanced techniques into their
accurate decision making. quantitative armories. In pricing, an area that has
experienced a spike in recent activity, several banks
As financial markets gyrated in recent months, are applying machine learning (ML) to enhance
banks faced particular problems calculating traditional models—for example, by calibrating
value at risk (VAR) across asset classes. Many parameters more efficiently. In particular, banks
institutions experienced elevated levels of VAR have used neural networks, a type of ML focused
back-testing exceptions, leading to higher on nonlinear and complex data relationships.
regulatory-capital multipliers. Increases of as much Advanced machine-learning techniques can do
as 30 percent were reported, prompting regulators the following:
to apply exemptions in some cases. There were
also challenges with valuation adjustments, as — speed up calculations, reducing operational
derivatives faced snowballing collateral calls costs and allowing real-time risk management of
and increasing funding costs. Where credit- complex products
value-adjustment (CVA) risks were excluded from
market risk models, CVA hedges sat “naked” on — animate more complex models that may
the balance sheet, leading to significant uplifts in currently be unusable in practice, and unlock
exposures, and therefore in risk-weighted assets more accurate valuations
(RWAs). One large US dealer was hit with a loss of
$950 million stemming from a valuation adjustment — generate high volumes of synthetic but market-
(XVA) in the first quarter of 2020. Elsewhere, rising consistent data, helping, for example, to offset
gap risk in illiquid securities catalyzed painful fair- the disruptive impact of COVID-19-related
value losses—as high as $200 million in the case of market moves
a major Europe-based bank.
One way to implement neural networks is to
In an unpredictable environment, financial modelers apply them to pricing, where they can “learn” how
were required to come up with solutions, but were to price vanilla calibration instruments under a
often stymied by inadequate models or the need given (possibly complex) model, and then act as
for huge computational power that was not always pricing engines for new model calibration. The
available. Given the speed of response required, approach obviates one of the most significant
models in some cases were rendered unusable. The challenges associated with ML, which is
inevitable result was an increase in risk exposures parameter interpretability. In this case, there is no
and opacity from valuations, sometimes in absolute interpretability issue because the network uses
value and other times relating to the reason for the original model’s parameters. This means that
specific model outputs. there is no ML “black box,” and the key calibrated
parameters can be interpreted in the original
model’s context.
An imperative to act
Since forecasting institutions expect the global
economy to have contracted by about 5 percent in

2 Applying machine learning in capital markets: Pricing, valuation adjustments, and market risk
Neural networks can also support future exposure processing (Exhibit 2). That saves banks from using
modeling for valuation adjustments (Exhibit 1). time-consuming nested Monte Carlo approaches
and less accurate analytical approximations or “least
The network can be trained on established samples, squares”—style regressions.
such as those relating to the evolution of risk factors
and corresponding cash flows for the products being There are equally promising applications in real-time
modeled. The additional efficiency provided by the portfolio valuation, risk assessment, and margining.
network makes for improved accuracy and faster

Web <2020>
<Machine learning capital markets>
Exhibit
Exhibit <1>1of <2>

Neural
Neural networks
networks can
can support
support future-exposure modeling.

Artificial Machine Deep learning


intelligence learning and neural networks
Intelligence exhibited by machines, Major approach to realizing Branch of machine learning where
mimicking cognitive functions artificial intelligence by learning systems of algorithms, based on
that humans associate with from and making data-driven simulating connected neural units,
other human minds; cognitive predictions on data and experiences; mimic how neurons interact in
functions include all aspects of categories include supervised brain; uses large-scale neural
perceiving, reasoning, learning, learning, unsupervised learning, networks that can contain millions
and problem solving and reinforcement learning of simulated “neurons” structured
in layers; successful in many
different applications

Web <2020>
<Machine learning capital markets>
Exhibit <2> of <2>
Exhibit 2
Neural networks
Neural networks can
can enable fast and
enable fast and accurate
accurateexposure
exposurecalculations.
calculations.

Problem: Future-exposure modeling is main bottleneck in Solution: Neural-network approach proposed to achieve
current valuation-adjustment models; portfolio-valuation all 3 goals at same time:
and risk calculations must be fast, accurate, and consistent 1. Perform portfolio-valuation and risk calculations via
with FO1-pricing models, but typical approaches fail to neural networks
meet all 3 goals at same time 2. Train neural networks using simulated risk-factor paths
and pathwise-evaluated cash flows—no extra cost to
Nested Monte Analytical approximations/ generate training sample
Carlo method LSM2-style regressions 3. Use differential regularization to optimize accuracy for
Fast both pricing and risk while achieving fast training
Accurate
Consistent with
FO-pricing models

Front office.
1

Least-squares method.
2

Source: Danske Bank SuperFly Analytics

Applying machine learning in capital markets: Pricing, valuation adjustments, and market risk 3
Financial institutions cannot maximize
the machine-learning opportunity
without acquiring the capabilities to build,
maintain, and apply ML-enabled models.

Three steps to deepening A “discovery phase” of an ML transformation


ML engagement could proceed as follows:
Machine learning offers significant enhancement
for conventional quantitative approaches, through • Identify concrete cases based on accepted
its ability to interpolate across large data sets and criteria, such as the complexity of models,
streamline model calibration. Banks would benefit exposure in books, or computational
by deepening their ML engagement and testing bottlenecks. For example, complex, hard-to-
new use cases. The uncertain macroeconomic value derivatives such as structured callable
environment should act as a catalyzer to this trades could be good targets.
process and trigger banks to act. The emphasis
initially should be on discrete applications rather • Size the estimated impact and align various
than wholesale transformation. Use cases can later stakeholder groups.
be extended and expanded across the business.
• Create an action plan, including the effort and
There is no blueprint for model development, and time required for implementing the identified
individual businesses must solve for their own use cases.
pressing needs. However, the experience of early
movers suggests that reliable options for establishing 2. Build capabilities to embrace a culture
a track record encompass three key steps: enabled by machine learning
Machine learning has the potential to create
1. Identify quick wins significant efficiencies in a range of activities.
While ML can help to improve numerous However, financial institutions cannot maximize
calculation processes, it is more useful in some the ML opportunity without acquiring the
contexts than others. The task for decision necessary capabilities to build, maintain, and
makers is to identify potentially winning apply ML-enabled models. They must also take
applications that will help create a positive steps to help employees understand and exploit
track record. Likely candidates are models that potential benefits so that ML is embedded in the
consume large amounts of time or computing culture of the organization.
power. ML can both speed the work of these
models and lay the groundwork for scaling This could be achieved by following through
their application. Among the applications that with the earlier approach and establishing
have begun to attract attention are valuations and executing pilot programs to implement
of level-3 assets, XVA calculations, profit-and- prioritized use cases. During these pilots, the
loss attributions (“P&L explains”), adaptations following practices can be applied:
for Fundamental Review of the Trading Book
(FRTB), and stress testing.

4 Applying machine learning in capital markets: Pricing, valuation adjustments, and market risk
• build capabilities via learning on the job • updating risk-management practices, such
as model governance and risk assessment,
• understand typical challenges and pitfalls and to monitor and control new risks introduced
how to solve them by ML

• acquire continuous feedback on how new


applications can fit into the wider organization
Machine learning has the potential to enable
3. Roll out at scale institutions to do more in capital markets, to move
Over time, sprints, prototypes, and quick wins faster, and to move with greater accuracy. The
will have accumulated sufficiently to create working conditions created during the pandemic
the conditions for a more sustained machine- have accelerated reliance on digital access and
learning rollout. Assuming a critical mass of use the data-driven environment. Given these factors,
cases, quant teams should move to integrate ML machine learning could easily begin to migrate into
into a wider range of activities. They may begin mainstream operations. With this in mind, firms
with the front office and extend into risk, finance, must not delay in building their capabilities. They
compliance, and research. must experiment, develop use cases, and move
quickly to the production of machine-learning-
A plan to scale up the machine-learning program enhanced models. Those that create and execute
could include the following activities: a sensible implementation strategy are likely to
emerge from the current crisis stronger, more
• strategic execution of identified priority assured of risk exposures, and better prepared for
use cases what lies ahead.

• continuous exploration of additional areas


where ML could be relevant, such as anti–
money laundering, know your customer,
or cybersecurity

Juan Aristi Baquero is a partner in McKinsey’s New York office, Akos Gyarmati and Pedro J Silva are consultants in the
London office, Marie-Paule Laurent is a partner in the Brussels office, and Torsten Wegner is an associate partner in the
Berlin office.

Designed by McKinsey Global Publishing


Copyright © 2020 McKinsey & Company. All rights reserved.

Applying machine learning in capital markets: Pricing, valuation adjustments, and market risk 5

You might also like