log
2026 · 11 · 21
Flip one coin 100 times and you can say if it is biased. Flip 1,000 coins and the best fair coin beats the biased one almost every time. The multiple comparisons problem from a trading angle: why the best of many backtests is mostly the luckiest one.
python monte-carlo statistics trading
2026 · 03 · 01
Your friend plays two losing games at the casino, switches between them at random, and starts winning. Parrondo's paradox — where two individually losing strategies combine into a winner — explained through simulation, mod-3 ratchet dynamics, and a parameter sweep.
python monte-carlo statistics
2026 · 02 · 20
When the zombie apocalypse breaks out and civilisation has collapsed you need π. But all you have is a shotgun. A look at importance sampling through the lens of a gloriously absurd 2014 paper — and a Python simulation showing how you can estimate π with any distribution.
monte-carlo statistics python