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

  1. Contract. Write what is paid, at what date, and what must be observed to determine the amount. A call holder receives (ST−K)+(S_T-K)^+. A barrier holder also needs to know whether a level was crossed.
  2. Model. State the dynamics, pricing measure, discount factor and state variables. A European call with deterministic rr and no dividends can be valued with the terminal stock law alone. A discretely monitored barrier needs joint values across monitoring dates.
  3. 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

SymbolInterpretationCheck
t,T,τt,T,\tauCurrent time, maturity, time remaining T−tT-tUse years if the quoted rates are annual.
St,K,r,q,σS_t,K,r,q,\sigmaStock, strike, short rate, dividend yield and volatilityVariance rate is σ2\sigma^2. Rates in formulas are decimals.
P,Q\mathbb P,\mathbb QPhysical and pricing measuresA hedging or risk forecast can need P\mathbb P; a model price uses the stated pricing measure.
Wt,Nt,VtW_t,N_t,V_tBrownian motion, Poisson count and instantaneous varianceThe symbols describe a continuous path, a jump count and a nonnegative process, respectively.
n,m,Δtn,m,\Delta tNumber of paths, number of time steps and a uniform step lengthUse nn to study sampling error and mm to study bias.
i,Φ,ϕXi,\Phi,\phi_XImaginary unit, standard normal CDF, characteristic function of XXϕX(u)=E[eiuX]\phi_X(u)=\mathbb E[e^{iuX}] and ϕX(0)=1\phi_X(0)=1.

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 vv for the variance of the weighted sum aX+bYaX+bY. It has one term for each variable and one term for their covariance.

v=a2Var⁡(X)+b2Var⁡(Y)+2abCov⁡(X,Y).\begin{aligned} v&= a^2\operatorname{Var}(X)+b^2\operatorname{Var}(Y)\\ &\quad+2ab\operatorname{Cov}(X,Y). \end{aligned}

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 E[X∣Ft]\mathbb E[X\mid\mathcal F_t] uses information available at time tt. For s≤ts\le t, conditioning the time-tt mean on information at time ss recovers the time-ss mean.

E ⁣[E[X∣Ft]∣Fs]=E[X∣Fs].\mathbb E\!\left[\mathbb E[X\mid\mathcal F_t]\mid\mathcal F_s\right] =\mathbb E[X\mid\mathcal F_s].

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 Wt−WsW_t-W_s of mean zero and variance t−st-s, independent of the information up to ss. Writing Wt=Ws+(Wt−Ws)W_t=W_s+(W_t-W_s) when s≤ts\le t gives the covariance of the two levels.

Cov⁡(Wt,Ws)=min⁡(s,t).\operatorname{Cov}(W_t,W_s)=\min(s,t).

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 R=1.02R=1.02. Assume trading without friction and allow borrowing and short positions. A call struck at 100 pays 20 or 0. Let Δ\Delta be the number of shares and BB the cash balance today. The stock-and-cash portfolio must match the call in both states.

120Δ+1.02B=20,80Δ+1.02B=0.\begin{aligned} 120\Delta+1.02B&=20,\\ 80\Delta+1.02B&=0. \end{aligned}

Subtracting the second equation from the first gives Δ=0.5\Delta=0.5. The down-state equation then gives B=−40/1.02B=-40/1.02, a cash borrowing. The cost today is 0.5(100)−40/1.02≈10.78430.5(100)-40/1.02\approx10.7843.

Let SuS_u and SdS_d be the two possible terminal stock prices. The up weight p∗p^* makes the expected discounted stock equal its current price. It gives the same call price C0C_0 because expectation is linear. Only the up state contributes because the down-state payoff is zero.

p∗=RS0−SdSu−Sd=0.55,C0=20p∗R≈10.7843.\begin{aligned} p^*&=\frac{RS_0-S_d}{S_u-S_d}=0.55,\\ C_0&=\frac{20p^*}{R}\approx10.7843. \end{aligned}

The market's actual up probability can differ. The restriction Sd<RS0<SuS_d<RS_0<S_u 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 80,12080,120 and the gross cash return 1.021.02.

Up payoffDown payoffSharesPrice
2000.500010.7843

Warm-up · Where does the covariance enter?

Let X=W2−2W1X=W_2-2W_1 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, 2+4−4=22+4-4=2. Alternatively X=(W2−W1)−W1X=(W_2-W_1)-W_1. It is a sum of two independent centred normal variables, with variance 2, so X∼N(0,2)X\sim N(0,2).

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 Δ=−15/40=−0.375\Delta=-15/40=-0.375, then 1.02B=451.02B=45 in the up state. The price is −37.50+45/1.02=6.6176-37.50+45/1.02=6.6176. The expectation gives 0.45(15)/1.02=6.61760.45(15)/1.02=6.6176.

1. Markets, interest rates and option payoffs

Watch on YouTube

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 AA and an annual rate rr. After τ\tau years, the balances under simple interest, periodic compounding and continuous compounding are AsA_s, ApA_p and AcA_c, respectively. Periodic compounding uses mm periods per year and an integer number mτm\tau of periods.

As=A(1+rτ),Ap=A(1+r/m)mτ,Ac=Aerτ.\begin{aligned} A_s&=A(1+r\tau),\\ A_p&=A(1+r/m)^{m\tau},\\ A_c&=Ae^{r\tau}. \end{aligned}

Lecture 1 slides · PDF p. 16 · YouTube · 38:00

The continuous factor erτe^{r\tau} is the limit of the periodic factors. It also solves dBt=rBt dtdB_t=rB_t\,dt with B0=1B_0=1. A known payment HH at time TT has value D(t,T)HD(t,T)H at time tt. With constant rr, this discount factor is D(t,T)=e−r(T−t)D(t,T)=e^{-r(T-t)}. For a deterministic rate that varies with time, integrate the rate between payment dates.

D(t,T)=exp⁡ ⁣(−∫tTr(u) du).D(t,T)=\exp\!\left(-\int_t^T r(u)\,du\right).

An effective annual rate ii and a continuously compounded rate rr describe the same annual growth when r=log⁡(1+i)r=\log(1+i). 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 250e−0.08≈230.78250e^{-0.08}\approx230.78. Applying the factor e0.08e^{0.08} 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 S0S_0 to S1S_1, the simple price return is S1/S0−1S_1/S_0-1. For a cash dividend dd paid during the interval, one simple holding-period return is (S1+d)/S0−1(S_1+d)/S_0-1, assuming the dividend is kept as cash. The log price return log⁡(S1/S0)\log(S_1/S_0) adds across adjacent intervals. Volatility σ\sigma is a standard deviation; the variance is σ2\sigma^2. Under the model of independent increments with the same daily variance, 252 daily intervals have annualized standard deviation 252\sqrt{252} 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 ST=KS_T=K. 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

r=log⁡(1.05)≈0.04879r=\log(1.05)\approx0.04879. The discount factor is e−2r=1/1.052e^{-2r}=1/1.05^2. Since 1,102.50=1,000(1.05)21{,}102.50=1{,}000(1.05)^2, 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 6e0.03≈6.186e^{0.03}\approx6.18. The maturity profits are therefore about −€6.18 and €13.82. Break-even is 80+6e0.03≈86.1880+6e^{0.03}\approx86.18.

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 (41+0.50−40)/40=3.75%(41+0.50-40)/40=3.75\%. The annualized standard deviation is 0.012252≈19.05%0.012\sqrt{252}\approx19.05\%. 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 YouTube

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 UU foreign units at a domestic-per-foreign quote SS gives SUSU 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 S0S_0, the two possible expiry values be Su>SdS_u>S_d, and the risk-free growth factor be RR. A derivative pays HuH_u or HdH_d. A portfolio with Δ\Delta shares and a current bank balance bb replicates it if ΔSi+Rb=Hi\Delta S_i+Rb=H_i in each state. Solve the two equations to find the holdings.

Δ=Hu−HdSu−Sd,b=Hd−ΔSdR.\Delta=\frac{H_u-H_d}{S_u-S_d},\qquad b=\frac{H_d-\Delta S_d}{R}.

Its cost today is ΔS0+b\Delta S_0+b. Substituting the two holdings expresses that cost as a discounted weighted payoff.

V0=qHu+(1−q)HdR,q=RS0−SdSu−Sd.\begin{aligned} V_0&=\frac{qH_u+(1-q)H_d}{R},\\ q&=\frac{RS_0-S_d}{S_u-S_d}. \end{aligned}

The strict inequalities Sd<RS0<SuS_d<RS_0<S_u put qq 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 qq 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 S0=100S_0=100, Su=130S_u=130, Sd=80S_d=80, R=1.05R=1.05, K=110K=110. The call pays 20,020,0. The hedge holds 0.40.4 shares and borrows 32/1.0532/1.05, costing 40−32/1.05≈9.5240-32/1.05\approx9.52. The pricing weight is q=(105−80)/50=1/2q=(105-80)/50=1/2, so discounting a weighted payoff of 1010 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 max⁡(0,St−KD(t,T))\max(0,S_t-KD(t,T)) and StS_t. With known cash dividends the prepaid forward price replaces StS_t in the parity relation. With a deterministic proportional dividend yield qdq_d, it is Ste−qd(T−t)S_t e^{-q_d(T-t)} for constant qdq_d. 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 XtX_t 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 h Z\sqrt h\,Z with Z∼N(0,1)Z\sim N(0,1). Multiplying by hh would give variance h2h^2 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 XtX_t, the conditional mean mhm_h after time hh moves toward θ\theta. The conditional variance vhv_h grows toward σ2/(2κ)\sigma^2/(2\kappa).

mh=θ+(Xt−θ)e−κh,vh=σ2(1−e−2κh)2κ.\begin{aligned} m_h&=\theta+(X_t-\theta)e^{-\kappa h},\\ v_h&=\frac{\sigma^2(1-e^{-2\kappa h})}{2\kappa}. \end{aligned}

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 tt is tt. The mnemonic (dWt)2=dt(dW_t)^2=dt summarizes the contribution from accumulated squared increments. For GBM, f(s)=log⁡sf(s)=\log s has derivatives 1/s,−1/s21/s,-1/s^2. Substitution gives

dlog⁡St=(μ−12σ2) dt+σ dWt.d\log S_t=(\mu-\tfrac12\sigma^2)\,dt+\sigma\,dW_t.

Write τ=T−t\tau=T-t and let ZZ be standard normal. Integrating the log equation and exponentiating gives the terminal stock.

ST=Stexp⁡ ⁣[(μ−12σ2)τ+στ Z].S_T=S_t\exp\!\left[(\mu-\tfrac12\sigma^2)\tau+\sigma\sqrt{\tau}\,Z\right].

Thus log⁡ST\log S_T is normal given StS_t, and STS_T is lognormal. If X=log⁡STX=\log S_T has density fXf_X, the stock density is fS(s)=fX(log⁡s)/sf_S(s)=f_X(\log s)/s for s>0s>0, from the change of variables. Using E[eaZ]=ea2/2E[e^{aZ}]=e^{a^2/2} gives Et[ST]=SteμτE_t[S_T]=S_te^{\mu\tau}. 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 Hu=0,Hd=30H_u=0,H_d=30. Thus Δ=−30/50=−0.6\Delta=-30/50=-0.6 and b=(30+0.6⋅80)/1.05=78/1.05b=(30+0.6\cdot80)/1.05=78/1.05. The price is −60+78/1.05≈14.29-60+78/1.05\approx14.29. The call minus the put is 100−110/1.05100-110/1.05, as required by parity.

2.2 Parity violation and today’s trade

Set S0=100S_0=100, K=100K=100 and D(0,T)=0.98D(0,T)=0.98. 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 KK costs 11+98=10911+98=109. Put plus stock costs 7+100=1077+100=107. 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 St=100S_t=100, μ=0.06\mu=0.06, σ=0.20\sigma=0.20, τ=0.25\tau=0.25. Find the conditional mean and variance of the log return and the conditional mean of the terminal stock.

