statcurves
Tier 0 · Distributions

Normal / Gaussian

The original statcurves widget — generalized to a p-exponent bell curve — with a moments/MGF/quantile panel added underneath.

Peak
—
FWHM
—
Inflection ±
—
Show:
Distribution
Mean (μ)0.0
Variance (σ²)1.00
Shape
Exponent (p)2.00
Amplitude (A)1.00
Chart
X range±8
Y max1.5
Resolution200
Line width2
Moments · MGF · quantile / VaR (p = 2, A = 1 reading)
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = exp(μt + σ²t²⁄2)
Probability p—
Q(p)
—
—
Tier 0 · Distributions

Poisson

Counts of independent events in a fixed interval, rate λ. Discrete PMF and step CDF.

Parameter
λ (rate)4.00
Quantile / Percentile
Probability p—
Q(p)
—
PMF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = exp(λ(eᵗ − 1))
Tier 0 · Distributions

Uniform (continuous)

Flat density on [a, b]. (Discrete uniform on {1,…,n} has mean (n+1)/2, variance (n²−1)/12 — same idea, without a slider here.)

Parameters
a (lower bound)0.00
width (b − a)4.00
Quantile / Percentile
Probability p—
Q(p)
—
PDF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = (e^(tb) − e^(ta)) / (t(b−a)), M(0) = 1
Tier 0 · Distributions

Exponential

Memoryless waiting-time distribution, rate λ. Special case of Gamma(α=1, β=λ).

Parameter
λ (rate)1.00
Quantile / Percentile / VaR
Probability p—
Q(p)
—
PDF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = λ / (λ − t), t < λ
—
Tier 0 · Distributions

Gamma

Shape α, rate β. α = (E[X])² / Var(X) is the method-of-moments estimator used elsewhere in the roadmap for Heston-variance calibration.

Parameters
shape (α)2.00
rate (β)1.00
Quantile / Percentile
Probability p—
Q(p)
—
PDF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = (β / (β − t))^α, t < β
Tier 0 · Distributions

Beta

Density on (0,1), shape parameters α and β — the natural prior for a probability or a proportion.

Parameters
α2.00
β2.00
Quantile / Percentile
Probability p—
Q(p)
—
PDF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: M(t) = 1 + Σ_{k=1}^∞ ( Π_{r=0}^{k-1} (α+r)/(α+β+r) ) tᵏ/k! (no elementary closed form)
Tier 0 · Distributions

Lognormal

If ln X ~ N(μ, σ²), X is lognormal — the return distribution GBM produces. This page carries the explicit VaR = −Q(α) framing.

Parameters
μ (log-mean)0.00
σ (log-sd)0.40
Quantile / Percentile / VaR
Probability p—
Q(p)
—
PDF
CDF
Mean
—
Variance
—
Std dev
—
Skewness
—
Excess kurtosis
—
MGF: undefined for t > 0 (E[e^{tX}] = ∞) — lognormal moments are all finite, but the MGF itself does not exist. Use the characteristic function instead.
—
Tier 0 · Distributions

Joint distribution — bivariate normal

Heatmap of the joint density f(x,y) with correlation ρ, plus the two marginal densities. This is also the mechanism behind correlated Brownian motions (dW₁dW₂ = ρ dt) used later in the stochastic-vol tier.

σ₁ (X std dev)1.00
σ₂ (Y std dev)1.00
ρ (correlation)0.40
Cov(X,Y)
—
Corr(X,Y)
—
f(x,y) = 1/(2πσ₁σ₂√(1−ρ²)) · exp( −[x²/σ₁² − 2ρxy/(σ₁σ₂) + y²/σ₂²] / (2(1−ρ²)) )
Joint density heatmap
Marginal of X
Marginal of Y
Tier 1 · Foundations

LLN, CLT, σ-algebras & conditional expectation

Placed after the processes-adjacent intuition on purpose: filtrations mean more once you've seen a path you're conditioning on.

Law of Large Numbers
Base distribution
p
—
Central Limit Theorem
Sample size n5

Histogram of the standardized sample mean Z = (X̄ₙ − μ)/(σ/√n) over 2000 repeated experiments, against the N(0,1) density it converges to.

σ-algebras, filtrations & conditional expectation

A σ-algebra F on Ω is a collection of subsets closed under complement and countable union, containing Ω — it's "the set of questions you're allowed to ask." The Borel sets are the smallest σ-algebra containing all open intervals of ℝ, and an indicator function 1A(ω) is measurable with respect to F exactly when A ∈ F. A filtration (F_t)ـ{t≥0} is an increasing family of σ-algebras — the information available by time t — and E[X|F_t] is "the best F_t-measurable prediction of X." Below, X(ω) = sin(2πω) + ω on Ω = [0,1]; the coarse partition is Fcoarse, the fine partition is Ffine ⊃ Fcoarse, and E[X|F] is computed as the cell-average of X — a real, checkable number, not just a diagram.

Fine partition size8 cells
—
Tower property: E[ E[X | F_fine] | F_coarse ] = E[X | F_coarse] whenever F_coarse ⊆ F_fine
Tier 2 · Stochastic Processes

Wiener process & geometric Brownian motion

