Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Guide
Derivatives pricing
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Implied volatility and the volatility smile14Stochastic volatility and the Heston model15Static replication: Breeden–Litzenberger and Carr–Madan16Exotic options: barriers, Asians and digitals
Portfolio & risk
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08Value at Risk and expected shortfall
Fixed income
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Bond futures and the cheapest-to-deliver06Interest rate swaps07Callable bonds and negative convexity08Credit risk: default probabilities and credit spreads
Corporate finance
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04The weighted average cost of capital05Capital structure and the Modigliani–Miller theorems06Discounted cash flow valuation07Relative valuation with multiples08Real options: the value of flexibility
Stochastic models
01Random walks and Brownian motion02Probability spaces, σ-algebras and random variables03Filtrations, adapted processes and stopping times04Conditional expectation and martingales05Properties of Brownian motion06The reflection principle and first passage times07The Brownian bridge08The Itô integral09Itô's lemma10Kolmogorov equations and the Feynman–Kac formula11Change of measure and Girsanov's theorem12Monte Carlo option pricing13Simulating SDEs: the Euler–Maruyama scheme14Mean reversion: Ornstein–Uhlenbeck and Vasicek15Jumps and the Merton jump-diffusion model
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guide

Lessons meant to be read in order. Each one only uses what came before it.

Stochastic models

Brownian motion, geometric Brownian motion, Itô's lemma and Monte Carlo.

Start
0 of 15 read
  1. 01Random walks and Brownian motionThe coin-flip walk, variance that grows linearly in time, and its limit: Brownian motion.
  2. 02Probability spaces, σ-algebras and random variablesSample space, σ-algebra, probability measure, measurable maps and the σ-algebra generated by a variable.
  3. 03Filtrations, adapted processes and stopping timesInformation that grows over time, adapted and predictable processes, and when a random time is a stopping time.
  4. 04Conditional expectation and martingalesConditional expectation given the past, fair games, why no betting strategy beats a martingale, and discounted prices under Q.
  5. 05Properties of Brownian motionDefinition, the Gaussian characterisation, scaling, time inversion, the Markov property, quadratic variation and rough paths.
  6. 06The reflection principle and first passage timesThe strong Markov property, the law of the running maximum and the density of the first passage time.
  7. 07The Brownian bridgeBrownian motion with a fixed endpoint: construction, covariance, independence and applications.
  8. 08The Itô integralSimple integrands, the Itô isometry, the martingale property and the derivation of ∫W dW = (W² − t)/2.
  9. 09Itô's lemmaQuadratic variation, the chain rule for Brownian motion, and the −½σ² drift of the log price.
  10. 10Kolmogorov equations and the Feynman–Kac formulaThe generator of a diffusion, the backward equation, and how an expectation becomes the solution of a PDE.
  11. 11Change of measure and Girsanov's theoremReweighting probabilities with a density, equivalent measures, Girsanov's theorem and the market price of risk.
  12. 12Monte Carlo option pricingEstimating option prices by simulation: standard error, confidence intervals and convergence to Black–Scholes.
  13. 13Simulating SDEs: the Euler–Maruyama schemeDiscretising a stochastic differential equation, strong and weak error, step size, and checking against the exact GBM solution.
  14. 14Mean reversion: Ornstein–Uhlenbeck and VasicekA process pulled toward a long-run level, its exact solution and stationary distribution, and the short rate in the Vasicek model.
  15. 15Jumps and the Merton jump-diffusion modelThe Poisson process, compound jumps, the Merton model, and how jumps create fat tails and a smile.

Check yourself

Questions from the lessons of this series. Open a lesson's group whenever you want to test yourself.

Probability spaces, σ-algebras and random variables3 questionsRe-read the lesson →
Check yourself

On the die Ω={1,…,6}\Omega = \{1, \ldots, 6\}Ω={1,…,6}, how many events does the σ-algebra generated by the partition {1,2},{3,4},{5,6}\{1,2\}, \{3,4\}, \{5,6\}{1,2},{3,4},{5,6} contain?

Check yourself

For which σ-algebra on the die is X(ω)=1{ω≥5}X(\omega) = \mathbf{1}\{\omega \ge 5\}X(ω)=1{ω≥5} measurable?

Check yourself

