SlideShare une entreprise Scribd logo
1  sur  38
Understanding Pairs Trading
Yuan Chen (Vincent)
yuanc@outlook.com
Agenda
 Intro: What is pairs trading?
 Analysis: Performance & risks
 Theory: Why pairs trading works?
 Experiment: Real world experiment by R language
 Summary: Conclusion & remarks
History
 Pioneered by Gerry Bamberger and Nunzio Tartaglia
 Quantitative group at Morgan Stanley in the 1980s
 A notable pairs trader: Long-Term Capital Management
Pairs trading is…

Market neutral trading strategy
Pairs trading belongs to…

Statistical Arbitrage
Basic idea
Basic idea: Step 1

Select 2 stocks which “move together”
Basic idea: Step 2

Sell high priced stock

Buy low priced stock
* Same size of each position (price * shares)
How to get profit…
2 Stock price “Move Together”: Diverge & Converge

* PFE: Pfizer Inc. (Pfizer) is a research-based, global biopharmaceutical company.
* VZ: Verizon Communications Inc.
* PFE: Pfizer Inc. (Pfizer) is a research-based, global biopharmaceutical company.
* VZ: Verizon Communications Inc.

PFE: Short
VZ: Long

ra = Pat - Pat+1
rb = -Pbt + Pbt+1
S t = Pat - Pbt
S t+1 = Pat+1 - Pbt+1

r = ra + rb = S t - S t+1
s = pa - b * pb

b : Hedge ratio

PFE: Long
VZ: Short
How to identify good pairs…

Factor
Price ratio:
Spread:

pa
pb

s = pa - b * pb

Relative return:

ra - rb

Behavior
“Stable” = “Good”
Measuring “Stable”

Stationary
&
Co-integrated
Co-integrated vs. Correlated
 Co-integrated





Long term
Co-movement of price
Random walk each
Mean-reversion

 Correlated





Short term
Co-movement of return
Both move in the same direction
Trend only, not sensitivity
Co-integrated ≠ Correlated
Statistical test
* Price Ratio
 Correlation of daily return
 Run test: reject the null hypothesis of random walk
 KPSS test: value change
 IKPSS test: direction change
t

pia pib 2
 Sum of squares: å( 0 - 0 )
pb
i=0 pa

 Adjusted Dickey-Fuller (ADF) test: unit root
Measure performance

Compare with indiscriminate pairs
Using same trading method
Performance (Jan-92 ~ Jan-10)
After selecting the good pairs

Market neutral ≠ Risk-free
Timing is critical
6%

25%+
Timing is critical

3.3% decrease

0.73% decrease
Volatility matters
Model fails

Precision & Recall
Trigger is important

One strategy doesn’t fit all!
Other Impacts
 Transaction cost
 Trade execution
 Time horizon
 Risk free rate

 Opportunity neutralized with too many arbitrageurs
 etc…

Market neutral depends on moving in same direction
What if spread diverge and never converge again?
Theory
Linear model

Log of price

Log of price ratio
Idiosyncratic risk

Dynamic
Neutralized with same exposure to risk factors
Experiments with R language
 Stocks





Source Code:
https://github.com/artyyouth/r-quant

S&P 100
4950 potential pairs
Identifying (Learning) period: 2010-11-30 / 2012-11-30
Trading (Test) period: 2012-11-30 / 2013-11-30

 Algorithm
 ADF

 Factor
 Price ratio
 Spread
However…
Price ratio doesn’t work at all…
So…
Spread!

s = pa - b * pb

* Only accept potential pairs with p-value < 0.011 in ADF test
* Filter out with constrains:
• 1st quartile > -1
• 3rd quartile < 1
Bingo!

364 out of 4950 candidate pairs!
33 out of 364 good pairs!
33 Good pairs
Not all are as good as expected...


MDT & MMM



ABT & PM



ABT & T



MDLZ & SO



MO & WMT



PFE & RTN



F & MET



PFE & UNP



CL & COST



ABT & PFE



F & GS



F & GM



C & GS



MDLZ & UNP



BMY & SO



MDLZ & MON



PFE & WMT



ABT & CL



BK & MET



ABT & CVS



GE & WFC



MDLZ & UNH



MO & PM



ABT & MO



