SlideShare a Scribd company logo
1 of 26
Statistical Arbitrage: Pair Trading
Shaurya Chandra
Quantinsti
Content Index
• Process of Quant- Trading Strategy
• Statistical Arbitrage
• Pair Trading Strategy
• Implementation Methodology
• Example of Prices of two Cement Stock
• Pair Ratio Behavior
• Why Pair Trading Work?
• Key Decision Points for Pair Trading & Risk Area
• Investor Decisions
• Stationary Process
Content Index
• What’s Co-integration?
• Correlation Vs. Co-integration
• Correlation Calculation
• Co-Integration
• Co-Integration- Mathematical Definition:
• Co-integration calculation
• Pair Ratio Movement for Above Example
• Z-score
• Process of Pair Selection
• Other key points to be kept in mind
Process of Quant- Trading Strategy
Hypothesis Formulation
Back-Testing & Hypothesis Verification
Parameter Optimization
Going Live with Strategy
Statistical Arbitrage
Restricted Access
Please contact us at contact@quantinsti.com
Pair Trading Strategy
Restricted Access
Please contact us at contact@quantinsti.com
Implementation Methodology
Select pair
of stocks that
move together
closely
1
Wait until
prices diverge
beyond a certain
threshold, then
short “winner”
and buy
“loser”
2
Reverse your
positions when
the two prices
converge --> Profit
from the reversal
in trend
3
0.00
20.00
40.00
60.00
80.00
100.00
120.00
140.00
160.00
180.00
0
200
400
600
800
1000
1200
1400
3-Jan-05 3-Jan-06 3-Jan-07 3-Jan-08 3-Jan-09 3-Jan-10
ACC Ambuja
Example of Prices of two Cement Stock
0.100
0.105
0.110
0.115
0.120
0.125
0.130
Price Ratio 30 Day MA
Pair Ratio Behavior
Why Pair Trading Work?
Restricted Access
Please contact us at contact@quantinsti.com
Key Decision Points for Pair Trading & Risk Area
Restricted Access
Please contact us at contact@quantinsti.com
Investor Decisions
Restricted Access
Please contact us at contact@quantinsti.com
Stationary Process
Restricted Access
Please contact us at contact@quantinsti.com
What’s Co-integration??
Restricted Access
Please contact us at contact@quantinsti.com
Correlation vs Co-integration
Restricted Access
Please contact us at contact@quantinsti.com
Correlation Calculation
Restricted Access
Please contact us at contact@quantinsti.com
Co-Integration
Restricted Access
Please contact us at contact@quantinsti.com
Co-Integration- Mathematical Definition:
Restricted Access
Please contact us at contact@quantinsti.com
Co-Integration contd..
Restricted Access
Please contact us at contact@quantinsti.com
Co-integration calculation
Restricted Access
Please contact us at contact@quantinsti.com
0.7
0.75
0.8
0.85
0.9
0.95
1
1.05
Ratio Mean
Upper Line Lower line
Pair Ratio Movement for Above Example
Period:23-Oct-08
to 06-Nov-2009
30-Day Moving
Average
+/- 2.25 Deviation
Mean fairly Stable
-2.5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
3
Z-Score
Z-…
Z-score
Zscore = (Pair
Ratio –
mean)/
(Standard
Deviation)
Process of Pair Selection
• The Process:
• Create a list of pairs based on the same sector and similar market
capitalization
• Decide on the time horizon of trade ( hours, days, week or months etc)
• Find pair correlation for the universe defined above, choose pair with
correlation above 0.60 for the desired trading horizon
• Check whether pair is co-integrated
• Calculate Price Ratio, Moving Average of Price Ratio
• To Normalize, calculate, standard deviation for Price Ratio and subsequently,
calculate Z-score
• Based on the Z-score, define the pair entry points. Generally, z-score above
+2 and below -2 are considered to be good measure of probability of pair
exhibiting mean reversion
• Execute pair on rupee-neutral basis.
• Define, Strict Stop-Loss and Profit mechanism before entering trade
• Its good practice to allocate fund to different pair portfolio rather than one
signal trade
Other key points to be kept in mind
Restricted Access
Please contact us at contact@quantinsti.com
Bibliography
Restricted Access
Please contact us at contact@quantinsti.com
Thank You!
To Learn Automated Trading
Email: contact@quantinsti.com
Connect With Us:
SINGAPORE
11 Collyer Quay,
#10-10, The Arcade,
Singapore - 049317
Phone: +65-6221-3654
INDIA
A-309, Boomerang,
Chandivali Farm Road, Powai,
Mumbai - 400 072
Phone: +91-022-61691400