Stationary, independent Gaussian increments; quadratic variation [W]_t = t (not 0 — this is the fact Itô's lemma is built on).

Horizon T1.0
Steps N500
Drift μ0.08
Vol σ0.25
S₀100.0
—
Realized quadratic variation
—
dS = μS dt + σS dW ⇒ S_t = S₀ exp((μ − σ²/2)t + σW_t) (this is a martingale under μ = r, the risk-neutral drift — see the Black–Scholes page)
Tier 2 · Stochastic Processes

Ornstein–Uhlenbeck & optional stopping

Mean-reverting SDE, then a Monte-Carlo check of the optional stopping theorem on a symmetric random walk.

κ (mean reversion)1.00
θ (long-run mean)0.00
σ (vol)0.40
X₀2.00
Horizon T5.0
—
dX = κ(θ − X) dt + σ dW — the SDE behind the CIR variance process used later in Heston.
Optional stopping theorem — Monte Carlo check

A symmetric ±1 random walk is a martingale. Stop at τ = first time |X_t| hits the barrier. Optional stopping (for this bounded-increment, a.s.-finite τ) says E[X_τ] = X_0 = 0.

Barrier10.00
—
Tier 3 · Numerical Simulation

Discretization schemes & variance reduction

Strong convergence of Euler–Maruyama vs Milstein on GBM, then two variance-reduction techniques.

Drift μ0.10
Vol σ0.40
—
Antithetic variates

Estimating E[e^W] for W ~ N(0,1), true value e^0.5 ≈ 1.6487, using paired (Z, −Z) draws instead of independent draws.

—
Quasi-Monte Carlo (Halton sequence)

Estimating π via the quarter-circle method: plain pseudo-random points vs a low-discrepancy Halton sequence (a simple stand-in for Sobol here).

Tier 4 · Option Pricing

Black–Scholes, Greeks & put–call parity

Closed-form price under the risk-neutral measure Q, live Greeks, and an implied-vol solver.

Spot S100.00
Strike K100.00
Rate r4.00%
Vol σ25.0%
Time T (yrs)1.00y
Call
—
Put
—
Δ (call/put)
—
Γ
—
Vega (per 1%)
—
Θ/day (call/put)
—
ρ per 1% (call/put)
—
—
Implied volatility solver
Market price
—
Volatility smile

Illustrative synthetic curve only (a parabola-plus-skew around the ATM vol slider above) — not fetched market data. Real smiles need an actual options chain.

Tier 4 · MCMC

Metropolis–Hastings volatility estimation

Random-walk MH recovering a volatility parameter from returns — trace plot, posterior histogram, acceptance rate, and an autocorrelation diagnostic.

The "data" below is simulated in the browser from a chosen true σ — explicitly, not fetched market data — then MCMC tries to recover σ from the simulated returns alone.

True σ (simulate data)0.30
Iterations3000
Proposal step (log-σ)0.15
Burn-in fraction20%
—
Trace plot
Posterior histogram
Autocorrelation
Tier 5 · Stochastic Vol & Heston

Heston model & the 3D vol surface

Deliberately not rebuilt here.

This tier — CIR variance process, the Feller condition, correlated Brownians (dW₁dW₂ = ρ dt) via Cholesky, the Heston two-SDE system, its characteristic function, Gil-Pelaez Fourier inversion, least-squares calibration to implied vols, and the SVI/Dupire vol-surface work — is what the separate Heston regime dashboard already covers. Duplicating it inside this repo would fragment one working project into two half-finished ones.

What would land here if merged in: a κ/θ/ξ/ρ/v₀ slider panel driving both a live characteristic-function call price and a rotating 3D implied-vol surface, with a toggle comparing local vol (Dupire) against stochastic vol (Heston) on the same synthetic surface. Worth doing as a deliberate follow-up, not folded silently into this drop.

Pillar 6 · Breaking In

Roles, brainteasers & reading list

The part a pure math/pricing curriculum skips: what the roles actually are, and the kind of question a first-round interview actually asks.

Role map
RoleCore math barTypical interview formatDay-to-day
Quant researcherStats, probability, time series, MLTake-home data problem + brainteasers + stats theoryAlpha research, signal discovery, backtesting
Quant developerApplied math + strong CSHeavy live coding (C++/Python), some probabilityBuilding/optimizing the pricing & execution infrastructure
Quant traderMental math, probability, market intuitionMental math drills, market-making games, brainteasersRisk-taking, pricing, managing a book intraday
Quant analyst / desk quantDerivatives pricing theoryPricing-model and Greeks questions, some codingModel validation, pricing support for a trading desk

The heaviest stochastic-calculus material in this site (Heston, jump diffusion) mostly maps to quant researcher/desk quant interviews at the later rounds — first rounds across all four roles lean on the brainteasers below far more than on any SDE.

Brainteasers, with worked solutions

102 questions across 8 categories — filter by category, or leave on "All" to browse everything grouped by topic.

—

Reading list, by pillar
  • Pricing theory: Hull, Options, Futures, and Other Derivatives (the standard mechanics reference); Shreve, Stochastic Calculus for Finance I & II (the measure-theoretic rigor behind this site's Tier 1–2); Gatheral, The Volatility Surface (SVI, Heston calibration in practice)
  • Time series & econometrics: Tsay, Analysis of Financial Time Series
  • Market microstructure & pairs trading: Chan, Algorithmic Trading and Quantitative Trading; Harris, Trading and Exchanges (microstructure fundamentals)
  • Risk & backtesting pitfalls: López de Prado, Advances in Financial Machine Learning (the standard reference on backtest overfitting specifically)
  • Portfolio theory: Bodie, Kane & Marcus, Investments (CAPM, APT, and the classical portfolio-theory context)

This list points outward on purpose — each pillar page here is meant to give you the working intuition fast, then hand you off to the real textbook for depth, not replace it.