MasterMath · WISL529
Computational Finance Handbook
From the first payoff to Fourier pricing, Monte Carlo and hedging. Study the derivations, try the exercises and jump to the corresponding moments in the lectures.
Simone Testino · Spring 2026 course notes, expanded for exam revision
Start here
This handbook follows MasterMath’s Computational Finance course (WISL529, Spring 2026). It opens with payoffs and probability, builds up to the characteristic function and stochastic volatility, and ends with simulation, hedging and exotic contracts. Lectures 1–12 follow the spring course decks. Lectures 13–14 use the lecturer’s public companion series for exotics and synthesis. The chapter links distinguish the course slides from the earlier public recordings.
Read one problem in three layers
- Contract. Write what is paid, at what date, and what must be observed to determine the amount. A call holder receives . A barrier holder also needs to know whether a level was crossed.
- Model. State the dynamics, pricing measure, discount factor and state variables. A European call with deterministic and no dividends can be valued with the terminal stock law alone. A discretely monitored barrier needs joint values across monitoring dates.
- Method. Say how the mathematical value will be computed. A closed form, a PDE or a transform may use different representations of the same expectation. Simulation introduces sampling error and can also introduce time or monitoring bias.
Notation and units
| Symbol | Interpretation | Check |
|---|---|---|
| Current time, maturity, time remaining | Use years if the quoted rates are annual. | |
| Stock, strike, short rate, dividend yield and volatility | Variance rate is . Rates in formulas are decimals. | |
| Physical and pricing measures | A hedging or risk forecast can need ; a model price uses the stated pricing measure. | |
| Brownian motion, Poisson count and instantaneous variance | The symbols describe a continuous path, a jump count and a nonnegative process, respectively. | |
| Number of paths, number of time steps and a uniform step length | Use to study sampling error and to study bias. | |
| Imaginary unit, standard normal CDF, characteristic function of | and . |
The probability you will use
A random variable assigns a number to each possible outcome. Expectation takes its probability-weighted average. Variance measures squared spread around the mean. Covariance measures how two variables vary together. Write for the variance of the weighted sum . It has one term for each variable and one term for their covariance.
Independence implies zero covariance. Dependence can also occur with zero covariance. This identity will recur in portfolio variance, Brownian transformations and variance reduction.
Lecture 7 slides · PDF p. 14 · YouTube · 28:30
A conditional expectation uses information available at time . For , conditioning the time- mean on information at time recovers the time- mean.
Lecture 5 slides · PDF p. 29 · YouTube · 1:17:49
This tower rule is the reason a continuation value can be priced backwards. A standard Brownian motion has a normally distributed increment of mean zero and variance , independent of the information up to . Writing when gives the covariance of the two levels.
Lecture 2 slides · PDF p. 26 · YouTube · 1:00:57
A two-state price from scratch
Take a stock at 100. In one period it ends at 120 or 80. Cash grows by . Assume trading without friction and allow borrowing and short positions. A call struck at 100 pays 20 or 0. Let be the number of shares and the cash balance today. The stock-and-cash portfolio must match the call in both states.
Subtracting the second equation from the first gives . The down-state equation then gives , a cash borrowing. The cost today is .
Let and be the two possible terminal stock prices. The up weight makes the expected discounted stock equal its current price. It gives the same call price because expectation is linear. Only the up state contributes because the down-state payoff is zero.
The market's actual up probability can differ. The restriction makes both pricing weights positive and is the no-arbitrage condition in this model.
Lecture 2 slides · PDF p. 17 · YouTube · 38:22
Change the strike and reprice
Keep the stock states and the gross cash return .
Warm-up · Where does the covariance enter?
Let for a standard Brownian motion. Compute its variance and distribution. Check by writing it in terms of independent increments.
Worked solution
From the covariance formula, . Alternatively . It is a sum of two independent centred normal variables, with variance 2, so .
Warm-up · Rebuild the portfolio
Use the same two stock states and cash return. Price a put struck at 95, first by replication, then by the pricing weights.
Worked solution
The payoffs are 0 and 15. Subtract the two equations to get , then in the up state. The price is . The expectation gives .
1. Markets, interest rates and option payoffs
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Course introduction | 0:00 | 1–7 |
| Financial engineering | 6:06 | 8 |
| Markets and asset classes | 13:03 | 9–10 |
| Equities and dividends | 28:01 | 11–12 |
| Rates and discounting | 38:00 | 13–17 |
| Historical volatility | 1:04:00 | 18–20 |
| Contracts and payoffs | 1:12:23 | 21–22 |
The 2021 recording and the reused public slide deck carry historical logistical information. See the Spring 2026 Mastermath material for course administration.
A contract can promise a known amount, or it can pay an amount that depends on a future market observation. Start by identifying which quantity is known now, when the cash changes hands and which future quantity determines the payoff. These distinctions are the basis for every pricing method in the course.
Asset classes and trading
An equity share represents a claim on a company. A holder can earn a capital gain if the share price rises and receive a dividend if the company distributes cash. A bond is a debt claim; in the simple case it promises coupons and repayment of principal. The money market deals with short-term borrowing and lending. Foreign exchange trades one currency against another. Commodities include goods such as oil and agricultural products. A derivative's payoff depends on an underlying quantity, such as a share, an index, a commodity price, an exchange rate or an interest rate. The underlying and the derivative are separate contracts. Trading can take place on an exchange or through an over-the-counter agreement between counterparties.
Lecture 1 slides · PDF p. 11 · YouTube · 28:01
An index summarizes the movement of a specified basket, often with weights. The S&P 500 and AEX illustrate equity indexes. Regardless of the index calculation, use the relevant contract's definition of its observation and settlement values in a pricing model. A price index and a total-return index treat reinvested distributions differently.
Lecture 1 slides · PDF p. 9 · YouTube · 13:03
Moving a cash flow across time
Start with principal and an annual rate . After years, the balances under simple interest, periodic compounding and continuous compounding are , and , respectively. Periodic compounding uses periods per year and an integer number of periods.
Lecture 1 slides · PDF p. 16 · YouTube · 38:00
The continuous factor is the limit of the periodic factors. It also solves with . A known payment at time has value at time . With constant , this discount factor is . For a deterministic rate that varies with time, integrate the rate between payment dates.
An effective annual rate and a continuously compounded rate describe the same annual growth when . A term structure supplies discount factors for several maturities. The constant-rate formula is a modelling assumption. Loans and traded bonds can also reflect premiums for default or liquidity. For positive rates the discount factor is below one. If the rate is negative, it can be above one.
Worked example. For a promised €250 in two years at a quoted continuous rate of 4%, the current value is . Applying the factor to the current amount recovers the promise at maturity.
Lecture 1 slides · PDF p. 17 · YouTube · 38:00
Returns and volatility
If the price moves from to , the simple price return is . For a cash dividend paid during the interval, one simple holding-period return is , assuming the dividend is kept as cash. The log price return adds across adjacent intervals. Volatility is a standard deviation; the variance is . Under the model of independent increments with the same daily variance, 252 daily intervals have annualized standard deviation times the daily value. Dependence, changing volatility and jumps can complicate that extrapolation. Later lectures distinguish historical estimates from implied volatility, which is inferred from an option price.
Lecture 1 slides · PDF p. 18 · YouTube · 1:04:00
A call and a put
Lecture 1 slides · PDF p. 21 · YouTube · 1:12:23
The short side has the negative payoff. The premium is paid at an earlier date. To calculate a maturity profit, carry the premium to expiry before subtracting it from the realized payoff. A call is at the money at maturity when . In-the-money and out-of-the-money labels compare the observed underlying and the strike in the stated convention at a stated date. Cash flow at exercise, initial premium, value before expiry and realized profit answer different questions.
Lecture 1 slides · PDF p. 22 · YouTube · 1:12:23
1.1 Equivalent rate and discount factor
The effective annual rate is 5%. Find the continuously compounded rate and the value today of €1,102.50 due in two years.
Worked solution
. The discount factor is . Since , the present value is €1,000.
1.2 Payoff and profit on different dates
A one-year call costs €6 today and has strike €80. Compute payoff and profit at expiry for terminal prices €70 and €100. Use a continuous rate of 3%.
Worked solution
The call pays €0 and €20 respectively. The premium grows to . The maturity profits are therefore about −€6.18 and €13.82. Break-even is .
1.3 Dividend and annualized volatility
A €40 share goes to €41 and pays a €0.50 dividend. Find the simple holding-period return. Annualize a daily standard deviation of 1.2% under the independent-increments assumption.
Worked solution
The holding-period return is . The annualized standard deviation is . Variance scales with the number of independent intervals; standard deviation scales with its square root.
Discount at the right rate
Take a payment of 105 in one year. The effective annual rate is 5%. What is its price today?
Worked solution
105 divided by 1.05 is 100.
2. Replication, Brownian motion and Itô’s formula
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Option trading and hedges | 3:21 | 3–5 |
| Commodities | 20:13 | 6–7 |
| FX and cryptoassets | 25:59 | 8–12 |
| Call and put values | 38:22 | 13–21 |
| Random asset prices | 1:00:57 | 22–26 |
| Brownian models for stocks | 1:10:20 | 27–34 |
| Itô calculus for SDEs | 1:27:27 | 35–42 |
Lecturer’s correction · For fixed inputs, the call value is non-increasing as strike increases.
This lecture connects the terminal cash flow of a derivative to a portfolio and then introduces a model for how the underlying moves before expiry. Keep separate the risk of holding a contract, the cost of replicating it and the probability law used for simulation.
Trading and hedging across markets
A hedge offsets some exposure, such as an option writer owning shares against an upward stock move. A commodity producer and a commodity buyer can have opposite exposure to the same future price. An exporter expecting foreign-currency revenue has exposure to its conversion rate. Converting foreign units at a domestic-per-foreign quote gives domestic units. Reverse the quote and the conversion divides. Equity, commodity, FX and crypto returns can differ in volatility, jumps and market frictions. A model needs to specify the carry of the underlying as well as its randomness. For example, foreign cash accrues at its own interest rate, so a foreign bank account expressed in domestic units behaves like a dividend-paying asset from the domestic perspective.
Lecture 2 slides · PDF p. 5 · YouTube · 3:21
Replication in two states
Let today's stock price be , the two possible expiry values be , and the risk-free growth factor be . A derivative pays or . A portfolio with shares and a current bank balance replicates it if in each state. Solve the two equations to find the holdings.
Its cost today is . Substituting the two holdings expresses that cost as a discounted weighted payoff.
The strict inequalities put between zero and one and exclude the elementary stock–bank arbitrage in this model with both states possible. The price follows from equality of statewise payoffs. If two portfolios give the same cash flows and one costs more today, buying the cheaper one and selling the dearer one gives a positive initial receipt and no net future liability under the trading assumptions. The number is a pricing weight calibrated to the stock and bank account. A historical estimate of the frequency of an up move plays no role in the replication equations.
Worked example. Set , , , , . The call pays . The hedge holds shares and borrows , costing . The pricing weight is , so discounting a weighted payoff of agrees.
Lecture 2 slides · PDF p. 17 · YouTube · 38:22
Put–call parity and static bounds
Since a call is nonnegative and the payoff of one call is at most the share price at expiry, its value in the no-dividend case lies between and . With known cash dividends the prepaid forward price replaces in the parity relation. With a deterministic proportional dividend yield , it is for constant . These relations use no stock-price distribution.
Lecture 2 slides · PDF p. 20 · YouTube · 38:22
Brownian motion and three sample processes
A stochastic process is a family of random variables indexed by time. Fix one realization of the randomness and it gives a path.
Lecture 2 slides · PDF p. 26 · YouTube · 1:00:57
Sample a time-grid increment as with . Multiplying by would give variance and make the cumulative noise vanish as the grid is refined. A Markov model has a conditional future law determined by the present state and time. A Markov path can be strongly dependent across dates.
Given , the conditional mean after time moves toward . The conditional variance grows toward .
Additive noise allows negative values.
Lecture 2 slides · PDF p. 33 · YouTube · 1:10:20
Itô’s formula and the lognormal law
Lecture 2 slides · PDF p. 36 · YouTube · 1:27:27
The second-order term survives because Brownian quadratic variation over time is . The mnemonic summarizes the contribution from accumulated squared increments. For GBM, has derivatives . Substitution gives
Write and let be standard normal. Integrating the log equation and exponentiating gives the terminal stock.
Thus is normal given , and is lognormal. If has density , the stock density is for , from the change of variables. Using gives . The negative correction in the logarithm and the positive correction from the exponential moment cancel in the stock mean.
Lecture 2 slides · PDF p. 39 · YouTube · 1:27:27
2.1 Replicate a put in the two-state market
Use the worked example's inputs. Find the number of shares and the bank balance needed to replicate the put.
Worked solution
The payoff is . Thus and . The price is . The call minus the put is , as required by parity.
2.2 Parity violation and today’s trade
Set , and . A call costs 11 and its matching put costs 7. Find the mispriced portfolio and lock in the difference under the model assumptions.
Worked solution
Call plus a bond paying costs . Put plus stock costs . Sell the first and buy the second. This receives 2 today and gives zero net terminal cash flow in either payoff region.
2.3 Local increments and a log-price moment
Take , , , . Find the conditional mean and variance of the log return and the conditional mean of the terminal stock.
Worked solution
The mean is and the variance is . The stock mean is . Exponentiating only the mean of the log return gives a median price in this model.
2.4 An Itô calculation without a logarithm
Let . Derive the differential of . Which term would ordinary differential calculus miss?
Worked solution
. The term comes from the second derivative of and the Brownian quadratic variation.
Brownian variance
For a standard Brownian motion, what is the variance of the increment from time 2 to time 5?
Worked solution
The interval lasts three units, so the variance is 3 and the standard deviation is the square root of 3.
3. Black–Scholes, martingales and risk-neutral pricing
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Simulating stock paths | 03:52 | 3–4 |
| The Black–Scholes model | 17:59 | 5–9 |
| Black–Scholes replication | 36:07 | 10–12 |
| Martingales in pricing | 42:32 | 13–19 |
| Martingale experiments | 01:11:11 | 20 |
| Risk-neutral valuation and Feynman–Kac | 01:15:42 | 21–26 |
| Probability measures and drift | 01:31:45 | 27–29 |
| Closed-form Black–Scholes | 01:41:28 | 30–34 |
This lecture develops three ways to compute a European price in the same model: solve a hedging PDE, integrate the maturity payoff under a risk-neutral density, or simulate that expectation. The analytical Black–Scholes price is a benchmark for later numerical methods.
Simulate a process on a time grid
Take a grid with uniform spacing . The Euler–Maruyama update evaluates drift and diffusion at the start of the step. Draw an independent standard normal for each step along the path.
For GBM this can produce a negative stock in a sufficiently large down step. The exact exponential update from Lecture 2 preserves positivity. When a claim only depends on and GBM is exact, simulate one terminal point per path. A path-dependent claim can require earlier times even under the same model.
for each independent path:
draw Z from a standard normal distribution
terminal = spot * exp((rate - 0.5 * vol**2) * tau + vol * sqrt(tau) * Z)
discounted_payoff = exp(-rate * tau) * max(terminal - strike, 0)
price = mean(discounted_payoffs)
standard_error = sample_std(discounted_payoffs) / sqrt(number_of_paths)
For a price estimate the drift here is under the no-dividend risk-neutral model. To study modelled historical returns, the drift would be specified under the physical measure. Compare a simulated discounted stock mean with and a simulated option value with its closed form using sampling error. A difference larger than several standard errors can indicate a coding error, a mismatch in assumptions or an unusually large sample fluctuation.
Lecture 3 slides · PDF p. 4 · YouTube · 03:52
Derive the pricing PDE by cancelling the Brownian term
Use a frictionless market with a bank account , no dividends and the geometric Brownian stock model under the physical measure . Apply Itô’s formula to the derivative price .
At an instant, a self-financing strategy holding one claim and short shares has gains . The bank part of the strategy pays for rebalancing. Taking cancels the Brownian coefficient and the term with . Under no arbitrage the locally risk-free value earns , giving the pricing equation.
The terminal condition specifies the derivative. Spatial boundary conditions for numerical work come from the payoff behaviour. For a European call, and approaches in absolute difference as in the standard model. Delta is the local share sensitivity and gamma measures how fast delta changes. A short call is locally offset by a positive share hedge. With discrete rebalancing or jumps, that hedge typically leaves a residual.
Lecture 3 slides · PDF p. 8 · YouTube · 17:59
Martingales and the pricing measure
The filtration denotes information available at time .
Lecture 3 slides · PDF p. 13 · YouTube · 42:32
Brownian motion has this property because the future increment is independent of current information and has mean zero. Another example is . The exponential moment of the future normal increment cancels the factor from the time correction.
Appropriate square integrability makes a Brownian stochastic integral a true martingale. Zero drift in an Itô expression establishes a local martingale. The conditional mean identity additionally requires suitable integrability.
Lecture 3 slides · PDF p. 17 · YouTube · 42:32
The risk-neutral measure for the bank-account numeraire makes appropriately discounted traded gains martingales. In no-dividend Black–Scholes, the pricing drift is . Dividing by the bank account cancels this drift.
The price is the conditional mean of the payoff in units of the bank account, converted back to cash at time .
The physical drift describes a law for realized returns. The pricing drift is tied to replication and the chosen numeraire. Risk-neutral valuations can therefore be internally consistent even when differs substantially from . The replication argument gives a unique price in the ideal complete Black–Scholes market. Following lectures specify a pricing measure in markets with more sources of risk.
Lecture 3 slides · PDF p. 28 · YouTube · 01:31:45
Feynman–Kac and the closed form
Lecture 3 slides · PDF p. 25 · YouTube · 01:15:42
For constant , , let and be the standard normal CDF and density. Splitting the discounted call payoff into a stock term and a strike term on gives
The strike term contains , the risk-neutral probability that given . In the stock term the factor weights the upper tail, and completing the square shifts the normal threshold from to . The put follows from parity. At expiry evaluate the payoff directly. At , take the deterministic limit for the call. The call’s spot and volatility sensitivities provide useful diagnostics.
This vega is quoted per unit of volatility.
Lecture 3 slides · PDF p. 34 · YouTube · 01:41:28
3.1 Price and hedge a one-year call
Set , , and . Calculate , the call value and the share hedge of a short call.
Worked solution
. Using , and discounting the strike gives . Buy shares per short call to neutralize first-order spot movements. Parity gives .
3.2 Verify the PDE for a known cash flow
Use the candidate . Check the Black–Scholes PDE and terminal condition for a payment of regardless of .
Worked solution
Both spatial derivatives are zero and , so the PDE term vanishes. At , . The bank holding replicates the claim without shares.
3.3 Test the simulation drift
In no-dividend GBM, suppose a pricing simulation wrongly uses where the model's rate is . The initial stock is 100 and maturity is two years. Where should the simulated discounted stock mean converge?
Worked solution
The wrong mean converges to . A genuine risk-neutral simulation would converge to 100. More paths reduce standard error without correcting the wrong drift.
3.4 Explain the two normal probabilities
Which of and is the risk-neutral probability of exercise? Why does the other appear in the formula?
Worked solution
results by standardizing the threshold in . The discounted stock term is
The factor tilts the density. Completing the square yields .
Which drift prices a claim?
With a deterministic rate r and continuous dividend yield q in the Black–Scholes model, which drift belongs in the pricing dynamics of the ex-dividend stock?
Worked solution
Total returns are priced using r. The ex-dividend price dynamics have drift r − q.
4. Implied volatility and numerical root finding
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Inputs to derivative pricing | 02:56 | 3–5 |
| Implied volatility | 09:00 | 6–12 |
| Newton inversion | 28:38 | 13–18 |
| Deterministic time-dependent volatility | 58:17 | 19–20 |
| Volatility surface | 01:10:11 | 21 |
| Black–Scholes limitations | 01:18:11 | 22–23 |
Black–Scholes usually takes volatility as an input and returns an option price. Implied volatility reverses that calculation. Given a quote and a specified Black–Scholes convention, it asks which constant volatility reproduces the quote.
Read the equation and test its bounds
The derivative pricing chain runs from a risk-neutral model to an expectation, often via a pricing PDE and Feynman–Kac. When a terminal density is available, the same expectation becomes a one-dimensional integral.
For , vega is . Thus the price increases strictly with , from at zero volatility to in the infinite-volatility limit. Every price strictly inside those bounds has exactly one finite positive implied volatility. A quote at the lower bound gives the zero-volatility limit. A quote equal to has no finite solution, and a quote outside the bounds is incompatible with the model inputs. Verify the option type, expiry clock, rates, carry, units and quote time before calling a solver. Convert a matching put to a call with parity or use the put formula directly; both have the same vega under the same model inputs.
Lecture 4 slides · PDF p. 12 · YouTube · 09:00
Use the slope without losing the bracket
The linear approximation gives the Newton step
Near a simple root with sufficient smoothness, Newton's error decreases quadratically. Far from it, or when vega is tiny, the step can jump outside the positive range. Bisection halves a sign-changing bracket. Brent's method combines bracketing with faster interpolating steps when appropriate. A practical hybrid can keep a bracket and accept a Newton step only when it stays inside that bracket. Build a price tolerance that respects quote precision, and guard against a maximum iteration count.
check the lower bound and the limiting upper bound
choose low = 0 and grow high until the quote is below price(high)
vol = (low + high) / 2
for at most max_iterations:
price_error = price(vol) - quote
if abs(price_error) is within price_tolerance:
return vol after checking the price residual
if price_error < 0: low = vol
else: high = vol
proposal = none
if vega(vol) is safely positive:
proposal = vol - price_error / vega(vol)
if proposal is missing or outside (low, high):
proposal = (low + high) / 2
vol = proposal
report that the requested tolerance was not reached
Worked example. Let , and take . At , the model gives and vega per unit volatility. The first Newton step is . At , the model price is , consistent with an implied volatility close to 25%. A vega per one percentage point would be ; changing that convention without changing the update units produces a factor-100 error.
Lecture 4 slides · PDF p. 13 · YouTube · 28:38
Read smiles, skews and maturities
Plot implied volatility across strikes at one maturity. A smile bends upward toward both wings, and a skew has a dominant slope over the range considered. Comparing maturities at a stated moneyness gives a term structure. A surface uses both axes. Use forward log-moneyness when comparing strikes across different forwards. Smile plots reflect option prices and model inversion. Historical volatility estimates come from time-series returns and answer a different question.
Lecture 4 slides · PDF p. 21 · YouTube · 01:10:11
In Black–Scholes with deterministic time-dependent volatility, the log return over is normal. Its variance is the integral of the instantaneous variance rate. An equivalent constant volatility spreads that same variance across the interval.
This equivalent volatility can vary with maturity and is the same for every strike at a given maturity. A strike skew at one maturity calls for richer dynamics. The lecture motivates local volatility, jumps and stochastic volatility. Discrete hedging and transaction costs are additional practical departures from the continuous frictionless benchmark.
Lecture 4 slides · PDF p. 20 · YouTube · 58:17
4.1 Screen a quote before any root search
Take , , . A call is quoted at 11. Does a positive Black–Scholes implied volatility exist?
Worked solution
The lower bound is . A quote of 11 is below it, so no admissible volatility solves the equation. Switch from numerical iteration to checking contract and input conventions.
4.2 Identify a bad Newton step
At volatility the model is €0.05 above a target and vega is €0.10 per unit volatility. Compute the proposed Newton step. Suppose a valid bracket of is available. How should the hybrid algorithm continue?
Worked solution
Newton proposes . Reject it since it is outside the bracket. Use its midpoint , evaluate the residual and move the appropriate endpoint.
4.3 Time-varying volatility and total variance
Volatility is 20% for the first half-year and 30% for the second half-year. Compute one-year total variance and equivalent constant volatility.
Worked solution
Total variance is , so constant volatility is . Taking the arithmetic mean of volatilities would give 25% and a different price.
Choose a response to small Vega
A price is within the no-arbitrage bounds but Newton’s implied-volatility iteration takes a large step outside the bracket. What should you do?
Worked solution
Keep the monotone residual bracket and bisect or use another safeguarded method.
5. Poisson jumps and jump-diffusion prices
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Adding jumps | 4:49 | 3–6 |
| Poisson jumps and simulation | 17:08 | 7–10 |
| Itô calculus with jumps | 29:08 | 11–14 |
| Risk-neutral jump dynamics | 38:09 | 15–18 |
| Pricing PIDEs | 53:34 | 19–24 |
| Jump distributions and smiles | 1:05:56 | 25–28 |
| Jump expectations | 1:17:49 | 29–30 |
| Jump characteristic functions | 1:25:26 | 31–34 |
A diffusion provides continuous sample paths. A compound-Poisson term adds a finite number of discontinuities over a finite time interval and separates jump frequency from jump size. That distinction matters for the drift correction, simulation and the transform.
Count the jumps, then assign their marks
Lecture 5 slides · PDF p. 7 · YouTube · 17:08
On a small interval, the one-jump probability is , and the probability of multiple jumps is . With the usual past information, is a martingale because the conditional expected increment is zero.
Make a compound process by adding independent identically distributed marks , independent of the counter. The empty sum is zero. Conditioning on the count gives these moments when they exist.
Given , the variance is , and the variance of the conditional mean adds . A time-step simulator can sample the exact Poisson count. Draw a separate independent mark for every counted jump.
Lecture 5 slides · PDF p. 30 · YouTube · 1:17:49
Finite jump differences and the pricing drift
If has a jump of size , the jump of a smooth function is exactly . The diffusion part still uses Itô derivatives. For the exponential, the jump in stock is , where the minus subscript means the value immediately before the jump. Replacing by gives a small-jump approximation and can change both price and expected stock growth.
Lecture 5 slides · PDF p. 11 · YouTube · 29:08
Assume a constant bank rate , no dividends and a finite stock-jump moment. The expected proportional stock move per jump is under the chosen pricing jump law.
Write for the cumulative log jumps and for the sum of the proportional stock moves . The two dynamics are
The jump contribution to the mean rate of is , which cancels the correction and leaves . The Brownian drift correction belongs in the log equation. A stock and a bank account generally cannot span every jump outcome. Here and the mark law are already specified under ; the martingale condition sets a drift once those inputs are chosen.
Lecture 5 slides · PDF p. 16 · YouTube · 38:09
A differential equation with a jump integral
The generator adds the expected jump of a test function. For , with terminal condition , the pricing equation is
The jump operator uses values away from , giving a partial integro-differential equation (PIDE). The two terms and come from discounting and the current value subtracted in each jump difference. Their combined coefficient is when the expectation is expanded. Substituting makes the drift and jump corrections cancel after subtracting . Taking recovers the Black–Scholes PDE. The solution can also be represented as the discounted expected payoff under the jump model.
Lecture 5 slides · PDF p. 23 · YouTube · 53:34
Merton, Kou and exact terminal simulation
The Merton model takes a normal log-jump , so . The Kou model takes a positive exponential magnitude with probability and the negative of an exponential magnitude otherwise. With rates and ,
The condition on the positive rate ensures a finite stock expectation when positive jumps have positive probability. Intensity mainly describes how often rare movements occur; the two distributions offer different controls over upward and downward jump tails. Their effects on a whole implied-volatility surface are parameter dependent. The slide comparison changes one parameter at a time.
For Merton, first draw from a Poisson distribution with mean . Conditional on , the sum of the normal jump marks has mean and variance . Simulate it with a normal draw independent of the diffusion’s normal draw . The terminal log-price sample is
This is exact for the terminal value with constant parameters. For a European claim, compute and average across independent draws. A path payoff can require jump times and intermediate values. A separate analytic check conditions on jump count and averages normal-log-price formulas with Poisson weights. In a truncated sum track the neglected tail contributions, especially for a call whose payoff is unbounded.
Lecture 5 slides · PDF p. 25 · YouTube · 1:05:56
Primary papers Merton (1976) and Kou (2002).
Characteristic function by conditioning
Given , independence multiplies the jump factors and gives . Averaging over Poisson probabilities exponentiates this factor.
Multiplying by the drift and Brownian factors gives the conditional transform of terminal log price, . The three contributions to the exponent are
For Merton, . At the transform equals 1. Where the exponential moment exists, evaluation at gives . These two tests distinguish normalization and the stock martingale restriction.
Lecture 5 slides · PDF p. 34 · YouTube · 1:25:26
5.1 Compute short-window jump probabilities
For per year and a -year window, calculate the probabilities of zero, one and at least two jumps.
Worked solution
The Poisson parameter is 0.8. The probabilities are , and . A Bernoulli simulator fitted to the one-jump probability would miss the final term on a step this large.
5.2 Correct the drift for downward jumps
Suppose each jump changes the stock by , the intensity is 0.5 and . Compute and the continuous stock drift between jumps. What is the mean growth rate including jumps?
Worked solution
The log mark is , so . Between jumps the drift is . Including the expected jump loss gives mean growth rate 0.04.
5.3 Check normalization and the stock moment
Use the log-price transform to check and , assuming exists.
Worked solution
, so the exponent vanishes at zero. At , and . The term cancels the log drift's . Since , the jump factor cancels . The surviving exponent is .
5.4 Derive the intensity term in the generator
Over a short time , what is the leading conditional expected change of due only to jumps?
Worked solution
A jump transforms into . Its probability to first order is , so the change is to leading order, assuming the relevant integrability. Divide by to read the jump part of the generator.
Interpret the jump compensator
In the exponential jump model, what controls the drift correction of the stock price when jumps arrive at intensity λ?
Worked solution
The proportional jump is exp(J)−1. The correction subtracts λ times its expected value when uncompensated Poisson jumps are used.
6. Fourier transforms and affine jump diffusions
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Choosing a pricing method | 3:18 | 3–5 |
| Why use a transform? | 25:06 | 6–10 |
| Black–Scholes characteristic function | 39:43 | 11–15 |
| Affine diffusions | 52:12 | 16–23 |
| Multivariate characteristic functions | 1:07:31 | 24–26 |
| Affine jump diffusions | 1:13:59 | 27–32 |
The characteristic function describes a law in frequency rather than price space. In an affine model one can often obtain that function from a few ordinary differential equations even when the density is expensive to obtain. This lecture derives the transform. Lecture 8 uses the resulting information for numerical option prices.
Choose the numerical representation
A closed form is useful as a benchmark when one is available. A PDE or PIDE follows from the generator and can resolve local states and exercise boundaries. Its space grids become expensive when the state dimension grows. Monte Carlo uses average discounted payoffs and handles many path-dependent variables naturally, at the cost of sampling noise and often time discretization. Fourier methods reuse a tractable transform of the terminal state and can be fast for many European strikes, but their practical accuracy depends on integrability and truncation as well as transform evaluation. Check first what the payoff observes, whether it permits exercise and what the model computes directly.
Lecture 6 slides · PDF p. 5 · YouTube · 3:18
The Fourier convention and its diagnostics
For this chapter use the convention
in the density case when the inversion integral is valid, for example if is integrable. The characteristic function itself always exists for real and uniquely determines the law. For real , , , and . For independent , the transform of is the product. When the absolute -th moment is finite, . For , when that exponential moment exists. Complex arguments require this domain check even though real-frequency evaluations are always defined.
Lecture 6 slides · PDF p. 9 · YouTube · 25:06
The Black–Scholes conditional on has mean and variance . Its ordinary characteristic function is . For constant rate the discounted transform multiplies this by . At the discounted transform equals the bond price . At it equals in the no-dividend model. Always identify which transform is supplied before discounting a numerical option price.
Lecture 6 slides · PDF p. 15 · YouTube · 39:43
Derive the Riccati equations in one dimension
Affine means constant plus a linear term. For a one-dimensional diffusion, write drift , instantaneous variance , and short rate . Use a state space on which the variance is nonnegative. The variance is affine and its square root can be nonlinear. At initial state , the discounted transform is the price of a complex-exponential payoff.
Its pricing equation in time-to-maturity form is
Try . Then , , and . Match the constant and linear coefficients:
The transform problem in the state variable becomes an ODE problem in . Under the conditions that make the transform and Riccati solution well defined, one solves for the requested , then evaluates for the starting state. For log-GBM, , and . The ODE gives and , exactly the discounted Gaussian transform. Working with the stock itself gives instantaneous variance , which is quadratic. The log coordinate makes the variance constant.
Lecture 6 slides · PDF p. 18 · YouTube · 52:12
Duffie, Pan and Singleton, Transform Analysis and Asset Pricing for Affine Jump-Diffusions (2000).
Several state variables and state-dependent jumps
In dimensions, use affine drift , short rate and instantaneous covariance matrix
Substituting gives
The transpose is algebraic. Do not conjugate in this expression; the Hessian of the exponential contains products . For two log-GBMs with constant parameters and independent Brownian motions, the ordinary joint transform is the product of the two one-dimensional transforms. Their discounted joint transform has one common factor , because the entire payoff is discounted once. With correlation , the log covariance entry over is , and the joint Gaussian exponent acquires cross term .
Lecture 6 slides · PDF p. 25 · YouTube · 1:07:31
For this one-factor affine jump diffusion, add a mark with a specified state-independent law. The intensity must be nonnegative on the state space. The new generator term, divided by , is
The constant part with coefficient goes into . The linear part with coefficient gives the extra term in . Each allowed type of jump supplies its own term in a multi-factor model, with for a vector mark. If intensity is constant and the other log-stock coefficients do not depend on state, and the jump contribution reduces to the compound-Poisson term from Lecture 5.
Lecture 6 slides · PDF p. 29 · YouTube · 1:13:59
6.1 Compute the discounted transform on two frequencies
Under no-dividend Black–Scholes, set , and . Find the ordinary and discounted conditional log-stock transforms at and , without choosing volatility.
Worked solution
At zero the ordinary transform is 1 and the discounted transform is . At , the ordinary transform is and the discounted transform is . Both checks hold independently of volatility.
6.2 Recover the characteristic function of mean reversion
Take constant rate and the Ornstein–Uhlenbeck state from Lecture 2. Use the affine ODEs to determine . How does its nonzero solution encode fading dependence on ?
Worked solution
Here , , . Thus and . Dependence on the initial state enters the exponent as . Integrating the equation for gives
This agrees with the Gaussian conditional law.
6.3 Add the affine jump terms
Suppose every jump adds to and the intensity is on a state space where it is nonnegative. Identify the jump contributions to and .
Worked solution
The generator adds . Dividing by and writing , the constant contribution is and the linear contribution is .
6.4 Detect double discounting
Two independent log-stocks have and share the same deterministic rate. Someone builds a joint discounted transform by multiplying each discounted marginal transform. What test reveals the mistake?
Worked solution
At it gives . The payoff with both frequencies zero is one unit at maturity, whose correct price is . Multiply ordinary characteristic functions and apply one discount to the payoff.
Test a characteristic function
Which diagnostic must a genuine characteristic function of a probability law satisfy at frequency zero?
Worked solution
The function averages the constant one, so its value is one.
7 · Stochastic volatility and Heston
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Motivation for stochastic volatility | 3:38 | 3–5 |
| Heston dynamics | 16:55 | 6–11 |
| Correlated drivers | 28:30 | 12–18 |
| Vector Itô formula | 51:32 | 19–21 |
| Heston pricing PDE | 1:01:04 | 22–23 |
| Parameters and the smile | 1:13:22 | 24–27 |
| Black–Scholes and Heston compared | 1:22:41 | 28–29 |
| Heston characteristic function | 1:30:17 | 30–32 |
Black–Scholes keeps instantaneous volatility constant. A deterministic time-dependent input can match a maturity term structure while leaving one maturity’s Black–Scholes implied volatility flat across strikes. A local-volatility model makes volatility a function of time and spot. A stochastic-volatility model gives variance its own state and source of randomness. The Heston construction uses a mean-reverting square-root variance process, which also appears in interest-rate modelling.
Lecture 7 slides · PDF p. 5 · YouTube · 3:38
The two state variables
Lecture 7 slides · PDF p. 6 · YouTube · 16:55
is the initial variance, the long-run mean, and the speed of reversion. The parameter , often called vol-of-vol, scales the Brownian shock to variance. The parameter is the correlation of the Brownian innovations. Several parameters can affect the same part of an implied-volatility surface. As diagnostic tendencies, is particularly important at short maturities, matters for longer maturities, and negative often generates a negative strike skew. A negative stock shock together with a positive variance shock contributes to asymmetry in the return distribution.
Lecture 7 slides · PDF p. 24 · YouTube · 1:13:22
Lecture 7 slides · PDF p. 11 · YouTube · 16:55
An Euler approximation can produce a negative variance even when the continuous-time boundary is inaccessible. Lecture 10 distinguishes the state space of the exact process from the behaviour of its numerical approximation.
Take expectations in the variance equation and solve the resulting linear ODE. Write for the integrated variance .
With , , , and , the expected terminal variance is about . The expected integrated variance is and . Plugging straight into a Black–Scholes formula would use a deterministic variance proxy. It does not value a claim under the same stochastic model.
From correlated shocks to the pricing PDE
Build the stock driver from two independent Brownian motions . Its component gives the covariation of the stock and variance shocks.
Lecture 7 slides · PDF p. 14 · YouTube · 28:30
In Itô’s formula the on the Hessian is cancelled by the two matching off-diagonal entries. For a European value in the interior , with terminal payoff , the equation is
The covariance term vanishes when , but random still changes the law of the stock. A stochastic-volatility market with independent untraded variance risk is generally incomplete. The PDE above uses specified pricing-measure variance parameters. Replicating variance risk using only stock and cash is generally unavailable.
Lecture 7 slides · PDF p. 23 · YouTube · 1:01:04
Lecture 7 slides · PDF p. 19 · YouTube · 51:32
The characteristic function as a checkable interface
Use log spot . The transform for the log return over takes the following affine form in the starting variance .
The terminal log-spot transform has the additional factor . From the log-space generator and the affine ansatz, match constant and variance terms.
This ODE formulation also offers a reference check for a complex closed form. Test , conjugate symmetry for real , continuity on the frequency grid and, when the relevant moment exists and the transform is evaluated consistently there, for the standard risk-neutral martingale specification. Repeated jumps caused by an inconsistent complex logarithm are a numerical defect. European option pricing with the transform is developed in Lecture 8.
Lecture 7 slides · PDF p. 32 · YouTube · 1:30:17
Practice 7A · Boundary versus discretisation
Take and . Test the Feller condition. What does a negative simulated Euler state show?
Practice 7B · Recover the mixed term
Apply the second-order part of Itô’s formula to . Find the drift due to correlation when .
Worked solution
The pure second derivatives vanish and . The covariance drift is per year at that state. The product rule adds this to the two first-order drift contributions.
Practice 7C · Deterministic variance as a limit
Put . If , under what volatility does the stock price have the same terminal law as a constant-volatility Black–Scholes model?
Worked solution
is deterministic. The log return has variance and mean . Its constant-volatility match is at that maturity. Matching the terminal law does not match the term-by-term path behaviour at all maturities.
Exact process versus Euler
A Heston simulation has negative variance values. Which conclusion follows?
Worked solution
An Euler increment can produce a negative step. The exact variance stays nonnegative even when zero is attainable.
08 · Fourier inversion and COS option pricing
Watch on YouTubeLecture video timestamps and slide pages
Instructor’s Lecture 8 materials.
From a characteristic function to a density
The characteristic function of a real random variable is the expectation of its complex exponential at frequency .
Euler’s formula decomposes it into the expected cosine and sine at frequency . It exists for every real , since each complex exponential has magnitude one.
To see the phase, start with , so . A shift by multiplies the characteristic function by , changing to inside inversion. A sign error moves the reconstructed centre to the opposite side. Always check a distribution with nonzero mean as well as a symmetric one.
Lecture 8 slides · PDF p. 3 · YouTube · 1:24
Discretization and the FFT
Cut off the integral at , sample , and use quadrature weights for the finite sum. For the one-sided inversion integral the natural starting point is . Choose . The only mixed term in is . Setting lets a standard length- DFT evaluate this term for every . The remaining phase is applied at the output, and goes into the input. Include the integration convention, including the two endpoint half weights if using a trapezoid with both endpoints on the sampled grid.
The FFT evaluates the same DFT as the direct sum. The radix-two derivation collects even and odd inputs, takes two DFTs of size , then combines them with phase factors. This reduces work from to . The grid relation links frequency step, spatial spacing and spatial period . A larger cutoff generally improves high-frequency coverage and reduces when stays fixed, at the cost of shorter spatial coverage if increases. A wide spatial domain and fine spacing usually require increasing . Error sources include truncation, quadrature, periodic replication and interpolation to an off-grid target. If the price integral itself has an exploding payoff, check integrability or use an appropriate damping or transformation. A density inversion alone does not establish that a payoff transform exists.
Lecture 8 slides · PDF p. 13 · YouTube · 26:26
Supplied reading · Carr and Madan, §4, FFT pricing.
COS density recovery, one coefficient at a time
Choose a finite interval , put , , and use . On its nonzero-frequency terms have squared norm , while the constant has norm . We can write all coefficients with provided we count the zero mode with half weight, indicated by a prime on the sum.
The approximation extends the coefficient integral to the entire real line. With a poor interval, increasing the number of terms cannot correct the discarded distribution tails. For a uniform density on , each nonzero cosine integrates to zero, while . Counting the zero mode once at half weight immediately yields the correct . For a typical normal density illustration, start with for a mean and standard deviation , then vary interval and series length separately. A ratio or lognormal price often has asymmetric tails. When the relevant cumulants exist, a commonly used starting interval has endpoints
Check numerically. Density shape, price accuracy and tail exposure are distinct checks.
Lecture 8 slides · PDF p. 21 · YouTube · 47:55
Price a payoff without building the whole density grid
Use , , and . Insert the density series into the discounted payoff integral and integrate each basis function against the payoff. With the characteristic function of this same , including the initial log-moneyness, no separate phase is needed.
Two integrals handle vanilla payoff coefficients.
For , . Otherwise take the sine difference and divide by . For every , evaluate the following antiderivative at the two endpoints to get .
The active interval for a call is , and for a put it is . Give an empty active interval zero coefficient. Multiply by for a call or by for a put.
A call’s unbounded right tail can make direct COS rounding and truncation errors important. A common cross-check is a COS put plus put–call parity. In a model with , the return transform can be reused across strikes. If the truncation interval is also held fixed in , the dimensionless payoff coefficient for each mode can be reused and scaled by . Confirm the chosen interval is adequate for all strikes before sharing coefficients.
Lecture 8 slides · PDF p. 38 · YouTube · 1:18:04
Further reading · Fang and Oosterlee, §3, European COS pricing.
for each tested interval and series length:
for k from 0 through N-1:
u = k*pi / (b-a)
payoff_coef = normalized integral of payoff * cos(u*(y-a))
density_factor = real(phi_Y(u) * exp(-i*u*a))
add (0.5 if k == 0 else 1) * payoff_coef * density_factor
discount the sum
compare with a Black–Scholes benchmark and test put–call parity
Check the FFT grid spacing
With and , find and the periodic spatial width. What changes when is doubled and stays fixed?
Worked solution
and . Doubling halves both quantities and doubles the approximate frequency cutoff. That refines spatial resolution but reduces coverage.
Take one COS mode seriously
Use a uniform log-price on , strike , and no discount. The fixed-strike call pays . Compute its exact value with one density mode.
Worked solution
The density is the constant . Only mode zero survives. The value is . Omitting the prime-weight convention doubles the answer.
Separate three sources of pricing error
On , changing from 256 to 512 COS terms leaves a call value unchanged. Expanding the interval to changes it by 0.40. Which experiment should come next?
Worked solution
The existing calculation appears converged in the series length inside the narrow interval. Study the sequence of wider intervals, retesting within each interval because its spacing in frequency changes. Compare with a benchmark and inspect tail contribution separately. Agreement in alone gives no bound on the omitted payoff.
Spot the doubled log-moneyness phase
Your model routine returns . Your pricing code uses in addition. Identify the mistake.
Worked solution
The returned characteristic function already includes the initial log-moneyness. Multiply it only by . If the routine instead returns the transform of the log return , add once.
Separate the COS errors
You double the frequency count and a COS price barely changes. Which check is still needed?
Worked solution
Vary the interval separately and refine the expansion again to distinguish truncation and approximation errors.
09 · Monte Carlo, stochastic integrals and time stepping
Watch on YouTubeLecture video timestamps and slide pages
Instructor’s Lecture 9 materials.
Turn an integral into the mean of random observations
If is uniform on , its density is . For a different sampling density that is positive wherever the integrand contributes, weight each draw by the reciprocal of its density.
Either way the average of independent draws converges under the law of large numbers. The sampling distribution affects the variance of the estimator. For , hit-or-miss integration samples the area beneath inside a rectangle. Conditional on the horizontal coordinate, the vertical indicator has expectation . Averaging directly integrates out that extra vertical draw, reducing or preserving variance by the law of total variance.
Lecture 9 slides · PDF p. 4 · YouTube · 2:55
With independent discounted payoffs , compute the sample mean , the sample standard deviation with divisor , and standard error . Under the usual finite-variance CLT, an approximate large-sample 95% interval is
The estimated interval is about the expectation under your simulated law. Euler bias, mismatch with the market, and errors in the underlying contract specification all persist when sampling error tends to zero. Four times the independent paths halves the sampling error, while a smaller time step changes the simulated law.
Lecture 9 slides · PDF p. 21 · YouTube · 1:03:26
Why the Itô integral uses the left endpoint
The value of the integrand at depends only on the history through . The next Brownian increment has conditional mean zero. This makes the sum mean zero for square-integrable adapted integrands. For the integral with as integrand, expand each squared value to isolate the left-endpoint term.
The sum of squared increments has mean and variance , tending to zero variance as the maximum step tends to zero. It follows that
That variance also follows from the Itô isometry, which equates the second moment of the stochastic integral with . If the integrand is instead, the same isometry gives , and since the integrand is deterministic the integral is normal. These are simple benchmarks for simulation. A right-endpoint version of the integrand generates an extra , hence approaches the Itô integral plus . This is why the choice of evaluation time belongs to the definition.
Lecture 9 slides · PDF p. 13 · YouTube · 27:42
Euler and Milstein on the same Brownian paths
For a scalar Itô process , Euler–Maruyama freezes the drift and diffusion at the left endpoint. Set with independent standard normal draws . Adding the leading term from the expansion of inside the stochastic integral yields the scalar Milstein correction. Its form depends on the just-derived identity applied to the Brownian increment on the current interval.
Lecture 9 slides · PDF p. 23 · YouTube · 1:14:25
For geometric Brownian motion, and . Under the risk-neutral no-dividend model there is also an exact update.
Exact terminal sampling is preferable for a European payoff under GBM. The Euler/Milstein comparison is useful precisely because exact GBM paths provide a benchmark. For general multi-noise systems the scalar Milstein expression cannot be applied component by component without checking commutativity and cross-integrals.
Lecture 9 slides · PDF p. 27 · YouTube · 1:32:46
Match your error metric to the intended result
| Check | What it measures | Practical experiment |
|---|---|---|
| Strong convergence | or a related path error. | Sum fine Brownian increments to create coarse steps and compare each path with the same Brownian outcome. |
| Weak convergence | for a chosen payoff or test function . | Compare expected payoffs with a benchmark or use common random numbers to estimate differences across grids. |
| Sampling error | The finite- uncertainty of the average at a fixed time grid. | Compute standard error and repeat at larger with discretization fixed. |
Under standard regularity conditions for scalar diffusions and sufficiently smooth test functions, Euler has strong order , scalar Milstein has strong order one, and both typically have weak order one. These are asymptotic statements with hypotheses. A digital payoff jumps at the strike, and a vanilla has a kink. Check their actual weak error behaviour instead of using a smooth-payoff order mechanically. On a log–log plot, sampling noise can flatten a convergence curve before the deterministic time-step error is visible. An increase in path count and shared randomness across discretizations help reveal the time-step regime.
Lecture 9 slides · PDF p. 19 · YouTube · 57:48
draw fine Brownian increments and reuse them for all step sizes
for each coarse grid:
build coarse increments by summing consecutive fine increments
compute exact GBM, Euler and Milstein terminal values on matching paths
estimate mean absolute path error
estimate mean discounted payoff difference and its standard error
fit slopes only where the simulated differences are resolved
Size a Monte Carlo run
A pilot run has and a sample standard deviation of 12 in discounted payoff units. Find the standard error and the path count needed for a standard error of 0.03, assuming the same payoff variance.
Worked solution
. Solving gives 160,000 independent paths. The approximately 95% half-width at that size is .
Calculate a left-endpoint sum
Two equal steps span , and the Brownian increments are and . Evaluate the two-step approximation to and verify the finite-sum identity.
Worked solution
The left endpoints are 0 and 0.3, so the sum is . Also and , giving . A coarse realization can differ substantially from the continuous formula with .
One Euler and Milstein step
Let GBM start at 100 with , , , and . Compute the Euler, Milstein, and exact one-step values.
Worked solution
Euler yields . Milstein subtracts , giving 100.25. The exact update gives .
Diagnose a flat convergence curve
Two fine time grids give prices 8.03 and 8.05. The independent simulations each have standard error 0.07. Can their difference establish a weak order?
Worked solution
The difference is 0.02 with independent-difference standard error approximately . That is too noisy to infer order. Use coupled draws, more paths, and several grid sizes. Estimate the standard error of paired differences directly.
Change sampling precision
With independent paths of fixed variance, how many paths are needed to halve the estimated standard error?
Worked solution
Replacing n by 4n multiplies the standard error by one half.
10 · Simulating CIR variance and Heston stock paths
Watch on YouTubeLecture video timestamps and slide pages
Instructor’s Lecture 10 materials.
Why normal Euler shocks are problematic near zero variance
In the Cox–Ingersoll–Ross variance process, is the long-run variance, is its mean reversion speed, and controls variance shocks.
With positive parameters and a nonnegative initial state the process stays nonnegative. The Feller condition ensures that zero is unattainable from a positive initial state. Below that threshold zero can be reached, with positive pushing the process away. The boundary geometry matters when a model spends substantial time at small variance.
For , the raw Euler proposal is conditionally normal with mean and standard deviation . Write for a standard normal draw.
The normal proposal assigns positive probability to negative values, even though the true transition law is nonnegative. That probability can be measured before simulation. The square root at the next step is undefined over the reals if an unmodified proposal is negative.
The lecture’s clipped Euler update uses , placing all negative proposals at zero. The reflected update uses , returning a negative proposal to a positive state. These generate different transition laws and different biases. Both schemes can look numerically stable while giving the wrong variance shape. Compare with the exact conditional mean, variance and near-zero distribution, and check option values as well as representative paths. A histogram increase at zero can reflect the clipping rule. Keep the terminology explicit if a library offers “full truncation,” since that name often refers to clipping the arguments of the drift and diffusion while retaining a separate raw state.
Lecture 10 slides · PDF p. 4 · YouTube · 18:52
Sample the exact CIR transition
The noncentral chi-squared mean is . Multiplying by gives , easing the sanity check. Its variance is , so the conditional variance of is . A sampler can use the Poisson mixture , followed by a central draw. In code, use a stable implementation of , such as for small .
For example, take , , , and . Then , and the exact conditional mean is . A simulation of independently sampled transitions at this fixed initial state should agree up to sampling error. Repeating the exact transition gives the exact finite-dimensional distribution of the grid variance observations. An integral between observations still requires additional information.
Lecture 10 slides · PDF p. 10 · YouTube · 40:02
Preserve stock–variance correlation in log coordinates
Under the no-dividend risk-neutral Heston model put . Choose independent Brownian motions , and write the stock shock as . Integrating the variance equation on a step expresses the integral with the shared driver in terms of the variance endpoint and the integrated variance . Conditional on the variance path, the orthogonal stochastic integral is normal with mean zero and variance . Substitution yields
In the lecture’s scheme, sample from the exact transition and use the approximation . The state innovation driving the shared spot movement is then . The independent normal draw handles only the orthogonal movement. The stock log-step is approximate because the variance integral has been frozen. On a path where the variance changes sharply, a left-endpoint estimate of that integral can be inaccurate.
Lecture 10 slides · PDF p. 14 · YouTube · 50:34
for every path and time step:
sample next variance from the exact conditional CIR transition
I = current variance * time step
Z = independent standard normal draw
update log stock with the shared variance innovation and orthogonal term
carry next variance into the next time step
compute discounted payoffs and a Monte Carlo standard error
check exp(-r*T) * mean(terminal stock) against the initial stock
repeat across time grids and benchmark a European price against the CF method
The discounted stock mean check probes the martingale property. A coarse scheme can fail it systematically, even when variance moments agree. The Heston characteristic function supplies an independent European pricing benchmark via Lecture 8. That comparison helps separate a bad time-stepping rule from an error in the implementation of the model parameters.
Lecture 10 slides · PDF p. 17 · YouTube · 1:08:58
Interpret the Feller threshold
For , check the Feller condition. What should a simulation report near the boundary?
Worked solution
. Zero is attainable in the continuous CIR process and the process stays nonnegative. Report the frequency of clipped or reflected proposals for Euler-based schemes, compare near-zero behaviour with exact CIR transitions, and test the pricing bias as the grid is refined.
Check the exact CIR mean and variance
Use . Compute the transition parameters and an approximate conditional standard deviation.
Worked solution
, , and . The mean is about 0.05839. The standard deviation is . The magnitude of that standard deviation explains why much smaller variance draws are plausible.
Carry one Heston innovation through to the stock
With , suppose , the CIR draw gives , and . Compute the approximate log-stock step.
Worked solution
, so the drift contribution is . The mean reversion correction within the shared term is zero at . The shared term is . Thus the log-stock change is . With the new stock observation is about 96.71.
Explain the word “almost”
A script samples both CIR endpoints exactly, takes , and prices a Heston call using on each step. In what sense is it still approximate?
Which Heston quantity remains?
Exact CIR variance endpoints are available. Which additional quantity generally enters the conditional stock update between them?
Worked solution
Endpoint draws alone do not supply the integrated variance needed for a full exact conditional update.
11 · Dynamic hedging and Monte Carlo Greeks
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Black–Scholes hedging | 3:56 | 3–9 |
| Rebalancing experiment | 36:13 | 10–12 |
| Jump-risk hedging | 52:04 | 13–14 |
| Delta, gamma, and vega | 1:03:12 | 15–17 |
| Pathwise Greeks | 1:22:33 | 20–25 |
| Likelihood-ratio Greeks | 1:38:40 | 26–29 |
| Finite-difference Greeks | Encompassing video segment The uploader does not publish a separate start marker. See the segment from the hedging chapter to the pathwise segment. | 18–19 |
Instructor’s Lecture 11 materials.
Track cash and shares through a dynamic hedge
Delta is , gamma is , and vega is for a selected volatility input. In a no-dividend Black–Scholes model a continuously rebalanced replication holds shares and puts the remainder of the option’s value in cash. A one-contract short option position uses this replicating portfolio to fund the terminal payout. Initially the premium is , the cost of the shares is , and the residual bank balance is . That balance may be negative, representing borrowing.
At a rebalancing date the pre-trade cash has accrued interest. Buying additional shares reduces cash by the actual stock execution price times the number purchased. With rebalancing dates , bank rate , and no trading costs,
Lecture 11 slides · PDF p. 8 · YouTube · 3:56
At maturity, accrue the final cash and use the value of the last stock position to settle the claim. The hedge’s terminal residual is total hedge wealth minus the payoff. Use a long- or short-position convention consistently and print the cash, shares, option liability and residual as separate columns. On a diffusion with correct volatility, increasingly frequent rebalancing tightens the hedge error in the idealized continuous model. With finite trading intervals, option curvature leaves a local term of order in its price change. Under a jump , the residual jump exposure is the full repricing change . Even high trading frequency cannot trade inside an instantaneous jump.
Lecture 11 slides · PDF p. 13 · YouTube · 52:04
Neutralize a Greek with an instrument that carries it
Shares carry unit delta and zero gamma and vega. An option carries multiple sensitivities. Suppose a portfolio has delta 40 and vega 120, and a candidate option has delta 0.6 and vega 8 per contract. Selling 15 contracts offsets vega and leaves delta . Selling 31 shares offsets that delta. To target both gamma and vega, use two instruments with linearly independent pairs of gamma and vega. Then adjust remaining delta with shares. A nearly singular sensitivity matrix forces large and unstable hedge positions.
For a no-dividend Black–Scholes call or put, gamma is and vega is , where is the standard normal density and is remaining maturity. A vega quoted for a one percentage-point volatility change is . Match all units before solving for positions. A hedge report at a single state is a local sensitivity statement. Positions can become sensitive when the state or parameters move.
Lecture 11 slides · PDF p. 15 · YouTube · 1:03:12
Three ways to estimate a sensitivity by simulation
Write for parameter and base randomness . The central bump estimator of the sensitivity is
For a smooth expectation its deterministic error is typically order . Use the same random draws in the two prices and compute the standard error of their paired differences. With independent simulations the price noise persists in the numerator and gets amplified by . Even with common random numbers, very small bumps can produce unstable estimates, especially for discontinuous payoffs.
For a pathwise estimate, differentiate through the simulated stock and then the payoff. The Black–Scholes terminal expression gives two pathwise derivatives.
For a call the derivative of the payoff exists off the strike and equals . Under conditions permitting interchange of derivative and expectation,
The same pathwise delta structure works in multiplicative Heston when variance dynamics are independent of and model parameters stay fixed. The call payoff is continuous with a kink, and the lognormal stock law puts zero mass exactly at the strike. For a digital, the almost-everywhere pathwise derivative is zero because the payoff is locally constant away from the strike. The expectation varies with the probability of crossing the strike, a boundary contribution missed by such an interchange.
Lecture 11 slides · PDF p. 22 · YouTube · 1:22:33
The likelihood-ratio method differentiates a density and rewrites . Assuming the payoff does not explicitly depend on , the support is handled correctly and differentiation under the integral is valid, it gives the expectation of discounted payoff times the score . If the payoff also depends on the parameter, add the expected differentiated payoff. For the GBM stock density the spot score is and the volatility score is , with the standardized log return. The method can handle a digital and may have higher variance than a smooth-payoff pathwise estimate. Verify the estimate against analytic Greeks and record the estimator’s own standard error.
Lecture 11 slides · PDF p. 26 · YouTube · 1:38:40
simulate one array of base draws Z
compute payoffs at theta-h and theta+h using the same Z
build one central-difference sample per paired path
build one pathwise sample where the differentiation is justified
build one score-weighted sample where the density is available
report each mean with its own standard error and analytic discrepancy
Rebalance a self-financing hedge
Your bank balance is , you hold 0.5 shares, and one quarter of a year later the stock is 108 and the new target is 0.65 shares. At , find the new bank balance.
Worked solution
The accrued balance is . The extra 0.15 shares cost 16.20. The new balance is approximately . Adding cash from outside would change the measured hedging residual.
Hedge gamma before delta
A portfolio has gamma and delta 18. A candidate option has gamma 1.5 per contract and delta 0.55. Find the option and stock positions that make these two Greeks zero.
Compute a pathwise delta sample
For , , and , one path ends at . Find its discounted pathwise call delta contribution. What would a path ending at 100 contribute?
Worked solution
The first contribution is . The second is zero because the path is out of the money. Individual contributions can exceed one. The expectation under this model is the Black–Scholes call delta.
Choose an estimator for a digital delta
A unit cash digital has , , and . Explain why the naïve pathwise estimate gives zero and derive the analytic comparison for the likelihood-ratio estimator.
Worked solution
The digital payoff is constant in a neighbourhood of for almost every fixed draw, but the probability of being in the money changes with . Its price is , and . Here , so the delta is . Score weighting recovers that derivative of the probability.
Differentiate a digital payoff
A plain cash digital payoff has a jump at the strike. Which estimator can avoid differentiating that discontinuous payoff directly?
Worked solution
The likelihood-ratio formula weights the payoff by a score and requires the appropriate density and integrability.
12 · Forward-start options, Bates jumps and variance swaps
Watch on YouTubeLecture video timestamps and slide pages
| Topic | Video start | PDF page |
|---|---|---|
| Introduction | 0:00 | 1–2 |
| Forward-start payoffs | 2:38 | 3–7 |
| Forward characteristic functions | 15:48 | 8–10 |
| Forward starts in Black–Scholes | 27:14 | 11–13 |
| Forward starts in Heston | 34:45 | 14–17 |
| Forward implied volatility | 43:44 | 18 |
| Bates stochastic volatility with jumps | 59:10 | 19–25 |
| Variance swaps | 1:14:01 | 26–30 |
Instructor’s Lecture 12 materials.
A payoff on future performance
At time zero, contract on performance between two future dates, , and pay at . A normalized forward-start call pays , with if the quoted strike is an excess return. At the denominator is known and the payoff is . Be clear about normalization. A separate contract may multiply this normalized payoff by the future or by a fixed currency notional, changing the value. Forward-start options are useful building blocks for periodic reset products such as cliquets.
Lecture 12 slides · PDF p. 5 · YouTube · 2:38
Write and . At constant interest rate , the present price is . Conditioning on the information at the reset date isolates the future increment.
Lecture 12 slides · PDF p. 8 · YouTube · 15:48
If your conditional transform already includes discounting over , undo that discount when calculating the ordinary characteristic function, then discount the price from to time zero exactly once. In Black–Scholes with no dividends and constant coefficients, the log increment is normal with mean and variance , where . The call price uses the following normal-CDF terms.
The term is a consequence of paying at while the normalized stock growth begins at . At this is a vanilla call on unit initial notional. A forward implied volatility is the Black–Scholes volatility that reproduces the observed forward-start price, using that contract’s dates, strike and normalization. The implied number can vary with strike or reset date in a model with stochastic volatility even if the underlying variance parameters are fixed. It should be solved from the forward-start price, rather than by subtracting two ordinary implied volatilities.
Lecture 12 slides · PDF p. 11 · YouTube · 27:14
Use the affine Heston transform at the reset
In Heston the undiscounted conditional transform of the log stock is exponential-affine in the reset state.
In the preceding conditioning identity, the factors cancel exactly. The remaining randomness comes from . Use its CIR law from Lecture 10 to get the transform of the log increment.
The CIR parameters correspond to the elapsed time from zero to . For a real moment argument the formula is valid for . For complex evaluation use the corresponding continuous branch from in its convergence domain. A practical sequence is to compute the one-period Heston coefficients, compute the CIR transform of the reset variance, verify , then use COS pricing for . For smooth parameter choices this gives an independent benchmark for joint simulation of both dates. Simply replacing by its mean approximates a nonlinear expectation, and can flatten the forward smile.
Lecture 12 slides · PDF p. 14 · YouTube · 34:45
- Choose the reset date , maturity , and the strike ratios to price.
- Evaluate the characteristic function of the log return from to . Use the conditional Heston coefficients for this interval and the CIR transform for the reset variance.
- Price each normalized payoff with the COS method. Vary the truncation interval and number of modes separately to see whether the results stabilize.
- For each COS price, solve for the volatility that gives the same unit-notional Black–Scholes forward-start value.
- Check selected prices by Monte Carlo. On each simulated path, use the paired stock observations at and to calculate the payoff.
Lecture 12 slides · PDF p. 18 · YouTube · 43:44
Bates adds a compensated multiplicative jump
In Bates the Heston diffusion is augmented by an independent compound Poisson stock-jump process. Put for log jump size, so the stock at a jump is multiplied by . If jump intensity is , the mean proportional jump per event is . Subtract from the drift between jumps in the risk-neutral stock equation. This compensates the strictly positive or negative expected proportional change in the jump term. An ordinary log-price characteristic function factors into the Heston transform and the independent jump/compensation transform.
The same factor multiplies the Heston transform of a forward log increment when the jumps are independent and the parameters are constant. It equals one when , and also at . At the jump/compensation factor is one, matching the unchanged risk-neutral first stock moment whenever the Heston moment exists. A jump can produce visible short-maturity smile curvature. The direction and location of the deviations depend on intensity, jump mean, jump dispersion, and the other model parameters jointly.
Lecture 12 slides · PDF p. 19 · YouTube · 59:10
Variance swaps quote expected realized variance
A daily monitored variance swap pays its variance notional times the difference between the annualized sum of squared log returns and the strike. For observed daily returns the lecture uses
With a deterministic discount to maturity, the zero-value strike is the risk-neutral expectation of that realized measure. Respect the contract’s sampling and annualization convention. Variance is in squared annualized units, so a value of 0.04 represents a volatility of 20% only after taking a square root.
Under a continuous no-dividend diffusion , quadratic variation of over is . Divide its risk-neutral expectation by to obtain the fair strike under continuous monitoring. Applying Itô’s lemma and taking expectations of the zero-mean stochastic integral gives the second equality under the required integrability assumptions.
This diffusion identity is the link to a log contract. Under Heston with fixed, directly integrate the expected variance . With jumps, continuous-sampling quadratic variation also includes a sum of squared log jump sizes. The diffusion-only log-contract identity then requires a jump correction.
Lecture 12 slides · PDF p. 28 · YouTube · 1:14:01
Translate a return strike into a payoff
A normalized forward-start call has a return strike of 5%. The reset price is 80, and the maturity stock price is 92. Compute the payoff and the equivalent stock strike at the reset.
Worked solution
, and . The normalized payoff is , or . A contract that paid one unnormalized call payoff would pay 8 in currency units.
Check the reset discount in Black–Scholes
Take , , and . For , compute the deterministic forward-start price.
Worked solution
The ratio is , so the value is . The payoff is received at 2.5 years regardless of the reset date.
Compensate a Bates jump
Take , and intensity . Find and the drift adjustment .
Worked solution
. The continuous drift adjustment is per year. Compensation is positive because the mean proportional jump is negative.
Integrate a CIR variance curve
Use Heston with , long-run variance , and . Compute the continuous fair variance strike. If independent jumps are added at intensity 0.5 per year with mean log jump and standard deviation 0.20, what is the extra expected quadratic variation per year?
Identify a forward start
Which quantity first becomes known at the start date in a forward-start call with a strike proportional to the stock at that date?
Worked solution
The strike is a fixed multiple of the yet unknown stock value at the start date.
13 · Exotic derivatives and the state a payoff needs
Watch on YouTubeLecture video timestamps and slide pages
Supplementary lecture in the instructor’s public series. Instructor’s Lecture 13 materials.
Separate exercise opportunities from payoff features
A European option exercises at maturity, an American exercise right is available throughout its allowed window, and a Bermudan exercises on a prescribed calendar. These describe when a decision can happen. A digital, barrier, lookback, Asian or basket specifies what the payoff depends on. A contract can combine both dimensions. Read the conditions on settlement date, monitoring, strike units and event equality before choosing a numerical method.
| Structure | Data needed at valuation or simulation | Natural benchmark |
|---|---|---|
| Cash digital | Terminal stock and strike crossing at maturity. | Discounted in-the-money probability. |
| Chooser or compound | Values of the component options at the decision date. | Backward conditioning or a one-step decision tree. |
| Barrier or lookback | Hit indicator, running minimum or running maximum, depending on payoff. | In–out parity for a matched pair, or a monitored path simulation. |
| Asian | Running sampled sum or integral together with the current price. | Geometric average benchmark or augmented-state PDE. |
| Basket or spread | Joint terminal vector and its dependence structure. | One-asset or degenerate-correlation limits and Monte Carlo. |
Lecture 13 slides · PDF p. 4 · YouTube · 05:06
Terminal discontinuities and intermediate decisions
A unit cash-or-nothing call pays and an asset-or-nothing call pays . In Black–Scholes with dividend yield , their prices are
A vanilla call is the asset-or-nothing call minus unit cash digitals. For a continuous terminal distribution the choice of strict or weak inequality at the strike has zero effect. An atom at the strike makes the convention economically relevant.
Lecture 13 slides · PDF p. 5 · YouTube · 16:04
At a decision date , a call on a call pays , where is the compound option’s strike. The internal option’s price is an input at . A simple chooser at picks a call or put at the same strike and maturity, so its value at the decision instant is . The value earlier is the appropriately discounted conditional expectation of that decision-date value. By put–call parity, the call is preferred under deterministic rates and no dividends exactly when exceeds .
Lecture 13 slides · PDF p. 6 · YouTube · 16:04
Barrier monitoring changes which paths pay
Define for an upper continuous barrier, and reverse the inequality for a lower barrier. A knock-out uses the event of never hitting. A knock-in uses the event of hitting. If both share the same underlying, terminal payoff, barrier, monitoring convention and zero rebate, their payout indicators add to one at every path. Their prices therefore add to the matched vanilla price. This is a stronger debug check than comparing magnitude alone.
A continuously monitored up-and-out call with zero rebate has the usual Black–Scholes PDE on the live domain below , a zero-value condition at the barrier before maturity, and the usual call terminal payoff on the live domain. For an untriggered up-and-in, the terminal payoff on surviving unhit paths is zero and the barrier boundary equals the already-activated vanilla price. Near the barrier sensitivity can change sharply, complicating continuous-time replication on realistic trading grids.
Lecture 13 slides · PDF p. 8 · YouTube · 31:53
To simulate a discretely monitored contract, check its designated dates. For a continuously monitored contract, looking only at time-grid observations misses paths that cross and return between dates. Under constant-volatility GBM, conditional on two log-price endpoints below , the probability of an intervening crossing over a step of size is
This Brownian-bridge identity can be used for event sampling or conditional survival weighting within the stated model. A lookback instead carries its running extremum. For a fixed-strike lookback call that pays , the terminal stock can finish below strike while the maximum exceeds it. Treat grid observation and continuous monitoring separately here too.
Average prices require an extra state variable
At observation dates , write for the discrete arithmetic average and for the geometric average.
The fixed-strike Asian call pays . The floating-strike version pays . At an intermediate date, two paths at the same current price can have different sums so far. Consequently they may have different option prices. Under GBM the log of the geometric average is a linear combination of jointly Gaussian log-prices. Its mean is the average of their means. With fixed initial stock and constant parameters, its variance is
The corresponding analytic lognormal-payoff price helps benchmark or control variance in an arithmetic-average simulation.
For the continuously monitored arithmetic average, use the accumulating state , so and the final average is . In the no-dividend Black–Scholes model the price solves
For a fixed-strike call the terminal condition is . The term moves along the accumulated-average coordinate. There is no diffusion term, since has finite variation. For a different path-dependent integral , replace by . With a discrete averaging schedule, update the running sum at fixing dates and respect the exact weights in the contract.
Lecture 13 slides · PDF p. 14 · YouTube · 1:04:26
Price a basket in the joint law
For a basket call use . Spread and best-of payoffs use different aggregations. Joint dependence enters because evaluating the nonlinear payoff on the vector requires more than individual marginal prices. For correlated GBM assets with dividend yields , the diffusion generator is
The first line gives the drift and the second line shows where dependence enters through the correlations. The finite-difference grid grows exponentially in the number of factors. Monte Carlo scales with the number of stock draws per path and can handle more assets than a dense PDE grid.
Lecture 13 slides · PDF p. 23 · YouTube · 1:25:18
validate the correlation matrix as symmetric and positive semidefinite
factor it to map independent standard normals to correlated shocks
construct terminal risk-neutral stock values with each asset's drift
apply the entire basket payoff once on each joint path
discount the sample mean and compute uncertainty
verify one-stock limits, set weights and a deterministic low-volatility case
A Cholesky factor is convenient for a positive-definite correlation matrix. For singular limits use a spectral factorization or the explicit lower-dimensional representation. A weighted sum of lognormal variables is generally neither normal nor lognormal. Replacing it by one of those laws is an approximation to be benchmarked.
Decompose a vanilla call into digital payoffs
For , compute the call payoff from the asset-or-nothing amount minus ninety unit cash digitals when , and when .
Worked solution
At 110 the asset term pays 110 and the digital term is 90, giving 20. At 80 both terms vanish. The equality is pathwise and therefore survives pricing under the same contract and model.
Price a matching knock-in from two published values
A vanilla call costs 7.40. Its matched up-and-out with zero rebate costs 2.15. Find the up-and-in price. What needs to agree for this calculation?
Worked solution
The matched up-and-in costs . The barrier and monitoring rules, maturity and base terminal payoff must agree, and neither leg has a rebate. Then exactly one of the two indicators is active on each path.
Classify two look-alike Asian contracts
Four equal-weight fixing prices are 80, 100, 90 and 110, with maturity price 110. Compute the fixed-strike arithmetic Asian call at and the floating-strike arithmetic Asian call.
Worked solution
The arithmetic average is 95. The fixed-strike call pays . The floating-strike call pays , using the average itself as the strike.
Find the missing state in a continuous Asian PDE
Two paths have the same at the halfway point but different historical averages. Explain why a scalar pricing function cannot in general represent both values. Identify the terminal function for a floating-strike put.
Worked solution
Different accumulated values shift the remaining average even though the law of future stock movements from the current spot is the same in the GBM model. Use and terminal payoff .
Keep the correlations inside a basket experiment
Two assets have the same , and use weights . With correlation one and identical starting spots, give an analytical benchmark for the basket call. Explain the implication for changing a correlation parameter without recalibrating individual marginals.
Worked solution
With the same Brownian motion they have identical paths, so the arithmetic basket equals either asset and the basket call has its ordinary Black–Scholes price. Reducing correlation can leave both marginal stock distributions intact and still change the basket distribution. Compute the payoff on the new joint draws.
Match barrier conventions
When do knock-in and knock-out claims of the same vanilla payoff add path by path to the vanilla payoff?
Worked solution
Identical hitting conventions partition the paths. Rebates would add cash flows outside the vanilla payoff.
14 · Putting the course together
Watch on YouTubeLecture video timestamps and slide pages
The uploader marks the recap at 0:00. Individual topics have separate authored timestamped links in lectures 1–13. Slides 3–15 give one recap page per lecture.
YouTube’s automatic recap markers
- 0:00 · Course overview
- 3:07 · Course and asset classes
- 4:46 · Options and hedging
- 6:06 · Stochastic modelling tools
- 7:19 · Black–Scholes and martingales
- 12:45 · Implied volatility
- 15:25 · Jump diffusions
- 18:26 · Affine jump models
- 21:34 · Stochastic volatility
- 24:33 · Fourier methods
- 29:43 · Monte Carlo
- 35:25 · Advanced Heston simulation
- 40:44 · Hedging and Greeks
- 47:17 · Exotics and wrap-up
The lecturer’s public summary revisits the course one topic at a time. To rehearse it, take one contract through the entire chain. Define its cash flows, choose a model and a method, and explain what would make the numerical answer untrustworthy.
Lecture 14 slides · PDF p. 3 · YouTube · 0:00
| Given | Candidate method | First cross-check |
|---|---|---|
| One European call and a GBM terminal law | Black–Scholes or exact-terminal Monte Carlo | Parity, monotonicity and comparison with the closed form. |
| Many European strikes, known characteristic function | COS or damped FFT | Check , price bounds, interval and frequency refinement. |
| Barrier or Asian contract | Path simulation with the stated observation grid | Split pricing error into sampling, numerical path and monitoring effects. |
| Bermudan with specified exercise dates | Backward induction on a tree or grid, or simulated continuation regression | At each date compare exercise and continuation at the same state and time. |
| Sensitivity of a smooth payoff | Pathwise differentiation or a common-random-number difference | Compare with an analytic benchmark and vary the bump if used. |
| Sensitivity of a digital payoff | Likelihood ratio under a differentiable density, conditional smoothing, or a carefully tested finite difference | Explain which derivative or estimator is justified and compare error at several sample sizes. |
Original numerical check · Early exercise
A two-step binomial stock starts at 100, with multiplicative moves and cash growth per step. The pricing probability is . A put with strike 100 pays at the terminal nodes . Discount the expected terminal payoff from each intermediate node to get its continuation value .
If exercise is allowed at that time, the put is worth at and at . Discount the pricing-weighted average once more.
Compare the European answer on the same tree.
In a Markov model with deterministic discounting, compare the exercise payoff with the continuation value at state .
If the payoff depends on past values, the state must retain the required history or a sufficient summary of it. The option to exercise at extra dates weakly increases the holder’s value under the same model and payoffs.
Fang and Oosterlee, §2, Bermudan recursion.
Practice 14A · Review prices rather than models
Suppose two put pricers disagree. One uses a finer exercise schedule, the other uses a smaller numerical step. Which change can create a genuine value difference even if both methods are solved exactly?
Worked solution
Changing which dates may be exercised changes the contract and can raise the exact put value. Refining the numerical step while keeping the observation and exercise dates fixed only changes the approximation. First align the contract, model inputs and dates. Then compare numerical resolution.
Practice 14B · Decide what to compute next
A Monte Carlo price with standard error 0.10 disagrees with a Fourier price by 0.03. You double the time steps and the Monte Carlo price changes by 0.04. State an experiment that can separate sampling variability from discretisation.
Worked solution
Couple each coarse path to its fine counterpart by aggregating Brownian increments. Measure the paired fine-minus-coarse payoff on each path, then compute its mean and standard error. Increase the number of paths at a fixed grid to isolate sampling. For an analytically tractable European claim, compare both grids with the closed form. A different monitoring grid changes a barrier contract unless the target monitoring rule is stated separately.
Practice 14C · Test a cross-check in the tree
Remove the exercise opportunity at the first date in the worked example. Compute the difference from the Bermudan value without repricing every node.
Worked solution
Only the down node changes: the early exercise increment there is . Its time-zero contribution is . Thus the European price is about .
Check the backward step
At a Bermudan exercise date the immediate payoff is 12 and the discounted conditional continuation value is 9. What value belongs at this node?
Worked solution
Take the larger admissible value at that date, so the value is 12.
Independent practice labs
These original problems extend the lecture examples on Brownian integrals, deterministic volatility, square-root models, and simulation of path-dependent or correlated claims. The links under each prompt point to the related lecture material. Work on paper first, then reproduce the calculations with your own simulation.
Lab A · Turn an ordinary Brownian integral into an Itô integral
Find the mean and variance of . Compare a Riemann-sum approximation and an Itô-sum approximation on the same simulated Brownian path.
Lecture 9 slides · PDF p. 13 · YouTube · 27:42
Hint
Write and reverse the triangular integration order, or apply integration by parts with a deterministic function.
Worked solution
After reversing the order of integration, the deterministic kernel is square integrable. The mean is zero, and the Itô isometry gives the variance.
At grid points , compare these two estimates using the same Brownian increments.
Compare the averaged squared differences over several grid sizes. Independent paths would hide discretisation effects behind the true variation of .
Lab B · Brownian combinations and Wiener exponentials
Find . Then apply Itô’s formula to for and construct a martingale from it.
Lecture 2 slides · PDF p. 35 · YouTube · 1:27:27
Worked solution
. The distribution is centred Gaussian. For the exponential, . Multiplying by removes the drift. Independent Gaussian increments and their moment-generating function directly show that is a martingale.
Lab C · Deterministic curves without a smile
Under , use a risk-neutral GBM with , volatility 0.20 for the first year and 0.40 for the second, and interest rates 0.02 and 0.04 over the same years. Give the two-year discount factor, log-return variance and flat Black–Scholes implied volatility at maturity 2. Explain which parts change at maturity 1.
Lecture 4 slides · PDF p. 19 · YouTube · 58:17
Worked solution
Integrated rate is , so . Integrated variance is . Log-return mean is . Use rate and volatility in the two-year Black–Scholes formula. At maturity 1 the equivalent parameters are exactly and . At either fixed maturity, the same lognormal law prices every strike, so deterministic time dependence creates a term structure without strike skew under a consistent curve.
Lab D · Square-root diffusion with an absorbing boundary
For with , no drift and absorption at zero, derive the transform. Explain how to benchmark a numerical density recovery.
Lecture 6 slides · PDF p. 16 · YouTube · 52:12
Hint
Apply the generator to . The affine exponent has no state-independent drift term in this example.
Worked solution
The generator is . With exponent , and . Solving this equation yields the characteristic function.
At for , take in the Laplace transform. The point mass at zero is . A smooth COS approximation to the full characteristic function can spread that mass near the boundary. For the continuous component, subtract the atom’s transform (a constant equal to the mass). Check that the remaining integrated density is . Compare a CDF or positive-interval probabilities with an independent implementation. Avoid across absorbed paths.
Lab E · Separate Monte Carlo, time-step and barrier errors
Consider an up-and-out call with the following maturity payoff in a deterministic-coefficient GBM.
Price it by discounting the expected payoff. State how to generate an exact sampled path and design comparisons for a continuous barrier.
Lecture 13 slides · PDF p. 7 · YouTube · 31:53
Worked solution
Use independent normal log-return increments. For each interval , compute its mean and variance from the deterministic curves.
This is exact on the sampling dates, so Euler and Milstein comparisons at those dates measure transition bias. A sampled maximum misses between-date crossings, so with no rebate the up-and-out estimate is weakly above the continuous-monitoring counterpart for the same model. A Brownian bridge crossing formula between known endpoints is exact for a constant barrier with log drift constant in variance time on the interval. Check its assumptions before applying it under varying coefficients. With matching monitoring and no rebate, path-by-path knock-in plus knock-out payoffs equal the vanilla payoff. Test that identity on shared paths.
Lab F · Two assets and controlled correlation
Use two GBMs with valid drifts and a payoff . Describe an estimator and how to compare with without conflating the effect with sampling noise.
Lecture 13 slides · PDF p. 22 · YouTube · 1:25:18
Worked solution
Use independent standard normals and the pair for the two exact terminal stocks. Simulate each correlation on the same underlying independent normal pairs. Use the sample mean and standard error of the discounted paired differences. Confirm each marginal mean and variance at both correlations. The dependence changes the law of the maximum even when the marginals match. A conclusion drawn from this payoff and parameter set need not generalise to products, baskets or minima.
Lab G · Does matching the normal moments reduce error?
Use , , , , and zero dividend yield. Across independent batches of size , compare the exact-terminal estimator with and without rescaling each batch of standard normals to mean zero and sample variance one.
Lecture 9 slides · PDF p. 22 · YouTube · 1:03:26
Worked solution
The rescaling forces agreement on the first two sample moments while coupling all paths in that batch. A call depends on the upper tail and its nonlinear payoff, so matching those moments alone proves neither unbiasedness nor uniformly lower error. For each method, estimate bias and root mean squared error against the Black–Scholes value over independent batches. Use standard errors across independent batch estimates. An ordinary payoff standard error within a moment-matched batch assumes independence that the rescaling has removed.
Run an exact-terminal benchmark in Python
This program prices one European call twice, first by simulation and then by the Black–Scholes formula. Save it to a file called european_call.py and run python3 european_call.py in the same folder. The three imports are from Python's standard library.
- Set the inputs.
s0is today's stock price,strikeis the exercise price, andnis the number of simulated paths. The underscores in40_000make the digits easier to read.Random(529)chooses a fixed seed so you can reproduce the sequence of simulated draws. - Draw the price at maturity. The loop runs
ntimes. Eachrng.gauss(0, 1)draws a standard normal value. The code multiplies this shock bytotal_vol, addslog_driftand exponentiates. That gives a stock-price multiplier under the risk-neutral GBM law. This contract observes the stock only at maturity, so each run needs one stock draw. - Turn the stock draw into a discounted cash flow.
max(terminal - strike, 0)is the simulated call payoff.appendsaves its discounted value to the list. The variablemcis the mean of that list. The variableseestimates how much that mean would vary across fresh samples, using the sample standard deviation divided by . - Compute the benchmark.
NormalDist().cdfsupplies the standard normal cumulative distribution function . Thebenchmarkline inserts and into the no-dividend Black–Scholes call formula. - Read the output. The second line prints the approximate 95% confidence interval around the simulated price. Compare its width and location with the fixed benchmark. The interval varies with the draws.
from math import exp, log, sqrt
from random import Random
from statistics import NormalDist, mean, stdev
s0, strike, rate = 100.0, 105.0, 0.03
vol, maturity, n = 0.24, 0.75, 40_000
rng = Random(529)
discount = exp(-rate * maturity)
total_vol = vol * sqrt(maturity)
log_drift = (rate - 0.5 * vol ** 2) * maturity
discounted_payoffs = []
for _ in range(n):
terminal = s0 * exp(log_drift + total_vol * rng.gauss(0, 1))
discounted_payoffs.append(discount * max(terminal - strike, 0))
mc = mean(discounted_payoffs)
se = stdev(discounted_payoffs) / sqrt(n)
cdf = NormalDist().cdf
d1 = (log(s0 / strike) + (rate + 0.5 * vol ** 2) * maturity) / total_vol
d2 = d1 - total_vol
benchmark = s0 * cdf(d1) - strike * discount * cdf(d2)
print("MC:", mc, "SE:", se, "Black–Scholes:", benchmark)
print("Approximate 95% interval:", (mc - 1.96 * se, mc + 1.96 * se))
Lecture 9 slides · PDF p. 21 · YouTube · 1:03:26
Lecture 3 slides · PDF p. 34 · YouTube · 01:41:28
Run multiple seeds and then increase the sample count by a factor of four. The standard error should be roughly halved when the sample moments are stable. A single confidence interval can miss the benchmark. Check a grid of strikes and use the same terminal stocks when comparing payoffs at nearby strikes.
Exam review
Use this checklist to rehearse the mathematical content of the course. The questions below are original practice. The Spring 2026 listing gives 20% for homework, 30% for the individual project and 50% for the exam, with a minimum exam mark of 5. It allows a written or oral exam depending on enrolment. For a particular sitting, follow the examiner’s instructions. Official assessment description.
An oral answer should state the contract, hypotheses and pricing measure before giving a formula. Finish by identifying one limitation or numerical diagnostic.
| Starting point | Reconstruct without notes | Course chapter |
|---|---|---|
| Cash flows and pricing | Discount a payment, derive put–call parity and recover a two-state pricing measure by replication. | 1–3 |
| Stochastic calculus | Derive log GBM, show what discounting does to its drift, and derive the Black–Scholes PDE from a self-financing hedge. | 2–3 |
| Implied volatility | Give price bounds, derive Newton’s update from Vega, and explain when to switch to bracketing. | 4 |
| Jump or affine model | Compensate a jump drift, identify the PIDE’s nonlocal term and derive a transform by matching powers of the state. | 5–6 |
| Stochastic volatility | Derive Heston’s mixed partial, interpret Feller and explain how a characteristic function is used for a price. | 7–8 |
| Monte Carlo | Write the terminal payoff estimator and its standard error. Distinguish strong and weak convergence, and reconstruct the first Euler and Milstein steps. | 9–10 |
| Sensitivities and contracts | Compare finite difference, pathwise and likelihood ratio. Explain how the information needed differs for a digital, Asian, barrier or forward-start option. | 11–13 |
A 30-minute mock oral
- 0–6 minutes. Identify a European call cash flow and derive its pricing equation by replication. State what changes for dividends.
- 6–12 minutes. Explain why a quote outside the no-arbitrage bounds has no finite implied volatility. Describe separate fallback checks for poor bracketing and small Vega.
- 12–18 minutes. Given a diffusion-plus-jump stock, explain the pricing drift adjustment and say whether a pure delta hedge removes jump risk.
- 18–24 minutes. Describe how a known characteristic function supports COS pricing. Name at least two independent error sources and how you would vary numerical settings to investigate them.
- 24–30 minutes. Compare a European and a discrete-barrier Monte Carlo experiment. Write a confidence interval, state the monitoring convention, and justify which sensitivity estimator you would use.
Score each answer on four checks: assumptions stated, formula derived or justified, units consistent, diagnostic appropriate. Repeat only after you can complete the derivation with a blank page. Use a second model or payoff as a transfer test.
Glossary
Short definitions and their source pages. In the text, hover over a dotted term or focus it with the keyboard. On a touch screen, tap it.
- Affine diffusion
- A diffusion with drift and instantaneous covariance affine in the state in the stated model. Lecture 6 slides · PDF p. 16
- Affine function
- A function consisting of a constant plus a linear term in the state. Lecture 6 slides · PDF p. 16
- Affine jump diffusion
- An affine model extended by jumps under the stated assumptions on intensity and mark law. Lecture 6 slides · PDF p. 27
- American option
- An option exercisable at any permitted time up to and including maturity. Lecture 13 slides · PDF p. 4
- Arbitrage
- A trade with nonpositive initial cost, no future loss in any model state and a strict gain at inception or with positive probability. Lecture 2 slides · PDF p. 14
- Arithmetic Brownian motion
- A process with constant drift and constant Brownian noise amplitude. Its increments are normal and can take either sign. Lecture 2 slides · PDF p. 27
- Asian option
- An option whose payoff depends on an average of underlying prices. Lecture 13 slides · PDF p. 13
- Backward induction
- Determining each earlier decision value from the already determined values at later times. Fang and Oosterlee, §2 · PDF p. 4
- Barrier option
- An option whose activation or extinction depends on hitting a specified level under its monitoring convention. Lecture 13 slides · PDF p. 7
- Basket option
- An option whose payoff depends on a collection of underlying assets, for instance through a weighted sum. Lecture 13 slides · PDF p. 22
- Bates model
- Heston stochastic variance combined with compound-Poisson jumps in the asset price. Lecture 12 slides · PDF p. 19
- Bermudan option
- An option that can be exercised only on a specified set of dates. Lecture 13 slides · PDF p. 4
- Bisection
- A root-finding procedure that repeatedly halves a sign-changing interval. Lecture 4 slides · PDF p. 13
- Black–Scholes model
- The basic continuous-time model with lognormal stock dynamics and constant rate and volatility. Lecture 3 slides · PDF p. 5
- Brownian motion
- A continuous process starting at zero whose independent increments are normal, centred and have variance equal to elapsed time. Lecture 2 slides · PDF p. 24
- Calibration
- Choosing model parameters by fitting the model to specified market observations and a stated fit criterion. Lecture 7 slides · PDF p. 24
- Call option
- A claim giving the holder the right to buy at the strike. A European call can be exercised only at expiry. Lecture 1 slides · PDF p. 21
- Cash digital option
- An option paying a fixed cash amount if a condition on the terminal underlying level is met. Lecture 13 slides · PDF p. 5
- Central difference
- A central difference estimates a derivative from values at equal upward and downward changes in the input. Lecture 11 slides · PDF p. 18
- Characteristic function
- At a given frequency, the expected complex exponential of the random variable. Lecture 8 slides · PDF p. 3
- Chooser option
- An option that lets the holder decide on a specified date whether the contract will become a call or a put. Lecture 13 slides · PDF p. 6
- CIR process
- A mean-reverting diffusion whose random fluctuation is proportional to the square root of its state. Lecture 7 slides · PDF p. 9
- Compensated Poisson process
- A Poisson count with its predictable mean growth subtracted. Lecture 5 slides · PDF p. 9
- Compound option
- An option whose underlying is itself an option. Lecture 13 slides · PDF p. 6
- Compound Poisson process
- The cumulative sum of jump marks up to a Poisson-distributed count. Lecture 5 slides · PDF p. 8
- Conditional expectation
- A mean computed relative to available information. As information changes, so can this mean. Lecture 3 slides · PDF p. 13
- Continuation value
- The discounted conditional value of keeping an early-exercise option alive at a decision date. Fang and Oosterlee, §2 · PDF p. 4
- Continuous compounding
- Growth at a constant rate under continuous reinvestment. The growth factor is the exponential of rate times elapsed time. Lecture 1 slides · PDF p. 15
- COS method
- A pricing or density-recovery method using coefficients of a cosine expansion derived from the characteristic function. Lecture 8 slides · PDF p. 21
- Covariance
- The expectation of the product of two variables’ deviations from their respective means. Lecture 7 slides · PDF p. 12
- Cumulative distribution function
- The probability that a random variable is at most the specified argument. Lecture 3 slides · PDF p. 30
- Delta
- The derivative of the option value with respect to the current underlying price. Lecture 11 slides · PDF p. 3
- Delta hedging
- Adjusting holdings in the underlying so that the portfolio’s first-order sensitivity to the underlying price is zero at the hedge time. Lecture 11 slides · PDF p. 3
- Derivative
- A contract whose cash flows depend on another price, rate, index or market quantity. Lecture 1 slides · PDF p. 8
- Diffusion
- A continuous-path stochastic process such as a model driven by Brownian motion. Lecture 5 slides · PDF p. 3
- Discount factor
- The time-zero value of one unit of cash payable at a specified future date. Lecture 1 slides · PDF p. 16
- Discounted transform
- The transform formed by taking the expected complex exponential with the corresponding discount factor inside the expectation. Lecture 6 slides · PDF p. 11
- Discrete Fourier transform
- A finite transformation from a sequence of samples to a sequence of frequency coefficients. Lecture 8 slides · PDF p. 13
- Discretisation bias
- A systematic shift in the expected computed value caused by replacing a continuous problem with a discretised one. Lecture 3 slides · PDF p. 3
- Dividend
- Cash distributed by a company to its shareholders. Lecture 1 slides · PDF p. 11
- Drift
- The local expected rate of change of a stochastic process. Lecture 2 slides · PDF p. 28
- Drift correction
- The adjustment offsetting the expected jump contribution in the pricing drift. Lecture 5 slides · PDF p. 14
- Equity
- A share of ownership in a company. Lecture 1 slides · PDF p. 11
- Euler–Maruyama
- A time-stepping method that freezes drift and diffusion at the start of one time step. Lecture 9 slides · PDF p. 23
- European option
- An option that can be exercised only at maturity. Lecture 1 slides · PDF p. 21
- Expectation
- The probability-weighted mean of a random variable, when it exists. Lecture 3 slides · PDF p. 13
- Exponential moment
- The expectation of an exponential of the random variable, when that expectation is finite. Lecture 6 slides · PDF p. 9
- Fast Fourier transform
- An efficient algorithm for computing the discrete Fourier transform. Lecture 8 slides · PDF p. 11
- Feller condition
- A parameter inequality that keeps a CIR process started above zero from reaching zero. Lecture 10 slides · PDF p. 4
- Feynman–Kac
- A link, under suitable assumptions, between a differential equation and a discounted conditional expectation. Lecture 3 slides · PDF p. 21
- Filtration
- An increasing family of information sets indexed by time. Lecture 3 slides · PDF p. 13
- Finite difference
- An approximation to a derivative formed by comparing values at distinct input points. A central difference uses points on both sides. Lecture 11 slides · PDF p. 18
- Forward implied volatility
- The Black–Scholes volatility input that reproduces a given forward-start option quote. Lecture 12 slides · PDF p. 13
- Forward-start option
- An option whose strike is set in relation to the underlying at a future reset date. Lecture 12 slides · PDF p. 3
- Fourier inversion
- Recovering a function, here a probability density, from its Fourier transform under appropriate conditions. Lecture 8 slides · PDF p. 3
- Gamma
- The second derivative of option value with respect to the current underlying price. Lecture 11 slides · PDF p. 15
- Generator
- The operator describing the instantaneous expected rate of change of a smooth function of the process state. Lecture 3 slides · PDF p. 21
- Geometric Brownian motion
- A model with drift and Brownian coefficient both proportional to the current asset price. Lecture 2 slides · PDF p. 27
- Greeks
- Sensitivities of a derivative price to inputs such as spot or volatility. Lecture 11 slides · PDF p. 15
- Hedge
- A position or trading strategy that offsets part of an exposure. Lecture 2 slides · PDF p. 3
- Heston model
- A stochastic-volatility model coupling price with a mean-reverting square-root variance process. Lecture 7 slides · PDF p. 8
- Historical volatility
- Volatility estimated from past returns under a stated sampling and annualisation convention. Lecture 1 slides · PDF p. 19
- Implied volatility
- The volatility input at which the model price matches a given market price. Lecture 4 slides · PDF p. 6
- Implied-volatility surface
- Implied volatility indexed jointly by strike or moneyness and by maturity. Lecture 4 slides · PDF p. 23
- Incomplete market
- A model in which some contingent claims cannot be replicated with the assets available for trading. Lecture 7 slides · PDF p. 22
- Instantaneous variance
- The local rate at which variance accumulates in the model. Lecture 7 slides · PDF p. 9
- Integrated variance
- The time integral of the instantaneous variance rate. Lecture 10 slides · PDF p. 12
- Itô integral
- A stochastic integral defined by completion from simple adapted integrands. For suitable processes it is obtained from left-endpoint sums. Lecture 9 slides · PDF p. 13
- Itô’s formula
- A stochastic change-of-variable formula with a correction from the second derivative and quadratic variation. Lecture 2 slides · PDF p. 35
- Jump diffusion
- A model combining continuous diffusion with a discontinuous jump term. Lecture 5 slides · PDF p. 11
- Jump intensity
- The instantaneous expected number of jumps per unit time. Lecture 5 slides · PDF p. 7
- Jump mark
- The random size or other attribute assigned to one jump. Lecture 5 slides · PDF p. 8
- Kou jump diffusion
- A jump model in which positive and negative log-jumps have two exponential tails. Lecture 5 slides · PDF p. 27
- Likelihood-ratio method
- Estimating a sensitivity by weighting the payoff with the parameter derivative of the log density. Lecture 11 slides · PDF p. 26
- Local martingale
- A process that is a martingale after stopping along a suitable increasing sequence of stopping times. Lecture 3 slides · PDF p. 14
- Local volatility
- A volatility determined as a function of time and the current asset price. Lecture 7 slides · PDF p. 3
- Log return
- The logarithm of the ratio of an end price to a beginning price. Lecture 1 slides · PDF p. 18
- Lognormal
- A positive random variable is lognormally distributed when its logarithm is normal. Lecture 2 slides · PDF p. 40
- Lookback option
- An option whose payoff depends on a running minimum or maximum. Lecture 13 slides · PDF p. 7
- Markov property
- Conditional on the present state and time, the past adds no information about the future law. Lecture 2 slides · PDF p. 25
- Martingale
- An integrable adapted process whose conditional future mean equals its current value. Lecture 3 slides · PDF p. 14
- Maturity
- The end date at which the contract’s terminal payoff is determined. Lecture 1 slides · PDF p. 21
- Mean reversion
- A drift that pulls the state back toward a specified level. Lecture 7 slides · PDF p. 8
- Merton jump diffusion
- A jump model in which the log-jump sizes are normally distributed. Lecture 5 slides · PDF p. 25
- Milstein method
- A time-stepping method that adds the leading stochastic Taylor correction to Euler for a scalar diffusion. Lecture 9 slides · PDF p. 27
- Moneyness
- The relative position of spot or forward and strike under a stated convention. Lecture 4 slides · PDF p. 21
- Monte Carlo
- Estimating a quantity by drawing random samples and aggregating their outcomes. Lecture 3 slides · PDF p. 3
- Newton’s method
- A root-finding procedure that uses the tangent-line intercept as the next estimate. Lecture 4 slides · PDF p. 13
- Noncentral chi-squared distribution
- A family extending the chi-squared law by a noncentrality parameter. It describes the rescaled exact CIR transition here. Lecture 10 slides · PDF p. 10
- Normal distribution
- A Gaussian law is characterised by its mean and variance. The standard normal has mean zero and variance one. Lecture 2 slides · PDF p. 25
- Numeraire
- A strictly positive traded asset chosen as the unit for measuring values. Lecture 3 slides · PDF p. 25
- Ornstein–Uhlenbeck process
- A diffusion with linear mean reversion and additive Brownian noise. Lecture 2 slides · PDF p. 31
- Pathwise differentiation
- Estimating a sensitivity by differentiating the simulated payoff when the exchange of expectation and differentiation is valid. Lecture 11 slides · PDF p. 20
- Payoff
- The payment due from the contract after applying its terms to the observed outcome. Lecture 1 slides · PDF p. 21
- Physical measure
- The model probability law for observed market outcomes. Lecture 3 slides · PDF p. 22
- PIDE
- A partial differential equation with an integral term, here accounting for changes in value when jumps occur. Lecture 5 slides · PDF p. 19
- Poisson process
- A counting process with independent increments and Poisson-distributed counts over intervals at the stated intensity. Lecture 5 slides · PDF p. 7
- Present value
- The value today assigned to cash paid at a future date under the stated discounting rule. Lecture 1 slides · PDF p. 16
- Price residual
- The model price minus the target price in the implied-volatility equation. Lecture 4 slides · PDF p. 13
- Probability density
- A function whose integral over a region is the probability of falling in that region. Lecture 3 slides · PDF p. 30
- Probability distribution
- A rule assigning probabilities to the possible values of a random quantity. Lecture 2 slides · PDF p. 25
- Put option
- A claim giving the holder the right to sell at the strike. A European put can be exercised only at expiry. Lecture 1 slides · PDF p. 22
- Put–call parity
- A price identity obtained by matching the terminal cash flows of a European call and put portfolio to those of stock and cash. Lecture 2 slides · PDF p. 16
- Quadratic covariation
- The limit of sums of paired process increments along refining time partitions, when the limit exists. Lecture 7 slides · PDF p. 12
- Quadratic variation
- The limit of the accumulated squares of process increments along refining time partitions, when the limit exists. Lecture 2 slides · PDF p. 35
- Random variable
- A numerical quantity whose value is determined by the random outcome. Lecture 2 slides · PDF p. 22
- Realised variance
- Variance measured from observed returns over the period using the contract’s sampling and annualisation rules. Lecture 12 slides · PDF p. 26
- Replication
- A trading strategy that reproduces the claim’s cash flows in every relevant model state. Lecture 2 slides · PDF p. 13
- Riccati equation
- An ordinary differential equation quadratic in its unknown, used here to find transform coefficients. Lecture 6 slides · PDF p. 20
- Risk-neutral measure
- A probability law under which appropriately numeraire-discounted traded gains are martingales in the model. Lecture 3 slides · PDF p. 22
- Root bracket
- An interval whose endpoint signs indicate an enclosed root for a continuous function. Lecture 4 slides · PDF p. 13
- Sample path
- The whole time trace of a process for one outcome. Lecture 2 slides · PDF p. 22
- Self-financing
- A portfolio is self-financing when rebalancing is paid for entirely with its existing assets. Lecture 3 slides · PDF p. 5
- Short rate
- The instantaneous interest rate used for risk-free accrual in the model. Lecture 1 slides · PDF p. 15
- Simple interest
- Interest calculated on the original principal alone. Lecture 1 slides · PDF p. 13
- Spot price
- The current price or quoted level of the underlying, as distinct from a future delivery price. Lecture 1 slides · PDF p. 21
- Standard error
- The standard deviation of an estimator over repeated samples, or its estimate from the sample. Lecture 9 slides · PDF p. 21
- Stochastic process
- A family of random variables indexed by time. Lecture 2 slides · PDF p. 22
- Stochastic volatility
- Volatility that follows its own random dynamics within the price model. Lecture 7 slides · PDF p. 6
- Strike
- The exercise price fixed by an option contract. Lecture 1 slides · PDF p. 21
- Strong convergence
- Convergence measured by differences between coupled sample paths or their terminal values. Lecture 9 slides · PDF p. 19
- Term structure
- Dependence on time to maturity at a fixed convention for the other inputs. Lecture 4 slides · PDF p. 23
- Terminal condition
- The value specified at the contract’s end, usually by its payoff. Lecture 3 slides · PDF p. 11
- Tower property
- Conditioning a conditional expectation again on earlier information gives the conditional expectation on the earlier information alone. Lecture 3 slides · PDF p. 13
- Underlying
- The asset, rate or index referenced by the contract. Lecture 1 slides · PDF p. 21
- Variance
- The expected squared deviation of a random variable from its mean. Lecture 2 slides · PDF p. 25
- Variance swap
- A contract exchanging realised variance against a fixed strike, multiplied by the variance notional. Lecture 12 slides · PDF p. 26
- Vega
- The derivative of option value with respect to the volatility input. Lecture 11 slides · PDF p. 15
- Volatility of variance
- The parameter scaling the Brownian fluctuation in the variance process. Lecture 7 slides · PDF p. 9
- Volatility skew
- An asymmetric slope of implied volatility across strikes. Lecture 4 slides · PDF p. 21
- Volatility smile
- A pattern of implied volatility that rises toward both strike wings. Lecture 4 slides · PDF p. 21
- Weak convergence
- Convergence measured by differences in the expected value of given test functions. Lecture 9 slides · PDF p. 19
Course sources and further reading
- MasterMath Computational Finance course information and Spring 2026 timetable.
- Lech Grzelak’s public lectures at Utrecht University and the lecturer’s slide and code index. The recording times in each chapter refer to this public series.
Course textbook and supplied readings
- C. W. Oosterlee and L. A. Grzelak, Mathematical Modeling and Computation in Finance. The specified textbook. Start with Chapter 1 for stochastic calculus, Chapter 3 for Black–Scholes, Chapter 6 for Fourier methods, Chapter 9 for Monte Carlo, and Chapter 10 for exotics and early exercise. Lecturer’s full textbook crosswalk.
- P. Carr and D. B. Madan, Option Valuation Using the Fast Fourier Transform. Supplied Fourier reading. §3 derives the transformed prices and §4 evaluates the inverse transform by FFT.
- M. Schmelzle, Option Pricing Formulae using Fourier Transform: Theory and Application. Supplied Fourier reading. §4 compares pricing representations built from characteristic functions.
- F. Fang and C. W. Oosterlee, Pricing Early-Exercise and Discrete Barrier Options by Fourier-Cosine Series Expansions. Supplied reading on Bermudan exercise and discrete barrier monitoring. §2 gives the backward recursion and §3 studies the errors.
Further reading selected for this handbook
- F. Fang and C. W. Oosterlee, A Novel Pricing Method for European Options Based on Fourier-Cosine Series Expansions, especially §§2–3 for the density and payoff formulation behind Lecture 8.
- S. L. Heston, A Closed-Form Solution for Options with Stochastic Volatility with Applications to Bond and Currency Options, for stochastic variance and characteristic-function pricing.
- M. Broadie and Ö. Kaya, Exact Simulation of Stochastic Volatility and Other Affine Jump Diffusion Processes, for the integrated variance in an exact Heston simulation.
- M. Broadie and P. Glasserman, Estimating Security Price Derivatives Using Simulation, for pathwise and likelihood-ratio sensitivity estimators.
For questions or corrections to source credit, please use the Contact page.