B y Q u a n t I n s t i
Copyright © 2017 QuantInsti.com All Rights Reserved.1
November 2, 2017
About QuantInsti®
• QuantInsti® is one of Asia’s pioneer Algorithmic Trading Research
and Training Institute focused on preparing financial market
professionals for the contemporary field of Algorithmic and
Quantitative Trading
• Over 20000+ professionals from 125+ countries have benefited
from QuantInsti’s educational initiatives
2 Copyright © 2017 QuantInsti. All Rights Reserved.
About Quantra
• An e-learning portal by QuantInsti™ that specializes in
Algorithmic & Quantitative trading
• Offers self-paced Courses - mix of videos, audios,
presentations, multiple choice questions and AI based
interactive exercises
• A practical hands-on learning experience, empowering
students to learn and implement complex concepts easily
3 Copyright © 2017 QuantInsti. All Rights Reserved.
4
• Researcher at IBM T. J. Watson Lab in machine learning (‘94-
’97).
• Quantitative researcher/trader for Morgan Stanley, Credit
Suisse, and various hedge funds (‘97-’05).
• Principal of QTS Capital Management which manages a hedge
fund as well as client accounts.
• Author:
– Quantitative Trading: How to Build Your Own Algorithmic Trading
Business (Wiley 2009).
– Algorithmic Trading: Winning Strategies and Their Rationale (Wiley
2013)
– Machine Trading: Deploying Computer Algorithms to Conquer The
Markets (Wiley 2017)
• Blog: epchan.blogspot.com
About Dr. Ernest Chan
Copyright © 2017 QuantInsti. All Rights Reserved.
5
• Directional trading
– Each instrument’s signal is independent of another’s.
• Pairs and other cointegrated portfolio trading
– Signals depend on relative value between 2 or more
instruments.
• Index arbitrage
– Signals depend on relative value between a basket of
instruments and an index future.
Types of StatArb Strategies?
Copyright © 2017 QuantInsti. All Rights Reserved.
6
• Long-short portfolio
– Signals depend on an instrument’s ranking within its universe.
– Ranking based on “factors”
• Factor models
– Signals depend on expected return from a linear combination of
fundamental or statistical “factors”
• We will focus on pairs, and a bit of index arb and long-short
models.
• We will focus on mean reverting strategies.
Types of StatArb Strategies?
Copyright © 2017 QuantInsti. All Rights Reserved.
7
• Stationarity
– A time series is stationary if it doesn’t* wander off to
infinity.
– A random walk is not a stationary series.
• E.g. The price of GLD (gold ETF) is a geometric
random walk, and is not stationary.
• See graph ...
Theoretical Foundation Of Pair
Trading
Copyright © 2017 QuantInsti. All Rights Reserved.
Example of Non-Stationary series
8
0
10
20
30
40
50
60
70
80
90
GLD
Copyright © 2017 QuantInsti. All Rights Reserved.
Another example of Non-
Stationary Series
9
0
10
20
30
40
50
60
GDX
Copyright © 2017 QuantInsti. All Rights Reserved.
10
Example of
Stationary Time Series
Copyright © 2017 QuantInsti. All Rights Reserved.
11
• If the price (or market value) of an instrument is
stationary, we can profit easily by a simple mean-
reverting strategy.
– Buy low and sell high!
Stationarity
Copyright © 2017 QuantInsti. All Rights Reserved.
• The change of the price series in the next period is
proportional to the difference between the mean price
and the current price.
• ADF tests whether we can reject the null hypothesis that
the proportionality constant is zero.
Testing for Stationarity: ADF Test
12 Copyright © 2017 QuantInsti. All Rights Reserved.
13
• Individual instrument’s prices usually not stationary.
• Sometimes, holding a portfolio of 2 or more non-
stationary instruments may result in a stationary
portfolio.
– If so, these instruments are said to be cointegrated.
Cointegration
Copyright © 2017 QuantInsti. All Rights Reserved.
14
• Example of a portfolio of possibly cointegrated stocks:
– Long 1 share of GLD
– Short 1.63 shares of GDX
Cointegration
Copyright © 2017 QuantInsti. All Rights Reserved.
15
GLD vs GDX cointegrated?
Copyright © 2017 QuantInsti. All Rights Reserved.
16
• Cointegrating stocks
– stationary portfolio
– mean-reverting strategy
– buy when portfolio MV is low, sell when MV is
high!
Cointegration
Copyright © 2017 QuantInsti. All Rights Reserved.
17
• Correlation is concerned with whether daily (or hourly,
weekly, monthly, etc) returns of 2 stocks are in same
direction.
• Cointegration is concerned with whether 2 price series
diverge over long term.
• E.g. KO and PEP have daily returns with correlation
coefficient of 0.48, but they do not cointegrate.
Cointegration ≠ Correlation
Copyright © 2017 QuantInsti. All Rights Reserved.
18
KO vs PEP: correlated but not
cointegrated
Copyright © 2017 QuantInsti. All Rights Reserved.
19
Correlated Returns
Copyright © 2017 QuantInsti. All Rights Reserved.
20
Cointegrated Prices
Copyright © 2017 QuantInsti. All Rights Reserved.
21
• Cointegration is long-term.
• Correlation is short-term.
• Cointegration is about prices.
• Correlation is about returns.
Cointegration vs. Correlation
Copyright © 2017 QuantInsti. All Rights Reserved.
• Bollinger bands
• Enter into a position only when the price deviates by
more than a standard deviation.
• Exit when price mean reverts.
Mean Reversion Strategies
22 Copyright © 2017 QuantInsti. All Rights Reserved.
23
Mean-Reversal Strategy
Copyright © 2017 QuantInsti. All Rights Reserved.
24
Mean-Reversal Strategy
Copyright © 2017 QuantInsti. All Rights Reserved.
25
• Stationarity and cointegration are important for mean-
reverting pair-trading with longer holding period.
• Short-term mean-reversal trade can be profitable even
without cointegration.
• Stock pairs are quite unstable w.r.t. cointegration.
Summary
Copyright © 2017 QuantInsti. All Rights Reserved.
26
Course on Quantra
Mean Reversion Strategies
By Dr. Ernest Chan
Copyright © 2017 QuantInsti. All Rights Reserved.
Next Steps
27
Special 25% discount on the course,
just for webinar participants
coupon code:
WEB25
Valid until Midnight GMT, November 7, 2017.
28
Questions?
Copyright © 2017 QuantInsti. All Rights Reserved.
/GoQuantra
/GoQuantra
/Quantra
QuantInsti Quantitative Learning Pvt Ltd
A-309, Boomerang, Chandivali Farm Road,
Powai, Mumbai – 400 072
https://quantra.quantinsti.com
28 Copyright © 2017 QuantInsti. All Rights Reserved.