On the fair die let X(ω)=ωX(\omega) = \omegaX(ω)=ω and let G\mathcal{G}G be generated by {1,2,3},{4,5,6}\{1,2,3\}, \{4,5,6\}{1,2,3},{4,5,6}. What is Var⁡(E[X∣G])\operatorname{Var}(\mathbb{E}[X \mid \mathcal{G}])Var(E[X∣G])?

Filtrations, adapted processes and stopping times3 questionsRe-read the lesson →
Check yourself

With three fair coin tosses and Fk=σ(ξ1,…,ξk)\mathcal{F}_k = \sigma(\xi_1, \ldots, \xi_k)Fk​=σ(ξ1​,…,ξk​), how many events does F2\mathcal{F}_2F2​ contain?

Check yourself

Let WkW_kWk​ be a simple random walk observed for k=0,1,…,10k = 0, 1, \ldots, 10k=0,1,…,10, with its natural filtration. Which of these random times is a stopping time?

Check yourself

Three fair coin tosses; τ\tauτ is the time of the first head (∞\infty∞ if none). What is P(τ≤2)\mathbb{P}(\tau \le 2)P(τ≤2)?

Conditional expectation and martingales3 questionsRe-read the lesson →
Check yourself

Toss a fair coin three times and let YYY be the number of heads. The first toss shows heads. What is E[Y∣F1]\mathbb{E}[Y \mid \mathcal{F}_1]E[Y∣F1​]?

Check yourself

Which of these processes is a martingale?

Check yourself

The unlimited doubling strategy stops at the first win, which happens with probability 1, and then has gained exactly 1. Why does this not contradict the optional stopping theorem?

Properties of Brownian motion3 questionsRe-read the lesson →
Check yourself

Using Cov⁡(Ws,Wt)=min⁡(s,t)\operatorname{Cov}(W_s, W_t) = \min(s,t)Cov(Ws​,Wt​)=min(s,t), compute Cov⁡(W2, W3−W1)\operatorname{Cov}(W_2,\, W_3 - W_1)Cov(W2​,W3​−W1​).

Check yourself

Which of these processes is again a standard Brownian motion?

Check yourself

Split [0,1][0, 1][0,1] into n=100n = 100n=100 equal steps. What is Var⁡(∑i(ΔWi)2)\operatorname{Var}\big(\sum_i (\Delta W_i)^2\big)Var(∑i​(ΔWi​)2)?

The reflection principle and first passage times3 questionsRe-read the lesson →
Check yourself

What is P(M4≥1)\mathbb{P}(M_4 \ge 1)P(M4​≥1), the probability that Brownian motion reaches level 1 by time 4?

Check yourself

For a>0a > 0a>0, which statement about τa=inf⁡{t≥0:Wt=a}\tau_a = \inf\{t \ge 0 : W_t = a\}τa​=inf{t≥0:Wt​=a} is correct?

Check yourself

Compute P(M1≥1, W1≤0)\mathbb{P}(M_1 \ge 1,\ W_1 \le 0)P(M1​≥1, W1​≤0).

The Brownian bridge3 questionsRe-read the lesson →
Check yourself

For a standard Brownian bridge on [0,1][0, 1][0,1], what is the variance Var⁡(B1/2)\operatorname{Var}(B_{1/2})Var(B1/2​) at the midpoint?

Check yourself

For a standard Brownian bridge on [0,1][0, 1][0,1], compute Cov⁡(B1/4,B3/4)\operatorname{Cov}(B_{1/4}, B_{3/4})Cov(B1/4​,B3/4​).

Check yourself

A standard Brownian bridge is pinned at 0 at both t=0t = 0t=0 and t=1t = 1t=1. What is the probability that it reaches the level a=1a = 1a=1 somewhere in between?

The Itô integral3 questionsRe-read the lesson →
Check yourself

Use the Itô isometry to compute Var⁡(∫02Ws dWs)\operatorname{Var}\big(\int_0^2 W_s\,dW_s\big)Var(∫02​Ws​dWs​). (The integral has mean zero.)

Check yourself

A Brownian path ends at W1=1.3W_1 = 1.3W1​=1.3. What is the value of the Itô integral ∫01Ws dWs\int_0^1 W_s\,dW_s∫01​Ws​dWs​ along this path?

Check yourself

Why do models of trading gains use the Itô (left-point) integral rather than the Stratonovich (midpoint) integral?

