This repository contains a sequence of small, simulation-based projects designed to build intuition for probability, expected value, risk, and market microstructure.
-
Monte Carlo Expected Value
Simulates simple betting strategies to show how positive-EV strategies can appear unprofitable over short horizons due to variance. -
Gambler’s Ruin
Studies the probability of bankruptcy versus growth under finite bankroll constraints, even when the expected value is positive. -
Kelly Criterion
Explores optimal bet sizing by simulating bankroll growth under different fractions, highlighting the trade-off between growth and drawdowns. -
Market Maker v0 (Fixed Spread)
Simulates a basic market maker quoting a fixed spread and tracks inventory and P&L. -
Market Maker v1 (Adaptive Spreads)
Extends the basic market maker by adjusting spreads based on inventory to manage risk. -
Poisson Order Flow
Models order arrivals as a Poisson process and studies how arrival intensity affects inventory risk and P&L volatility. -
Volatility-Based Quoting
Introduces stochastic price movement and studies how volatility impacts optimal spreads. -
Market Making Dashboard
Integrates previous models into a single interactive environment to visualize inventory, P&L, and risk in real time.