Latest posts
-
Geometric Brownian Motion in Python: Simulate and Test Stock Price Paths
Simulate geometric Brownian motion in Python, check the mean and median of stock prices, and choose the right drift for scenarios or option pricing.
-
Python for Quantitative Finance: 3 Projects to Build First
Build three Python projects for quantitative finance: an option pricer, a Monte Carlo validation report and a delta-hedging experiment, with practical checks.
-
0DTE Options: A 95% Win Rate Is a Design Choice
Two out of every three SPX options traded today expire today. Cboe reported 0DTE contracts at a record 66.2% of total SPX volume in July 2026, up from roughly 5% in 2016. Same-day expiries now account for close to 30% of the entire US options market. With that volume has come a particular kind of…
-
What Is a Good Sharpe Ratio? I Got 1.7 From Pure Noise
The usual answer is that above 1 is good, above 2 is excellent, and above 3 is exceptional. I generated ten thousand trading strategies with mathematically zero edge — pure noise, no signal, nothing to find — and backtested each over five years of daily data. The best one came back with a Sharpe ratio…
-
Correlation Matrix Not Positive Definite? Diagnose Cholesky Errors in Python
Cholesky failed? Use Python to distinguish an invalid correlation matrix from a valid singular one, trace the cause and choose a repair for Monte Carlo simulation.
-
What Is Value at Risk (And Why It Doesn’t Add Up)
Value at Risk is the number that sits at the top of every bank’s daily risk report, drives regulatory capital, and gets quoted in board meetings by people who could not define it. It is also not a measure of risk, in a sense that can be made precise. Here is a portfolio where splitting…
-
Your Volatility Surface Interpolation Creates Arbitrage
Take five market quotes for one-year options. Check them: every butterfly you can build from them costs money, so the quotes are arbitrage-free. Fit a cubic spline through the implied volatilities, which is what most desks and most textbooks do. The resulting surface contains a butterfly that costs minus one cent. A portfolio that can…
-
You Need 400 Years of Data to Estimate an Expected Return
A quant can measure the volatility of a stock to four decimal places from one year of intraday data. Measuring its expected return to within one percentage point takes four hundred years. Both numbers come from the same model, the same price series and the same estimator. The asymmetry is not a data problem, and…
-
Antithetic Variates Can Increase Your Variance
Every Monte Carlo tutorial recommends antithetic variates. Pair each draw with , average the two payoffs, and get a lower variance for free. It costs four lines of code and no thought. On a straddle, it makes things worse. Not marginally worse. To match the accuracy of plain Monte Carlo you need 1.64 times as…
-
Your CIR Simulation Produces Negative Rates
The Cox-Ingersoll-Ross process is the standard answer to a standard complaint about Vasicek: the short rate should not go negative, and CIR’s diffusion term shuts off the volatility as the rate approaches zero. The boundary is respected. That is the selling point. Then you discretise it, and 88% of your paths go negative. The instinct…