More Related Content

More from QuantInsti

Introduction to Systematic Options Trading
Introduction to Systematic Options TradingIntroduction to Systematic Options Trading
Introduction to Systematic Options Trading
QuantInsti
 
Competitive Edges in Algorithmic Trading
Competitive Edges in Algorithmic TradingCompetitive Edges in Algorithmic Trading
Competitive Edges in Algorithmic Trading
QuantInsti
 
Volatility Trading: Trading The Fear Index VIX
Volatility Trading: Trading The Fear Index VIXVolatility Trading: Trading The Fear Index VIX
Volatility Trading: Trading The Fear Index VIX
QuantInsti
 
Big Data And The Future Of Retail Investing
Big Data And The Future Of Retail InvestingBig Data And The Future Of Retail Investing
Big Data And The Future Of Retail Investing
QuantInsti
 
Backtest of Short Straddles on SPX Index
Backtest of Short Straddles on SPX IndexBacktest of Short Straddles on SPX Index
Backtest of Short Straddles on SPX Index
QuantInsti
 
Pairs Trading In the Brazilian Stock Market
Pairs Trading In the Brazilian Stock MarketPairs Trading In the Brazilian Stock Market
Pairs Trading In the Brazilian Stock Market
QuantInsti
 
How To Set Up Automated Trading
How To Set Up Automated TradingHow To Set Up Automated Trading
How To Set Up Automated Trading
QuantInsti
 
How To Set Up Automated Trading
How To Set Up Automated TradingHow To Set Up Automated Trading
How To Set Up Automated Trading
QuantInsti
 
Quantitative Data Analysis of Cryptocurrencies
Quantitative Data Analysis of CryptocurrenciesQuantitative Data Analysis of Cryptocurrencies
Quantitative Data Analysis of Cryptocurrencies
QuantInsti
 
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
QuantInsti
 
How to automate an options day trading strategy
How to automate an options day trading strategyHow to automate an options day trading strategy
How to automate an options day trading strategy
QuantInsti
 
Predict daily stock prices with random forest classifier, technical indicator...
Predict daily stock prices with random forest classifier, technical indicator...Predict daily stock prices with random forest classifier, technical indicator...
Predict daily stock prices with random forest classifier, technical indicator...
QuantInsti
 
How Pandemics Impact the Financial Markets - A Quantitative Analysis
How Pandemics Impact the Financial Markets - A Quantitative AnalysisHow Pandemics Impact the Financial Markets - A Quantitative Analysis
How Pandemics Impact the Financial Markets - A Quantitative Analysis
QuantInsti
 
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
QuantInsti
 
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
QuantInsti
 
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
QuantInsti
 

More from QuantInsti (20)

Introduction to Systematic Options Trading
Introduction to Systematic Options TradingIntroduction to Systematic Options Trading
Introduction to Systematic Options Trading
 
Competitive Edges in Algorithmic Trading
Competitive Edges in Algorithmic TradingCompetitive Edges in Algorithmic Trading
Competitive Edges in Algorithmic Trading
 
Volatility Trading: Trading The Fear Index VIX
Volatility Trading: Trading The Fear Index VIXVolatility Trading: Trading The Fear Index VIX
Volatility Trading: Trading The Fear Index VIX
 
