Day 270 — Monte Carlo, and the variance reduction that pays for itself
Monday, 3 May 2027 · Week 39 of 52 · Derivatives · Study day · 60 min
Every model this week beyond Black-Scholes prices by simulation, and a technique that cuts the standard error by a factor of ten for almost no extra code is worth an hour once.
What you should be able to do tonight
- Implement antithetic variates and a control variate, and report the variance reduction factor for each.
- Say which technique works when, and why a control variate needs a correlated instrument with a known price.
Tasks 60 min
35 min Implement both in qlib/derivatives/mc.py: antithetic paths, and a control variate using the underlying’s terminal value or a Black-Scholes-priced option whose value you know exactly. Report the standard error with and without each, and the effective speedup in paths.
25 min Apply it to something without a closed form: price a path-dependent option, such as an Asian or a barrier, under Heston, using the geometric-average Asian’s closed form as a control variate. That combination is the standard trick and it is worth having implemented once.
Resources
Deliverable
qlib/derivatives/mc.py with antithetic and control variate estimators, and measured variance reduction factors on two problems.
Checkpoint
You use a control variate and the standard error barely moves. What went wrong?
Prepare for tomorrow
Ten minutes tonight so Day 271, Tuesday, 4 May 2027 starts clean. This is what the evening email sends you.
Take your day 247 binomial tree and try to price an American put with it.
The only change is one comparison at each node.
Write down what that comparison is before you code it.