ALL & DIS



F & FCX



GE & MDT



ABT & WMT



MO & SPG



PFE & VZ



ABT & COST



ABT & VZ



GE & RTN
Good spreads
Bad spreads
Does model really fails?

Beta, Mean, Standard deviation are keep changing along the time!
After adjust Beta, Mean, SD
Summary
 Stock pairs are viewed in the literature as pairs of
securities which share common risk factors
 Profit comes from spread swings
 Volatility decides the speed of mean reversion

 Market is very dynamic, strategy should adapt it to
survive
Next…
 Improve pairs selection with better factors and method
 Integrate with fundamental model?
 Dynamic & sophisticated trading rules by analyzing
spread curve

 …
Reference
•
•
•
•
•
•
•
•
•
•
•
•
•
•

Pairs trade: http://en.wikipedia.org/wiki/Pairs_trade
Null hypothesis: http://en.wikipedia.org/wiki/Null_hypothesis
Algorithmic trading: http://en.wikipedia.org/wiki/Algorithmic_trading
Execution management system: http://en.wikipedia.org/wiki/Execution_Management_System
Time series: http://en.wikipedia.org/wiki/Time_series_analysis
Market timing: http://en.wikipedia.org/wiki/Market_timing
Ornstein-Uhlenbeck process:
http://en.wikipedia.org/wiki/Ornstein%E2%80%93Uhlenbeck_process
Autoregressive-moving-average model:
http://en.wikipedia.org/wiki/Autoregressive_moving_average
Error correction model: http://en.wikipedia.org/wiki/Error_correction_models
Co-integration: http://en.wikipedia.org/wiki/Cointegration
Downside risk: http://en.wikipedia.org/wiki/Downside_risk
Statistical arbitrage: http://en.wikipedia.org/wiki/Statistical_arbitrage
Convergence trade: http://en.wikipedia.org/wiki/Convergence_trading
Fears more than death: http://www.psychologytoday.com/blog/the-real-story-risk/201211/thething-we-fear-more-death
Q&A

Thank You!

Contenu connexe

Tendances

Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...Fernando A. B. Sabino da Silva
 
Overview of price action trading
Overview of price action tradingOverview of price action trading
Overview of price action tradingChristineNelson17
 
Technical Analysis
Technical AnalysisTechnical Analysis
Technical Analysisluv_sharma
 
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...ForexTraining
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianJess Stauth
 
Technical analysis doc
Technical analysis doc Technical analysis doc
Technical analysis doc Babasab Patil
 
How to build a trading system
How to build a trading systemHow to build a trading system
How to build a trading systemFXstreet.com
 
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Quantopian
 
Technical Analysis
Technical AnalysisTechnical Analysis
Technical Analysissnehalsoni
 
Technical indicators
Technical indicatorsTechnical indicators
Technical indicatorsvermaayushi
 
Bollinger Bands - Here is how to trade them
Bollinger Bands - Here is how to trade themBollinger Bands - Here is how to trade them
Bollinger Bands - Here is how to trade themNetpicksTrading
 
Secrets of Price Action Trading
Secrets of Price Action TradingSecrets of Price Action Trading
Secrets of Price Action TradingSyrous Pejman
 
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe..."Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...Quantopian
 
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdfOTHMANKHALIFI3
 
What are Key Chart Levels and How to Trade Them
What are Key Chart Levels and How to Trade ThemWhat are Key Chart Levels and How to Trade Them
What are Key Chart Levels and How to Trade Them My Trading Skills
 
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
 
Chapter 17 technical analysis
Chapter 17 technical analysisChapter 17 technical analysis
Chapter 17 technical analysisMridu Sharma
 
Technical Analysis Presentation
Technical Analysis PresentationTechnical Analysis Presentation
Technical Analysis Presentationdpark1
 

Tendances (20)

Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...	 Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
Pairs Trading: Optimizing via Mixed Copula versus Distance Method for S&P 5...
 
Quantitative Trading
Quantitative TradingQuantitative Trading
Quantitative Trading
 
Overview of price action trading
Overview of price action tradingOverview of price action trading
Overview of price action trading
 
