Lecture23 Pairs Trading
Lecture23 Pairs Trading
Pairs Trading
Steven Skiena
Department of Computer Science
State University of New York
Stony Brook, NY 117944400
http://www.cs.sunysb.edu/skiena
Pairs Trading
This strategy was pioneered by Nunzio Tartaglias quant
group at Morgan Stanley in the 1980s. It remains an
important statistical arbitrage technique used by hedge funds.
They found that certain securities were correlated in their
day-to-day price movements.
When a well established price correlation between A and B
broke down, i.e. stock A traded up while B traded down,
they would sell A and buy B, betting that the spread would
eventually converge.
This divergence between pairs may be caused by temporary
supply/demand changes, when a single large investor changes
position in a single security.
Identifying Pairs
Correlation analysis can be used to identify interesting
potential pairs, but beware of spurious correlation.
Competing companies in the same sector make natural
potential pairs.
Certain companies have several classes of shares trading
simultaneously (e.g. common and preferred) which should
move largely in unison.
Certain companies may be simultaneously traded on multiple
exchanges or have international subsidiaries (e.g. Dutch and
Royal Shell)
A general or sector index portfolio (ETF) might be used as
one component of a pair.
The price ratio is flat long term but fluctuates day to day.
The trailing dip would suggest buying Intel and shorting the
semiconductor index (SMH).
The ratio reverting to its historical mean suggests a logical
time to exit both positions.
Strategy Specification
Pairs were formed based on price correlations over a 12month period, starting every month.
Each pair was then traded (possibly multiple times) over the
next six months.
The pair was bought when its ratio spread was outside
two standard deviations of its 12-month spread. If normally
distributed, this should happen about 5% of the time.
Pair Formation
Stocks which did not trade on at least one day in the formation
period were eliminated to ensure liquidity.
A matching partner for each security was found by minimizing the squared deviations between the two normalized daily
price series, where dividends were reinvested.
Separate experiments were done to restrict pairs to the same
industrial sector.
The pairs were ranked by distance, and those within given
rank traded.
Return Computation
That pairs open and close at various points during the sixmonth trading period complicates evaluation of return.
Pairs that open and converge will have positive cash flows;
Pairs that open but do not converge will have positive or
negative cash flows on the last day of the trading interval
when all positions are closed out.
All positions are marked-to-market daily to analyze daily
returns.
Results
Pairs portfolio
Avg. monthly return
Return on committed capital
Avg. monthly return (1 day delay)
Return on committed capital
Top 5
0.01308
0.00784
0.00745
0.00463
Top 20
0.01436
0.00805
0.00895
0.00520
101 to 120
0.01081
0.00679
0.00795
0.00503
All
0.01104
0.00614
0.00715
0.00396
Trading Statistics
Pairs portfolio
Average price deviation trigger
Average pairs traded per period
Average round-trip trades per pair
Average time pairs are open
Average weight of stocks in top five size deciles
Average weight of pairs from different deciles
Utilities
Transportation
Financials
Industrials
Mixed sector pairs
Top 5
0.04758
4.81
2.02
3.75
0.91
0.66
0.72
0.02
0.11
0.15
0.20
Top 20
0.05284
19.30
1.96
3.76
0.91
0.69
0.71
0.02
0.13
0.14
0.22
101120
0.07560
19.41
1.78
3.98
0.79
0.75
0.32
0.02
0.26
0.40
0.44
All
0.16888
1944.22
1.62
3.97
0.62
0.82
0.08
0.03
0.16
0.73
0.33
Monthly Returns