Worked solution

The mean is (0.06−0.02)0.25=0.01(0.06-0.02)0.25=0.01 and the variance is 0.04⋅0.25=0.010.04\cdot0.25=0.01. The stock mean is 100e0.06⋅0.25≈101.51100e^{0.06\cdot0.25}\approx101.51. Exponentiating only the mean of the log return gives a median price in this model.

2.4 An Itô calculation without a logarithm

Let dXt=μ dt+σ dWtdX_t=\mu\,dt+\sigma\,dW_t. Derive the differential of Xt2X_t^2. Which term would ordinary differential calculus miss?

Worked solution

d(Xt2)=(2μXt+σ2) dt+2σXt dWtd(X_t^2)=(2\mu X_t+\sigma^2)\,dt+2\sigma X_t\,dW_t. The term σ2dt\sigma^2dt comes from the second derivative of x2x^2 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 YouTube

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 tnt_n with uniform spacing hh. The Euler–Maruyama update evaluates drift aa and diffusion bb at the start of the step. Draw an independent standard normal ZnZ_n for each step along the path.

Xn+1=Xn+a(tn,Xn)h+b(tn,Xn)h Zn.X_{n+1}=X_n+a(t_n,X_n)h+b(t_n,X_n)\sqrt h\,Z_n.

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 STS_T 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 rr 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 S0S_0 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 Bt=ertB_t=e^{rt}, no dividends and the geometric Brownian stock model under the physical measure P\mathbb P. Apply Itô’s formula to the derivative price V(t,S)V(t,S).

dV=(Vt+μSVS+12σ2S2VSS)dt+σSVS dWtP.\begin{aligned} dV={}&\left(V_t+\mu S V_S+\tfrac12\sigma^2 S^2 V_{SS}\right)dt\\ &+\sigma S V_S\,dW_t^{\mathbb P}. \end{aligned}

At an instant, a self-financing strategy holding one claim and short Δ\Delta shares has gains dV−Δ dSdV-\Delta\,dS. The bank part of the strategy pays for rebalancing. Taking Δ=VS\Delta=V_S cancels the Brownian coefficient and the term with μ\mu. Under no arbitrage the locally risk-free value V−ΔSV-\Delta S earns rr, giving the pricing equation.

0=Vt+12σ2S2VSS+rSVS−rV.\begin{aligned} 0&=V_t+\tfrac12\sigma^2S^2V_{SS}\\ &\quad+rS V_S-rV. \end{aligned} V(T,S)=g(S).V(T,S)=g(S).

The terminal condition specifies the derivative. Spatial boundary conditions for numerical work come from the payoff behaviour. For a European call, V(t,0)=0V(t,0)=0 and V(t,S)V(t,S) approaches S−Ke−rτS-Ke^{-r\tau} in absolute difference as S→∞S\to\infty in the standard model. Delta VSV_S is the local share sensitivity and gamma VSSV_{SS} 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 Ft\mathcal F_t denotes information available at time tt.

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 Mt=eaWt−a2t/2M_t=e^{aW_t-a^2t/2}. The exponential moment of the future normal increment cancels the factor from the time correction.

E[ea(WT−Wt)∣Ft]=ea2(T−t)/2.\mathbb E[e^{a(W_T-W_t)}\mid\mathcal F_t]=e^{a^2(T-t)/2}.

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 Q\mathbb Q for the bank-account numeraire makes appropriately discounted traded gains martingales. In no-dividend Black–Scholes, the pricing drift is rStr S_t. Dividing by the bank account cancels this drift.

d(St/Bt)=σ(St/Bt) dWtQ.d(S_t/B_t)=\sigma(S_t/B_t)\,dW_t^{\mathbb Q}.

The price is the conditional mean of the payoff in units of the bank account, converted back to cash at time tt.

V(t,St)=Bt EQ ⁣[g(ST)BT | Ft].V(t,S_t)=B_t\,\mathbb E^{\mathbb Q}\!\left[\frac{g(S_T)}{B_T}\,\middle|\,\mathcal F_t\right].

The physical drift μ\mu describes a law for realized returns. The pricing drift rr is tied to replication and the chosen numeraire. Risk-neutral valuations can therefore be internally consistent even when μ\mu differs substantially from rr. 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 r,σr,\sigma, S>0,K>0,τ>0,σ>0S>0,K>0,\tau>0,\sigma>0, let N(x)N(x) and n(x)n(x) be the standard normal CDF and density. Splitting the discounted call payoff into a stock term and a strike term on ST>KS_T>K gives

d1=log⁡(S/K)+(r+12σ2)τστ,d2=d1−στ,d_1=\frac{\log(S/K)+(r+\tfrac12\sigma^2)\tau}{\sigma\sqrt\tau},\qquad d_2=d_1-\sigma\sqrt\tau, C=SN(d1)−Ke−rτN(d2),P=Ke−rτN(−d2)−SN(−d1).\begin{aligned} C&=S N(d_1)-K e^{-r\tau}N(d_2),\\ P&=K e^{-r\tau}N(-d_2)-S N(-d_1). \end{aligned}

The strike term contains N(d2)N(d_2), the risk-neutral probability that ST>KS_T>K given St=SS_t=S. In the stock term the factor STS_T weights the upper tail, and completing the square shifts the normal threshold from d2d_2 to d1d_1. The put follows from parity. At expiry evaluate the payoff directly. At σ=0\sigma=0, take the deterministic limit (S−Ke−rτ)+(S-Ke^{-r\tau})^+ for the call. The call’s spot and volatility sensitivities provide useful diagnostics.

DeltaCS=N(d1),GammaCSS=n(d1)Sστ,VegaCσ=Sn(d1)τ.\begin{aligned} \text{Delta}&\quad C_S=N(d_1),\\ \text{Gamma}&\quad C_{SS}=\frac{n(d_1)}{S\sigma\sqrt{\tau}},\\ \text{Vega}&\quad C_\sigma=S n(d_1)\sqrt{\tau}. \end{aligned}

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 S=K=100S=K=100, r=5%r=5\%, and σ=20%\sigma=20\%. Calculate d1,d2d_1,d_2, the call value and the share hedge of a short call.

Worked solution

d1=0.35, d2=0.15d_1=0.35,\ d_2=0.15. Using N(0.35)≈0.63683N(0.35)\approx0.63683, N(0.15)≈0.55962N(0.15)\approx0.55962 and discounting the strike gives C≈10.45C\approx10.45. Buy 0.636830.63683 shares per short call to neutralize first-order spot movements. Parity gives P≈5.57P\approx5.57.

3.2 Verify the PDE for a known cash flow

Use the candidate V(t,S)=Ke−r(T−t)V(t,S)=K e^{-r(T-t)}. Check the Black–Scholes PDE and terminal condition for a payment of KK regardless of STS_T.

Worked solution

Both spatial derivatives are zero and Vt=rVV_t=rV, so the PDE term Vt−rVV_t-rV vanishes. At t=Tt=T, V=KV=K. The bank holding replicates the claim without shares.

3.3 Test the simulation drift

In no-dividend GBM, suppose a pricing simulation wrongly uses μ=0.09\mu=0.09 where the model's rate is r=0.04r=0.04. 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 100e(μ−r)2=100e0.10≈110.52100e^{(\mu-r)2}=100e^{0.10}\approx110.52. 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 N(d1)N(d_1) and N(d2)N(d_2) is the risk-neutral probability of exercise? Why does the other appear in the formula?

Worked solution

N(d2)N(d_2) results by standardizing the threshold in log⁡ST>log⁡K\log S_T>\log K. The discounted stock term is

EQ ⁣[e−rτST1{ST>K}].\mathbb E^{\mathbb Q}\!\left[e^{-r\tau}S_T\mathbf 1_{\{S_T>K\}}\right].

The factor STS_T tilts the density. Completing the square yields SN(d1)SN(d_1).

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 YouTube

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 S,K,τ,σ>0S,K,\tau,\sigma>0, vega is Sn(d1)τ>0S n(d_1)\sqrt\tau>0. Thus the price increases strictly with σ\sigma, from max⁡(0,S−Ke−rτ)\max(0,S-Ke^{-r\tau}) at zero volatility to SS 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 SS 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 f(σ+h)≈f(σ)+f′(σ)hf(\sigma+h)\approx f(\sigma)+f'(\sigma)h gives the Newton step

σnext=σ−CBS(σ)−CmarketVega(σ).\sigma_{\mathrm{next}} =\sigma-\frac{C_{\mathrm{BS}}(\sigma)-C_{\mathrm{market}}}{\mathrm{Vega}(\sigma)}.

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 S=K=100, r=5%, τ=1S=K=100,\ r=5\%,\ \tau=1, and take Cmarket=12.34C_{\mathrm{market}}=12.34. At σ=0.20\sigma=0.20, the model gives 10.4505810.45058 and vega 37.5240337.52403 per unit volatility. The first Newton step is 0.250350.25035. At σ=0.25\sigma=0.25, the model price is 12.3360012.33600, consistent with an implied volatility close to 25%. A vega per one percentage point would be 0.375240.37524; 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 k=log⁡(K/F(t,T))k=\log(K/F(t,T)) 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 [t,T][t,T] is normal. Its variance is the integral of the instantaneous variance rate. An equivalent constant volatility spreads that same variance across the interval.

w=∫tTσ(s)2 ds,σequiv=wT−t.w=\int_t^T \sigma(s)^2\,ds,\qquad \sigma_{\mathrm{equiv}}=\sqrt{\frac{w}{T-t}}.

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 S=100S=100, K=90K=90, D(t,T)=0.98D(t,T)=0.98. A call is quoted at 11. Does a positive Black–Scholes implied volatility exist?

Worked solution

The lower bound is 100−90(0.98)=11.80100-90(0.98)=11.80. 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 0.250.25 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 [0.10,0.25][0.10,0.25] is available. How should the hybrid algorithm continue?

Worked solution

Newton proposes 0.25−0.05/0.10=−0.250.25-0.05/0.10=-0.25. Reject it since it is outside the bracket. Use its midpoint 0.1750.175, 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 0.5(0.2)2+0.5(0.3)2=0.0650.5(0.2)^2+0.5(0.3)^2=0.065, so constant volatility is 0.065≈25.50%\sqrt{0.065}\approx25.50\%. 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 YouTube

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 λh+o(h)\lambda h+o(h), and the probability of multiple jumps is O(h2)O(h^2). With the usual past information, Nt−λtN_t-\lambda t is a martingale because the conditional expected increment is zero.

Make a compound process YtY_t by adding independent identically distributed marks JjJ_j, independent of the counter. The empty sum is zero. Conditioning on the count gives these moments when they exist.

Yt=∑j=1NtJj,E[Yt]=λt E[J],Var⁡(Yt)=λt E[J2].\begin{aligned} Y_t&=\sum_{j=1}^{N_t}J_j,\\ \mathbb E[Y_t]&=\lambda t\,\mathbb E[J],\\ \operatorname{Var}(Y_t)&=\lambda t\,\mathbb E[J^2]. \end{aligned}

Given NtN_t, the variance is NtVar⁡(J)N_t\operatorname{Var}(J), and the variance of the conditional mean NtE[J]N_t\mathbb E[J] adds λt(E[J])2\lambda t(\mathbb E[J])^2. 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 XX has a jump of size JJ, the jump of a smooth function is exactly f(t,X−+J)−f(t,X−)f(t,X_{-}+J)-f(t,X_{-}). The diffusion part still uses Itô derivatives. For the exponential, the jump in stock S=eXS=e^X is S−(eJ−1)S_{-}(e^J-1), where the minus subscript means the value immediately before the jump. Replacing eJ−1e^J-1 by JJ 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 rr, no dividends and a finite stock-jump moment. The expected proportional stock move per jump is mJm_J under the chosen pricing jump law.