Technical Analysis
Technical AnalysisTechnical Analysis
Technical Analysis
 
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...
Trade Forex From Home - 10 Biggest Mistakes New Forex Traders Make (And How T...
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on Quantopian
 
Technical analysis doc
Technical analysis doc Technical analysis doc
Technical analysis doc
 
How to build a trading system
How to build a trading systemHow to build a trading system
How to build a trading system
 
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
 
Technical Analysis
Technical AnalysisTechnical Analysis
Technical Analysis
 
Technical indicators
Technical indicatorsTechnical indicators
Technical indicators
 
Bollinger Bands - Here is how to trade them
Bollinger Bands - Here is how to trade themBollinger Bands - Here is how to trade them
Bollinger Bands - Here is how to trade them
 
Secrets of Price Action Trading
Secrets of Price Action TradingSecrets of Price Action Trading
Secrets of Price Action Trading
 
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe..."Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
 
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
04 LIQUIDITY CONCEPTS@SmartMoney_Mindset.pdf
 
What are Key Chart Levels and How to Trade Them
What are Key Chart Levels and How to Trade ThemWhat are Key Chart Levels and How to Trade Them
What are Key Chart Levels and How to Trade Them
 
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...
 
Chapter 17 technical analysis
Chapter 17 technical analysisChapter 17 technical analysis
Chapter 17 technical analysis
 
Technical analysis
Technical analysisTechnical analysis
Technical analysis
 
Technical Analysis Presentation
Technical Analysis PresentationTechnical Analysis Presentation
Technical Analysis Presentation
 

Similaire à Pairs Trading

Unifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageUnifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageZakMaymin
 
Advance iq capital quantitative models
Advance iq capital quantitative modelsAdvance iq capital quantitative models
Advance iq capital quantitative modelsAndrew214
 
Financial Markets & Trading - Introduction
Financial Markets & Trading - IntroductionFinancial Markets & Trading - Introduction
Financial Markets & Trading - IntroductionAditya Dasgupta
 
Technical Trading Rules for the NASDAQ100
Technical Trading Rules for the NASDAQ100Technical Trading Rules for the NASDAQ100
Technical Trading Rules for the NASDAQ100Temi Vasco
 
Lecture 7 - Stock Market and EMF
Lecture 7 - Stock Market and EMFLecture 7 - Stock Market and EMF
Lecture 7 - Stock Market and EMFRyan Herzog
 
Top Down Investing
Top Down InvestingTop Down Investing
Top Down InvestingKen Long
 
Should Commodity Investors Follow Commodities' Prices?
Should Commodity Investors Follow Commodities' Prices?Should Commodity Investors Follow Commodities' Prices?
Should Commodity Investors Follow Commodities' Prices?guasoni
 
Learning spread trading is it worth it
Learning spread trading is it worth itLearning spread trading is it worth it
Learning spread trading is it worth itGE 94
 
Arbitrage Trading
Arbitrage TradingArbitrage Trading
Arbitrage TradingAvain009
 
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...QuantInsti
 
2652 -Value-Investing Strategies And Fundamental Analysis Module 1
2652 -Value-Investing Strategies And Fundamental Analysis Module 12652 -Value-Investing Strategies And Fundamental Analysis Module 1
2652 -Value-Investing Strategies And Fundamental Analysis Module 1Carrie Romero
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec domsBabasab Patil
 
Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Aakash Kulkarni
 
Market efficiency and portfolio theory
Market efficiency and portfolio theoryMarket efficiency and portfolio theory
Market efficiency and portfolio theoryAakash Kulkarni
 
Managed Futures
Managed FuturesManaged Futures
Managed Futuresbzinchenko
 

Similaire à Pairs Trading (20)

Unifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageUnifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical Arbitrage
 
Advance IQ Capital Quantitative Models
Advance IQ Capital Quantitative ModelsAdvance IQ Capital Quantitative Models
Advance IQ Capital Quantitative Models
 
Advance iq capital quantitative models
Advance iq capital quantitative modelsAdvance iq capital quantitative models
Advance iq capital quantitative models
 
Financial Markets & Trading - Introduction
Financial Markets & Trading - IntroductionFinancial Markets & Trading - Introduction
Financial Markets & Trading - Introduction
 
Technical Trading Rules for the NASDAQ100
Technical Trading Rules for the NASDAQ100Technical Trading Rules for the NASDAQ100
Technical Trading Rules for the NASDAQ100
 
Lecture 7 - Stock Market and EMF
Lecture 7 - Stock Market and EMFLecture 7 - Stock Market and EMF
Lecture 7 - Stock Market and EMF
 
Top Down Investing
Top Down InvestingTop Down Investing
Top Down Investing
 
The Art and Science of Forecasting Financial Markets
The Art and Science of Forecasting Financial MarketsThe Art and Science of Forecasting Financial Markets
The Art and Science of Forecasting Financial Markets
 
Should Commodity Investors Follow Commodities' Prices?
Should Commodity Investors Follow Commodities' Prices?Should Commodity Investors Follow Commodities' Prices?
Should Commodity Investors Follow Commodities' Prices?
 
Learning spread trading is it worth it
Learning spread trading is it worth itLearning spread trading is it worth it
Learning spread trading is it worth it
 
Arbitrage Trading
Arbitrage TradingArbitrage Trading
Arbitrage Trading
 
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
Can we use Mixture Models to Predict Market Bottoms? by Brian Christopher - 2...
 
2652 -Value-Investing Strategies And Fundamental Analysis Module 1
2652 -Value-Investing Strategies And Fundamental Analysis Module 12652 -Value-Investing Strategies And Fundamental Analysis Module 1
2652 -Value-Investing Strategies And Fundamental Analysis Module 1
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Market behavior research @ bec doms
Market behavior research @ bec domsMarket behavior research @ bec doms
Market behavior research @ bec doms
 
Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)Portfolio management sessions 4&5 (1)
Portfolio management sessions 4&5 (1)
 