Big Data And The Future Of Retail Investing
Big Data And The Future Of Retail InvestingBig Data And The Future Of Retail Investing
Big Data And The Future Of Retail Investing
 
Backtest of Short Straddles on SPX Index
Backtest of Short Straddles on SPX IndexBacktest of Short Straddles on SPX Index
Backtest of Short Straddles on SPX Index
 
Pairs Trading In the Brazilian Stock Market
Pairs Trading In the Brazilian Stock MarketPairs Trading In the Brazilian Stock Market
Pairs Trading In the Brazilian Stock Market
 
How To Set Up Automated Trading
How To Set Up Automated TradingHow To Set Up Automated Trading
How To Set Up Automated Trading
 
How To Set Up Automated Trading
How To Set Up Automated TradingHow To Set Up Automated Trading
How To Set Up Automated Trading
 
Quantitative Data Analysis of Cryptocurrencies
Quantitative Data Analysis of CryptocurrenciesQuantitative Data Analysis of Cryptocurrencies
Quantitative Data Analysis of Cryptocurrencies
 
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
Introduction to Quantitative Trading - Investment Management Club of Yale Uni...
 
How to automate an options day trading strategy
How to automate an options day trading strategyHow to automate an options day trading strategy
How to automate an options day trading strategy
 
Predict daily stock prices with random forest classifier, technical indicator...
Predict daily stock prices with random forest classifier, technical indicator...Predict daily stock prices with random forest classifier, technical indicator...
Predict daily stock prices with random forest classifier, technical indicator...
 
How Pandemics Impact the Financial Markets - A Quantitative Analysis
How Pandemics Impact the Financial Markets - A Quantitative AnalysisHow Pandemics Impact the Financial Markets - A Quantitative Analysis
How Pandemics Impact the Financial Markets - A Quantitative Analysis
 
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
Masterclass: Natural Language Processing in Trading with Terry Benzschawel & ...
 
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
Webinar on Algorithmic Trading - Why make the move? with Vivek Krishnamoorthy...
 
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
 
Algorithmic Trading in FX Market By Dr. Alexis Stenfors
Algorithmic Trading in FX Market By Dr. Alexis StenforsAlgorithmic Trading in FX Market By Dr. Alexis Stenfors
Algorithmic Trading in FX Market By Dr. Alexis Stenfors
 
Risk Management: Maximising Long-Term Growth Presentation
Risk Management: Maximising Long-Term Growth PresentationRisk Management: Maximising Long-Term Growth Presentation
Risk Management: Maximising Long-Term Growth Presentation
 
How EPAT Can Help You! Presentation
How EPAT Can Help You! PresentationHow EPAT Can Help You! Presentation
How EPAT Can Help You! Presentation
 
Modelling Trading Strategies In Equities Presentation
Modelling Trading Strategies In Equities PresentationModelling Trading Strategies In Equities Presentation
Modelling Trading Strategies In Equities Presentation
 

Recently uploaded

PPT- Chapter 5- Cost Allocation presentation pdf
PPT- Chapter 5- Cost Allocation presentation pdfPPT- Chapter 5- Cost Allocation presentation pdf
PPT- Chapter 5- Cost Allocation presentation pdf
Kalkaye
 

Recently uploaded (20)

Abhay Bhutada’s Plan to Boost Financial Growth in 2024
Abhay Bhutada’s Plan to Boost Financial Growth in 2024Abhay Bhutada’s Plan to Boost Financial Growth in 2024
Abhay Bhutada’s Plan to Boost Financial Growth in 2024
 
What is an ecosystem in crypto .pdf
What  is  an  ecosystem  in  crypto .pdfWhat  is  an  ecosystem  in  crypto .pdf
What is an ecosystem in crypto .pdf
 