mJ=EQ[eJ−1].m_J=\mathbb E^{\mathbb Q}[e^J-1].

Write YtY_t for the cumulative log jumps and UtU_t for the sum of the proportional stock moves eJj−1e^{J_j}-1. The two dynamics are

dXt=(r−12σ2−λmJ) dt+σ dWtQ+dYt,dStSt−=(r−λmJ) dt+σ dWtQ+dUt.\begin{aligned} dX_t&=(r-\tfrac12\sigma^2-\lambda m_J)\,dt\\ &\quad+\sigma\,dW_t^{\mathbb Q}+dY_t,\\ \frac{dS_t}{S_{t-}}&=(r-\lambda m_J)\,dt\\ &\quad+\sigma\,dW_t^{\mathbb Q}+dU_t. \end{aligned}

The jump contribution to the mean rate of dSt/St−dS_t/S_{t-} is λmJ\lambda m_J, which cancels the correction and leaves rr. The Brownian drift correction −σ2/2-\sigma^2/2 belongs in the log equation. A stock and a bank account generally cannot span every jump outcome. Here λ\lambda and the mark law are already specified under Q\mathbb Q; 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 V(t,s)V(t,s), with terminal condition V(T,s)=g(s)V(T,s)=g(s), the pricing equation is

0=Vt+(r−λmJ)sVs−rV+12σ2s2Vss+λEQ ⁣[V(t,seJ)−V(t,s)].\begin{aligned} 0={}&V_t+(r-\lambda m_J)sV_s-rV\\ &+\tfrac12\sigma^2s^2V_{ss}\\ &+\lambda\mathbb E^{\mathbb Q}\!\big[V(t,se^J)-V(t,s)\big]. \end{aligned}

The jump operator uses values away from ss, giving a partial integro-differential equation (PIDE). The two terms −rV-rV and −λV-\lambda V come from discounting and the current value subtracted in each jump difference. Their combined coefficient is −(r+λ)-(r+\lambda) when the expectation is expanded. Substituting V(t,s)=sV(t,s)=s makes the drift and jump corrections cancel after subtracting rsrs. Taking λ→0\lambda\to0 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 J∼N(μJ,δJ2)J\sim N(\mu_J,\delta_J^2), so mJ=eμJ+δJ2/2−1m_J=e^{\mu_J+\delta_J^2/2}-1. The Kou model takes a positive exponential magnitude with probability pp and the negative of an exponential magnitude otherwise. With rates η+\eta_+ and η−\eta_-,

E[eJ]=pη+η+−1+(1−p)η−η−+1,η+>1,η−>0.\mathbb E[e^J]=p\frac{\eta_+}{\eta_+-1}+(1-p)\frac{\eta_-}{\eta_-+1}, \qquad \eta_+>1,\quad \eta_->0 .

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 NN from a Poisson distribution with mean λτ\lambda\tau. Conditional on NN, the sum of the normal jump marks has mean NμJN\mu_J and variance NδJ2N\delta_J^2. Simulate it with a normal draw ZJZ_J independent of the diffusion’s normal draw ZZ. The terminal log-price sample is

XT=Xt+(r−12σ2−λmJ)τ+στ Z+NμJ+δJN ZJ.\begin{aligned} X_T={}&X_t+(r-\tfrac12\sigma^2-\lambda m_J)\tau\\ &+\sigma\sqrt\tau\, Z\\ &+N\mu_J+\delta_J\sqrt N\, Z_J. \end{aligned}

This is exact for the terminal value with constant parameters. For a European claim, compute e−rτg(eXT)e^{-r\tau}g(e^{X_T}) 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 N=nN=n, independence multiplies the jump factors and gives ϕJ(u)n\phi_J(u)^n. Averaging over Poisson probabilities exponentiates this factor.

ϕ∑J(u)=exp⁡ ⁣(λτ(ϕJ(u)−1)).\phi_{\sum J}(u)=\exp\!\left(\lambda\tau(\phi_J(u)-1)\right).

Multiplying by the drift and Brownian factors gives the conditional transform of terminal log price, ϕXT∣Xt=x(u)=eΨ(u)\phi_{X_T\mid X_t=x}(u)=e^{\Psi(u)}. The three contributions to the exponent are

Ψ(u)=iux−12σ2u2τ+iu(r−12σ2−λmJ)τ+λτ[ϕJ(u)−1].\begin{aligned} \Psi(u)={}&iux-\tfrac12\sigma^2u^2\tau\\ &+iu(r-\tfrac12\sigma^2-\lambda m_J)\tau\\ &+\lambda\tau\big[\phi_J(u)-1\big]. \end{aligned}

For Merton, ϕJ(u)=eiuμJ−δJ2u2/2\phi_J(u)=e^{iu\mu_J-\delta_J^2u^2/2}. At u=0u=0 the transform equals 1. Where the exponential moment exists, evaluation at u=−iu=-i gives EQ[ST∣Xt=x]=ex+rτ\mathbb E^{\mathbb Q}[S_T\mid X_t=x]=e^{x+r\tau}. 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 λ=2\lambda=2 per year and a 0.40.4-year window, calculate the probabilities of zero, one and at least two jumps.

Worked solution

The Poisson parameter is 0.8. The probabilities are e−0.8≈0.4493e^{-0.8}\approx0.4493, 0.8e−0.8≈0.35950.8e^{-0.8}\approx0.3595 and 1−1.8e−0.8≈0.19121-1.8e^{-0.8}\approx0.1912. 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 −20%-20\%, the intensity is 0.5 and r=4%r=4\%. Compute mJm_J and the continuous stock drift between jumps. What is the mean growth rate including jumps?

Worked solution

The log mark is J=log⁡(0.8)J=\log(0.8), so mJ=−0.2m_J=-0.2. Between jumps the drift is r−λmJ=0.04+0.10=0.14r-\lambda m_J=0.04+0.10=0.14. Including the expected jump loss 0.5(−0.2)0.5(-0.2) gives mean growth rate 0.04.

5.3 Check normalization and the stock moment

Use the log-price transform to check ϕ(0)\phi(0) and ϕ(−i)\phi(-i), assuming E[eJ]\mathbb E[e^J] exists.

Worked solution

ϕJ(0)=1\phi_J(0)=1, so the exponent vanishes at zero. At u=−iu=-i, iu=1iu=1 and u2=−1u^2=-1. The +σ2τ/2+\sigma^2\tau/2 term cancels the log drift's −σ2τ/2-\sigma^2\tau/2. Since ϕJ(−i)−1=mJ\phi_J(-i)-1=m_J, the jump factor cancels −λmJτ-\lambda m_J\tau. The surviving exponent is x+rτx+r\tau.

5.4 Derive the intensity term in the generator

Over a short time hh, what is the leading conditional expected change of V(t,s)V(t,s) due only to jumps?

Worked solution

A jump transforms ss into seJse^J. Its probability to first order is λh\lambda h, so the change is λh E[V(t,seJ)−V(t,s)]\lambda h\,\mathbb E[V(t,se^J)-V(t,s)] to leading order, assuming the relevant integrability. Divide by hh 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 YouTube

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

ϕX(u)=E[eiuX]=∫ReiuxfX(x) dx,\phi_X(u)=\mathbb E[e^{iuX}]=\int_{\mathbb R}e^{iux}f_X(x)\,dx, fX(x)=12π∫Re−iuxϕX(u) duf_X(x)=\frac1{2\pi}\int_{\mathbb R}e^{-iux}\phi_X(u)\,du

in the density case when the inversion integral is valid, for example if ϕX\phi_X is integrable. The characteristic function itself always exists for real uu and uniquely determines the law. For real XX, ϕX(0)=1\phi_X(0)=1, ϕX(−u)=ϕX(u)‾\phi_X(-u)=\overline{\phi_X(u)}, and ∣ϕX(u)∣≤1|\phi_X(u)|\le1. For independent X,YX,Y, the transform of X+YX+Y is the product. When the absolute kk-th moment is finite, E[Xk]=i−kϕX(k)(0)\mathbb E[X^k]=i^{-k}\phi_X^{(k)}(0). For S>0S>0, ϕlog⁡S(−ik)=E[Sk]\phi_{\log S}(-ik)=\mathbb E[S^k] 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 XT=log⁡STX_T=\log S_T conditional on St=sS_t=s has mean m=log⁡s+(r−σ2/2)τm=\log s+(r-\sigma^2/2)\tau and variance v=σ2τv=\sigma^2\tau. Its ordinary characteristic function is exp⁡(ium−u2v/2)\exp(iu m-u^2v/2). For constant rate the discounted transform multiplies this by e−rτe^{-r\tau}. At u=0u=0 the discounted transform equals the bond price e−rτe^{-r\tau}. At u=−iu=-i it equals ss 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 a0+a1xa_0+a_1x, instantaneous variance c0+c1xc_0+c_1x, and short rate r0+r1xr_0+r_1x. Use a state space on which the variance is nonnegative. The variance is affine and its square root can be nonlinear. At initial state xx, the discounted transform is the price of a complex-exponential payoff.

F(τ,x)=ExQ ⁣[e−∫0τr(Xs) ds eiuXτ].F(\tau,x)=\mathbb E^{\mathbb Q}_x\!\left[ e^{-\int_0^\tau r(X_s)\,ds}\,e^{iuX_\tau} \right].

Its pricing equation in time-to-maturity form is

Fτ=(a0+a1x)Fx−(r0+r1x)F+12(c0+c1x)Fxx.\begin{aligned} F_\tau={}&(a_0+a_1x)F_x-(r_0+r_1x)F\\ &+\tfrac12(c_0+c_1x)F_{xx}. \end{aligned} F(0,x)=eiux.F(0,x)=e^{iux}.

Try F=eA(τ)+B(τ)xF=e^{A(\tau)+B(\tau)x}. Then Fτ/F=A′+B′xF_\tau/F=A'+B'x, Fx/F=BF_x/F=B, and Fxx/F=B2F_{xx}/F=B^2. Match the constant and linear coefficients:

A′=−r0+a0B+12c0B2,B′=−r1+a1B+12c1B2.\begin{aligned} A'&=-r_0+a_0 B+\tfrac12c_0B^2,\\ B'&=-r_1+a_1B+\tfrac12c_1B^2. \end{aligned} A(0)=0,B(0)=iu.A(0)=0,\qquad B(0)=iu.

The transform problem in the state variable xx becomes an ODE problem in τ\tau. Under the conditions that make the transform and Riccati solution well defined, one solves for the requested uu, then evaluates eA+Bxe^{A+Bx} for the starting state. For log-GBM, a0=r−σ2/2, c0=σ2, a1=c1=r1=0a_0=r-\sigma^2/2,\ c_0=\sigma^2,\ a_1=c_1=r_1=0, and r0=rr_0=r. The ODE gives B=iuB=iu and A=(iua0−σ2u2/2−r)τA=(iu a_0-\sigma^2u^2/2-r)\tau, exactly the discounted Gaussian transform. Working with the stock itself gives instantaneous variance σ2s2\sigma^2s^2, 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 dd dimensions, use affine drift a(x)=a0+a1xa(x)=a_0+a_1x, short rate r(x)=r0+r1⊤xr(x)=r_0+r_1^\top x and instantaneous covariance matrix

C(x)=C0+∑j=1dxjCj.C(x)=C_0+\sum_{j=1}^d x_j C_j.

Substituting F=eA+B⊤xF=e^{A+B^\top x} gives

A′=−r0+B⊤a0+12B⊤C0B,Bj′=−(r1)j+(a1⊤B)j+12B⊤CjB.\begin{aligned} A'&=-r_0+B^\top a_0+\tfrac12 B^\top C_0 B,\\ B'_j&=-(r_1)_j+(a_1^\top B)_j\\ &\quad+\tfrac12 B^\top C_j B. \end{aligned}

