↓ Skip to main content

Recent

Implied Volatility Surface Construction from Local Volatility — Dupire Formula Verification

Implied Volatility Surface Construction from Local Volatility — Dupire Formula Verification

The volatility surface is the cornerstone of modern option pricing. Market participants quote prices in terms of implied volatility rather than price, and pricing models must reproduce this surface to be viable. In this post, we build an implied volatility surface from a local volatility model: simulate paths under the local volatility dynamics, compute call prices, and invert Black-Scholes numerically. Along the way we state Dupire’s formula correctly — it maps option prices to local volatility, not the other way around — together with Gatheral’s formula, which is the known analytical bridge from the implied surface to the local one. Every number shown comes from a reproducible NumPy script with numpy.random.default_rng(42).
Value at Risk Backtesting in Python: Comparing Historical, Parametric, and Monte Carlo Methods

Value at Risk Backtesting in Python: Comparing Historical, Parametric, and Monte Carlo Methods

Value at Risk (VaR) is the most widely used measure of market risk in finance. It answers a simple question: What is the worst loss I can expect over a given horizon with a certain confidence level? For example, a 1-day 99% VaR of $1M means that, on average, only 1 out of 100 days should see a loss exceeding $1M. But VaR is only useful if it actually captures real losses at the claimed frequency. This is where backtesting comes in: we check whether the number of exceedances (days when losses exceeded the VaR forecast) matches the confidence level. In this post, we implement three VaR estimation methods from scratch in NumPy: Historical VaR — ranking past returns and picking the quantile Parametric (Delta-Normal) VaR — assuming returns are normally distributed Monte Carlo VaR — simulating future paths from a calibrated model We then backtest each method against a known portfolio and verify that the coverage rates match the claimed confidence levels.
Black-Litterman Portfolio Optimization in Python: Market Equilibrium as a Bayesian Prior

Black-Litterman Portfolio Optimization in Python: Market Equilibrium as a Bayesian Prior

Traditional Mean-Variance Optimization (Markowitz) is famous for producing extreme, unstable portfolio weights: tiny changes in expected returns or the covariance matrix move the allocation dramatically. The Black-Litterman model attacks that from an unexpected direction — instead of improving the return estimates, it changes where they come from: start from market equilibrium and treat your own views as noisy Bayesian evidence around it. In this post we implement Black-Litterman from scratch in NumPy, and verify three things: that naive mean-variance really does collapse onto corner solutions, that Black-Litterman weights survive 200 bootstrapped re-estimations essentially unchanged, and — the part most demos skip — that the Black-Litterman portfolio actually has a higher Sharpe ratio out of sample, verified over 50 fresh simulated years.
The Quant's Sourcebook: Open Financial News, Data & NLP Feeds That Still Work (2026 Edition)

The Quant's Sourcebook: Open Financial News, Data & NLP Feeds That Still Work (2026 Edition)

Every quant accumulates a pile of bookmarks for research: squawk feeds, economic calendars, 13F screeners, data APIs, NLP papers. This is mine — cleaned up, tested this week, and reorganized into what a buy-side research workflow actually consumes: newswires first, releases second, data third, text-mining last. Every link was checked at the time of writing; links that are paywalled, login-gated, or bot-gated are marked as such, and the ones that died are in a graveyard section at the end so you don’t waste an afternoon the way I once did.