Jump to content

Pairs trade: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
About Pairs Trading w/ ETFs
TakesToo (talk | contribs)
No edit summary
 
(249 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{short description|Trading strategy}}
The '''pairs trade''' was developed in the late 1980's by quantitative analysts. They found that certain securities, often competitors in the same sector, were correlated in their day-to-day price movements. When the correlation broke down, i.e. one stock traded up while the other traded down, they would sell the outperforming stock and buy the underperforming one, betting that the "spread" between the two would eventually converge.
{{technical|date=November 2012}}
[[Image:pair tool.JPG|thumb|alt=Example of pair trade graphical representation|Example of pair trade graphical representation]]
A '''pairs trade''' or '''pair trading''' is a [[market neutral]] [[trading strategy]] enabling traders to profit from virtually any market conditions: uptrend, downtrend, or sideways movement. This strategy is categorized as a [[statistical arbitrage]] and [[convergence trading]] strategy.<ref>{{cite web |author1=Kanamura, Takashi |author2=Rachev, Svetlozar |author3=Fabozzi, FranK |date=5 July 2008 |title=The Application of Pairs Trading to Energy Futures Markets |url=http://statistik.ets.kit.edu/download/doc_secure1/ptem342v144techreport.pdf |archive-url=https://web.archive.org/web/20130205215100/http://statistik.ets.kit.edu/download/doc_secure1/ptem342v144techreport.pdf |archive-date=2013-02-05 |access-date=20 January 2015 |publisher=Karlsruhe Institute of Technology}}</ref> Pair trading was pioneered by Gerry Bamberger and later led by Nunzio Tartaglia's quantitative group at [[Morgan Stanley]] in the 1980s.<ref>Bookstaber, Richard. ''A Demon Of Our Own Design'', p. 186. Wiley, 2006.</ref>


The strategy monitors performance of two historically correlated securities. When the [[correlation]] between the two securities temporarily weakens, i.e. one stock moves up while the other moves down, the pairs trade would be to short the outperforming stock and to long the underperforming one, betting that the "spread" between the two would eventually converge.<ref>{{cite web|url=http://www.cs.sunysb.edu/~skiena/691/lectures/lecture23.pdf|title=Lecture 23: Pairs Trading}}</ref> The divergence within a pair can be caused by temporary supply/demand changes, large buy/sell orders for one security, reaction for important news about one of the companies, and so on.


Pairs trading strategy demands good [[Position size|position sizing]], [[market timing]], and decision making skill. Although the strategy does not have much [[downside risk]], there is a scarcity of opportunities, and, for profiting, the trader must be one of the first to capitalize on the opportunity.
'''Some real-life examples of potentially correlated pairs:
'''


A notable pairs trader was hedge fund [[Long-Term Capital Management]];<ref>{{cite book|last=Lowenstein|first=Roger|title=When genius failed : the rise and fall of Long-Term Capital Management|date=2000|publisher=Random House|location=New York|isbn=978-0-375-50317-7|edition=1|url-access=registration|url=https://archive.org/details/whengeniusfailed00lowe}}</ref> see [[Arbitrage#Dual-listed companies|Dual-listed companies]].
Coca-Cola (KO) and Pepsi (PEP)


== Model-based pairs trading ==
Wal-Mart (WMT) and Target (TGT)


[[File:Forecast pra rli.jpg|thumb|alt=Example of a spread forecast using an optimal ARMA model | Example of a portfolio spread forecast using an ARMA model and the associated forecast error bounds]]
Dell (DELL) and Hewlett-Packard (HPQ)


While it is commonly agreed that ''individual'' stock prices are difficult to forecast, there is evidence suggesting that it may be possible to forecast the price—the spread series—of certain stock ''portfolios''. A common way to attempt this is by constructing the portfolio such that the spread series is a [[stationary process]]. To achieve spread stationarity in the context of pairs trading, where the portfolios only consist of two stocks, one can attempt to find a [[cointegration]] irregularities between the two stock price series who generally show stationary correlation. This irregularity is assumed to be bridged soon and forecasts are made in the opposite nature of the irregularity.<ref>C. Alexander: "Market Models: A Guide to Financial Data Analysis". Wiley, 2001.</ref><ref>{{cite web | url=http://www.bullmenbinary.com/r107_co-integration-trading-strategy | title=Co-integration Trading Strategy | publisher=Bullmen Binary | access-date=20 January 2015}}</ref> This would then allow for combining them into a portfolio with a stationary spread series.<ref name=coint>A. D. Schmidt: "Pairs Trading - A Cointegration Approach". University of Sydney, 2008. http://ses.library.usyd.edu.au/bitstream/2123/4072/1/Thesis_Schmidt.pdf</ref> Regardless of how the portfolio is constructed, if the spread series is a stationary processes, then it can be modeled, and subsequently forecast, using techniques of [[time series analysis]]. Among those suitable for pairs trading are [[Ornstein–Uhlenbeck process|Ornstein-Uhlenbeck]] models,<ref name="Mahdavi Damghani 2013 50–61">{{cite journal|last=Mahdavi Damghani|first=Babak|year=2013|title=The Non-Misleading Value of Inferred Correlation: An Introduction to the Cointelation Model|journal=[[Wilmott (magazine)|Wilmott]]|volume=2013|issue=1|pages=50–61|doi=10.1002/wilm.10252}}</ref><ref>S. Mudchanatongsuk, J. A. Primbs and W. Wong: "Optimal Pairs Trading: A Stochastic Control Approach". Proceedings of the American Control Conference, 2008. http://www.nt.ntnu.no/users/skoge/prost/proceedings/acc08/data/papers/0479.pdf</ref> [[autoregressive moving average]] (ARMA) models<ref>G. Vidyamurthy: "Pairs trading: quantitative methods and analysis". Wiley, 2004.</ref> and (vector) [[error correction models]].<ref name=coint /> Forecastability of the portfolio spread series is useful for traders because:
Ford (F) and General Motors (GM)


# The spread can be directly traded by buying and selling the stocks in the portfolio, and
# The forecast and its error bounds (given by the model) yield an estimate of the return and risk associated with the trade.


The success of pairs trading depends heavily on the modeling and forecasting of the spread time series.<ref>"A New Approach to Modeling and Estimation for Pairs Trading". Monash University, Working Paper. http://www.finanzaonline.com/forum/attachments/econometria-e-modelli-di-trading-operativo/1048428d1238757908-spread-e-pair-trading-pairstrading_binhdo.pdf</ref> Comprehensive empirical studies on pairs trading have investigated its profitability over the long-term in the US market using the distance method, co-integration, and copulas. They have found that the distance and co-integration methods result in significant alphas and similar performance, but their profits have decreased over time. Copula pairs trading strategies result in more stable but smaller profits.<ref>{{Cite journal|last1=Rad|first1=Hossein|last2=Low|first2=Rand Kwong Yew|last3=Faff|first3=Robert|date=2016-04-27|title=The profitability of pairs trading strategies: distance, cointegration and copula methods|journal=Quantitative Finance|volume=16|issue=10|pages=1541–1558|doi=10.1080/14697688.2016.1164337|s2cid=219717488 |issn=1469-7688}}</ref>
The pairs trade helps to hedge sector- and market-risk. For example, if the market as a whole crashes and your two stocks plummet along with it, you should experience a gain on the [[short position]] and a negating loss on the [[long position]], leaving your profit close to zero in spite of the large move. In a pairs trade, you are not making a bet on the direction of the stocks in absolute terms, but on the direction of the stocks relative to each other.


== Algorithmic pairs trading ==
Today, pairs trading is often conducted using [[Algorithmic trading|algorithmic trading strategies]] on an [[execution management system]]. These strategies are typically built around models that define the spread based on historical data mining and analysis. The algorithm monitors for deviations in price, automatically buying and selling to capitalize on market inefficiencies. The advantage in terms of reaction time allows traders to take advantage of tighter spreads.


==Market neutrality==
== Algorithmic Pairs Trading ==
*The pairs trade helps to hedge sector- and market-risk. For example, if the whole market crashes, and the two stocks plummet along with it, the trade should result in a gain on the [[Short (finance)|short position]] and a negating loss on the [[Long (finance)|long position]], leaving the profit close to zero in spite of the large move.
*Pairs trade is a [[Mean reversion (finance)|mean-reverting]] strategy, betting that the prices will eventually revert to their historical trends.
*Pairs trade is a substantially self-funding strategy, since the short sale proceeds may be used to create the long position.


==Drift and risk management==
Today, Pairs trading is often conducted using [[Algorithmic trading|algorithmic trading strategies]] on an Execution Management System. These strategies are typically built around models that define the spread based on historical data mining and analysis. The algorithm monitors for deviations in price, automatically buying and selling to capitalize on market inefficiencies. The advantage in terms of reaction time allows that traders to take advantage of tighter spreads.
Trading pairs is not a risk-free strategy. The difficulty comes when prices of the two securities begin to drift apart, i.e. the spread begins to trend instead of reverting to the original mean. Dealing with such adverse situations requires strict risk management rules, which have the trader exit an unprofitable trade as soon as the original setup—a bet for reversion to the mean—has been invalidated. This can be achieved, for example, by forecasting the spread and exiting at forecast error bounds. A common way to model, and forecast, the spread for risk management purposes is by using [[autoregressive moving average]] models.


Some other risks include:
*In ‘market-neutral’ strategies, you are assuming that the [[Capital asset pricing model|CAPM]] model is valid and that [[Beta coefficient|beta]] is a correct estimate of [[systematic risk]]—if this is not the case, your hedge may not properly protect you in the event of a shift in the markets. Note there are other theories on how to estimate market risk—such as the Fama-French Factors.
*Measures of market risk, such as beta, are historical and could be very different in the future than they have been in the past.
*If you are implementing a mean reversion strategy, you are assuming that the mean will remain the same in the future as it has been in the past. When the means change, it is sometimes referred to as ‘drift’.


== A simplified example ==
Pepsi (PEP) and Coca-Cola (KO) are different companies that create a similar product, soda pop. Historically, the two companies have shared similar dips and highs, depending on the soda pop market. If the price of Coca-Cola were to go up a significant amount while Pepsi stayed the same, a pairs trader would buy Pepsi stock and sell Coca-Cola stock, assuming that the two companies would later return to their historical balance point. If the price of Pepsi rose to close that gap in price, the trader would make money on the Pepsi stock, while if the price of Coca-Cola fell, they would make money on having shorted the Coca-Cola stock.


The reason for the deviated stock to come back to original value is itself an assumption. It is assumed that the pair will have similar business performance as in the past during the holding period of the stock.
{{econ-stub}}


== See also ==
*[[Convergence trade]]
*[[Johansen test]]


==External Links==
==References==
{{Reflist}}
*[http://www.valuestockreports.com/030207.htm Pairs Trading with ETFs]

{{stock market}}

[[Category:Investment]]
[[Category:Arbitrage]]

[[pt:Long & Short]]
[[ru:Парный трейдинг]]

Latest revision as of 13:25, 2 February 2024

Example of pair trade graphical representation
Example of pair trade graphical representation

A pairs trade or pair trading is a market neutral trading strategy enabling traders to profit from virtually any market conditions: uptrend, downtrend, or sideways movement. This strategy is categorized as a statistical arbitrage and convergence trading strategy.[1] Pair trading was pioneered by Gerry Bamberger and later led by Nunzio Tartaglia's quantitative group at Morgan Stanley in the 1980s.[2]

The strategy monitors performance of two historically correlated securities. When the correlation between the two securities temporarily weakens, i.e. one stock moves up while the other moves down, the pairs trade would be to short the outperforming stock and to long the underperforming one, betting that the "spread" between the two would eventually converge.[3] The divergence within a pair can be caused by temporary supply/demand changes, large buy/sell orders for one security, reaction for important news about one of the companies, and so on.

Pairs trading strategy demands good position sizing, market timing, and decision making skill. Although the strategy does not have much downside risk, there is a scarcity of opportunities, and, for profiting, the trader must be one of the first to capitalize on the opportunity.

A notable pairs trader was hedge fund Long-Term Capital Management;[4] see Dual-listed companies.

Model-based pairs trading

[edit]
Example of a spread forecast using an optimal ARMA model
Example of a portfolio spread forecast using an ARMA model and the associated forecast error bounds

While it is commonly agreed that individual stock prices are difficult to forecast, there is evidence suggesting that it may be possible to forecast the price—the spread series—of certain stock portfolios. A common way to attempt this is by constructing the portfolio such that the spread series is a stationary process. To achieve spread stationarity in the context of pairs trading, where the portfolios only consist of two stocks, one can attempt to find a cointegration irregularities between the two stock price series who generally show stationary correlation. This irregularity is assumed to be bridged soon and forecasts are made in the opposite nature of the irregularity.[5][6] This would then allow for combining them into a portfolio with a stationary spread series.[7] Regardless of how the portfolio is constructed, if the spread series is a stationary processes, then it can be modeled, and subsequently forecast, using techniques of time series analysis. Among those suitable for pairs trading are Ornstein-Uhlenbeck models,[8][9] autoregressive moving average (ARMA) models[10] and (vector) error correction models.[7] Forecastability of the portfolio spread series is useful for traders because:

  1. The spread can be directly traded by buying and selling the stocks in the portfolio, and
  2. The forecast and its error bounds (given by the model) yield an estimate of the return and risk associated with the trade.

The success of pairs trading depends heavily on the modeling and forecasting of the spread time series.[11] Comprehensive empirical studies on pairs trading have investigated its profitability over the long-term in the US market using the distance method, co-integration, and copulas. They have found that the distance and co-integration methods result in significant alphas and similar performance, but their profits have decreased over time. Copula pairs trading strategies result in more stable but smaller profits.[12]

Algorithmic pairs trading

[edit]

Today, pairs trading is often conducted using algorithmic trading strategies on an execution management system. These strategies are typically built around models that define the spread based on historical data mining and analysis. The algorithm monitors for deviations in price, automatically buying and selling to capitalize on market inefficiencies. The advantage in terms of reaction time allows traders to take advantage of tighter spreads.

Market neutrality

[edit]
  • The pairs trade helps to hedge sector- and market-risk. For example, if the whole market crashes, and the two stocks plummet along with it, the trade should result in a gain on the short position and a negating loss on the long position, leaving the profit close to zero in spite of the large move.
  • Pairs trade is a mean-reverting strategy, betting that the prices will eventually revert to their historical trends.
  • Pairs trade is a substantially self-funding strategy, since the short sale proceeds may be used to create the long position.

Drift and risk management

[edit]

Trading pairs is not a risk-free strategy. The difficulty comes when prices of the two securities begin to drift apart, i.e. the spread begins to trend instead of reverting to the original mean. Dealing with such adverse situations requires strict risk management rules, which have the trader exit an unprofitable trade as soon as the original setup—a bet for reversion to the mean—has been invalidated. This can be achieved, for example, by forecasting the spread and exiting at forecast error bounds. A common way to model, and forecast, the spread for risk management purposes is by using autoregressive moving average models.

Some other risks include:

  • In ‘market-neutral’ strategies, you are assuming that the CAPM model is valid and that beta is a correct estimate of systematic risk—if this is not the case, your hedge may not properly protect you in the event of a shift in the markets. Note there are other theories on how to estimate market risk—such as the Fama-French Factors.
  • Measures of market risk, such as beta, are historical and could be very different in the future than they have been in the past.
  • If you are implementing a mean reversion strategy, you are assuming that the mean will remain the same in the future as it has been in the past. When the means change, it is sometimes referred to as ‘drift’.

A simplified example

[edit]

Pepsi (PEP) and Coca-Cola (KO) are different companies that create a similar product, soda pop. Historically, the two companies have shared similar dips and highs, depending on the soda pop market. If the price of Coca-Cola were to go up a significant amount while Pepsi stayed the same, a pairs trader would buy Pepsi stock and sell Coca-Cola stock, assuming that the two companies would later return to their historical balance point. If the price of Pepsi rose to close that gap in price, the trader would make money on the Pepsi stock, while if the price of Coca-Cola fell, they would make money on having shorted the Coca-Cola stock.

The reason for the deviated stock to come back to original value is itself an assumption. It is assumed that the pair will have similar business performance as in the past during the holding period of the stock.

See also

[edit]

References

[edit]
  1. ^ Kanamura, Takashi; Rachev, Svetlozar; Fabozzi, FranK (5 July 2008). "The Application of Pairs Trading to Energy Futures Markets" (PDF). Karlsruhe Institute of Technology. Archived from the original (PDF) on 2013-02-05. Retrieved 20 January 2015.
  2. ^ Bookstaber, Richard. A Demon Of Our Own Design, p. 186. Wiley, 2006.
  3. ^ "Lecture 23: Pairs Trading" (PDF).
  4. ^ Lowenstein, Roger (2000). When genius failed : the rise and fall of Long-Term Capital Management (1 ed.). New York: Random House. ISBN 978-0-375-50317-7.
  5. ^ C. Alexander: "Market Models: A Guide to Financial Data Analysis". Wiley, 2001.
  6. ^ "Co-integration Trading Strategy". Bullmen Binary. Retrieved 20 January 2015.
  7. ^ a b A. D. Schmidt: "Pairs Trading - A Cointegration Approach". University of Sydney, 2008. http://ses.library.usyd.edu.au/bitstream/2123/4072/1/Thesis_Schmidt.pdf
  8. ^ Mahdavi Damghani, Babak (2013). "The Non-Misleading Value of Inferred Correlation: An Introduction to the Cointelation Model". Wilmott. 2013 (1): 50–61. doi:10.1002/wilm.10252.
  9. ^ S. Mudchanatongsuk, J. A. Primbs and W. Wong: "Optimal Pairs Trading: A Stochastic Control Approach". Proceedings of the American Control Conference, 2008. http://www.nt.ntnu.no/users/skoge/prost/proceedings/acc08/data/papers/0479.pdf
  10. ^ G. Vidyamurthy: "Pairs trading: quantitative methods and analysis". Wiley, 2004.
  11. ^ "A New Approach to Modeling and Estimation for Pairs Trading". Monash University, Working Paper. http://www.finanzaonline.com/forum/attachments/econometria-e-modelli-di-trading-operativo/1048428d1238757908-spread-e-pair-trading-pairstrading_binhdo.pdf
  12. ^ Rad, Hossein; Low, Rand Kwong Yew; Faff, Robert (2016-04-27). "The profitability of pairs trading strategies: distance, cointegration and copula methods". Quantitative Finance. 16 (10): 1541–1558. doi:10.1080/14697688.2016.1164337. ISSN 1469-7688. S2CID 219717488.