Modelling Trading Strategies In Equities Presentation

  • 1.
    B y Qu a n t I n s t i Copyright © 2017 QuantInsti.com All Rights Reserved.1 November 2, 2017
  • 2.
    About QuantInsti® • QuantInsti®is one of Asia’s pioneer Algorithmic Trading Research and Training Institute focused on preparing financial market professionals for the contemporary field of Algorithmic and Quantitative Trading • Over 20000+ professionals from 125+ countries have benefited from QuantInsti’s educational initiatives 2 Copyright © 2017 QuantInsti. All Rights Reserved.
  • 3.
    About Quantra • Ane-learning portal by QuantInsti™ that specializes in Algorithmic & Quantitative trading • Offers self-paced Courses - mix of videos, audios, presentations, multiple choice questions and AI based interactive exercises • A practical hands-on learning experience, empowering students to learn and implement complex concepts easily 3 Copyright © 2017 QuantInsti. All Rights Reserved.
  • 4.
    4 • Researcher atIBM T. J. Watson Lab in machine learning (‘94- ’97). • Quantitative researcher/trader for Morgan Stanley, Credit Suisse, and various hedge funds (‘97-’05). • Principal of QTS Capital Management which manages a hedge fund as well as client accounts. • Author: – Quantitative Trading: How to Build Your Own Algorithmic Trading Business (Wiley 2009). – Algorithmic Trading: Winning Strategies and Their Rationale (Wiley 2013) – Machine Trading: Deploying Computer Algorithms to Conquer The Markets (Wiley 2017) • Blog: epchan.blogspot.com About Dr. Ernest Chan Copyright © 2017 QuantInsti. All Rights Reserved.
  • 5.
    5 • Directional trading –Each instrument’s signal is independent of another’s. • Pairs and other cointegrated portfolio trading – Signals depend on relative value between 2 or more instruments. • Index arbitrage – Signals depend on relative value between a basket of instruments and an index future. Types of StatArb Strategies? Copyright © 2017 QuantInsti. All Rights Reserved.
  • 6.
    6 • Long-short portfolio –Signals depend on an instrument’s ranking within its universe. – Ranking based on “factors” • Factor models – Signals depend on expected return from a linear combination of fundamental or statistical “factors” • We will focus on pairs, and a bit of index arb and long-short models. • We will focus on mean reverting strategies. Types of StatArb Strategies? Copyright © 2017 QuantInsti. All Rights Reserved.
  • 7.
    7 • Stationarity – Atime series is stationary if it doesn’t* wander off to infinity. – A random walk is not a stationary series. • E.g. The price of GLD (gold ETF) is a geometric random walk, and is not stationary. • See graph ... Theoretical Foundation Of Pair Trading Copyright © 2017 QuantInsti. All Rights Reserved.
  • 8.
    Example of Non-Stationaryseries 8 0 10 20 30 40 50 60 70 80 90 GLD Copyright © 2017 QuantInsti. All Rights Reserved.
  • 9.
    Another example ofNon- Stationary Series 9 0 10 20 30 40 50 60 GDX Copyright © 2017 QuantInsti. All Rights Reserved.
  • 10.
    10 Example of Stationary TimeSeries Copyright © 2017 QuantInsti. All Rights Reserved.
  • 11.
    11 • If theprice (or market value) of an instrument is stationary, we can profit easily by a simple mean- reverting strategy. – Buy low and sell high! Stationarity Copyright © 2017 QuantInsti. All Rights Reserved.
  • 12.
    • The changeof the price series in the next period is proportional to the difference between the mean price and the current price. • ADF tests whether we can reject the null hypothesis that the proportionality constant is zero. Testing for Stationarity: ADF Test 12 Copyright © 2017 QuantInsti. All Rights Reserved.
  • 13.
    13 • Individual instrument’sprices usually not stationary. • Sometimes, holding a portfolio of 2 or more non- stationary instruments may result in a stationary portfolio. – If so, these instruments are said to be cointegrated. Cointegration Copyright © 2017 QuantInsti. All Rights Reserved.
  • 14.
    14 • Example ofa portfolio of possibly cointegrated stocks: – Long 1 share of GLD – Short 1.63 shares of GDX Cointegration Copyright © 2017 QuantInsti. All Rights Reserved.
  • 15.
    15 GLD vs GDXcointegrated? Copyright © 2017 QuantInsti. All Rights Reserved.
  • 16.
    16 • Cointegrating stocks –stationary portfolio – mean-reverting strategy – buy when portfolio MV is low, sell when MV is high! Cointegration Copyright © 2017 QuantInsti. All Rights Reserved.
  • 17.
    17 • Correlation isconcerned with whether daily (or hourly, weekly, monthly, etc) returns of 2 stocks are in same direction. • Cointegration is concerned with whether 2 price series diverge over long term. • E.g. KO and PEP have daily returns with correlation coefficient of 0.48, but they do not cointegrate. Cointegration ≠ Correlation Copyright © 2017 QuantInsti. All Rights Reserved.
  • 18.
    18 KO vs PEP:correlated but not cointegrated Copyright © 2017 QuantInsti. All Rights Reserved.
  • 19.
    19 Correlated Returns Copyright ©2017 QuantInsti. All Rights Reserved.
  • 20.
    20 Cointegrated Prices Copyright ©2017 QuantInsti. All Rights Reserved.
  • 21.
    21 • Cointegration islong-term. • Correlation is short-term. • Cointegration is about prices. • Correlation is about returns. Cointegration vs. Correlation Copyright © 2017 QuantInsti. All Rights Reserved.
  • 22.
    • Bollinger bands •Enter into a position only when the price deviates by more than a standard deviation. • Exit when price mean reverts. Mean Reversion Strategies 22 Copyright © 2017 QuantInsti. All Rights Reserved.
  • 23.
    23 Mean-Reversal Strategy Copyright ©2017 QuantInsti. All Rights Reserved.
  • 24.
    24 Mean-Reversal Strategy Copyright ©2017 QuantInsti. All Rights Reserved.
  • 25.
    25 • Stationarity andcointegration are important for mean- reverting pair-trading with longer holding period. • Short-term mean-reversal trade can be profitable even without cointegration. • Stock pairs are quite unstable w.r.t. cointegration. Summary Copyright © 2017 QuantInsti. All Rights Reserved.
  • 26.
    26 Course on Quantra MeanReversion Strategies By Dr. Ernest Chan Copyright © 2017 QuantInsti. All Rights Reserved. Next Steps
  • 27.
    27 Special 25% discounton the course, just for webinar participants coupon code: WEB25 Valid until Midnight GMT, November 7, 2017.
  • 28.
    28 Questions? Copyright © 2017QuantInsti. All Rights Reserved.
  • 29.
    /GoQuantra /GoQuantra /Quantra QuantInsti Quantitative LearningPvt Ltd A-309, Boomerang, Chandivali Farm Road, Powai, Mumbai – 400 072 https://quantra.quantinsti.com 28 Copyright © 2017 QuantInsti. All Rights Reserved.