0% found this document useful (0 votes)
76 views19 pages

Three Quant Lessons From COVID-19: Advances in Financial Machine Learning

Uploaded by

Dan Popescu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views19 pages

Three Quant Lessons From COVID-19: Advances in Financial Machine Learning

Uploaded by

Dan Popescu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

Three Quant Lessons from COVID-19

Prof. Marcos López de Prado


Advances in Financial Machine Learning
ORIE 5256
Background
• The SARS-CoV-2 virus was isolated and named on February 11, 2020
• Eight days later, the Standard and Poor’s 500 index reached an all-time close level
at 3,393.52
• Many quantitative firms have suffered substantial losses during the subsequent
selloff
– This is true even among funds that offer market neutral strategies
– At the same time, market makers have enjoyed above-average profits during the selloff. Why?
• What lessons can we learn amid this crisis?
1. More nowcasting, less forecasting
2. Develop theories, not trading rules
3. Avoid all-regime strategies
• The following observations are the result of joint work with Prof. Alexander Lipton

2
Lesson #1
More Nowcasting, Less Forecasting
Forecasting is the Past…
• Forecasting models use structured data
to make long-range predictions
• Traditionally, quant strategies have
focused on forecasting prices
– based on price time-series dynamics (e.g., stat
arb, CTAs)
– based on cross-sectional data (e.g., asset
pricing, factor investing)
• Forecasting relies on statistical
relationships between lagged
observations and future outcomes Factor investing strategies often determine the
– These relationships do not always hold cheapness or richness of a security as a function of
– Forecasting made a lot of sense years ago, their exposure to a few fundamental factors, which
when datasets were limited, and disclosures are reported infrequently. These models do not
were few and infrequent adjust quickly to changing market conditions.
4
… Nowcasting is the Future
• Nowcasting models use unstructured
datasets to make
– direct measurements: The target variable is
directly observed (e.g. the basket of products
used to estimate inflation)
– short-range predictions: The target variable is
not directly observed (e.g., parking lot
occupancy used to estimate revenue)
• Advantages relative to forecasts:
– Direct measurements always hold true (they
do not rely on a statistical lead-lag
Source: Cavallo and Rigobon [2016]
relationship)
– Short-range predictions are statistically more The Billion Price Project collects daily price
reliable than long-range predictions fluctuations associated with tens of millions of
– In both cases, estimates involve millions of products sold by thousands of online retailers in
recent observations almost 100 countries.
5
A Scientific Application of Nowcasting
• It is virtually impossible to
predict the time and location of
an earthquake
• Instead, scientists have
developed early warning systems
– Even a few seconds of warning can
save thousands of lives
• Once the earthquake is detected,
it is possible to determine with
high accuracy Source: NOAA
– the cities that will be impacted by the A 9.1 Mw earthquake occurred in Sumatra (Indonesia) on
shockwave December 26, 2004. The ensuing tsunami killed 227,898
– the coastal cities that will be people and displaced over a million. Australia received a
impacted by tsunamis warning 5 hours ahead, and African countries 10 hours
ahead. 6
Examples of Nowcasting in Finance
• Forecasting is the mathematical
analogue of guessing
– Do not forecast what you can nowcast
• Examples of financial nowcasts include:
– Inflation, based on web-scraping millions of
online prices every day, are much more
accurate than the forecasts derived from
convoluted econometric models
– Liquidity conditions, based on millions of daily
FIX messages from market participants
– Earnings of retailers, based on satellite images Best Buy experienced a large revenue increase in the
of parking lot occupancy, email receipts, etc. 2019 holiday season, clearly outpacing Target.
– Industrial production, based on engineering Measurable AI used e-mail receipts to report this
datasets, cargo shipments, auto production information, months ahead of the regulatory filings
numbers, electricity consumption, etc. for Q4 of 2019.
7
Nowcasting in Practice
1. Identify a cause-effect mechanism
– E.g., unemployment impacts consumption, thus
retailers’ revenue
2. Develop an investment strategy that monetizes
that mechanism
– E.g., buy retailers with most presence in hiring regions,
sell retailers with most presence in firing regions
3. Evaluate the performance of (2) while
assuming perfect knowledge of (1)
– Evaluate the Sharpe ratio assuming you knew weekly
unemployment claims per region before their release
4. Replace perfect knowledge with nowcasted Source: NASA/NOAA
estimates North and South Korea, April 2019. Satellite
– Use traffic from satellite photos to nowcast activity images are used to track cargoes, assess the
yield of crops, predict oil output, etc. 8
Nowcasting Black Swans
• Days before the COVID-19 selloff started,
there were plenty of warning signs that
the virus was disrupting critical supply
chains in China
• Thanks to their nowcasting of orderflow
imbalance, very few market makers
experienced losses during the selloff
• This selloff may have been a Black Swan
to market forecasters, but to market
nowcasters, it was a White Swan On January 23, 2020, the central government of
• It is time for quants to pay less attention China imposed a lockdown in Wuhan and other
cities in Hubei province. The sudden drop in
to crystal balls, and add nowcasting to factory demand caused a selloff in various
their arsenal commodities, while U.S. stocks continued to rally.
9
Lesson #2
Develop Theories, Not Trading Rules
Backtest Overfitting Everywhere
• When correctly done, backtesting is a
useful validation tool
• It is common for academics and
practitioners to run tens of thousands of
historical backtests in order to identify a
promising investment strategy
– The best performing backtest is then reported
as if a single trial had taken place, and selected
for publication, or for launching a new fund
• As a result of this selection bias, most
published discoveries in finance are false It is trivial to produce a historical walk-forward
backtest with a high Sharpe ratio, by trying
– This fact explains why many funds have not
thousands of alternative model specifications.
performed as expected, including but not
Virtually no academic papers report the number of
limited to the recent performance of quant
trials involved in a discovery.
funds during the COVID-19 crisis
11
Backtesting is Validation, Not Research
• In the scientific method, testing plays a
critical role in attempting to refute a
hypothesis
• In finance, however, researchers have
used backtesting for the opposite
objective, i.e., for building trading rules
• This misuse leads to a circular argument
1. A researcher backtests thousands of trading
rules (e.g., the factor zoo)
2. The best performing rule is proposed as a
hypothesis (e.g., buy low P/E stocks)
Scientists can’t bake their cake and eat it too. A scientist
3. The researcher publishes his hypothesis, and must formulate a hypothesis, so that colleagues can
presents as evidence the same backtest that independently test it. Scientists cannot pick how their
he used to find the hypothesis theories will be tested (backtesting or otherwise).
12
Develop Theories, Not Trading Rules
• Researchers should develop theories
without backtesting
– E.g., with feature importance analysis methods
that are robust to overfitting
• A functional theory explains a
phenomenon by exposing a precise
cause-effect mechanism
• The validity of this cause-effect Source: CodeOfView.com

