A personal research repository exploring quantitative finance, model risk, and machine learning for derivatives pricing and hedging.
π Note: This project is unrelated to QuantLib.org. It is a private learning and experimentation space by AlmostAnna.
This repo contains:
- Classical models: Black-Scholes, Heston
- Hedging analysis: Error decomposition, discrete trading
- Machine learning: Buehler-style deep hedging with transaction costs
- Stress testing: Sensitivity to volatility misspecification, rebalancing frequency
All code is organized to support reuse, clarity, and diagnosticsβnot just one-off experiments.
quantlab/
βββ notebooks/
β βββ models/ # Stochastic volatility, etc.
β βββ model_risk/ # Hedging errors, replication failure, Greeks
β βββ ml/ # Deep hedging, training diagnostics
βββ src/ # Reusable quant primitives (installable as 'quantlab')
| βββ quantlab/
β βββ calibration/
| βββ data/ # Synthetic data generation
β βββ hedging/ # Greeks, naive strategies
| βββ instruments/
β βββ market_data/
| βββ ml/ # Models, metrics
| βββ models/
| βββ pricing/
| βββ sim/ # MC simulations
β βββ utils/
βββ ml/ # ML-specific training and evaluation
βββ tests/ # Tests
βββ pyproject.toml # For editable install
βββ environment.yml
- Clone and install:
git clone https://github.com/AlmostAnna/quantlab.git cd quantlab pip install -e .[dev]
- Clarity over cleverness: Code should speak for itself.
- Model risk matters: Every assumption is surfaced and tested.
- ML as a tool, not a black box: Diagnostics, baselines, and stress tests are first-class citizens.
Β© 2025 - 2026 AlmostAnna β For learning, reflection, and professional growth.