Maximize Your Business Potential with Falcon Invoice Discounting
Maximize Your Business Potential with Falcon Invoice DiscountingMaximize Your Business Potential with Falcon Invoice Discounting
Maximize Your Business Potential with Falcon Invoice Discounting
 
Will pi network launch in 2024: what's the update.
Will pi network launch in 2024: what's the update.Will pi network launch in 2024: what's the update.
Will pi network launch in 2024: what's the update.
 
How do I unlock my locked Pi coins fast.
How do I unlock my locked Pi coins fast.How do I unlock my locked Pi coins fast.
How do I unlock my locked Pi coins fast.
 
PPT- Chapter 5- Cost Allocation presentation pdf
PPT- Chapter 5- Cost Allocation presentation pdfPPT- Chapter 5- Cost Allocation presentation pdf
PPT- Chapter 5- Cost Allocation presentation pdf
 
how to exchange pi coins for USD in 2024.
how to exchange pi coins for USD in 2024.how to exchange pi coins for USD in 2024.
how to exchange pi coins for USD in 2024.
 
Consumer rights and its importance and value
Consumer rights and its importance and valueConsumer rights and its importance and value
Consumer rights and its importance and value
 
2. Natural of the history odf dieseases-1.ppt
2. Natural of the  history odf dieseases-1.ppt2. Natural of the  history odf dieseases-1.ppt
2. Natural of the history odf dieseases-1.ppt
 
Monthly Market Risk Update: May 2024 [SlideShare]
Monthly Market Risk Update: May 2024 [SlideShare]Monthly Market Risk Update: May 2024 [SlideShare]
Monthly Market Risk Update: May 2024 [SlideShare]
 
How can I withdraw my pi coins to real money in India.
How can I withdraw my pi coins to real money in India.How can I withdraw my pi coins to real money in India.
How can I withdraw my pi coins to real money in India.
 
how can i make money selling pi coins in 2024
how can i make money selling pi coins in 2024how can i make money selling pi coins in 2024
how can i make money selling pi coins in 2024
 
Abhay Bhutada: A Journey of Transformation and Leadership
Abhay Bhutada: A Journey of Transformation and LeadershipAbhay Bhutada: A Journey of Transformation and Leadership
Abhay Bhutada: A Journey of Transformation and Leadership
 
Bond Bazaar Powerpoint Presentation in Details
Bond Bazaar Powerpoint Presentation in DetailsBond Bazaar Powerpoint Presentation in Details
Bond Bazaar Powerpoint Presentation in Details
 
where can I purchase things with pi coins online
where can I purchase things with pi coins onlinewhere can I purchase things with pi coins online
where can I purchase things with pi coins online
 
Fintech Belgium General Assembly and Anniversary Event 2024
Fintech Belgium General Assembly and Anniversary Event 2024Fintech Belgium General Assembly and Anniversary Event 2024
Fintech Belgium General Assembly and Anniversary Event 2024
 
Human Capital: Education and Health in Economic Development
Human Capital:  Education and Health      in Economic DevelopmentHuman Capital:  Education and Health      in Economic Development
Human Capital: Education and Health in Economic Development
 
how do I get a legit pi buyer in the internet (2024)
how do I get a legit pi buyer in the internet (2024)how do I get a legit pi buyer in the internet (2024)
how do I get a legit pi buyer in the internet (2024)
 
How to exchange my pi coins on HTX in 2024
How to exchange my pi coins on HTX in 2024How to exchange my pi coins on HTX in 2024
How to exchange my pi coins on HTX in 2024
 
Top 5 Asset Baked Tokens (ABT) to Invest in the Year 2024.pdf
Top 5 Asset Baked Tokens (ABT) to Invest in the Year 2024.pdfTop 5 Asset Baked Tokens (ABT) to Invest in the Year 2024.pdf
Top 5 Asset Baked Tokens (ABT) to Invest in the Year 2024.pdf
 

Step by Step Guide: Pair Trading and Statistical Arbitrage