Market efficiency and portfolio theory
Market efficiency and portfolio theoryMarket efficiency and portfolio theory
Market efficiency and portfolio theory
 
Neural trading term paper
Neural trading term paperNeural trading term paper
Neural trading term paper
 
Managed Futures
Managed FuturesManaged Futures
Managed Futures
 

Dernier

Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...priyasharma62062
 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfHenry Tapper
 
Toronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfToronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfJinJiang6
 
Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024Adnet Communications
 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Availabledollysharma2066
 
Q1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfQ1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfAdnet Communications
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...roshnidevijkn ( Why You Choose Us? ) Escorts
 
7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator OptionsVince Stanzione
 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...dipikadinghjn ( Why You Choose Us? ) Escorts
 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaipriyasharma62062
 
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7jayawati511
 
Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432motiram463
 
Technology industry / Finnish economic outlook
Technology industry / Finnish economic outlookTechnology industry / Finnish economic outlook
Technology industry / Finnish economic outlookTechFinland
 
cost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxcost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxazadalisthp2020i
 
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...dipikadinghjn ( Why You Choose Us? ) Escorts
 
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...roshnidevijkn ( Why You Choose Us? ) Escorts
 

Dernier (20)

Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
Mira Road Awesome 100% Independent Call Girls NUmber-9833754194-Dahisar Inter...
 
Pension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdfPension dashboards forum 1 May 2024 (1).pdf
Pension dashboards forum 1 May 2024 (1).pdf
 
Toronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdfToronto dominion bank investor presentation.pdf
Toronto dominion bank investor presentation.pdf
 
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
From Luxury Escort Service Kamathipura : 9352852248 Make on-demand Arrangemen...
 
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
(INDIRA) Call Girl Srinagar Call Now 8617697112 Srinagar Escorts 24x7
 
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
Call Girls in New Ashok Nagar, (delhi) call me [9953056974] escort service 24X7
 
Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024Lion One Corporate Presentation May 2024
Lion One Corporate Presentation May 2024
 
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
8377087607, Door Step Call Girls In Kalkaji (Locanto) 24/7 Available
 
Q1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdfQ1 2024 Conference Call Presentation vF.pdf
Q1 2024 Conference Call Presentation vF.pdf
 
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
Call Girls Service Pune ₹7.5k Pick Up & Drop With Cash Payment 9352852248 Cal...
 
