Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
yuanc@outlook.com
Agenda
Statistical Arbitrage
Basic idea
Basic idea: Step 1
ra Pat Pat1
rb Pbt Pbt1
St Pat Pbt
St1 Pat1 Pbt1
r ra rb S S t t1
s pa * pb
: Hedge ratio
How to identify good pairs
Factor pa
Price ratio:
pb
Spread: s pa * 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
Transaction cost
Trade execution
Time horizon
etc
Log of price
Dynamic
Neutralized with same exposure to risk
factors
Experiments with R language
Source Code:
https://github.com/artyyouth/r-quant
Stocks
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 doesnt work at all
So
Spread!s pa * pb
* Only accept potential pairs with p-value < 0.011 in ADF test
MO & WMT PFE & RTN F & MET PFE & UNP
Beta, Mean, Standard deviation are keep changing along the time!
After adjust Beta, Mean, SD
Muc
h be
t t er
!
Summary
Reference
Thank
You!