Itô's lemma2 questionsRe-read the lesson →
Check yourself

A Brownian path on [0,2][0, 2][0,2] is cut into ever finer steps. What does the sum of squared increments ∑(ΔW)2\sum (\Delta W)^2∑(ΔW)2 approach?

Check yourself

A stock follows geometric Brownian motion with μ=12%\mu = 12\%μ=12% and σ=40%\sigma = 40\%σ=40%. At what rate per year does its log price drift? Answer in percent.

Kolmogorov equations and the Feynman–Kac formula3 questionsRe-read the lesson →
Check yourself

The Ornstein–Uhlenbeck process solves dXs=−κXs ds+σ dWsdX_s = -\kappa X_s\,ds + \sigma\,dW_sdXs​=−κXs​ds+σdWs​. What is its generator?

Check yourself

Solve ∂τu=12σ2 ∂xxu\partial_\tau u = \tfrac12\sigma^2\,\partial_{xx} u∂τ​u=21​σ2∂xx​u with u(0,x)=x2u(0, x) = x^2u(0,x)=x2, σ=0.5\sigma = 0.5σ=0.5. What is u(τ,x)u(\tau, x)u(τ,x) at τ=2\tau = 2τ=2, x=2x = 2x=2?

Check yourself

In the Black–Scholes model with S=100S = 100S=100, r=5%r = 5\%r=5%, σ=20%\sigma = 20\%σ=20%, a call has C=10.4506C = 10.4506C=10.4506, Δ=0.6368\Delta = 0.6368Δ=0.6368 and Γ=0.018762\Gamma = 0.018762Γ=0.018762. Use the Black–Scholes equation to find ∂C/∂t\partial C/\partial t∂C/∂t (per year).

Change of measure and Girsanov's theorem2 questionsRe-read the lesson →
Check yourself

In a one-step tree the real probability of the up move is p=0.5p = 0.5p=0.5 and the risk-neutral one is q=0.4q = 0.4q=0.4. What is the density Zu=dQ/dPZ_u = d\mathbb{Q}/d\mathbb{P}Zu​=dQ/dP in the up state?

Check yourself

A stock has μ=12%\mu = 12\%μ=12% and σ=25%\sigma = 25\%σ=25%, and the risk-free rate is r=4%r = 4\%r=4%. What is the market price of risk θ\thetaθ used in Girsanov's theorem?

Monte Carlo option pricing2 questionsRe-read the lesson →
Check yourself

With N=10 000N = 10\,000N=10000 draws the standard error of a price estimate is 0.200.200.20. How many draws give a standard error of 0.050.050.05?

Check yourself

A Monte Carlo estimate is 10.4010.4010.40 with standard error 0.150.150.15. What is the upper end of the 95% confidence interval?

Simulating SDEs: the Euler–Maruyama scheme2 questionsRe-read the lesson →
Check yourself

One Euler step for geometric Brownian motion with S0=100S_0 = 100S0​=100, μ=8%\mu = 8\%μ=8%, σ=40%\sigma = 40\%σ=40%, Δt=0.25\Delta t = 0.25Δt=0.25 and the draw Z=−0.5Z = -0.5Z=−0.5. What is S1S_1S1​?

Check yourself

You increase the number of Euler steps from 16 to 256. Roughly what happens to the strong error?

Mean reversion: Ornstein–Uhlenbeck and Vasicek2 questionsRe-read the lesson →
Check yourself

An interest rate follows an Ornstein–Uhlenbeck process with κ=2\kappa = 2κ=2 per year. How many years does it take for the expected gap to θ\thetaθ to halve?

Check yourself

Double the speed of mean reversion κ\kappaκ and keep σ\sigmaσ fixed. What happens to the standard deviation of the stationary distribution?

About this tool

Narrative guides that connect the interactive tools into a story: financial instruments and their payoffs, the no-arbitrage principle, risk-neutral pricing, delta hedging and the road to the Black–Scholes formula. Each guide links to the labs where you can try the ideas yourself.

Frequently asked questions

In what order should I read the guides?

Start with instruments and no-arbitrage, then risk-neutral pricing and delta hedging; together they lead to the Black–Scholes formula.

Who are the guides for?

Students of financial and insurance mathematics and anyone who wants intuition behind derivatives pricing, not just the formulas.