7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options7 tips trading Deriv Accumulator Options
7 tips trading Deriv Accumulator Options
 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
 
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbaiVasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
Vasai-Virar Fantastic Call Girls-9833754194-Call Girls MUmbai
 
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7
(Sexy Sheela) Call Girl Mumbai Call Now 👉9920725232👈 Mumbai Escorts 24x7
 
Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432Best VIP Call Girls Morni Hills Just Click Me 6367492432
Best VIP Call Girls Morni Hills Just Click Me 6367492432
 
Technology industry / Finnish economic outlook
Technology industry / Finnish economic outlookTechnology industry / Finnish economic outlook
Technology industry / Finnish economic outlook
 
cost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptxcost-volume-profit analysis.ppt(managerial accounting).pptx
cost-volume-profit analysis.ppt(managerial accounting).pptx
 
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Banaswadi Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
VIP Independent Call Girls in Mumbai 🌹 9920725232 ( Call Me ) Mumbai Escorts ...
 
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...
VIP Kalyan Call Girls 🌐 9920725232 🌐 Make Your Dreams Come True With Mumbai E...
 

Pairs Trading

  • 1. Understanding Pairs Trading Yuan Chen (Vincent) yuanc@outlook.com
  • 2. Agenda  Intro: What is pairs trading?  Analysis: Performance & risks  Theory: Why pairs trading works?  Experiment: Real world experiment by R language  Summary: Conclusion & remarks
  • 3. History  Pioneered by Gerry Bamberger and Nunzio Tartaglia  Quantitative group at Morgan Stanley in the 1980s  A notable pairs trader: Long-Term Capital Management
  • 4. Pairs trading is… Market neutral trading strategy
  • 5. Pairs trading belongs to… Statistical Arbitrage
  • 7. Basic idea: Step 1 Select 2 stocks which “move together”
  • 8. Basic idea: Step 2 Sell high priced stock Buy low priced stock * Same size of each position (price * shares)
  • 9. How to get profit… 2 Stock price “Move Together”: Diverge & Converge * PFE: Pfizer Inc. (Pfizer) is a research-based, global biopharmaceutical company. * VZ: Verizon Communications Inc.
  • 10. * PFE: Pfizer Inc. (Pfizer) is a research-based, global biopharmaceutical company. * VZ: Verizon Communications Inc. PFE: Short VZ: Long ra = Pat - Pat+1 rb = -Pbt + Pbt+1 S t = Pat - Pbt S t+1 = Pat+1 - Pbt+1 r = ra + rb = S t - S t+1 s = pa - b * pb b : Hedge ratio PFE: Long VZ: Short
  • 11. How to identify good pairs… Factor Price ratio: Spread: pa pb s = pa - b * pb Relative return: ra - rb Behavior “Stable” = “Good”
  • 13. Co-integrated vs. Correlated  Co-integrated     Long term Co-movement of price Random walk each Mean-reversion  Correlated     Short term Co-movement of return Both move in the same direction Trend only, not sensitivity
  • 15. Statistical test * Price Ratio  Correlation of daily return  Run test: reject the null hypothesis of random walk  KPSS test: value change  IKPSS test: direction change t pia pib 2  Sum of squares: å( 0 - 0 ) pb i=0 pa  Adjusted Dickey-Fuller (ADF) test: unit root
  • 16. Measure performance Compare with indiscriminate pairs Using same trading method
  • 18. After selecting the good pairs Market neutral ≠ Risk-free
  • 20. Timing is critical 3.3% decrease 0.73% decrease
  • 23. Trigger is important One strategy doesn’t fit all!
  • 24. Other Impacts  Transaction cost  Trade execution  Time horizon  Risk free rate  Opportunity neutralized with too many arbitrageurs  etc… Market neutral depends on moving in same direction What if spread diverge and never converge again?
  • 25. Theory Linear model Log of price Log of price ratio Idiosyncratic risk Dynamic Neutralized with same exposure to risk factors
  • 26. Experiments with R language  Stocks     Source Code: https://github.com/artyyouth/r-quant S&P 100 4950 potential pairs Identifying (Learning) period: 2010-11-30 / 2012-11-30 Trading (Test) period: 2012-11-30 / 2013-11-30  Algorithm  ADF  Factor  Price ratio  Spread
  • 28. So… Spread! s = pa - b * pb * Only accept potential pairs with p-value < 0.011 in ADF test * Filter out with constrains: • 1st quartile > -1 • 3rd quartile < 1
  • 29. Bingo! 364 out of 4950 candidate pairs! 33 out of 364 good pairs!
  • 30. 33 Good pairs Not all are as good as expected...  MDT & MMM  ABT & PM  ABT & T  MDLZ & SO  MO & WMT  PFE & RTN  F & MET  PFE & UNP  CL & COST  ABT & PFE  F & GS  F & GM  C & GS  MDLZ & UNP  BMY & SO  MDLZ & MON  PFE & WMT  ABT & CL  BK & MET  ABT & CVS  GE & WFC  MDLZ & UNH  MO & PM  ABT & MO  ALL & DIS  F & FCX  GE & MDT  ABT & WMT  MO & SPG  PFE & VZ  ABT & COST  ABT & VZ  GE & RTN
  • 33. Does model really fails? Beta, Mean, Standard deviation are keep changing along the time!
  • 34. After adjust Beta, Mean, SD
  • 35. Summary  Stock pairs are viewed in the literature as pairs of securities which share common risk factors  Profit comes from spread swings  Volatility decides the speed of mean reversion  Market is very dynamic, strategy should adapt it to survive
  • 36. Next…  Improve pairs selection with better factors and method  Integrate with fundamental model?  Dynamic & sophisticated trading rules by analyzing spread curve  …
  • 37. Reference • • • • • • • • • • • • • • Pairs trade: http://en.wikipedia.org/wiki/Pairs_trade Null hypothesis: http://en.wikipedia.org/wiki/Null_hypothesis Algorithmic trading: http://en.wikipedia.org/wiki/Algorithmic_trading Execution management system: http://en.wikipedia.org/wiki/Execution_Management_System Time series: http://en.wikipedia.org/wiki/Time_series_analysis Market timing: http://en.wikipedia.org/wiki/Market_timing Ornstein-Uhlenbeck process: http://en.wikipedia.org/wiki/Ornstein%E2%80%93Uhlenbeck_process Autoregressive-moving-average model: http://en.wikipedia.org/wiki/Autoregressive_moving_average Error correction model: http://en.wikipedia.org/wiki/Error_correction_models Co-integration: http://en.wikipedia.org/wiki/Cointegration Downside risk: http://en.wikipedia.org/wiki/Downside_risk Statistical arbitrage: http://en.wikipedia.org/wiki/Statistical_arbitrage Convergence trade: http://en.wikipedia.org/wiki/Convergence_trading Fears more than death: http://www.psychologytoday.com/blog/the-real-story-risk/201211/thething-we-fear-more-death

