Professional Documents
Culture Documents
Final Lecture Pairs Trading
Final Lecture Pairs Trading
University of Oxford
Oxford-Man Institute
Álvaro Cartea
alvaro.cartea@maths.ox.ac.uk
Xt+1 = α + β Xt + σ ϵt , (1)
1815
Amazon
1810
Midprice
1805
1800
2 / 10
Comovements
1425
1.004 Amazon
Google
1420
1.002
Midprice/mean
1 1415
0.998
1410
0.996
1405
0.994
1400
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
Time
Figure: GOOG and AMZN on July 13, 2018 for the whole day of trading: (left
panel) midprices; (right panel) the value a portfolio which is long 1.04 shares of
GOOG and short 0.7687 shares of AMZN (i.e., the co-integration factor). The
dashed line indicates the mean-reverting level, the dash-dotted lines indicate
the 2-standard deviation bands.
3 / 10
Simple strategy
4 / 10
Portfolio with two assets
5 / 10
Co-integration of prices
Assume that the prices (or midprices) of the securities are given by a
vector autoregression of order one, i.e., VAR(1), thus
6 / 10
Back to one asset
7 / 10
Pairs trading
S t = A + B S t−1 + ϵt , (6)
∆S t = κ (θ − S t−1 ) + ϵt , (7)
8 / 10
Pairs trading
Third, to devise a strategy that benefits from prices that revert to a
mean level we diagonalise the matrix κ. Thus, we write
κ = U Λ U −1 , (8)
where
κ 0
Λ= 1 (9)
0 κ2
contains the eigenvalues of κ, and U contains the eigenvectors of κ.
The next step is to premultiply (7) by U −1 and write
∆S̃ t = κ̃ θ̃ − S̃ t−1 + ϵ̃t , (10)
where S̃ = U −1 S, θ̃ = U −1 θ h, and κ̃
i = Λ.
1 2 ⊺
The new vector of prices S̃ = S̃ S̃ are prices of two portfolios. Each
¯
portfolio contains a linear combination of shares in asset S A and in asset
SB.
9 / 10
100 100
80 80
60 60
40 40
20 20
0 0
-20 0 20 40 60 80 0 10 20 30 40 50 60
100 100
80 80
60 60
40 40
20 20
0 0
0 10 20 30 40 50 -10 0 10 20 30 40 50
10 / 10
(c) band = 1.0 × std.dev . (d) band = 2.0 × std.dev .