The transpose is algebraic. Do not conjugate BB in this expression; the Hessian of the exponential contains products BiBjB_iB_j. 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 e−rτe^{-r\tau}, because the entire payoff is discounted once. With correlation ρ\rho, the log covariance entry over τ\tau is ρσ1σ2τ\rho\sigma_1\sigma_2\tau, and the joint Gaussian exponent acquires cross term −ρσ1σ2τu1u2-\rho\sigma_1\sigma_2\tau u_1u_2.

Lecture 6 slides · PDF p. 25 · YouTube · 1:07:31

For this one-factor affine jump diffusion, add a mark JJ with a specified state-independent law. The intensity λ(x)=ℓ0+ℓ1x\lambda(x)=\ell_0+\ell_1x must be nonnegative on the state space. The new generator term, divided by FF, is

(ℓ0+ℓ1x)(E[eBJ]−1).(\ell_0+\ell_1x)\big(\mathbb E[e^{BJ}]-1\big).

The constant part with coefficient ℓ0\ell_0 goes into A′A'. The linear part with coefficient ℓ1\ell_1 gives the extra term in B′B'. Each allowed type of jump supplies its own term in a multi-factor model, with B⊤JB^\top J for a vector mark. If intensity is constant and the other log-stock coefficients do not depend on state, B′=0B'=0 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 St=80S_t=80, r=0.03r=0.03 and τ=2\tau=2. Find the ordinary and discounted conditional log-stock transforms at u=0u=0 and u=−iu=-i, without choosing volatility.

Worked solution

At zero the ordinary transform is 1 and the discounted transform is e−0.06≈0.94176e^{-0.06}\approx0.94176. At u=−iu=-i, the ordinary transform is 80e0.06≈84.9580e^{0.06}\approx84.95 and the discounted transform is 8080. Both checks hold independently of volatility.

6.2 Recover the characteristic function of mean reversion

Take constant rate rr and the Ornstein–Uhlenbeck state from Lecture 2. Use the affine ODEs to determine B(τ)B(\tau). How does its nonzero solution encode fading dependence on XtX_t?

Worked solution

Here a1=−κa_1=-\kappa, a0=κθa_0=\kappa\theta, c1=r1=0c_1=r_1=0. Thus B′=−κBB'=-\kappa B and B=iue−κτB=iu e^{-\kappa\tau}. Dependence on the initial state enters the exponent as iue−κτXtiu e^{-\kappa\tau}X_t. Integrating the equation for AA gives

A=−rτ+iuθ(1−e−κτ)−u2σ2(1−e−2κτ)4κ.\begin{aligned} A={}&-r\tau+iu\theta(1-e^{-\kappa\tau})\\ &-\frac{u^2\sigma^2(1-e^{-2\kappa\tau})}{4\kappa}. \end{aligned}

This agrees with the Gaussian conditional law.

6.3 Add the affine jump terms

Suppose every jump adds jj to XX and the intensity is 0.2+0.3X0.2+0.3X on a state space where it is nonnegative. Identify the jump contributions to A′A' and B′B'.

Worked solution

The generator adds (0.2+0.3x)[F(τ,x+j)−F(τ,x)](0.2+0.3x)[F(\tau,x+j)-F(\tau,x)]. Dividing by FF and writing F(τ,x+j)/F(τ,x)=eBjF(\tau,x+j)/F(\tau,x)=e^{Bj}, the constant contribution is 0.2(eBj−1)0.2(e^{Bj}-1) and the linear contribution is 0.3(eBj−1)0.3(e^{Bj}-1).

6.4 Detect double discounting

Two independent log-stocks have ϕ1(0)=ϕ2(0)=1\phi_1(0)=\phi_2(0)=1 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 u1=u2=0u_1=u_2=0 it gives e−2rτe^{-2r\tau}. The payoff with both frequencies zero is one unit at maturity, whose correct price is e−rτe^{-r\tau}. 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 YouTube

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

V0V_0 is the initial variance, θ\theta the long-run mean, and κ\kappa the speed of reversion. The parameter ξ\xi, often called vol-of-vol, scales the Brownian shock to variance. The parameter ρ\rho is the correlation of the Brownian innovations. Several parameters can affect the same part of an implied-volatility surface. As diagnostic tendencies, V0V_0 is particularly important at short maturities, θ\theta matters for longer maturities, and negative ρ\rho 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 ITI_T for the integrated variance ∫0TVs ds\int_0^T V_s\,ds.

E[Vt]=θ+(V0−θ)e−κt,E[IT]=θT+(V0−θ)1−e−κTκ.\begin{aligned} \mathbb E[V_t]&=\theta+(V_0-\theta)e^{-\kappa t},\\ \mathbb E[I_T] &=\theta T+(V_0-\theta)\frac{1-e^{-\kappa T}}{\kappa}. \end{aligned}

With V0=0.09V_0=0.09, θ=0.04\theta=0.04, κ=2\kappa=2, ξ=0.30\xi=0.30 and T=1T=1, the expected terminal variance is about 0.046770.04677. The expected integrated variance is 0.061620.06162 and 2κθ−ξ2=0.072\kappa\theta-\xi^2=0.07. Plugging 0.061620.06162 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 WV,W⊥W^V,W^\perp. Its WVW^V component gives the covariation of the stock and variance shocks.

dWS=ρ dWV+1−ρ2 dW⊥.dW^S=\rho\,dW^V+\sqrt{1-\rho^2}\,dW^\perp. d[S,V]t=ρξStVt dt.d[S,V]_t=\rho\xi S_tV_t\,dt.

Lecture 7 slides · PDF p. 14 · YouTube · 28:30

In Itô’s formula the 1/21/2 on the Hessian is cancelled by the two matching off-diagonal entries. For a European value f(t,s,v)f(t,s,v) in the interior s,v>0s,v>0, with terminal payoff g(s)g(s), the equation is

0=ft+(r−q)sfs−rf+κ(θ−v)fv+12vs2fss+ρξvsfsv+12ξ2vfvv.\begin{aligned} 0={}&f_t+(r-q)s f_s-rf\\ &+\kappa(\theta-v)f_v+\tfrac12 v s^2 f_{ss}\\ &+\rho\xi vs f_{sv}+\tfrac12\xi^2 v f_{vv}. \end{aligned} f(T,s,v)=g(s).f(T,s,v)=g(s).

The covariance term vanishes when ρ=0\rho=0, but random VV 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 X=log⁡SX=\log S. The transform for the log return over τ\tau takes the following affine form in the starting variance vv.

ϕ(u)=exp⁡ ⁣(A(τ,u)+D(τ,u)v).\phi(u)=\exp\!\big(A(\tau,u)+D(\tau,u)v\big).

The terminal log-spot transform has the additional factor eiulog⁡se^{iu\log s}. From the log-space generator and the affine ansatz, match constant and variance terms.

D′=12ξ2D2+(ρξiu−κ)D−12(u2+iu),A′=iu(r−q)+κθD.\begin{aligned} D'&=\tfrac12\xi^2D^2+(\rho\xi iu-\kappa)D\\ &\quad-\tfrac12(u^2+iu),\\ A'&=iu(r-q)+\kappa\theta D. \end{aligned} D(0,u)=A(0,u)=0.D(0,u)=A(0,u)=0.

This ODE formulation also offers a reference check for a complex closed form. Test ϕ(0)=1\phi(0)=1, conjugate symmetry for real uu, continuity on the frequency grid and, when the relevant moment exists and the transform is evaluated consistently there, E[ST]=se(r−q)τ\mathbb E[S_T]=s e^{(r-q)\tau} 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

Heston’s original paper.

Practice 7A · Boundary versus discretisation

Take κ=1.25,θ=0.04,ξ=0.35\kappa=1.25,\theta=0.04,\xi=0.35 and V0>0V_0>0. Test the Feller condition. What does a negative simulated Euler state show?

Worked solution

2κθ=0.10<0.1225=ξ22\kappa\theta=0.10<0.1225=\xi^2, so zero is attainable under the CIR dynamics. The exact variance stays nonnegative. A negative Euler value shows the scheme does not preserve that state space. It does not show negative variance in the model.

Practice 7B · Recover the mixed term

Apply the second-order part of Itô’s formula to f(s,v)=svf(s,v)=sv. Find the drift due to correlation when s=100,v=0.04,ξ=0.6,ρ=−0.5s=100,v=0.04,\xi=0.6,\rho=-0.5.

Worked solution

The pure second derivatives vanish and fsv=1f_{sv}=1. The covariance drift is ρξsv=−1.2\rho\xi sv=-1.2 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 ξ=0\xi=0. If V0≠θV_0\ne\theta, under what volatility does the stock price have the same terminal law as a constant-volatility Black–Scholes model?

Worked solution

Vt=θ+(V0−θ)e−κtV_t=\theta+(V_0-\theta)e^{-\kappa t} is deterministic. The log return has variance IT=∫0TVsdsI_T=\int_0^T V_s ds and mean (r−q)T−IT/2(r-q)T-I_T/2. Its constant-volatility match is IT/T\sqrt{I_T/T} 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 YouTube

Instructor’s Lecture 8 materials.

From a characteristic function to a density

The characteristic function of a real random variable XX is the expectation of its complex exponential at frequency uu.

ϕX(u)=E[eiuX].\phi_X(u)=E[e^{iuX}].

Euler’s formula decomposes it into the expected cosine and sine at frequency uu. It exists for every real uu, since each complex exponential has magnitude one.

To see the phase, start with X∼N(0,1)X\sim N(0,1), so ϕX(u)=e−u2/2\phi_X(u)=e^{-u^2/2}. A shift by mm multiplies the characteristic function by eiume^{ium}, changing e−iuxe^{-iux} to e−iu(x−m)e^{-iu(x-m)} 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 UU, sample uj=umin⁡+jΔuu_j=u_{\min}+j\Delta u, and use quadrature weights wjw_j for the finite sum. For the one-sided inversion integral the natural starting point is umin⁡=0u_{\min}=0. Choose xk=xmin⁡+kΔxx_k=x_{\min}+k\Delta x. The only mixed term in e−iujxke^{-iu_jx_k} is e−ijkΔuΔxe^{-ijk\Delta u\Delta x}. Setting ΔuΔx=2π/N\Delta u\Delta x=2\pi/N lets a standard length-NN DFT evaluate this term for every kk. The remaining phase e−iumin⁡xke^{-iu_{\min}x_k} is applied at the output, and e−ijΔuxmin⁡e^{-ij\Delta u x_{\min}} 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.

f^(xk)=ΔuπRe⁡[e−iumin⁡xk∑j=0N−1wjϕ(uj)e−ijΔuxmin⁡e−2πijk/N].\widehat f(x_k)=\frac{\Delta u}{\pi}\operatorname{Re}\left[ e^{-iu_{\min}x_k} \sum_{j=0}^{N-1} w_j \phi(u_j)e^{-ij\Delta u x_{\min}}e^{-2\pi ijk/N} \right].

The FFT evaluates the same DFT as the direct sum. The radix-two derivation collects even and odd inputs, takes two DFTs of size N/2N/2, then combines them with phase factors. This reduces work from O(N2)O(N^2) to O(Nlog⁡N)O(N\log N). The grid relation links frequency step, spatial spacing and spatial period NΔx=2π/ΔuN\Delta x=2\pi/\Delta u. A larger cutoff generally improves high-frequency coverage and reduces Δx\Delta x when NN stays fixed, at the cost of shorter spatial coverage if Δu\Delta u increases. A wide spatial domain and fine spacing usually require increasing NN. 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 [a,b][a,b], put ℓ=b−a\ell=b-a, uk=kπ/ℓu_k=k\pi/\ell, and use x↦cos⁡(uk(x−a))x\mapsto\cos(u_k(x-a)). On [a,b][a,b] its nonzero-frequency terms have squared norm ℓ/2\ell/2, while the constant has norm ℓ\ell. We can write all coefficients with 2/ℓ2/\ell 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 [a,b][a,b], each nonzero cosine integrates to zero, while F0=2/ℓF_0=2/\ell. Counting the zero mode once at half weight immediately yields the correct 1/ℓ1/\ell. For a typical normal density illustration, start with [m−8s,m+8s][m-8s,m+8s] for a mean mm and standard deviation s>0s>0, 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