Notes de l'éditeur

  1. A time series is stationary if it has constant mean, variance and autocorrelations.In other words, if the price ratio is stationary, then it is not affected by structuralbreaks or trends.For our purposes two series are cointegrated (with cointegrating vector [1,-1])when each series is nonstationary, but their difference is stationary. In practicethis means that a long term relation exists between the two stock prices, butthere can be a deviation from that relation in the short term. Alternatively, wecan say that the two prices share the same trend.
  2. In this paper we are particularly interested in the selection of thepairs, so it is useful to compare the performance of our pairs trading strategieswith the performance of a strategy that used the same trading methodology, butmade no attempt to identify &quot;good pairs&quot;. We call this strategy theindiscriminate pairs trading strategy.
  3. Nothing is free in this world, except the grace of god
  4. more than a quarter of trades suggested by the ADF pairs strategies would haveopened and closed again within 5 days, while 6% would have been open foronly a day.
  5. Median return to a trade with various lags in opening or closing the ADF strategy tradesDelays of a single day in opening a position haveheavy effects on the returns. Chart 11 shows the median return to a trade if wedelay entering it by 0, 1 or 2 days5 and if we delay closing it by 0, 1 or 2 days.The effect of lagging the decision to open and close a trade by 2 days isdramatic: the median return falls from 3.3% to just 0.73%.
  6. Beautiful history doesn’t guarantee you a brightfuture!
  7. Open position when away 2*SD from mean and close position when spread revert, doesn’t always work
  8. Beta neutralized with same exposure to risk factors, which make shocks due exclusively to idiosyncratic risk
  9. Traders should adapt the change and improve the model dynamically!