What problem does it solve?
The domain floor for writing correct quantitative code. The job is to get the math conventions and the numerics right — a result that is off by an annualization factor, a sign, or a day-count basis is wrong even when the code is clean.
Core Features & Use Cases
- State your conventions: Every quant number carries hidden assumptions: compounding frequency, day-count, annualization factor, sign of a cash flow, whether a rate is decimal or percent. Make them explicit in code and comments; most "bugs" are convention mismatches, not logic errors.
- Validate against closed form: When a formula has an analytic answer (Black–Scholes for a European option, analytic VaR for a normal P&L, a bond's price from its yield), test the implementation against it before trusting it on real data.
- Numerical stability is correctness: Floating-point math is not real-number math. Work in log-space for products of probabilities, avoid subtracting nearly equal numbers, and watch ill-conditioned matrices.
- Library selection: Use numpy, scipy, pandas, statsmodels; rely on established libraries for curves, probabilistic models, and linear algebra.
Quick Start
Provide a simple Black-Scholes pricing problem and verify the computed price against the analytic value.