c1±Lc2+∣c4∣.c_1\pm L\sqrt{c_2+\sqrt{|c_4|}}.

Check LL 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 Y=log⁡(ST/K)Y=\log(S_T/K), gcall(y)=K(ey−1)+g_{\rm call}(y)=K(e^y-1)^+, and gput(y)=K(1−ey)+g_{\rm put}(y)=K(1-e^y)^+. Insert the density series into the discounted payoff integral and integrate each basis function against the payoff. With the characteristic function of this same YY, including the initial log-moneyness, no separate S0/KS_0/K phase is needed.

Hk=2ℓ∫abg(y)cos⁡(uk(y−a)) dy,V0≈e−rT∑k=0N−1′HkRe⁡{ϕY(uk)e−iuka}.\begin{aligned} H_k&=\frac{2}{\ell}\int_a^b g(y)\cos(u_k(y-a))\,dy,\\ V_0&\approx e^{-rT}\sum_{k=0}^{N-1}{}' H_k\operatorname{Re}\{\phi_Y(u_k)e^{-iu_k a}\}. \end{aligned}

Two integrals handle vanilla payoff coefficients.

ψk(c,d)=∫cdcos⁡(uk(y−a)) dy,χk(c,d)=∫cdeycos⁡(uk(y−a)) dy.\begin{aligned} \psi_k(c,d)&=\int_c^d \cos(u_k(y-a))\,dy,\\ \chi_k(c,d)&=\int_c^d e^y\cos(u_k(y-a))\,dy. \end{aligned}

For k=0k=0, ψk=d−c\psi_k=d-c. Otherwise take the sine difference and divide by uku_k. For every kk, evaluate the following antiderivative at the two endpoints to get χk\chi_k.

ey(cos⁡(uk(y−a))+uksin⁡(uk(y−a)))1+uk2.\frac{e^y\bigl(\cos(u_k(y-a))+u_k\sin(u_k(y-a))\bigr)}{1+u_k^2}.

The active interval for a call is [max⁡(a,0),b][\max(a,0),b], and for a put it is [a,min⁡(b,0)][a,\min(b,0)]. Give an empty active interval zero coefficient. Multiply 2K/ℓ2K/\ell by χk−ψk\chi_k-\psi_k for a call or by ψk−χk\psi_k-\chi_k 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 ϕY(u)=eiulog⁡(S0/K)ϕlog⁡(ST/S0)(u)\phi_Y(u)=e^{iu\log(S_0/K)}\phi_{\log(S_T/S_0)}(u), the return transform can be reused across strikes. If the truncation interval is also held fixed in YY, the dimensionless payoff coefficient for each mode can be reused and scaled by KK. 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 N=256N=256 and Δu=0.25\Delta u=0.25, find Δx\Delta x and the periodic spatial width. What changes when Δu\Delta u is doubled and NN stays fixed?

Worked solution

Δx=2π/64≈0.09817\Delta x=2\pi/64\approx0.09817 and NΔx=8π≈25.13N\Delta x=8\pi\approx25.13. Doubling Δu\Delta u 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 YY on [−1,1][-1,1], strike K=1K=1, and no discount. The fixed-strike call pays (eY−1)+(e^Y-1)^+. Compute its exact value with one density mode.

Worked solution

The density is the constant 1/21/2. Only mode zero survives. The value is 12∫01(ey−1)dy=(e−2)/2≈0.35914\tfrac12\int_0^1(e^y-1)dy=(e-2)/2\approx0.35914. Omitting the prime-weight convention doubles the answer.

Separate three sources of pricing error

On [−2,2][-2,2], changing from 256 to 512 COS terms leaves a call value unchanged. Expanding the interval to [−4,4][-4,4] 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 NN within each interval because its spacing in frequency changes. Compare with a benchmark and inspect tail contribution separately. Agreement in NN alone gives no bound on the omitted payoff.

Spot the doubled log-moneyness phase

Your model routine returns ϕlog⁡(ST/K)(u)\phi_{\log(S_T/K)}(u). Your pricing code uses eiu(log⁡(S0/K)−a)e^{iu(\log(S_0/K)-a)} in addition. Identify the mistake.

Worked solution

The returned characteristic function already includes the initial log-moneyness. Multiply it only by e−iuae^{-iua}. If the routine instead returns the transform of the log return log⁡(ST/S0)\log(S_T/S_0), add eiulog⁡(S0/K)e^{iu\log(S_0/K)} 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 YouTube

Instructor’s Lecture 9 materials.

Turn an integral into the mean of random observations

If UU is uniform on [a,b][a,b], its density is 1/(b−a)1/(b-a). For a different sampling density pp that is positive wherever the integrand contributes, weight each draw XX by the reciprocal of its density.

∫abg(x) dx=(b−a)E[g(U)],∫g(x) dx=Ep ⁣[g(X)p(X)].\begin{aligned} \int_a^b g(x)\,dx &=(b-a)E[g(U)],\\ \int g(x)\,dx &=E_p\!\left[\frac{g(X)}{p(X)}\right]. \end{aligned}

Either way the average of independent draws converges under the law of large numbers. The sampling distribution affects the variance of the estimator. For 0≤g≤M0\le g\le M, hit-or-miss integration samples the area beneath gg inside a rectangle. Conditional on the horizontal coordinate, the vertical indicator has expectation g(U)/Mg(U)/M. Averaging g(U)g(U) 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 NN independent discounted payoffs Yj=e−rTH(ST(j))Y_j=e^{-rT}H(S_T^{(j)}), compute the sample mean V^\widehat V, the sample standard deviation sYs_Y with divisor N−1N-1, and standard error sY/Ns_Y/\sqrt N. Under the usual finite-variance CLT, an approximate large-sample 95% interval is

V^±1.96 sYN.\widehat V\pm1.96\,\frac{s_Y}{\sqrt N}.

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 tit_i depends only on the history through tit_i. The next Brownian increment has conditional mean zero. This makes the sum mean zero for square-integrable adapted integrands. For the integral with WW as integrand, expand each squared value to isolate the left-endpoint term.

Wi+12−Wi2=2WiΔWi+(ΔWi)2.W_{i+1}^2-W_i^2=2W_i\Delta W_i+(\Delta W_i)^2.

The sum of squared increments has mean TT and variance 2∑i(Δti)22\sum_i(\Delta t_i)^2, tending to zero variance as the maximum step tends to zero. It follows that

∫0TWt dWt=12(WT2−T),E ⁣[∫0TWt dWt]=0,Var⁡ ⁣(∫0TWt dWt)=T2/2.\begin{aligned} \int_0^T W_t\,dW_t&=\tfrac12(W_T^2-T),\\ E\!\left[\int_0^T W_t\,dW_t\right]&=0,\\ \operatorname{Var}\!\left(\int_0^T W_t\,dW_t\right)&=T^2/2. \end{aligned}

That variance also follows from the Itô isometry, which equates the second moment of the stochastic integral with E[∫0TWt2dt]E[\int_0^T W_t^2dt]. If the integrand is tt instead, the same isometry gives T3/3T^3/3, and since the integrand is deterministic the integral is normal. These are simple benchmarks for simulation. A right-endpoint version of the WW integrand generates an extra +∑i(ΔWi)2+\sum_i(\Delta W_i)^2, hence approaches the Itô integral plus TT. 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 dXt=μ(t,Xt)dt+b(t,Xt)dWtdX_t=\mu(t,X_t)dt+b(t,X_t)dW_t, Euler–Maruyama freezes the drift and diffusion at the left endpoint. Set ΔWi=hZi\Delta W_i=\sqrt h Z_i with independent standard normal draws ZiZ_i. Adding the leading term from the expansion of b(t,Xt)b(t,X_t) 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, bi=σXib_i=\sigma X_i and ∂xbi=σ\partial_xb_i=\sigma. Under the risk-neutral no-dividend model there is also an exact update.

Xi+1=Xiexp⁡ ⁣((r−12σ2)h+σΔWi).X_{i+1}=X_i\exp\!\left((r-\tfrac12\sigma^2)h+\sigma\Delta W_i\right).

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

CheckWhat it measuresPractical experiment
Strong convergenceE[∣XT−XTh∣]E[|X_T-X^h_T|] or a related path error.Sum fine Brownian increments to create coarse steps and compare each path with the same Brownian outcome.
Weak convergence∣E[g(XT)]−E[g(XTh)]∣|E[g(X_T)]-E[g(X^h_T)]| for a chosen payoff or test function gg.Compare expected payoffs with a benchmark or use common random numbers to estimate differences across grids.
Sampling errorThe finite-NN uncertainty of the average at a fixed time grid.Compute standard error and repeat at larger NN with discretization fixed.

Under standard regularity conditions for scalar diffusions and sufficiently smooth test functions, Euler has strong order 1/21/2, 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 N=10,000N=10{,}000 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

12/10,000=0.1212/\sqrt{10{,}000}=0.12. Solving 12/N=0.0312/\sqrt N=0.03 gives 160,000 independent paths. The approximately 95% half-width at that size is 1.96(0.03)≈0.0591.96(0.03)\approx0.059.

Calculate a left-endpoint sum

Two equal steps span T=1T=1, and the Brownian increments are 0.30.3 and −0.1-0.1. Evaluate the two-step approximation to ∫01Wt dWt\int_0^1W_t\,dW_t and verify the finite-sum identity.

Worked solution

The left endpoints are 0 and 0.3, so the sum is −0.03-0.03. Also WT2=0.04W_T^2=0.04 and ∑(ΔW)2=0.10\sum(\Delta W)^2=0.10, giving 12(0.04−0.10)=−0.03\tfrac12(0.04-0.10)=-0.03. A coarse realization can differ substantially from the continuous formula with T=1T=1.

One Euler and Milstein step

Let GBM start at 100 with r=0.03r=0.03, σ=0.2\sigma=0.2, h=0.25h=0.25, and Z=0Z=0. Compute the Euler, Milstein, and exact one-step values.

Worked solution

Euler yields 100+100(0.03)(0.25)=100.75100+100(0.03)(0.25)=100.75. Milstein subtracts 12(0.2)2(100)(0.25)=0.50\tfrac12(0.2)^2(100)(0.25)=0.50, giving 100.25. The exact update gives 100e(0.03−0.02)0.25≈100.25031100e^{(0.03-0.02)0.25}\approx100.25031.

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 2(0.07)=0.099\sqrt2(0.07)=0.099. 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 YouTube

Instructor’s Lecture 10 materials.

Why normal Euler shocks are problematic near zero variance

In the Cox–Ingersoll–Ross variance process, θ\theta is the long-run variance, κ\kappa is its mean reversion speed, and γ\gamma controls variance shocks.

dvt=κ(θ−vt) dt+γvt dWtv.dv_t=\kappa(\theta-v_t)\,dt+\gamma\sqrt{v_t}\,dW_t^v.

With positive parameters and a nonnegative initial state the process stays nonnegative. The Feller condition 2κθ≥γ22\kappa\theta\ge\gamma^2 ensures that zero is unattainable from a positive initial state. Below that threshold zero can be reached, with positive κθ\kappa\theta pushing the process away. The boundary geometry matters when a model spends substantial time at small variance.

For vi>0v_i>0, the raw Euler proposal is conditionally normal with mean m=vi+κ(θ−vi)hm=v_i+\kappa(\theta-v_i)h and standard deviation s=γvihs=\gamma\sqrt{v_i h}. Write ZZ for a standard normal draw.

Y=m+sZ,P(Y<0∣vi)=Φ(−m/s).Y=m+sZ,\qquad P(Y<0\mid v_i)=\Phi(-m/s).

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 max⁡(Y,0)\max(Y,0), placing all negative proposals at zero. The reflected update uses ∣Y∣|Y|, 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 δ+λ\delta+\lambda. Multiplying by cc gives θ(1−q)+qvi\theta(1-q)+qv_i, easing the sanity check. Its variance is 2(δ+2λ)2(\delta+2\lambda), so the conditional variance of vi+1v_{i+1} is 2c2(δ+2λ)2c^2(\delta+2\lambda). A sampler can use the Poisson mixture P∼Poisson⁡(λ/2)P\sim\operatorname{Poisson}(\lambda/2), followed by a central χδ+2P2\chi^2_{\delta+2P} draw. In code, use a stable implementation of 1−e−κh1-e^{-\kappa h}, such as −expm1⁡(−κh)-\operatorname{expm1}(-\kappa h) for small hh.

For example, take vi=0.09v_i=0.09, θ=0.04\theta=0.04, κ=2\kappa=2, γ=0.30\gamma=0.30 and h=0.5h=0.5. Then q=e−1q=e^{-1}, and the exact conditional mean is 0.04+0.05e−1≈0.058390.04+0.05e^{-1}\approx0.05839. 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 Xt=log⁡StX_t=\log S_t. Choose independent Brownian motions Wv,W⊥W^v,W^\perp, and write the stock shock as ρ dWv+1−ρ2 dW⊥\rho\,dW^v+\sqrt{1-\rho^2}\,dW^\perp. Integrating the variance equation on a step expresses the integral with the shared driver in terms of the variance endpoint and the integrated variance Ii=∫titi+1vs dsI_i=\int_{t_i}^{t_{i+1}}v_s\,ds. Conditional on the variance path, the orthogonal stochastic integral is normal with mean zero and variance IiI_i. Substitution yields

Xi+1=Xi+rh−12Ii+ργ(vi+1−vi−κθh+κIi)+(1−ρ2)Ii Zi⊥.\begin{aligned} X_{i+1}={}&X_i+rh-\tfrac12 I_i\\ &+\frac{\rho}{\gamma}\bigl(v_{i+1}-v_i-\kappa\theta h+\kappa I_i\bigr)\\ &+\sqrt{(1-\rho^2)I_i}\,Z^\perp_i. \end{aligned}

In the lecture’s scheme, sample vi+1v_{i+1} from the exact transition and use the approximation Ii≈vihI_i\approx v_i h. The state innovation driving the shared spot movement is then vi+1−vi−κ(θ−vi)hv_{i+1}-v_i-\kappa(\theta-v_i)h. 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 κ=1.5,θ=0.04,γ=0.5\kappa=1.5,\theta=0.04,\gamma=0.5, check the Feller condition. What should a simulation report near the boundary?

Worked solution

2κθ=0.12<0.25=γ22\kappa\theta=0.12<0.25=\gamma^2. 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 vi=0.09,θ=0.04,κ=2,γ=0.3,h=0.5v_i=0.09,\theta=0.04,\kappa=2,\gamma=0.3,h=0.5. Compute the transition parameters and an approximate conditional standard deviation.

Worked solution

c≈0.007111c\approx0.007111, δ≈3.556\delta\approx3.556, and λ≈4.656\lambda\approx4.656. The mean is about 0.05839. The standard deviation is c2(δ+2λ)≈0.0361c\sqrt{2(\delta+2\lambda)}\approx0.0361. The magnitude of that standard deviation explains why much smaller variance draws are plausible.

Carry one Heston innovation through to the stock

With r=0.03,κ=2,θ=0.04,γ=0.5,ρ=−0.6,h=0.25r=0.03,\kappa=2,\theta=0.04,\gamma=0.5,\rho=-0.6,h=0.25, suppose vi=0.04v_i=0.04, the CIR draw gives vi+1=0.07v_{i+1}=0.07, and Z⊥=0Z^\perp=0. Compute the approximate log-stock step.

Worked solution

Ii≈0.01I_i\approx0.01, so the drift contribution is 0.0075−0.005=0.00250.0075-0.005=0.0025. The mean reversion correction within the shared term is zero at vi=θv_i=\theta. The shared term is −0.6/0.5(0.07−0.04)=−0.036-0.6/0.5(0.07-0.04)=-0.036. Thus the log-stock change is −0.0335-0.0335. With Si=100S_i=100 the new stock observation is about 96.71.

Explain the word “almost”

A script samples both CIR endpoints exactly, takes ρ=0\rho=0, and prices a Heston call using Ii=vihI_i=v_i h on each step. In what sense is it still approximate?

Worked solution

Setting ρ=0\rho=0 removes the leverage term. It leaves drift −Ii/2-I_i/2 and normal variance IiI_i. The integral through the intervening variance path is random even conditional on two endpoints. Freezing it changes the step law of the stock, and can change the payoff average.

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 YouTube

Instructor’s Lecture 11 materials.

Track cash and shares through a dynamic hedge

Delta is VSV_S, gamma is VSSV_{SS}, and vega is VσV_\sigma for a selected volatility input. In a no-dividend Black–Scholes model a continuously rebalanced replication holds Δ=VS\Delta=V_S 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 V0V_0, the cost of the shares is Δ0S0\Delta_0 S_0, and the residual bank balance is B0=V0−Δ0S0B_0=V_0-\Delta_0 S_0. 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 tit_i, bank rate rr, and no trading costs,

Bi+1=Bier(ti+1−ti)−(Δi+1−Δi)Si+1.B_{i+1}=B_i e^{r(t_{i+1}-t_i)}-(\Delta_{i+1}-\Delta_i)S_{i+1}.

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 12Γ(ΔS)2\tfrac12\Gamma(\Delta S)^2 in its price change. Under a jump JJ, the residual jump exposure is the full repricing change V(S+J)−V(S)−ΔJV(S+J)-V(S)-\Delta J. 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 40−15(0.6)=3140-15(0.6)=31. 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 n(d1)/(Sστ)n(d_1)/(S\sigma\sqrt{\tau}) and vega is Sn(d1)τSn(d_1)\sqrt{\tau}, where nn is the standard normal density and τ\tau is remaining maturity. A vega quoted for a one percentage-point volatility change is 0.01Vσ0.01V_\sigma. 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 V(θ)=e−rTE[H(ST(θ,Z))]V(\theta)=e^{-rT}E[H(S_T(\theta,Z))] for parameter θ\theta and base randomness ZZ. The central bump estimator of the sensitivity is

V^(θ+h)−V^(θ−h)2h.\frac{\widehat V(\theta+h)-\widehat V(\theta-h)}{2h}.

For a smooth expectation its deterministic error is typically order h2h^2. 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 1/(2h)1/(2h). Even with common random numbers, very small bumps can produce unstable estimates, especially for discontinuous payoffs.

Lecture 11 slides · PDF p. 18

For a pathwise estimate, differentiate through the simulated stock and then the payoff. The Black–Scholes terminal expression gives two pathwise derivatives.

ST=S0exp⁡ ⁣((r−12σ2)T+σTZ),∂S0ST=STS0,∂σST=ST(TZ−σT).\begin{gathered} S_T=S_0\exp\!\left((r-\tfrac12\sigma^2)T+\sigma\sqrt T Z\right),\\ \partial_{S_0}S_T=\frac{S_T}{S_0},\qquad \partial_\sigma S_T=S_T(\sqrt T Z-\sigma T). \end{gathered}

For a call the derivative of the payoff exists off the strike and equals 1{ST>K}\mathbf1_{\{S_T>K\}}. Under conditions permitting interchange of derivative and expectation,

Δcall=e−rTE ⁣[1{ST>K}STS0],νcall=e−rTE ⁣[1{ST>K}ST(TZ−σT)].\begin{aligned} \Delta_{\rm call}&=e^{-rT}E\!\left[\mathbf1_{\{S_T>K\}}\frac{S_T}{S_0}\right],\\ \nu_{\rm call}&=e^{-rT}E\!\left[\mathbf1_{\{S_T>K\}}S_T(\sqrt T Z-\sigma T)\right]. \end{aligned}

The same pathwise delta structure works in multiplicative Heston when variance dynamics are independent of S0S_0 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 fθ(s)f_\theta(s) and rewrites ∂θfθ=fθ ∂θlog⁡fθ\partial_\theta f_\theta=f_\theta\,\partial_\theta\log f_\theta. Assuming the payoff does not explicitly depend on θ\theta, the support is handled correctly and differentiation under the integral is valid, it gives the expectation of discounted payoff times the score ∂θlog⁡fθ(ST)\partial_\theta\log f_\theta(S_T). If the payoff also depends on the parameter, add the expected differentiated payoff. For the GBM stock density the spot score is Z/(S0σT)Z/(S_0\sigma\sqrt T) and the volatility score is (Z2−1)/σ−ZT(Z^2-1)/\sigma-Z\sqrt T, with ZZ 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 −30-30, 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 r=0.04r=0.04, find the new bank balance.

Worked solution

The accrued balance is −30e0.01≈−30.30-30e^{0.01}\approx-30.30. The extra 0.15 shares cost 16.20. The new balance is approximately −46.50-46.50. Adding cash from outside would change the measured hedging residual.

Hedge gamma before delta

A portfolio has gamma −12-12 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.

Worked solution

Buy 12/1.5=812/1.5=8 options. Their delta contribution is 4.4, giving total delta 22.4. Sell 22.4 shares in the idealized fractional-share calculation. If vega matters, compute the resulting vega and use a second option with an independent gamma–vega pair.

Compute a pathwise delta sample

For S0=100S_0=100, K=105K=105, r=0.04r=0.04 and T=1T=1, one path ends at ST=120S_T=120. Find its discounted pathwise call delta contribution. What would a path ending at 100 contribute?

Worked solution

The first contribution is e−0.04(120/100)≈1.15295e^{-0.04}(120/100)\approx1.15295. 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 S0=K=100S_0=K=100, r=0r=0, σ=0.2\sigma=0.2 and T=1T=1. 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 S0S_0 for almost every fixed draw, but the probability of being in the money changes with S0S_0. Its price is Φ(d2)\Phi(d_2), and ∂S0d2=1/(S0σT)\partial_{S_0}d_2=1/(S_0\sigma\sqrt T). Here d2=−0.1d_2=-0.1, so the delta is n(−0.1)/20≈0.01985n(-0.1)/20\approx0.01985. 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 YouTube

Instructor’s Lecture 12 materials.

A payoff on future performance

At time zero, contract on performance between two future dates, 0≤T1<T20\le T_1<T_2, and pay at T2T_2. A normalized forward-start call pays (ST2/ST1−k)+(S_{T_2}/S_{T_1}-k)^+, with k=1+Kk=1+K if the quoted strike KK is an excess return. At T1T_1 the denominator is known and the payoff is ST1−1(ST2−kST1)+S_{T_1}^{-1}(S_{T_2}-kS_{T_1})^+. Be clear about normalization. A separate contract may multiply this normalized payoff by the future ST1S_{T_1} 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 X=log⁡SX=\log S and Y=XT2−XT1Y=X_{T_2}-X_{T_1}. At constant interest rate rr, the present price is e−rT2EQ[(eY−k)+]e^{-rT_2}E_{\mathbb Q}[(e^Y-k)^+]. Conditioning on the information at the reset date isolates the future increment.

ϕY(u)=EQ ⁣[e−iuXT1EQ[eiuXT2∣FT1]].\phi_Y(u)=E_{\mathbb Q}\!\left[e^{-iuX_{T_1}}E_{\mathbb Q}[e^{iuX_{T_2}}\mid\mathcal F_{T_1}]\right].

Lecture 12 slides · PDF p. 8 · YouTube · 15:48

If your conditional transform already includes discounting over [T1,T2][T_1,T_2], undo that discount when calculating the ordinary characteristic function, then discount the price from T2T_2 to time zero exactly once. In Black–Scholes with no dividends and constant coefficients, the log increment is normal with mean (r−σ2/2)τ(r-\sigma^2/2)\tau and variance σ2τ\sigma^2\tau, where τ=T2−T1\tau=T_2-T_1. The call price uses the following normal-CDF terms.

V0=e−rT1Φ(d1)−ke−rT2Φ(d2),d1,2=−log⁡k+(r±σ2/2)τστ.\begin{gathered} V_0=e^{-rT_1}\Phi(d_1)-ke^{-rT_2}\Phi(d_2),\\ d_{1,2}=\frac{-\log k+(r\pm\sigma^2/2)\tau}{\sigma\sqrt\tau}. \end{gathered}

The e−rT1e^{-rT_1} term is a consequence of paying at T2T_2 while the normalized stock growth begins at T1T_1. At T1=0T_1=0 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.

EQ ⁣[eiuXT2∣XT1,vT1]=exp⁡ ⁣(iuXT1+Aτ(u)+Bτ(u)vT1).\begin{aligned} &E_{\mathbb Q}\!\left[e^{iuX_{T_2}}\mid X_{T_1},v_{T_1}\right]\\ &\qquad =\exp\!\left(iuX_{T_1}+A_\tau(u)+B_\tau(u)v_{T_1}\right). \end{aligned}

In the preceding conditioning identity, the XT1X_{T_1} factors cancel exactly. The remaining randomness comes from vT1v_{T_1}. Use its CIR law from Lecture 10 to get the transform of the log increment.

ϕY(u)=eAτ(u)MvT1 ⁣(Bτ(u)),MvT1(z)=(1−2cz)−δ/2exp⁡ ⁣(cλz1−2cz).\begin{aligned} \phi_Y(u)&=e^{A_\tau(u)}M_{v_{T_1}}\!\left(B_\tau(u)\right),\\ M_{v_{T_1}}(z)&=(1-2cz)^{-\delta/2}\exp\!\left(\frac{c\lambda z}{1-2cz}\right). \end{aligned}

The CIR parameters c,δ,λc,\delta,\lambda correspond to the elapsed time from zero to T1T_1. For a real moment argument the formula is valid for z<1/(2c)z<1/(2c). For complex evaluation use the corresponding continuous branch from z=0z=0 in its convergence domain. A practical sequence is to compute the one-period Heston coefficients, compute the CIR transform of the reset variance, verify ϕY(0)=1\phi_Y(0)=1, then use COS pricing for (eY−k)+(e^Y-k)^+. For smooth parameter choices this gives an independent benchmark for joint simulation of both dates. Simply replacing vT1v_{T_1} by its mean approximates a nonlinear expectation, and can flatten the forward smile.

Lecture 12 slides · PDF p. 14 · YouTube · 34:45

  1. Choose the reset date T1T_1, maturity T2T_2, and the strike ratios kk to price.
  2. Evaluate the characteristic function of the log return from T1T_1 to T2T_2. Use the conditional Heston coefficients for this interval and the CIR transform for the reset variance.
  3. Price each normalized payoff (eY−k)+(e^Y-k)^+ with the COS method. Vary the truncation interval and number of modes separately to see whether the results stabilize.
  4. For each COS price, solve for the volatility that gives the same unit-notional Black–Scholes forward-start value.
  5. Check selected prices by Monte Carlo. On each simulated path, use the paired stock observations at T1T_1 and T2T_2 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 J∼N(μJ,σJ2)J\sim N(\mu_J,\sigma_J^2) for log jump size, so the stock at a jump is multiplied by eJe^J. If jump intensity is λJ\lambda_J, the mean proportional jump per event is mJ=E[eJ−1]=eμJ+σJ2/2−1m_J=E[e^J-1]=e^{\mu_J+\sigma_J^2/2}-1. Subtract λJmJ\lambda_Jm_J 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.

ϕBates(u)=ϕHeston(u) exp⁡ ⁣{λJτ(eiuμJ−σJ2u2/2−1−iu mJ)}.\phi_{\rm Bates}(u)=\phi_{\rm Heston}(u)\, \exp\!\left\{\lambda_J\tau \left(e^{iu\mu_J-\sigma_J^2u^2/2}-1-iu\,m_J\right)\right\}.

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 λJ=0\lambda_J=0, and also at u=0u=0. At u=−iu=-i 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 nn observed daily returns the lecture uses

252n∑i=1n(log⁡StiSti−1)2.\frac{252}{n}\sum_{i=1}^{n}\left(\log\frac{S_{t_i}}{S_{t_{i-1}}}\right)^2.

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 dS/S=r dt+σt dWtdS/S=r\,dt+\sigma_t\,dW_t, quadratic variation of log⁡S\log S over [0,T][0,T] is ∫0Tσt2 dt\int_0^T\sigma_t^2\,dt. Divide its risk-neutral expectation by TT 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.

Kvar=1TEQ ⁣[∫0Tσt2 dt]=2T(rT−EQ ⁣[log⁡(ST/S0)]).\begin{aligned} K_{\rm var}&=\frac{1}{T}E_{\mathbb Q}\!\left[\int_0^T\sigma_t^2\,dt\right]\\ &=\frac{2}{T}\left(rT-E_{\mathbb Q}\!\left[\log(S_T/S_0)\right]\right). \end{aligned}

This diffusion identity is the link to a log contract. Under Heston with v0v_0 fixed, directly integrate the expected variance θ+(v0−θ)e−κt\theta+(v_0-\theta)e^{-\kappa t}. 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

k=1.05k=1.05, and kST1=84kS_{T_1}=84. The normalized payoff is (92/80−1.05)+=0.10(92/80-1.05)^+=0.10, or (92−84)/80(92-84)/80. A contract that paid one unnormalized call payoff would pay 8 in currency units.

Check the reset discount in Black–Scholes

Take T1=2T_1=2, T2=2.5T_2=2.5, r=0.04r=0.04 and σ=0\sigma=0. For k=1k=1, compute the deterministic forward-start price.

Worked solution

The ratio is e0.04(0.5)=e0.02e^{0.04(0.5)}=e^{0.02}, so the value is e−0.1(e0.02−1)=e−0.08−e−0.10≈0.01828e^{-0.1}(e^{0.02}-1)=e^{-0.08}-e^{-0.10}\approx0.01828. The payoff is received at 2.5 years regardless of the reset date.

Compensate a Bates jump

Take μJ=−0.10\mu_J=-0.10, σJ=0.20\sigma_J=0.20 and intensity λJ=0.5\lambda_J=0.5. Find mJm_J and the drift adjustment −λJmJ-\lambda_Jm_J.

Worked solution

mJ=e−0.10+0.02−1=e−0.08−1≈−0.07688m_J=e^{-0.10+0.02}-1=e^{-0.08}-1\approx-0.07688. The continuous drift adjustment is +0.03844+0.03844 per year. Compensation is positive because the mean proportional jump is negative.

Integrate a CIR variance curve

Use Heston with v0=0.09v_0=0.09, long-run variance θ=0.04\theta=0.04, κ=2\kappa=2 and T=1T=1. Compute the continuous fair variance strike. If independent jumps are added at intensity 0.5 per year with mean log jump −0.10-0.10 and standard deviation 0.20, what is the extra expected quadratic variation per year?

Worked solution

Kvar=0.04+0.05(1−e−2)/2≈0.06162K_{\rm var}=0.04+0.05(1-e^{-2})/2\approx0.06162 in the diffusion. For the jump term, E[J2]=0.01+0.04=0.05E[J^2]=0.01+0.04=0.05. At intensity 0.5 it contributes 0.0250.025 per year under continuous monitoring.

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 YouTube

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.

StructureData needed at valuation or simulationNatural benchmark
Cash digitalTerminal stock and strike crossing at maturity.Discounted in-the-money probability.
Chooser or compoundValues of the component options at the decision date.Backward conditioning or a one-step decision tree.
Barrier or lookbackHit indicator, running minimum or running maximum, depending on payoff.In–out parity for a matched pair, or a monitored path simulation.
AsianRunning sampled sum or integral together with the current price.Geometric average benchmark or augmented-state PDE.
Basket or spreadJoint 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 1{ST>K}\mathbf1_{\{S_T>K\}} and an asset-or-nothing call pays ST1{ST>K}S_T\mathbf1_{\{S_T>K\}}. In Black–Scholes with dividend yield qq, their prices are

Vcash=e−rTQ(ST>K)=e−rTΦ(d2),Vasset=S0e−qTΦ(d1).\begin{aligned} V_{\rm cash}&=e^{-rT}\mathbb Q(S_T>K)=e^{-rT}\Phi(d_2),\\ V_{\rm asset}&=S_0 e^{-qT}\Phi(d_1). \end{aligned}

A vanilla call is the asset-or-nothing call minus KK 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 T0<TT_0<T, a call on a call pays (C(T0,ST0;K,T)−K0)+(C(T_0,S_{T_0};K,T)-K_0)^+, where K0K_0 is the compound option’s strike. The internal option’s price is an input at T0T_0. A simple chooser at T0T_0 picks a call or put at the same strike and maturity, so its value at the decision instant is max⁡(C(T0),P(T0))\max(C(T_0),P(T_0)). 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 ST0S_{T_0} exceeds Ke−r(T−T0)Ke^{-r(T-T_0)}.

Lecture 13 slides · PDF p. 6 · YouTube · 16:04

Barrier monitoring changes which paths pay

Define τB=inf⁡{t∈[0,T]:St≥B}\tau_B=\inf\{t\in[0,T]:S_t\ge B\} 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 BB, 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 log⁡B\log B, the probability of an intervening crossing over a step of size hh is

exp⁡ ⁣(−2(log⁡B−Xi)(log⁡B−Xi+1)σ2h).\exp\!\left(-\frac{2(\log B-X_i)(\log B-X_{i+1})}{\sigma^2 h}\right).

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 (MT−K)+(M_T-K)^+, the terminal stock can finish below strike while the maximum MTM_T exceeds it. Treat grid observation and continuous monitoring separately here too.

Average prices require an extra state variable

At observation dates t1,…,tnt_1,\dots,t_n, write AnA_n for the discrete arithmetic average and GnG_n for the geometric average.

An=1n∑j=1nStj,Gn=exp⁡ ⁣(1n∑j=1nlog⁡Stj).\begin{aligned} A_n&=\frac{1}{n}\sum_{j=1}^n S_{t_j},\\ G_n&=\exp\!\left(\frac{1}{n}\sum_{j=1}^n\log S_{t_j}\right). \end{aligned}

The fixed-strike Asian call pays (A−K)+(A-K)^+. The floating-strike version pays (ST−A)+(S_T-A)^+. 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

Var⁡(log⁡Gn)=σ2n2∑i,j=1nmin⁡(ti,tj).\operatorname{Var}(\log G_n)=\frac{\sigma^2}{n^2}\sum_{i,j=1}^n\min(t_i,t_j).

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 It=∫0tSu duI_t=\int_0^t S_u\,du, so dIt=StdtdI_t=S_tdt and the final average is IT/TI_T/T. In the no-dividend Black–Scholes model the price V(t,S,I)V(t,S,I) solves

Vt+12σ2S2VSS+rSVS+SVI−rV=0.V_t+\tfrac12\sigma^2S^2 V_{SS}+rSV_S+SV_I-rV=0.

For a fixed-strike call the terminal condition is V(T,S,I)=(I/T−K)+V(T,S,I)=(I/T-K)^+. The SVISV_I term moves along the accumulated-average coordinate. There is no VIIV_{II} diffusion term, since II has finite variation. For a different path-dependent integral ∫0tf(Su,u) du\int_0^t f(S_u,u)\,du, replace SVIS V_I by f(S,t)VIf(S,t)V_I. 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 (∑iwiST(i)−K)+(\sum_i w_i S_T^{(i)}-K)^+. 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 qiq_i, the diffusion generator is

LV=∑i(r−qi)SiVSi+12∑i,jρijσiσjSiSjVSiSj.\begin{aligned} \mathcal L V={}&\sum_i(r-q_i)S_iV_{S_i}\\ &+\frac12\sum_{i,j}\rho_{ij}\sigma_i\sigma_j S_iS_j V_{S_iS_j}. \end{aligned}

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 K=90K=90, compute the call payoff from the asset-or-nothing amount minus ninety unit cash digitals when ST=110S_T=110, and when ST=80S_T=80.

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 7.40−2.15=5.257.40-2.15=5.25. 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 K=96K=96 and the floating-strike arithmetic Asian call.

Worked solution

The arithmetic average is 95. The fixed-strike call pays (95−96)+=0(95-96)^+=0. The floating-strike call pays (110−95)+=15(110-95)^+=15, using the average itself as the strike.

Find the missing state in a continuous Asian PDE

Two paths have the same StS_t at the halfway point but different historical averages. Explain why a scalar pricing function V(t,S)V(t,S) cannot in general represent both values. Identify the terminal function for a floating-strike put.

Worked solution

Different accumulated values ItI_t shift the remaining average even though the law of future stock movements from the current spot is the same in the GBM model. Use V(t,S,I)V(t,S,I) and terminal payoff (I/T−S)+(I/T-S)^+.

Keep the correlations inside a basket experiment

Two assets have the same S0,σ,r,qS_0,\sigma,r,q, and use weights 1/2,1/21/2,1/2. 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 YouTube

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

GivenCandidate methodFirst cross-check
One European call and a GBM terminal lawBlack–Scholes or exact-terminal Monte CarloParity, monotonicity and comparison with the closed form.
Many European strikes, known characteristic functionCOS or damped FFTCheck ϕ(0)=1\phi(0)=1, price bounds, interval and frequency refinement.
Barrier or Asian contractPath simulation with the stated observation gridSplit pricing error into sampling, numerical path and monitoring effects.
Bermudan with specified exercise datesBackward induction on a tree or grid, or simulated continuation regressionAt each date compare exercise and continuation at the same state and time.
Sensitivity of a smooth payoffPathwise differentiation or a common-random-number differenceCompare with an analytic benchmark and vary the bump if used.
Sensitivity of a digital payoffLikelihood ratio under a differentiable density, conditional smoothing, or a carefully tested finite differenceExplain 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 u=1.2,d=0.8u=1.2,d=0.8 and cash growth R=1.05R=1.05 per step. The pricing probability is p∗=(R−d)/(u−d)=0.625p^*=(R-d)/(u-d)=0.625. A put with strike 100 pays 0,4,360,4,36 at the terminal nodes 144,96,64144,96,64. Discount the expected terminal payoff from each intermediate node to get its continuation value CC.

C(120)=0.375⋅41.05≈1.4286,C(80)=0.625⋅4+0.375⋅361.05≈15.2381.\begin{aligned} C(120)&=\frac{0.375\cdot4}{1.05}\approx1.4286,\\ C(80)&=\frac{0.625\cdot4+0.375\cdot36}{1.05}\approx15.2381. \end{aligned}

If exercise is allowed at that time, the put is worth max⁡(0,1.4286)=1.4286\max(0,1.4286)=1.4286 at 120120 and max⁡(20,15.2381)=20\max(20,15.2381)=20 at 8080. Discount the pricing-weighted average once more.

U0=0.625⋅C(120)+0.375⋅201.05≈7.9932.U_0=\frac{0.625\cdot C(120)+0.375\cdot20}{1.05}\approx7.9932.

Compare the European answer 6.29256.2925 on the same tree.

In a Markov model with deterministic discounting, compare the exercise payoff gj(x)g_j(x) with the continuation value Cj(x)C_j(x) at state xx.

Cj(x)=Dj,j+1EQ ⁣[Uj+1(Xj+1)∣Xj=x],Uj(x)=max⁡{gj(x),Cj(x)}.\begin{aligned} C_j(x)&=D_{j,j+1}\mathbb E^{\mathbb Q}\!\left[U_{j+1}(X_{j+1})\mid X_j=x\right],\\ U_j(x)&=\max\{g_j(x),C_j(x)\}. \end{aligned}

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 20−15.238120-15.2381. Its time-zero contribution is 0.375(20−15.2381)/1.05≈1.70070.375(20-15.2381)/1.05\approx1.7007. Thus the European price is about 7.9932−1.7007=6.29257.9932-1.7007=6.2925.

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 Z=∫0TsWs dsZ=\int_0^T sW_s\,ds. 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 Ws=∫0sdWuW_s=\int_0^s dW_u 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.

Z=∫0TT2−u22 dWu,Var⁡(Z)=∫0T(T2−u22)2 du=2T515.\begin{aligned} Z&=\int_0^T\frac{T^2-u^2}{2}\,dW_u,\\ \operatorname{Var}(Z)&=\int_0^T\left(\frac{T^2-u^2}{2}\right)^2\,du=\frac{2T^5}{15}. \end{aligned}

At grid points tjt_j, compare these two estimates using the same Brownian increments.

∑jtjWtjΔt,∑jT2−tj22ΔWj.\sum_j t_j W_{t_j}\Delta t,\qquad \sum_j\frac{T^2-t_j^2}{2}\Delta W_j.

Compare the averaged squared differences over several grid sizes. Independent paths would hide discretisation effects behind the true variation of ZZ.

Lab B · Brownian combinations and Wiener exponentials

Find Var⁡(W1−W3/2)\operatorname{Var}(W_1-W_3/2). Then apply Itô’s formula to Yt=eaWtY_t=e^{aW_t} for a≠0a\ne0 and construct a martingale from it.

Lecture 2 slides · PDF p. 35 · YouTube · 1:27:27

Worked solution

Var⁡=1+3/4−2(1/2)min⁡(1,3)=3/4\operatorname{Var}=1+3/4-2(1/2)\min(1,3)=3/4. The distribution is centred Gaussian. For the exponential, dYt=aYt dWt+12a2Yt dtdY_t=aY_t\,dW_t+\tfrac12a^2Y_t\,dt. Multiplying by e−a2t/2e^{-a^2t/2} removes the drift. Independent Gaussian increments and their moment-generating function directly show that eaWt−a2t/2e^{aW_t-a^2t/2} is a martingale.

Lab C · Deterministic curves without a smile

Under Q\mathbb Q, use a risk-neutral GBM with q=0q=0, 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 0.060.06, so D(0,2)=e−0.06D(0,2)=e^{-0.06}. Integrated variance is 0.04+0.16=0.200.04+0.16=0.20. Log-return mean is 0.06−0.20/2=−0.040.06-0.20/2=-0.04. Use rate 0.030.03 and volatility 0.20/2≈0.31623\sqrt{0.20/2}\approx0.31623 in the two-year Black–Scholes formula. At maturity 1 the equivalent parameters are exactly 0.020.02 and 0.200.20. 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 dSt=ηSt dWtdS_t=\eta\sqrt{S_t}\,dW_t with S0=s>0S_0=s>0, 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 ebxe^{b x}. The affine exponent has no state-independent drift term in this example.

Worked solution

The generator is Lf(x)=η2xf′′(x)/2\mathcal L f(x)=\eta^2 x f''(x)/2. With exponent D(T,u)xD(T,u)x, D′=η2D2/2D'=\eta^2D^2/2 and D(0,u)=iuD(0,u)=iu. Solving this equation yields the characteristic function.

ϕST(u)=exp⁡ ⁣(s iu1−iuη2T/2).\phi_{S_T}(u)=\exp\!\left(\frac{s\,iu}{1-iu\eta^2 T/2}\right).

At u=izu=i z for z>0z>0, take z→∞z\to\infty in the Laplace transform. The point mass at zero is e−2s/(η2T)e^{-2s/(\eta^2T)}. 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 1−e−2s/(η2T)1-e^{-2s/(\eta^2T)}. Compare a CDF or positive-interval probabilities with an independent implementation. Avoid log⁡ST\log S_T 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.

(ST−K)+1{max⁡j=0,…,mStj<B}.(S_T-K)^+\mathbf1_{\{\max_{j=0,\dots,m}S_{t_j}<B\}}.

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 jj, compute its mean mjm_j and variance sj2s_j^2 from the deterministic curves.

mj=∫tjtj+1(r(t)−q(t)−σ(t)2/2) dt,sj2=∫tjtj+1σ(t)2 dt.\begin{aligned} m_j&=\int_{t_j}^{t_{j+1}}\bigl(r(t)-q(t)-\sigma(t)^2/2\bigr)\,dt,\\ s_j^2&=\int_{t_j}^{t_{j+1}}\sigma(t)^2\,dt. \end{aligned}

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 Q\mathbb Q drifts and a payoff (max⁡(S1(T),S2(T))−K)+(\max(S_1(T),S_2(T))-K)^+. Describe an estimator and how to compare ρ=−0.5\rho=-0.5 with ρ=0.5\rho=0.5 without conflating the effect with sampling noise.

Lecture 13 slides · PDF p. 22 · YouTube · 1:25:18

Worked solution

Use independent standard normals Z1,Z2Z_1,Z_2 and the pair Z1,ρZ1+1−ρ2 Z2Z_1,\rho Z_1+\sqrt{1-\rho^2}\,Z_2 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 S0=100S_0=100, K=105K=105, r=0.03r=0.03, σ=0.24\sigma=0.24, T=0.75T=0.75 and zero dividend yield. Across independent batches of size nn, 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.

  1. Set the inputs. s0 is today's stock price, strike is the exercise price, and n is the number of simulated paths. The underscores in 40_000 make the digits easier to read. Random(529) chooses a fixed seed so you can reproduce the sequence of simulated draws.
  2. Draw the price at maturity. The loop runs n times. Each rng.gauss(0, 1) draws a standard normal value. The code multiplies this shock by total_vol, adds log_drift and 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.
  3. Turn the stock draw into a discounted cash flow. max(terminal - strike, 0) is the simulated call payoff. append saves its discounted value to the list. The variable mc is the mean of that list. The variable se estimates how much that mean would vary across fresh samples, using the sample standard deviation divided by n\sqrt n.
  4. Compute the benchmark. NormalDist().cdf supplies the standard normal cumulative distribution function Φ\Phi. The benchmark line inserts Φ(d1)\Phi(d_1) and Φ(d2)\Phi(d_2) into the no-dividend Black–Scholes call formula.
  5. 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 pointReconstruct without notesCourse chapter
Cash flows and pricingDiscount a payment, derive put–call parity and recover a two-state pricing measure by replication.1–3
Stochastic calculusDerive log GBM, show what discounting does to its drift, and derive the Black–Scholes PDE from a self-financing hedge.2–3
Implied volatilityGive price bounds, derive Newton’s update from Vega, and explain when to switch to bracketing.4
Jump or affine modelCompensate a jump drift, identify the PIDE’s nonlocal term and derive a transform by matching powers of the state.5–6
Stochastic volatilityDerive Heston’s mixed partial, interpret Feller and explain how a characteristic function is used for a price.7–8
Monte CarloWrite 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 contractsCompare 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

  1. 0–6 minutes. Identify a European call cash flow and derive its pricing equation by replication. State what changes for dividends.
  2. 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.
  3. 12–18 minutes. Given a diffusion-plus-jump stock, explain the pricing drift adjustment and say whether a pure delta hedge removes jump risk.
  4. 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.
  5. 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
Option premium
The price paid to acquire the option, before any exercise payment. Lecture 1 slides · PDF p. 21
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

Course textbook and supplied readings

Further reading selected for this handbook

For questions or corrections to source credit, please use the Contact page.