Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

quantlab

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.


What’s Inside

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.


Structure

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

Getting Started

  1. Clone and install:
    git clone https://github.com/AlmostAnna/quantlab.git
    cd quantlab
    pip install -e .[dev]

Philosophy

  • 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.

About

A personal research repository exploring quantitative finance, model risk, and machine learning for derivatives pricing and hedging.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /