Quantitative Strategies
Quantitative Strategies
Quantitative Strategies
Week 8
traders.berkeley.edu
Announcements
In the end, you clear out your position (sell off all stocks, buy back all shorted positions)
at whatever price the stock ends up at.
What’s the distribution of your PnL? You don’t need to give the parameters of the
distribution.
Question of the Day Hint
Say you’ve got a buy on day k, then that buy contributes +1 for every buy - sell
for all the days before it.
Similarly, it contributes (total buys after day k minus total sells after day k) to the
total pnl.
At this point, can you write an equation for the total PnL?
● -1 because we don’t want to account for today (the day of the buy or sell).
$50
today tomorrow
What trade(s) do we make?
$70 ●None!
0 %
6 ●Expected value of tomorrow’s price is
(0.4)*50+(0.6)*70 = $62
$62 ●Means stock is fairly priced –we expect to
make $0 (on average)
40
%
$50
today tomorrow
What trade(s) do we make?
$70
0 % ●None!
6
$62
40
%
$50
today tomorrow
What actually happened?
When would we have made a trade?
●If the market was mispricing the stock
When would we have made a trade?
●If the market was mispricing the stock
●Ex: stock currently trading at $64,
all else same
What trade(s) do we make?
$70
60%
$64
40
%
$50
today tomorrow
What trade(s) do we make?
$70
60% ●Let’s short the stock!
●What happens on average tomorrow?
$64
●(0.6)*(-6) + (0.4)*(14) = +$2 profit
40
%
$50
today tomorrow
What trade(s) do we make?
$70
60% ●Let’s short the stock!
●What happens on average tomorrow?
$64
●(0.6)*(-6) + (0.4)*(14) = +$2 profit
●This is only expected profit – not
40
real profit!
%
$50
today tomorrow
What can we do?
●We see a $2 expected profit opportunity in the market.
Is there a way we can “lock in” our expected profits?
What can we do?
●We see a $2 expected profit opportunity in the market.
Is there a way we can “lock in” our expected profits?
●If we have the option to buy (or not buy at all) at $62 (strike
price),
○ Buy it when it goes to $70 for $62 – making +$8
○ Not buy it when it goes to $50 – making $0
Fair price of the call option: $4.80
●Stock is going to either $70 (60% chance) or $50 (40% chance)
●If we have the option to buy (or not buy at all) at $62 (strike
price),
○ Exercise option (buy stock for $62) when it goes to $70 – making +$8
○ Not exercise at $62 when it goes to $50 – making $0
●If we have the option to sell (or not sell at all) at $62 (strike price),
○ Not exercise at $62 when it goes to $70 – making $0
○ Exercise it (sell it for $62) when it goes to $50 – making +$12
● Muddled definition
● Further reading: Ch. 17, Trading and Exchanges Markets and Microstructure
Real Life Arbitrage
arbitrageur
Exchange Arbitrage
● Common in crypto!
Basis Arb
● ES, SPY
○ ES is 50x S&P index and SPY is 0.1x S&P Index
ES SPY
Bid / Ask
3200 / 3220 3190 / 3199 Bid Size x Ask Size
50 x 50 4000 x 4000
Bid / Ask
Bid Size x Ask Size
Crude Oil Refined Oil Oil
65 / 66 49 / 50 117 / 118
11 x 11 10 x 12 1 x 100
Foreign Exchange Example
0.70 USD / SGD, 0.64 AUD / USD, 1.11 SGD / AUD
(Assume 0% interest)
Arb!
Merger Arbitrage
Elon said he’s taking TWTR private for $54.20.
Elon whispered in your ear he’s secured funding and has sent the paperwork over.
The deal is going through!
● Basis risk
● Holding/time risk
● Slow convergence
https://thehedgefundjournal.com/c
orrelation-is-not-always-what-it-se
ems/
Trading Strategies
(Quick note)
Categories of Strategies
● Basis arbitrage (recap)
○ ETF arbitrage
○ Foreign exchange arbitrage
● Options market making / trading (previous lectures)
● Statistical arbitrage (briefly today)
● HFT trading (later)
● Rates (fixed income), commodities, credit arbitrage / trading etc.
● ES, SPY
● S&P Basket vs SPY
● Korean ETF vs Korean stocks
● LME Oil (UK) vs CME Oil (US)
● …
● Major players
Foreign Exchange (Forex) Arbitrage
Triangular arbitrage
● EURGBP
● → GBPUSD
● → EURUSD = 1.5
Major players
How do I make my trading strat better than yours?
Develop an “edge”. This is what you’ll be doing.
Client relationships
Speed, smarts (alpha)
(this is a joke)
Statistical Arbitrage
Recall Pairs Trading
Coca-cola and Pepsi, Apple and Google, Visa and Mastercard should move
together.
Can I build a trading firm out of just this strategy? What issues might arise?
● Too easy!
● Doesn’t happen very often.
● Limited capital deployment
Let’s Breakdown Pairs Trading
Visa is trading cheaper than Mastercard. Buy Visa, sell Mastercard.
Reward: Captured an alpha / edge / return / profit. Bought relatively lower (with
intention to sell higher).
● Too easy!
● Doesn’t happen very often.
● Limited capital deployment
Statistical Arbitrage Optimization Problem
Given a set of n assets, maximize reward (score) subject to constraints on a set of
risks.
Steps:
1. Select assets.
2. Calculate exposure to each pre-determined risk for each asset.
3. Calculate score/reward for each asset.
4. Optimize -> optimized portfolio
5. Execute trades.
6. Repeat (usually every market open).
Statistical Arbitrage Example
Asset Optimization Reward Risk 1 (Beta 1) Risk 2 (Beta 2)
Name Decision (Score)
Asset 1 Buy 1 1 1 1
Smarts
● Reward model
● Risk model. Barra model.
● Optimization
Execution
Frequency of trading
Questions?
https://tinyurl.com/qdlec8