mechanism must be tested through Suppose a theory that explains the COVID-19
– Backtesting (adjusted for selection bias), and selloff as a market panic, similar to the Flash
– Collecting evidence against the ultimate Crash of 2010. Backtesting a strategy that profited
implications of the proposed theory from both events does not validate the theory. A
better test is to search for evidence of panic
• Backtesting trading rules is not enough behavior in the FIX messages of both days (e.g.,
market makers becoming like liquidity takers).
13
Lesson #3
Avoid All-Regime Strategies
The Futile Search for The Holy Grail
• Academics and practitioners usually
search for investment strategies that
would have performed well across all
market regimes
– E.g., risk premia, risk parity, long OTM puts
• The likelihood that genuine “all-regime”
strategies exist is rather slim, because
– markets are adaptive
– investors learn from mistakes
Source: Federal Reserve Bank of St. Louis. Treasury Constant Maturity Rates
• Even if all-regime strategies existed, they Most strategies are backtested over decades
are likely to be a rather insignificant (sometimes even centuries!) to imply that they
subset of the population of strategies work under all market regimes. And yet, the
current zero-rate environment makes those
that work across one or more regimes backtests unrepresentative.
15
Regime-Specific Investment Strategies
• Asset managers should focus their
efforts on searching for investment
strategies that perform optimally under
specific market regimes
– Each regime is characterized by a particular
data generating process (DGP)
– We can nowcast the probability that current
observations are being drawn from each DGP,
and use those probabilities to build an
ensemble portfolio of those optimal strategies
• This approach allows funds to adapt as
market conditions change Regime-specific investment strategies are common
– E.g., use nowcasting to switch from risk-on among market makers. It allows them to adapt to
(risk premia) to risk-off (long OTM puts) new market conditions quickly. Thanks to
strategies in the advent of black swans nowcasting, funds can apply the same approach to
strategy deployment. 16
Knowledge Graphs
• A knowledge graph links companies based
on multiple criteria, such as
– business ties, supply chain, competitors, ⊚
industrial sectors, shared ownership, etc.
• Knowledge graphs encode forward-
looking information about a regime
=
• We can use this information to derive
theory-implied correlation matrices (TICs)
• A TIC blends theoretical (forward-looking)
codependence structure with empirical
observations drawn from history
– This allows for risk models to be instantly
updated, with reduced noise

17
For Additional Details
The first wave of quantitative innovation in finance was led by Markowitz
optimization. Machine Learning is the second wave and it will touch every
aspect of finance. López de Prado’s Advances in Financial Machine Learning is
essential for readers who want to be ahead of the technology rather than
being replaced by it.
— Prof. Campbell Harvey, Duke University. Former President of the American
Finance Association.

Financial problems require very distinct machine learning solutions. Dr. López
de Prado’s book is the first one to characterize what makes standard machine
learning tools fail when applied to the field of finance, and the first one to
provide practical solutions to unique challenges faced by asset managers.
Everyone who wants to understand the future of finance should read this
book.
— Prof. Frank Fabozzi, EDHEC Business School. Editor of The Journal of
Portfolio Management.

18
Disclaimer
• The views expressed in this document are the authors’ and do not necessarily
reflect those of the organizations he is affiliated with.
• No investment decision or particular course of action is recommended by this
presentation.
• All Rights Reserved. © 2017-2020 by True Positive Technologies, LP

www.QuantResearch.org

19

You might also like