The main definitions, pricing formulas, models and conventions of the financial engineering course on one page, unit by unit, with links to the lessons that explain each topic in full.
This sheet follows the fourteen units of the course in order. Each unit starts with the big idea in a few sentences, then gives the definitions, formulas, models and theorems you will look up most often, each with the assumptions it needs. When you want the full explanation, a derivation or more examples, follow the lesson links under each topic. The numerical examples use small constructed inputs, not market data, chosen so that every number can be checked by hand or with a few lines of code.
Time is measured in years. The current date is t, a maturity is T and the time remaining is τ=T−t. The asset price St is ex-dividend, K is a strike, r an interest rate, q a continuous dividend yield and σ an annualized volatility. Rates are continuously compounded unless a topic states another compounding convention, and one basis point is 1bp=0.0001. The money-market account Bt is a positive numeraire, D(t,T) is a deterministic discount factor, and P(t,T) is the time t price of a zero-coupon bond paying 1 at T, which is random once interest rates are random. Prices, cash flows and profit and loss (PnL) are in currency units and are written as plain numbers.
The physical measure P describes how prices actually move and is the one used for forecasts and risk. A pricing measure Q is equivalent to P, makes discounted traded prices martingales and need not be unique, and QT is the T-forward measure, whose numeraire is the bond maturing at T. Expectations name the measure and the information they condition on, as in EQ[X∣Ft], and a Brownian motion under Q is written WtQ. The functions Φ and φ are the standard normal distribution function and density, (x)+=max(x,0) is the positive part and 1A is the indicator of an event A. Vectors are plain letters with transpose ⊤, 1 is also the vector of ones, and a hat marks an estimate. A loss L is positive for an adverse outcome, so L=−PnL wherever a topic converts one into the other.
An equals sign means exact under the stated hypotheses, and ≈ marks a Taylor truncation, an asymptotic formula, a grid result or a statistical estimate. Every model statement on this page is a mathematical result under its assumptions, not a claim about real markets, and nothing here is investment advice.
Mathematical financial models
A contract is a schedule of dated cash flows that depend on the state of the world, and its price is a separate number assigned to that schedule. The absence of arbitrage ties the prices of different contracts together, while discount factors and returns record the time value of money and the growth of wealth under stated conventions. The unit also collects the calculus, linear algebra, optimization and probability that the later units use.
Contracts, payoffs and valuation
In a finite model the possible states are Ω={ω1,…,ωm}, and a contract is the list of amounts Ct1(ω),…,Ctn(ω) it pays at fixed dates in each state ω. Positive amounts are receipts of the holder and negative amounts are payments, so the counterparty holds the negative of the same list. A payoff function is a rule, such as the call payoff X=(ST−K)+, while a present value is one number assigned to the whole rule. Changing a term of the contract, such as the strike, gives a different object with its own value.
For terminal claims in a one-period model, the state price πj is the time 0 price of one currency unit paid in state ωj and nowhere else. State prices define the valuation operator
Π(X)=j=1∑mπjX(ωj).
It is linear, Π(aX+bY)=aΠ(X)+bΠ(Y), and when every πj>0 it is strictly positive, so X≥0 with X=0 gives Π(X)>0. The sum of the state prices is the price of a sure unit, the one-period discount factor. With constructed state prices 0.45 and 0.5 and a stock that ends at 80 or 120, a sure unit costs 0.95 and the stock 96. The call with strike 100 pays (0,20) and costs 10, and the call with strike 110 pays (0,10) and costs 5.
Take n securities with time 0 prices c∈Rn and an m×n payoff matrix A whose row j lists their payoffs in state ωj, where every state has positive probability. A portfolio θ∈Rn costs c⊤θ and pays Aθ. Trading is frictionless and any real holding is allowed, including short sales and borrowing.
Arbitrage. A portfolio with c⊤θ≤0 and Aθ≥0 in every state, and with c⊤θ<0 or Aθ=0. It costs nothing or less, never loses later, and gains either today or in at least one state.
Law of one price. If Aθ=Aϕ then c⊤θ=c⊤ϕ. No arbitrage implies it, because buying the cheaper and selling the dearer of two equal payoffs is an arbitrage. The converse fails. A market with one security that pays (1,0) and costs 0 satisfies the law of one price, yet buying that security is an arbitrage.
Replication and linear pricing. Under the law of one price, a claim X with Aθ=X for some θ has the well defined price c⊤θ, whatever replicating portfolio is used, and this price is linear on the attainable claims.
Dominance. Under no arbitrage, attainable claims with X≥Y in every state satisfy Π(X)≥Π(Y), with strict inequality when X=Y.
A stock costs 100 and pays 80 or 120, and a bond costs 100 and pays 105 in both states. The call payoff (0,20) is replicated by Δ=21 share and b=−218 bond, a borrowing, at the cost 50−21800=21250≈11.9048. At a quoted call price of 14, selling the call and buying the replicating portfolio receives 2144≈2.0952 today and leaves no obligation later. If short sales of the call are not allowed, that trade is unavailable, and a constraint of this kind turns the price equality into an inequality.
A deterministic discount function gives the time 0 value D(0,T)>0 of one currency unit paid at T, with D(0,0)=1. A fixed schedule of amounts Ck paid at times tk is worth
V0=k∑CkD(0,tk).
A rate is a way of reporting the factor, so one discount factor gives different rates under different compounding conventions. For T>0 and D=D(0,T),
Convention
Discount factor
Rate
simple
D=(1+yT)−1
y=(1/D−1)/T
m times a year
D=(1+ym/m)−mT
ym=m(D−1/(mT)−1)
continuous
D=e−z(T)T
z(T)=−lnD/T
The time T is a year fraction under a stated day count, such as actual/365 or actual/360, and a different day count gives a different rate for the same factor. For T1<T2 with accrual fraction δ between them, the simple forward rate and, where D is differentiable, the instantaneous forward rate are
With D(0,1)=0.96 and D(0,2)=0.90, the forward rate for the second year is F(0;1,2)=151≈0.0667 and the continuous spot rate is z(2)≈0.0527, while the same D(0,2) reports as 0.0556 simple, 0.0541 annually compounded and 0.0534 semiannually compounded. A bond paying 5 after one year and 105 after two is worth 5(0.96)+105(0.90)=99.3. If instead D(0,2)=0.98, the forward rate is about −0.0204, and the curve has to allow negative forward rates.
For a positive price St and a cash dividend Divt+1 paid at t+1,
Return
Definition
price return
(St+1−St)/St
total (simple) return
Rt+1=(St+1−St+Divt+1)/St
gross return
1+Rt+1
log return
ln(1+Rt+1), defined only when 1+Rt+1>0
Gross returns multiply over consecutive periods, 1+R0,T=∏t(1+Rt,t+1), so log returns add. This is exact algebra under a consistent reinvestment convention and needs no assumption about distributions. For fixed initial weights, a portfolio’s simple return is the weighted sum of its components’ simple returns, but its log return is not the weighted sum of their log returns. A gain of 10 percent followed by a loss of 10 percent gives the gross return 1.1×0.9=0.99 and the log return ln0.99≈−0.01005.
A strategy holds θt shares and βt units of the cash account Bt after trading at t, chosen with the information available at t, so its wealth is Vt=θtSt+βtBt. It is self-financing when every rebalance is paid for from inside the portfolio,
(θt−θt−1)St+(βt−βt−1)Bt=θt−1Divt.
Sales, borrowing (a negative βt) and the dividend on the shares held over the last period fund the purchases, and no outside cash enters or leaves. Start with 2 shares at 100 and 1 cash unit worth 50. At t=1 the share is worth 102 and pays a dividend of 3, and the cash unit is worth 51, so the wealth is 2(102)+51+2(3)=261. Buying a third share at 102 without outside cash needs β1=(261−306)/51=−1715, a borrowing of 45. If the price then rises to 110 and the cash account grows by 2 percent, the wealth is 3(110)−45(1.02)=284.1.
For a value function V of the risk factors x∈Rd, the gradient ∇V(x) lists the first-order price sensitivities, in currency units per unit of each factor, and the Hessian H(x) has the entries Hij=∂i∂jV(x). The change along a direction h has the first-order rate ∇V(x)⊤h. If V is twice continuously differentiable on an open set containing the segment from x to x+h, then H is symmetric there and
V(x+h)=V(x)+∇V(x)⊤h+21h⊤H(x)h+R2,
where, with ΔH(s)=H(x+sh)−H(x),
R2=∫01(1−s)h⊤ΔH(s)hds.
The remainder follows from the one-variable expansion of g(s)=V(x+sh), since g′′(s)=h⊤H(x+sh)h. It is o(∥h∥2) as h→0 and is exactly zero when V is quadratic. For V(x)=x12+2x1x2+3x22 at x=(1,2) with h=(0.1,−0.2), the value is 17, the gradient is (6,14), the linear term is −2.2 and the quadratic term is 0.09, which gives exactly V(x+h)=14.89.
A kink breaks the hypothesis. The call payoff (s−K)+ has slope 0 below K and 1 above it, so it has no Taylor expansion at s=K, and an expansion at a nearby point fails once the move crosses K.
For a random vector R with finite second moments and mean μ, the covariance matrix Σ=E[(R−μ)(R−μ)⊤] is symmetric and positive semidefinite, because w⊤Σw=Var(w⊤R)≥0 for every w. By the spectral theorem, a real symmetric matrix has the form Σ=QΛQ⊤ with orthonormal eigenvectors qj as the columns of Q and real eigenvalues λj, which are nonnegative here, and
w⊤Σw=j∑λj(qj⊤w)2.
A zero eigenvalue is a combination with zero variance, and then Σ is singular.
The minimum-error hedge of a centered target X with centered instruments Y minimizes E[(X−h⊤Y)2]. Its solutions are those of the normal equations ΣYh=Cov(Y,X), which always have a solution, and h⊤Y is the orthogonal projection of X onto the span of Y. When ΣY is invertible the hedge is unique, h=ΣY−1Cov(Y,X), and the residual variance is Var(X)−Cov(X,Y)h. When ΣY is singular, the pseudoinverse ΣY+=Qdiag(λj+)Q⊤, with λj+=1/λj for λj>0 and 0 otherwise, gives the solution of smallest norm.
With ΣY=(4224) the eigenvalues are 6 and 2, and the equally weighted combination has variance 3. For Cov(Y,X)=(3,1) and Var(X)=5, the hedge is h=(65,−61) with residual variance 38. Two identical instruments with ΣY=(1111) and Cov(Y,X)=(2,2) admit every h with h1+h2=2, and the pseudoinverse picks h=(1,1).
Sufficiency. If f and the gi are convex and differentiable, any point satisfying the KKT conditions is a global minimizer and its multipliers solve the dual.
Necessity. Multipliers need a constraint qualification. Slater’s condition, a point with Ax=b and gi(x)<0 for every nonaffine gi, gives strong duality d∗=p∗ for a convex problem, and KKT multipliers exist at every minimizer. Without it they can fail to exist. Minimizing x subject to x2≤0 has the minimizer 0, where 1+2λ⋅0=0 for every λ.
A constraint is binding, or active, when gi(x∗)=0, and a positive multiplier forces it to bind. Minimizing 21(x−3)2 subject to x−1≤0 gives the Lagrangian minimizer x=3−λ and the dual function q(λ)=2λ−21λ2. Its maximum q(2)=2 equals f(1)=2, so x∗=1 and λ∗=2, with the constraint binding. With the bound x≤4 instead, x∗=3 and λ∗=0.
A probability space (Ω,F,P) has a sigma algebra F of events, which contains Ω and is closed under complements and countable unions, and a probability measure with P(Ω)=1 that adds over countably many disjoint events. Information that reveals which block of a partition {B1,…,Bk} of Ω has occurred corresponds to the sigma algebra of all unions of blocks. For P(B)>0,
P(A∣B)=P(B)P(A∩B),P(A∣B)=P(B)P(B∣A)P(A),
with P(B)=P(B∣A)P(A)+P(B∣Ac)P(Ac) by the law of total probability. Conditioning on an event of probability zero needs regular conditional distributions, beyond these formulas.
The base rate matters. If a default has prior probability 0.02 and a warning signal fires with probability 0.90 before a default and 0.10 otherwise, then P(+)=0.018+0.098=0.116 and P(D∣+)=589≈0.155. With the prior 0.2 the same signal gives about 0.692.
Prices and returns are modeled as random variables, and the questions about them are about distributions, conditional expectations and dependence. Estimation, regression and time-series models turn finite data into statements about those objects, and each statement holds only under its own conditions, such as integrability, exogeneity or stationarity. The measure here is the physical one, P, unless a topic says otherwise.
Distributions and change of variables
The distribution function FX(x)=P(X≤x) is nondecreasing and right-continuous with limits 0 and 1. A density fX satisfies FX(x)=∫−∞xfX(u)du, and it exists only for an absolutely continuous law, not for laws with atoms. If Y=g(X) with g strictly monotone and differentiable with g′=0 on the support of X, then on the image of that support
fY(y)=fX(g−1(y))dydg−1(y),
and fY=0 elsewhere. For a one-to-one differentiable map of a random vector, the absolute value of the Jacobian determinant of the inverse map takes the place of the derivative.
If Z∼N(μ,σ2) with σ>0 and S=S0eZ with S0>0, then S is lognormal. With u=ln(s/S0) its density for s>0 is
fS(s)=sσ2π1e−(u−μ)2/(2σ2).
Completing the square gives E[eaZ]=eaμ+a2σ2/2 for every real a, and therefore
E[S]=S0eμ+σ2/2,Var(S)=S02e2μ+σ2(eσ2−1),
while the median is S0eμ. For S0=100, μ=0 and σ=0.2, the median is 100, the mean is about 102.02 and the variance about 424.76. Doubling σ to 0.4 leaves the median at 100 and raises the mean to about 108.33.
The expectation E[X] exists when X is integrable, E∣X∣<∞, and the variance Var(X)=E[X2]−(E[X])2 needs E[X2]<∞. A Cauchy variable has no mean, and no sample average estimates one. For integrable X and a sigma algebra G⊆F, the conditional expectation Y=E[X∣G] is the G-measurable random variable with E[1AX]=E[1AY] for every A∈G. It exists and is unique up to null sets. For a partition into blocks Bi with P(Bi)>0, it equals E[X1Bi]/P(Bi) on Bi.
The tower property says that if H⊆G, then E[E[X∣G]∣H]=E[X∣H], and in particular E[E[X∣G]]=E[X]. If E[X2]<∞, the law of total variance splits the variance into a within-group part and a between-group part,
Var(X)=E[Var(X∣G)]+Var(E[X∣G]).
Four equally likely states pay X=(0,2,4,10), and the information reveals whether the state is one of the first two or one of the last two. Then E[X]=4 and E[X∣G]=(1,1,7,7). The conditional variances are 1 and 9, so the within-group part is 5, the between-group part is 9 and Var(X)=14.
For X and Y with finite second moments, Cov(X,Y)=E[XY]−E[X]E[Y], and when both standard deviations are positive the correlation ρ=Cov(X,Y)/(σXσY) lies in [−1,1]. Independence implies zero covariance, but not conversely. If X is −1, 0 or 1 with probability 31 each and Y=X2, then Cov(X,Y)=E[X3]=0, yet P(X=0,Y=0)=31 while P(X=0)P(Y=0)=91.
A random vector is jointly Gaussian when X=μ+LZ with Z∼N(0,I), and then Σ=LL⊤ and every combination a⊤X∼N(a⊤μ,a⊤Σa). For jointly Gaussian vectors, zero correlation implies independence, but two Gaussian variables that are not jointly Gaussian can be uncorrelated and dependent. A portfolio with weights w and return covariance Σ has variance w⊤Σw, which for two assets is w12σ12+w22σ22+2w1w2ρσ1σ2. Equal weights on volatilities 0.2 and 0.3 give the variance 0.0475 when ρ=0.5 and 0.0175 when ρ=−0.5.
A copula is a joint distribution function on [0,1]2 with uniform marginals. By Sklar’s theorem, every joint distribution function has a copula C with
FX,Y(x,y)=C(FX(x),FY(y)),
and C is unique when the marginals are continuous. The copula carries the dependence and the marginals carry the scales, so one set of marginals is compatible with many joint laws.
For observations x1,…,xn that are independent with density fθ, the likelihood is L(θ;x)=∏jfθ(xj), a function of the parameter, and the maximum likelihood estimator maximizes the log-likelihood ℓ(θ;x)=∑jlnfθ(xj). For independent N(μ,σ2) data, μ^=xˉ and σ^MLE2=n1∑j(xj−xˉ)2, which is biased, while s2=n−11∑j(xj−xˉ)2 is unbiased. An estimator is consistent when it converges in probability to the true parameter as n→∞.
Law of large numbers. For independent, identically distributed Xj with E∣X∣<∞, the sample mean Xˉn converges to E[X], in probability and almost surely. With finite variance, Chebyshev’s inequality gives P(∣Xˉn−μ∣>ε)≤σ2/(nε2).
Central limit theorem. If moreover 0<σ2<∞, then n(Xˉn−μ)/σ converges in distribution to N(0,1).
The standard error of Xˉ is σ/n. For normal data with known σ, the interval Xˉ±z0.975σ/n with z0.975≈1.96 covers μ with probability exactly 0.95. With s in place of σ, normal data call for the t quantile with n−1 degrees of freedom, and for other data the central limit theorem gives approximate coverage. The probability describes the procedure over repeated samples, not one computed interval. For the sample (1,2,3,4) with known σ=2, xˉ=2.5, the standard error is 1 and the interval is about [0.540,4.460], while σ^MLE2=1.25 and s2=35.
Ordinary least squares chooses β^ to minimize ∥y−Xb∥22. The minimizers solve the normal equations X⊤Xβ^=X⊤y, and when X has full column rank
β^=(X⊤X)−1X⊤y.
The fitted vector Xβ^ is the orthogonal projection of y onto the column space of X, so the residuals are orthogonal to every column. This is algebra and holds for any data. Interpreting β^ as a model parameter needs identifying assumptions. In the model y=Xβ+ε with exogeneity E[ε∣X]=0, the error β^−β=(X⊤X)−1X⊤ε has conditional mean zero, and with Ω=Var(ε∣X)
Var(β^∣X)=(X⊤X)−1X⊤ΩX×(X⊤X)−1.
Under homoskedasticity, Ω=σ2I, this reduces to σ2(X⊤X)−1. Under heteroskedasticity the sandwich form stays valid, and replacing Ω by the diagonal matrix of squared residuals gives the heteroskedasticity-consistent sandwich estimator, which is consistent under regularity conditions.
If the true model is Y=α+βX+γZ+ε with E[ε∣X,Z]=0 and Z is left out, the slope of Y on X alone targets β+γCov(X,Z)/Var(X), the omitted variable bias. With β=1, γ=2, Cov(X,Z)=0.5 and Var(X)=1, it targets 2. For the data x=(0,1,2,3) and y=(1,2,2,5), the fitted line is y^=0.7+1.2x, with residuals (0.3,0.1,−1.1,0.7) and residual sum of squares 1.8.
A process is weakly stationary when its mean is constant, its variance is finite and Cov(Xt,Xt−h)=γ(h) depends only on the lag h. The autocorrelation is ρ(h)=γ(h)/γ(0). Let εt be white noise with variance σε2. The AR(1) equation Xt=ϕXt−1+εt with ∣ϕ∣<1 has a unique causal stationary solution,
Xt=j=0∑∞ϕjεt−j,γ(0)=1−ϕ2σε2,γ(h)=ϕ∣h∣γ(0).
If the shocks have conditional mean zero and constant conditional variance given the past, then E[Xt+h∣Ft]=ϕhXt and the forecast error variance is σε2(1−ϕ2h)/(1−ϕ2), which rises toward γ(0) as h grows. An ARMA(p, q) model is Φ(L)Xt=Θ(L)εt with the lag operator L, Φ(z)=1−ϕ1z−⋯−ϕpzp and Θ(z)=1+θ1z+⋯+θqzq. When the two polynomials have no common root, it has a causal stationary solution exactly when every root of Φ lies outside the unit circle, and it is invertible when every root of Θ does.
The random walk Xt=Xt−1+εt with X0=0 has a unit root. Its variance tσε2 grows without bound, so it is not stationary, while its difference ΔXt=εt is. With ϕ=0.6 and σε2=4, the autocovariances are 6.25, 3.75 and 2.25 at lags 0, 1 and 2. From Xt=10 the two-step forecast is 3.6 with error variance 5.44, and the random walk with the same shocks has variance 20 at t=5.
Write the shock as εt=htzt, where the zt are independent with mean 0 and variance 1, zt is independent of Ft−1, and the conditional variance ht=Var(εt∣Ft−1) is known at t−1. The ARCH(q) model sets ht=ω+∑j=1qαjεt−j2 with ω>0 and αj≥0. The GARCH(1,1) model adds persistence,
ht=ω+αεt−12+βht−1,
with ω>0, α≥0 and β≥0. When α+β<1, the stationary solution has the finite unconditional variance hˉ=ω/(1−α−β), and for k≥1
E[ht+k∣Ft]−hˉ=(α+β)k−1(ht+1−hˉ).
The sum α+β measures persistence. At α+β=1 the unconditional variance is infinite, although a strictly stationary solution can still exist, since strict stationarity of GARCH(1,1) holds exactly when E[ln(αzt2+β)]<0. With ω=0.1, α=0.1, β=0.8, h0=1 and ε0=2, the long-run variance is hˉ=1, the next variance is h1=1.3 and the forecast is E[h2∣F0]=1.27. If the next shock turns out to be ε1=0, the realized h2 is 1.14.
A linear Gaussian state space model has a latent state equation and an observation equation,
xt=Axt−1+wt,yt=Hxt+vt,
with wt∼N(0,Q) and vt∼N(0,R) independent of each other, over time and of the initial state x0∼N(m0,P0). The Kalman filter alternates a prediction step, the first two lines below, and an update step.
Here yt−Hmt− is the innovation, St its covariance and Kt the Kalman gain. Under the Gaussian assumptions mt and Pt are the exact conditional mean and covariance of xt given y1,…,yt. Without normality, the same recursion still gives the best linear estimator in mean square. In the scalar case with H=1 and Pt−>0, the gain tends to 0 as R→∞ and to 1 as R→0. With A=H=1, Q=0.25, R=1, m0=0 and P0=1, the observation y1=2 gives P1−=1.25, K1=95, m1=910 and P1=95, and then y2=0 gives K2=6529 and m2=138.
Bonds, forwards, futures, swaps and currency and commodity contracts are schedules of dated cash flows. With deterministic discount factors and frictionless trading, their values follow from discounting and from replication, and every formula depends on stated conventions for compounding, day counts, settlement and quotation. Discounting is deterministic throughout this unit except where futures meet random interest rates.
Bond prices, accrued interest and yield
A default-free bond with fixed amounts Ck at times tk, coupons plus the principal at maturity, has the full price V=∑kCkD(0,tk) for settlement at time 0. Quotes are usually clean prices, and between coupon dates the full (dirty) price is the clean price plus accrued interest,
Vfull=Vclean+AI,AI=c×days in perioddays accrued,
where c is the coupon per period and the days are counted under the bond’s day count. A full price of 99.3 with a coupon of 5 that is 40 percent accrued has AI=2 and a clean price of 97.3.
On a coupon date with annual payments C1,…,Cn after 1,…,n years, the yield to maturity is the y>−1 that solves
V=k=1∑n(1+y)kCk.
It is the internal rate of return of the cash flows. If every Ck≥0 and some Ck>0, the right side decreases strictly from +∞ to 0 on (−1,∞), so every positive price has exactly one yield. Cash flows of mixed sign can have several. The yield is a summary of the price, not a forecast of the return, and the return over the life of the bond equals y only if the bond is held to maturity and every coupon is reinvested at y. The bond paying 5 and 105 is worth 98.1666 at y=0.06, and a bond whose coupon rate equals its yield is priced at par on a coupon date.
Order default-free instruments by maturity so that instrument k pays Ckj at the curve nodes Tj for j≤k and costs Vk. The pricing equations Vk=∑j≤kCkjDj form a triangular system, solved in order when every Ckk=0,
Dk=CkkVk−∑j<kCkjDj.
A zero-coupon bond paying 100 in one year at price 95 gives D1=0.95. Annual 4 percent coupon bonds with two and three years to maturity at prices 97 and 96 give
97=4D1+104D2,96=4D1+4D2+104D3,
so D2≈0.896154 and D3≈0.852071, and the forward rate for the second year is D1/D2−1≈0.0601. Quotes fix the curve only at its nodes, and values in between come from an interpolation rule, which is a modeling choice. Log-linear interpolation of discount factors, lnD(t)=(1−w)lnD(T1)+wlnD(T2) with w=(t−T1)/(T2−T1), keeps the instantaneous forward rate constant between nodes and gives D(1.5)=D1D2≈0.922684. A consistent curve reprices every input instrument exactly and has positive discount factors. A two-year price of 105 instead would give D2≈0.973>D1 and a negative forward rate of about −0.0237, which a curve check should flag.
For fixed positive cash flows Ct at t=1,…,n years, priced with an annually compounded yield as V(y)=∑tCt(1+y)−t, the Macaulay duration, the modified duration and the convexity are
With m payments a year and a yield compounded m times a year, Dmod=DMac/(1+y/m), and with continuous compounding the two durations coincide. For a parallel change Δy of the yield, the second-order Taylor approximation is
VΔV≈−DmodΔy+21C(Δy)2,
and the DV01, the price fall for a rise of one basis point to first order, is VDmod×0.0001. For the bond paying 5 and 105 at y=0.06, V=98.1666, DMac≈1.9519, Dmod≈1.8415, C≈5.1689 and the DV01 is about 0.0181. After a rise of 1 percent the exact price is 96.3840, the first-order estimate 96.3589 and the second-order estimate 96.3843.
Key rate durations measure the response to a change at one node of the zero curve. If each cash flow sits on a node and V=∑jCje−zjtj with continuously compounded zero rates zj,
KRDj=−V1∂zj∂V=VtjCje−zjtj,
and the key rate durations add up to the duration for a parallel shift of the zero curve. These formulas assume fixed cash flows. A callable bond or any instrument whose cash flows depend on rates needs a sensitivity computed from a pricing model.
A long forward with delivery price K pays ST−K at T. Assume frictionless trading, short sales of the asset, deterministic interest rates and a known income stream. Replication by buying the asset with borrowed money gives the forward price, the K that makes a new contract worth zero.
Asset income
Forward price F0,T
none
S0/D(0,T)=S0erT
known cash dividends Divk at tk≤T
(S0−I0)/D(0,T), with I0=∑kDivkD(0,tk)
continuous yield q
S0e(r−q)T
The prepaid forward, paid today for delivery at T, is S0−I0 or S0e−qT. An existing forward with delivery price K is worth D(0,T)(F0,T−K), which is S0e−qT−Ke−rT in the yield case. The value of a contract and its forward price are different numbers, and the value is zero only when K=F0,T. With S0=100, r=0.05 and T=1, a dividend of 2 at t=0.5 gives F=100e0.05−2e0.025≈103.0765, and a yield q=0.02 gives F=100e0.03≈103.0455. A contract in the yield case with K=104 is worth about −0.9080 to the long side.
A futures position is marked to the futures price Ft at every settlement date, and the long side receives the variation margin Ft−Ft−1, positive or negative, so the contract is worth zero after each settlement. Margin flows earn or pay interest until T. On the path 100, 110, 105 with the first gain of 10 invested at 2 percent for the remaining period, the long side ends with 10(1.02)−5=5.2, not the 5 of a forward.
In a frictionless model with settlement at each period, cash-account numeraire and pricing measure Q,
F0,Tfut=EQ[ST],F0,Tfwd=EQ[1/BT]EQ[ST/BT],
so the difference is
F0,Tfwd−F0,Tfut=EQ[1/BT]CovQ(1/BT,ST).
With deterministic interest rates the two prices are equal. When the covariance is negative, as it typically is when ST tends to rise with interest rates, the futures price exceeds the forward price. Take two equally likely states with ST=120 and 1/BT=1.11 in the first and ST=80 and 1/BT=1 in the second. Then Ffut=100 while Ffwd=212080≈99.0476. For interest rate futures, the gap between a futures rate and the forward rate is the convexity adjustment, and its size depends on the rate model.
On a single deterministic curve, the simple forward rate for an accrual period [T1,T2] of year fraction δ is F=(D(0,T1)/D(0,T2)−1)/δ. A forward rate agreement that receives the floating rate and pays the fixed rate K on notional N at T2 is worth NδD(0,T2)(F−K). A swap exchanges fixed payments at rate K for floating payments on the dates T1,…,Tn with accrual fractions δk, starting at T0. With the annuity A0=∑kδkD(0,Tk), the two legs and the par swap rate, the fixed rate that gives a new swap zero value, are
The floating leg telescopes to N(D(0,T0)−D(0,Tn)) only when the floating rates are projected from the same curve used for discounting. A receiver swap, which receives fixed, is worth N(K−Kpar)A0, and a payer swap is worth the negative. With D(0,1)=0.96, D(0,2)=0.90 and annual accruals, the forwards are 241 and 151, A0=1.86 and Kpar=935≈0.05376. On notional 100, a receiver swap at 5 percent is worth −0.7, and a forward rate agreement on the second year that receives floating against 5 percent is worth 1.5.
Quote the exchange rate St as domestic currency units per foreign unit. The reciprocal quote 1/St exchanges the roles of the two currencies and their rates. Assume deterministic continuously compounded rates rd and rf, frictionless borrowing and lending in both currencies and no default. Covered interest parity follows from replication,
F0,T=S0Dd(0,T)Df(0,T)=S0e(rd−rf)T.
Under the domestic pricing measure, with the domestic account as numeraire, the foreign account converted into domestic currency is a traded asset, so StBf(t)/Bd(t) is a martingale and EQd[ST]=S0e(rd−rf)T when rates are deterministic. With S0=1.2, rd=0.05, rf=0.02 and T=1, F=1.2e0.03≈1.236545, and the reciprocal quote has forward 1/F≈0.808705. Market forwards can differ from parity, and a cross-currency basis b records the gap under a stated convention. Adding b=0.005 to the foreign rate gives F=S0e(rd−rf−b)T≈1.230378.
For a storable commodity with deterministic rate r, proportional storage cost u and convenience yield y, both continuous annual rates, the net carrying rate is r+u−y and
F0,T=S0e(r+u−y)T.
With storage costs of present value U0 and no benefit from holding inventory, F0,T=(S0+U0)/D(0,T). Buying, storing and delivering always gives the upper bound F0,T≤(S0+U0)/D(0,T). The reverse cash-and-carry trade needs inventory that can be borrowed and sold, which is often unavailable, so the lower bound can fail, and the convenience yield measures the benefit of holding the physical good. A curve is in contango when forward prices rise with maturity and in backwardation when they fall. With S0=50, r=0.04, u=0.03, y=0.02 and T=1, F≈52.5636, in contango. A convenience yield of 0.10 gives F≈48.5223, in backwardation, and an upfront storage cost of 1.5 without convenience yield gives F=51.5e0.04≈53.6018.
In a market with finitely many states and trading dates, prices follow from replication and the absence of arbitrage. Replication is a linear system, its dual gives state prices and a pricing measure, and the fundamental theorem says that no arbitrage is the same as the existence of an equivalent martingale measure. Pricing probabilities are weights tied to a numeraire, not forecasts. Throughout, every state has positive physical probability and trading is frictionless unless a topic adds costs.
One-period replication and state prices
With m states, n securities, payoff matrix A and price vector c, a claim X is replicated by any θ with Aθ=X, and its price is V0=c⊤θ. The dual system asks for state prices π with
A⊤π=c,V0=π⊤X
for every attainable X. The market is free of arbitrage exactly when such a π exists with every πj>0. Dividing by the physical probabilities pj>0 gives the pricing kernel, or stochastic discount factor, mj=πj/pj, with V0=EP[mX]. The kernel uses physical probabilities, but it is not a probability.
A stock costs 100 and pays 80 or 120, and one unit of cash grows to 1.05. The call (0,20) is replicated by 21 share and a cash position of −21800≈−38.10, so V0=21250≈11.905. The state prices solve 1.05(πd+πu)=1 and 80πd+120πu=100, giving πd=145≈0.357 and πu=4225≈0.595. With physical probabilities 0.6 down and 0.4 up, the kernel is about (0.595,1.488), and a sure payoff of 10 costs 1.0510≈9.524.
In each period the stock moves from S to uS or dS and cash grows by the factor R, for example R=erΔt. The local no-arbitrage condition is d<R<u, and then
q=u−dR−d∈(0,1).
A claim is priced backward from its payoff. At each node, with Vu and Vd the values at the two successor nodes,
V=RqVu+(1−q)Vd,Δ=(u−d)SVu−Vd,
and the replicating portfolio holds Δ shares and V−ΔS in cash. The hedge changes from node to node. For S0=100, u=1.2, d=0.8, R=1.05 and a two-period call with K=100, q=85, the payoffs are 44, 0 and 0, Vu=21550, Vd=0 and V0=4416875≈15.590, with hedge ratios Δ0=8455 and Δu=1211. A tree that approximates a continuous model needs a scaling rule, such as u=eσΔt, d=e−σΔt and R=erΔt, which satisfies d<R<u when ∣r∣Δt<σ. As the number of steps grows, European prices for suitable payoffs converge to their Black-Scholes values, a result the course states without proof.
The physical measure P describes outcomes and is used for forecasts. A pricing measure Q with the cash account as numeraire must be equivalent to P, meaning both give probability zero to the same events, and must make discounted traded prices martingales. In a finite model where every pj>0, equivalence means every qj>0, and the likelihood ratio Zj=qj/pj is positive with EP[Z]=1. With a deterministic cash growth factor R,
V0=REQ[X]=EP[RZX].
In the one-period example with P(up)=0.8, the physical means are EP[S1]=112 and EP[X]=16 for the call, while EQ[X]=12.5 and V0=1.0512.5≈11.905. The likelihood ratio is Z=(1.875,0.78125) in the down and up states. Changing the forecast to P(up)=0.4 changes the physical mean of the call to 8 but leaves its price unchanged, because the call is replicated.
A filtration F0⊆F1⊆⋯ records what is known at each date, and a trading strategy is predictable, so the holding over (t,t+1] is chosen with the information Ft. A process M is a Q-martingale when it is adapted and integrable with EQ[Mt+1∣Ft]=Mt. A claim X paid at T has the price process
Vt=BtEQ[BTXFt],
so Vt/Bt is a Q-martingale, and in a finite model the discounted gains of every self-financing strategy are martingales too. For a stock that pays dividends, the martingale is the discounted gain process St/Bt+∑k≤tDivk/Bk, not the discounted price. The martingale property belongs to the measure, and under P discounted prices usually drift. In the two-period tree with Bt=1.05t, the direct expectation EQ[X/B2]=(85)2⋅44/1.052 gives the same 4416875 as backward induction.
In a finite market with finitely many trading dates, a positive numeraire B, frictionless trading and every state of positive physical probability, there is no arbitrage if and only if there is a measure Q with qj>0 for every state under which every discounted price S/B is a martingale. In one period this reads
qj>0,j∑qj=1,EQ[B1S1]=B0S0.
If such a Q exists, every discounted gain vector g has q⊤g=0, so no gain can be nonnegative and nonzero. Conversely, if there is no arbitrage, the subspace of discounted gains misses the probability simplex, and the separating hyperplane theorem gives a vector orthogonal to the gains with all entries positive, which normalizes to Q. A multiperiod tree is handled one node at a time. With S0=100, S1∈{80,120} and R=1.05, qu=40105−80=85. If instead S0=1.05120≈114.29, the only martingale weights are qu=1 and qd=0, which are not equivalent, and shorting the stock while investing the proceeds pays 40 in the down state and 0 in the up state at zero cost, an arbitrage.
The attainable claims form the column space of A, and the market is complete when every claim is attainable, which in a one-period model with m states means rank(A)=m. Under no arbitrage, a finite market is complete if and only if the equivalent martingale measure is unique. In an incomplete market, a claim that is not attainable has no single arbitrage-free price. Its arbitrage-free prices form the open interval between the infimum and the supremum of EQ[X/BT] over the equivalent martingale measures. The superhedging price, the least cost of a portfolio with Aθ≥X, is the upper end, and the subhedging price is the lower end.
With S0=100, S1∈{80,100,120} and zero interest, the martingale measures are Q=(a,1−2a,a) with 0<a<21. The claim (0,0,20) then has arbitrage-free prices 20a, the open interval (0,10). Half a share with a cash position of −40 costs 10 and pays (0,10,20)≥X, the cheapest superhedge, and the zero portfolio is the best subhedge. Adding a traded security whose payoff is not in the column space completes this market.
An exercise rule is a stopping time τ, a random time with {τ≤t}∈Ft for every t, taking values among the allowed exercise dates. With exercise value Ht and discounted payoff Zt=Ht/Bt, the Snell envelope is computed backward,
YT=ZT,Yt=max(Zt,EQ[Yt+1∣Ft]),
and the price is Vt=BtYt. The process Y is the smallest Q-supermartingale above Z, and exercising at the first date with Yt=Zt is optimal. The continuation value is BtEQ[Yt+1∣Ft], and the early exercise premium VAm−VEur is nonnegative. Without dividends and with r≥0, early exercise of an American call is never optimal, so its price equals the European price. For the put with K=100 in the two-period tree, the terminal payoffs are 0, 4 and 36. At the down node, exercise pays 20 against a continuation value of 1.0516≈15.24, so the holder exercises. The American price is about 7.993 and the European price about 6.293.
With proportional costs λ, shares are bought at the ask (1+λ)S and sold at the bid (1−λ)S, so long positions are liquidated at the bid and short positions are covered at the ask. The seller’s bound, the superreplication price V(X), is the least initial cost of a strategy whose terminal liquidation value is at least X in every state, and the buyer’s bound is V(X)=−V(−X). A price outside [V,V] allows an arbitrage, and prices inside are consistent with some shadow price, a frictionless price process between the bid and the ask that admits an equivalent martingale measure.
With S0=100, ST∈{80,120}, R=1.05, λ=0.01 and the cash-settled call (0,20), the seller buys 118.8−79.220=9950 shares at 101 and borrows 21800, so V≈12.915. The buyer’s hedge shorts 10150 shares at 99 and lends 21800, so V≈10.915. The frictionless price 11.905 lies inside.
Continuous-time models need precise rules for information, noise and integration. Brownian motion has independent Gaussian increments and a nonzero quadratic variation, and that one fact produces the second-order term in Itô’s lemma. The Itô integral uses left endpoints, so it is a martingale for suitable integrands, and Girsanov’s theorem changes the drift of a Brownian motion when the measure changes. Statements are on a filtered probability space (Ω,F,(Ft),P) on a finite horizon [0,T].
Filtrations, predictable processes and stopping times
A filtration (Ft) is an increasing family of sigma algebras, Fs⊆Ft for s≤t, and a process is adapted when each Xt is Ft-measurable. A discrete strategy is predictable when the holding Hk used over (tk,tk+1] is Ftk-measurable, and its gain is Gn=∑k=0n−1Hk(Sk+1−Sk). In continuous time the predictable sigma algebra is generated by the adapted left-continuous processes. A stopping time is a random time with {τ≤t}∈Ft for every t, so whether it has occurred is known at each date. The first time τH=inf{t≥0:St≤H} that a continuous adapted price falls to a level H is one. The usual conditions ask that F0 contain the null sets and that the filtration be right-continuous.
If S is a martingale and H is bounded and predictable, then E[Gn]=0. With two fair increments of ±1, holding 1 share first and then 2 shares after an up move or none after a down move gives the gains 3, −1, −1, −1 with mean 0. A rule that holds a share over the second period only when that period’s increment will be +1 uses future information. It is anticipatory, not admissible, and earns a mean gain of 21.
A standard Brownian motion with respect to (Ft) has W0=0, continuous paths, and increments Wt−Ws∼N(0,t−s) for s<t that are independent of Fs. Consequently
where ph is the transition density over a time step h>0. For c>0, the scaled process (c−1/2Wct)t≥0 is again a standard Brownian motion, an equality in law of whole paths. That Brownian motion exists and that its paths are nowhere differentiable are theorems the course states. Brownian motion is a model of noise, not a claim that prices have this law. Over a step of 0.25 years a standard normal draw of 1.2 moves W by 0.25⋅1.2=0.6, and
For a partition π of [0,T] with mesh ∣π∣, the sum Qπ=∑k(Wtk+1−Wtk)2 has mean T and variance 2∑k(Δtk)2≤2T∣π∣. Hence Qπ→T in mean square, and in probability by Chebyshev’s inequality, as the mesh goes to 0. This limit is the quadratic variation, [W]T=T. A continuous function A of finite variation has zero quadratic variation, since ∑k(ΔAk)2≤maxk∣ΔAk∣TV(A)→0, so Brownian paths have infinite variation on every interval with probability one. For Itô processes dX=bdt+σdW and dY=cdt+ηdW′ with d[W,W′]t=ρtdt,
[X]T=∫0Tσs2ds,[X,Y]T=∫0Tρsσsηsds.
On an even grid of n steps over [0,1], the variance of Qn is n2, so 0.02 for n=100 and 0.0002 for n=10,000. The function 3t has a grid sum of n9, which tends to 0, while [3W]1=9.
For a simple predictable integrand Ht=∑kHk1(tk,tk+1](t), with each Hk square-integrable and Ftk-measurable, the Itô integral is ∫0THtdWt=∑kHk(Wtk+1−Wtk), with the integrand frozen at the left endpoint. It satisfies the Itô isometry
E[(∫0THtdWt)2]=E[∫0THt2dt],
and the isometry extends the integral by mean-square limits to predictable H with E∫0THt2dt<∞. For such H, Mt=∫0tHsdWs is a square-integrable martingale with mean zero, and E[∫HdW∫KdW]=E∫HKdt. When only ∫0THt2dt<∞ holds almost surely, the integral is defined but in general only a local martingale. The timing convention changes answers,
∫0tWsdWs=21(Wt2−t),
while the midpoint (Stratonovich) convention gives 21Wt2. If H=2 on (0,21] and then H=1 or 3 according to whether W1/2>0, the integral over [0,1] has mean 0 and second moment 4⋅21+21(1+9)⋅21=4.5.
Let dXt=btdt+σtdWt be an Itô process and f(t,x) continuously differentiable once in t and twice in x. Then
df(t,Xt)=ftdt+fxdXt+21fxxσt2dt,
with derivatives evaluated at (t,Xt). So f(t,Xt) has the drift ft+btfx+21σt2fxx and the diffusion coefficient σtfx. The second-order term comes from (dWt)2=dt, with dtdWt=0 and (dt)2=0. Two cases are used everywhere. First, d(Xt2)=2XtdXt+σt2dt. Second, for dS=μSdt+σSdW with S>0,
dlnSt=(μ−21σ2)dt+σdWt.
For dX=bdt+ΣdW with a vector W of independent Brownian motions and a=ΣΣ⊤, the generator is Lf=b⊤∇f+21tr(a∇2f), and df=(ft+Lf)dt+∇f⊤ΣdW. The product rule is d(XY)=XdY+YdX+d[X,Y]. For two geometric Brownian motions with drifts 0.08 and 0.06, volatilities 0.2 and 0.3 and correlation 0.5, the product has drift rate 0.08+0.06+0.5⋅0.2⋅0.3=0.17, so from X0=100 and Y0=50, E[X1Y1]=5000e0.17≈5926.5. With correlation −0.5 it is 5000e0.11≈5581.4.
The equation dXt=b(t,Xt)dt+σ(t,Xt)dWt with initial value X0 means the integral equation Xt=X0+∫0tb(s,Xs)ds+∫0tσ(s,Xs)dWs. A strong solution is an adapted process that satisfies it on a given probability space with a given Brownian motion. A weak solution may use some other space and Brownian motion, and only its law is fixed. Pathwise uniqueness says that two solutions with the same Brownian motion and initial value agree almost surely.
The course states the following theorem with a Picard and Gronwall argument. Suppose that for all t, x and y the coefficients satisfy a global Lipschitz condition, ∣b(t,x)−b(t,y)∣≤L∣x−y∣ and the same bound for σ, and a linear growth condition, ∣b(t,x)∣+∣σ(t,x)∣≤K(1+∣x∣). If X0 is independent of W with E[X02]<∞, then a unique strong solution exists. The Ornstein-Uhlenbeck process, which reverts toward the level θ at speed κ>0, solves dX=κ(θ−X)dt+σdW and has the explicit form
Xt=θ+(X0−θ)e−κt+σ∫0te−κ(t−s)dWs,
which given X0 is Gaussian with mean θ+(X0−θ)e−κt and variance 2κσ2(1−e−2κt). With X0=0.02, θ=0.04, κ=0.5, σ=0.01 and t=2, the mean is about 0.03264 and the variance about 8.65×10−5. One Euler step Xn+1=Xn+κ(θ−Xn)h+σhZn of length h=0.1 with Zn=1 gives 0.024162. It approximates the exact transition and does not reproduce it.
A positive random variable ZT with EP[ZT]=1 defines an equivalent measure by Q(A)=EP[ZT1A], so ZT=dQ/dP is its Radon-Nikodym derivative, with density process Zt=EP[ZT∣Ft] and the conditional Bayes formula
EQ[X∣Ft]=ZtEP[ZTX∣Ft].
For an adapted λ with ∫0Tλs2ds<∞ almost surely, the stochastic exponential
Zt=exp(−∫0tλsdWs−21∫0tλs2ds)
solves dZt=−ZtλtdWt. It is a positive local martingale and a supermartingale, and it is a true martingale, with EP[ZT]=1, under Novikov’s condition EP[exp(21∫0Tλs2ds)]<∞. For constant λ, EP[ZT2]=eλ2T and WT∼N(−λT,T) under Q. With λ=0.25 and T=2, EP[ZT2]=e0.125≈1.133 and WT has mean −0.5 under Q. In a finite example, weights 0.4, 0.8, 1.2 and 1.6 on four equally likely states have mean 1 and give Q=(0.1,0.2,0.3,0.4).
Let W be a P-Brownian motion on [0,T] and λ adapted with ∫0Tλs2ds<∞ almost surely, and suppose the stochastic exponential Z above is a true martingale, for example under Novikov’s condition. With dQ/dP=ZT on FT, the process
WtQ=Wt+∫0tλsds
is a Q-Brownian motion on [0,T]. With this density convention the drift enters with a plus sign, and an Itô process dX=bdt+σdW becomes dX=(b−σλ)dt+σdWQ. The proof combines the Bayes formula, the product rule and Lévy’s characterization, which says that a continuous local martingale M with M0=0 and [M]t=t is a Brownian motion. For a stock with price drift μ, volatility σ>0 and dividend yield q, and a constant rate r, the market price of risk is λ=(μ+q−r)/σ, and under Q
dSt=(r−q)Stdt+σStdWtQ.
With several Brownian factors and volatility matrix Σt, the condition becomes Σtλt=μt+qt−rt1, which must have a solution. With μ=0.08, q=0, r=0.03 and σ=0.2, λ=0.25 and the Q drift is 0.08−0.2⋅0.25=0.03, so EQ[S1]=100e0.03≈103.05 and its discounted value is 100.
In the Black-Scholes model a continuously rebalanced position in the stock and the cash account replicates an option, so the option price solves a partial differential equation that does not involve the stock’s drift. The Feynman-Kac formula writes the solution as a discounted risk-neutral expectation, Gaussian integrals give closed formulas, and their derivatives are the Greeks. Hedging at discrete dates leaves an error, and early exercise turns the pricing equation into a free boundary problem.
Geometric Brownian motion
For constants μ and σ>0, the equation dSt=μStdt+σStdWt with S0>0 has the unique solution
St=S0e(μ−σ2/2)t+σWt,
so St>0 and ln(St/S0)∼N((μ−21σ2)t,σ2t), a lognormal law. For every real p,
E[Stp]=S0pe[pμ+21p(p−1)σ2]t,
so the mean is S0eμt, the variance is S02e2μt(eσ2t−1) and the median is S0e(μ−σ2/2)t, below the mean. Exact simulation uses St+h=Stexp((μ−21σ2)h+σhZ) with Z∼N(0,1). With S0=100, μ=0.08, σ=0.2 and t=1, the mean is 108.33, the median 106.18 and the variance 478.92. The draw Z=1 gives 100e0.26≈129.69, while one Euler step with the same draw gives 128.
Assume frictionless continuous trading with short sales, a stock following geometric Brownian motion with constant σ>0 and dividend yield q, a constant rate r, and no arbitrage. If an option’s value is V(t,S) with V continuously differentiable in t and twice in S, then holding Δt=VS(t,St) shares and financing the rest in the cash account is self-financing and replicates the option exactly when
Vt+21σ2S2VSS+(r−q)SVS−rV=0
on [0,T)×(0,∞), with the terminal condition V(T,S)=g(S). The drift μ cancels and does not appear. A call has C(t,0)=0 and C∼Se−qτ−Ke−rτ as S→∞, and a put has P(t,0)=Ke−rτ and P→0 as S→∞. With q=0, the claim paying ST2/100 has the value V=100S2e(r+σ2)τ, and substituting Vt=−(r+σ2)V, VS=2V/S and VSS=2V/S2 gives zero. At S=100 with r=0.05, σ=0.2 and τ=1, V≈109.417 and the hedge holds Δ≈2.188 shares.
Let X solve dX=b(t,X)dt+Σ(t,X)dW with generator L, and let u be a classical solution of
ut+Lu−cu+f=0,u(T,x)=g(x),
with c bounded below, in a class of controlled growth such as polynomial growth, under coefficient conditions that make the stochastic integral in the proof a true martingale. With Γt,s=e−∫tsc(v,Xv)dv, the solution is
u(t,x)=Et,x[Γt,Tg(XT)+∫tTΓt,sf(s,Xs)ds],
where Et,x starts the process at Xt=x, and it is the unique solution in that class. For the Black-Scholes equation, Lu=(r−q)xux+21σ2x2uxx, c=r and f=0, so the generator itself fixes the measure and
u(t,x)=e−rτEt,xQ[g(ST)].
Outside the growth class uniqueness can fail, since the heat equation has nonzero solutions with zero initial data. With q=0, g(x)=x2/40, r=0.03, σ=0.25 and τ=2, the formula gives u=40x2e(r+σ2)τ, so u(0,40)=40e0.185≈48.129.
The formula follows from the payoff integral with E[eaZ1{Z>b}]=ea2/2Φ(a−b) for standard normal Z. Here Φ(d2)=Q(ST>K) is the risk-neutral exercise probability. The physical probability P(ST>K) uses the drift μ in place of r−q and is a different number. As τ→0 the call tends to (S−K)+, and as σ→0 it tends to (Se−qτ−Ke−rτ)+.
Put-call parity holds for European options with the same strike and maturity under no arbitrage alone, from the payoff identity (ST−K)+−(K−ST)+=ST−K,
C−P=Se−qτ−Ke−rτ.
American options satisfy only inequalities, for example S−K≤C−P≤S−Ke−rτ on a stock without dividends when r≥0. With S=100, K=105, r=0.05, q=0.02, σ=0.2 and τ=1, d1≈0.006049 and d2≈−0.193951, the call is worth 6.9869 and the put 8.8461, and both sides of parity equal −1.8592.
The Greeks are partial derivatives of the model price with the other inputs held fixed. Theta is the derivative in calendar time t at fixed maturity, so Θ=−∂C/∂τ. For the call, with φ the standard normal density,
Greek
Call formula
Units
delta ∂C/∂S
e−qτΦ(d1)
shares
gamma ∂2C/∂S2
Sστe−qτφ(d1)
per currency unit
vega ∂C/∂σ
Se−qτφ(d1)τ
currency per unit of σ
rho ∂C/∂r
Kτe−rτΦ(d2)
currency per unit of r
Θ=−2τSe−qτφ(d1)σ+qSe−qτΦ(d1)−rKe−rτΦ(d2).
The put has delta −e−qτΦ(−d1) and rho −Kτe−rτΦ(−d2), and the same gamma and vega as the call. The identity Se−qτφ(d1)=Ke−rτφ(d2) simplifies the derivatives, vega equals S2στΓ, and the pricing equation becomes Θ+21σ2S2Γ+(r−q)SΔ−rC=0. Theta here is per year. Per calendar day under a 365-day convention it is Θ/365, and a vega per volatility point is ν/100. At S=K=100, r=q=0, σ=0.2 and τ=1, the call is worth 7.9656, with Δ≈0.5398, Γ≈0.019848, ν≈39.695, Θ≈−3.9695 per year (about −0.0109 per day) and ρ≈46.017.
Hold an option priced with model volatility σm and short Δ=VS shares, rebalanced at intervals h, with r=q=0 for simplicity. Over one interval, to second order and with the pricing equation Θ=−21σm2S2Γ,
ΔΠ≈Θh+21Γ(ΔS)2=21Γ[(ΔS)2−σm2S2h].
If the stock actually moves with volatility σa, then to leading order E[ΔΠ∣Ft]≈21ΓS2(σa2−σm2)h and Var(ΔΠ∣Ft)≈21Γ2σa4S4h2. A long gamma position gains when realized variance exceeds the variance used for pricing, and the total error is a gamma-weighted sum of the differences between realized and model variance. Even with σa=σm, the standard deviation of the total hedging error shrinks only like h. A jump J leaves the residual V(S+J)−V(S)−VSJ, which no delta position removes. With S=100, Γ=0.02, σm=0.2, σa=0.3 and h=2521, the expected one-day gain is about 0.0198. A move of ΔS=10 in one day gives about 0.984.
A cash-or-nothing digital call pays 1{ST>K}. Take call prices C(K) for all strikes at one maturity, with deterministic discounting, and write ∂K+C for the right derivative in the strike, the limit of the call spread (C(K+ε)−C(K))/ε as ε↓0. The digital price is a strike derivative, and when the risk-neutral law of ST has a density pQ, the Breeden-Litzenberger formula recovers it,
e−rτQ(ST>K)=−∂K+C(K),pQ(K)=erτ∂K2∂2C(K).
If Q(ST=K)>0, the call price has a kink at K and its left and right slopes differ by e−rτQ(ST=K). With random interest rates, P(0,T) replaces e−rτ and the forward measure QT replaces Q. In the Black-Scholes model the digital is worth e−rτΦ(d2) and CKK=e−rτφ(d2)/(Kστ). At S=K=100, r=q=0, σ=0.2 and τ=1, the digital is worth 0.4602 and the density at 100 is 0.019848, the same number as gamma.
An American option with payoff g is worth the optimal stopping value
V(t,s)=τsupEt,sQ[e−r(τ−t)g(Sτ)]
over stopping times τ in [t,T], where Et,sQ starts the price at St=s, so V≥g and V is at least the European value. Under regularity conditions, V solves the variational inequality max{Vt+LV−rV,g−V}=0, where L is the Q generator. The exercise boundary b(t) is a free boundary, fixed by value matching V(t,b(t))=g(b(t)) and smooth pasting Vs(t,b(t))=g′(b(t)).
The perpetual American put on a stock without dividends, with r>0 and σ>0, is solved exactly. With β=−2r/σ2 and the exercise boundary B=β−1βK=2r+σ22rK,
V(s)=(K−B)(s/B)β
for s>B, while V(s)=K−s for s≤B, where immediate exercise is optimal. With K=100, r=0.04 and σ=0.2, β=−2, B=3200≈66.67 and V(100)=27400≈14.815. At the boundary the slope of V is −1, the slope of the payoff.
One constant volatility rarely fits all quoted option prices, and many contracts depend on the whole price path. Implied volatility turns prices into a surface that must respect static no-arbitrage bounds, and local volatility, stochastic volatility and jumps are models that can produce such surfaces. Barrier, Asian and exchange options need hitting times, extra state variables and a change of numeraire.
Implied volatility
For a European call with S,K,τ>0, the Black-Scholes price increases strictly in σ, because vega Se−qτφ(d1)τ is positive, and as σ goes from 0 to ∞ it runs over the whole open interval between the no-arbitrage bounds (Se−qτ−Ke−rτ)+ and Se−qτ. So every price strictly inside that interval has exactly one implied volatility σimp>0, and a price outside it has none. Implied volatility is a coordinate for quoting prices, not a forecast of future volatility. Newton’s method σn+1=σn−(CBS(σn)−C)/ν(σn) is fast when vega is not small, while bisection on a bracket always converges and is the safer choice deep in or out of the money and near expiry. The inverse sensitivity is ∂σimp/∂C=1/ν. At S=K=100, τ=1 and r=q=0, the price 7.96557 gives σimp=0.2, and raising the price by 0.1 raises the implied volatility by about 0.1/39.695≈0.0025.
For European calls with one maturity T and a deterministic discount factor D(T), absence of static arbitrage requires
−D(T)≤∂K∂C≤0,∂K2∂2C≥0,
where the derivatives exist, and in discrete form 0≤C(K)−C(K+h)≤D(T)h (call spreads) and C(K−h)−2C(K)+C(K+h)≥0 (butterflies). Across maturities with deterministic carry, the normalized price C(K,T)/(D(T)F(0,T)) at fixed forward moneyness K/F(0,T) must not decrease in T, which is the same as total implied variance σimp2T not decreasing in T at fixed forward moneyness. With D=1 and calls at strikes 90, 100 and 110 priced 15, 10 and 7, the slopes are −0.5 and −0.3 and the butterfly costs 15−20+7=2≥0. A price of 4 at 110 would make the butterfly cost −1, an arbitrage, since its payoff is never negative. Interpolating prices linearly in strike with nondecreasing slopes in [−D(T),0] keeps a slice free of static arbitrage.
In a local volatility model the stock follows dSt=(r−q)Stdt+σloc(t,St)StdWtQ. If the call price surface C(T,K) is smooth, the terminal law has a density and the tails decay fast enough, Dupire’s equation holds,
CT=21σloc2(T,K)K2CKK−(r−q)KCK−qC,
so wherever CKK>0
σloc2(T,K)=K2CKK2Λ,Λ=CT+(r−q)KCK+qC.
With r=q=0 and constructed prices 8.47, 8 and 7.55 at strikes 99, 100 and 101, the curvature is CKK≈0.02. Prices 7.96 and 8.04 at maturities 0.01 apart on either side give CT≈4, so σloc2=1002⋅0.022⋅4=0.04 and σloc=0.2. Changing the middle price by 0.02 to 8.02 makes the curvature −0.02 and the formula meaningless. Differentiating quoted prices twice is ill-posed, so the surface is smoothed first. A local volatility model can match every marginal law and still give the wrong dynamics for path-dependent claims.
with d[WS,Wv]t=ρdt and κ,θ,ξ,v0>0. The variance stays nonnegative, and under the Feller condition 2κθ≥ξ2 it never reaches zero. A negative ρ, the leverage correlation, produces implied volatilities that fall with the strike. The variance has E[vT]=θ+(v0−θ)e−κT and E∫0Tvtdt=θT+(v0−θ)(1−e−κT)/κ. The log price xT=lnST has an affine characteristic function,
ϕT(u)=eiu[x0+(r−q)T]×eA(T,u)+B(T,u)v0,
where A and B solve Riccati equations in the time to maturity with A(0,u)=B(0,u)=0,
B′A′=21ξ2B2+(ρξiu−κ)B−21(u2+iu),=κθB.
With κ=2, θ=0.04, v0=0.09, ξ=0.3 and T=1, the Feller condition holds since 0.16≥0.09, E[v1]≈0.04677 and the expected integrated variance is about 0.06162. With ξ=0.6 it fails, since 0.16<0.36, and zero becomes attainable.
where N is a Poisson process with intensity λ, the jump factors J>0 are independent and identically distributed and independent of W and N, and κJ=EQ[J−1]. The term −λκJ compensates the jumps, since Nt−λt is a martingale, so the discounted total return is a martingale. Prices solve Vt+LV−rV=0 with the nonlocal generator
A delta hedge leaves the residual V(sJ)−V(s)−Vs(s)s(J−1) at each jump, so the market is incomplete and the pricing measure is a modeling choice. With λ=0.4, a fixed J=0.8 and r=0.03, κJ=−0.2, the drift between jumps is 0.11, the probability of no jump in a year is e−0.4≈0.670 and EQ[S1]=100e0.03. For V(s)=s2/100 at s=100 the jump residual is 100(J−1)2=4.
A down barrier option depends on the hitting time τH=inf{t≥0:St≤H}. A knock-out pays only if τH>T and a knock-in only if τH≤T, so for the same strike, barrier and maturity and no rebates, knock-in plus knock-out equals the vanilla option. For a standard Brownian motion and a≥0, the reflection principle gives
P(0≤t≤TmaxWt≥a)=2[1−Φ(a/T)].
For geometric Brownian motion with σ>0 and 0<H<min(s,z), the probability of crossing H during a step of length h from S0=s to Sh=z is
exp(−σ2h2ln(s/H)ln(z/H)).
A barrier checked only at discrete dates misses crossings between them, and this bridge formula corrects simulated paths. With S0=100, H=90, σ=0.2, T=1 and zero log drift, the hitting probability is 2Φ(ln0.9/0.2)≈0.598, and given S1=105 it is about 0.444.
An arithmetic Asian call pays (AT/T−K)+ with the running integral At=∫0tSudu. Adding A as a state variable, dAt=Stdt, gives the pricing equation
Vt+(r−q)SVS+21σ2S2VSS+SVA−rV=0,
with V(T,S,A)=(A/T−K)+. For the discrete geometric average G=exp(n1∑jlnStj) under Black-Scholes dynamics, lnG∼N(m,v) with m=lnS0+(r−q−21σ2)n1∑jtj and v=n2σ2∑j,kmin(tj,tk). With a=(m−lnK)/v,
CG=e−rT[em+v/2Φ(a+v)−KΦ(a)].
Since G never exceeds the arithmetic average of the same fixings, the geometric call is worth no more than the arithmetic call, and its exact price makes it a good control variate. With S0=K=100, r=q=0, σ=0.2 and fixings at 0.5 and 1, v=0.025, E[G]=100e−0.0025 and CG≈6.169. Fixings of 100, 110, 90 and 120 average 105 arithmetically and about 104.40 geometrically.
For two geometric Brownian motions under Q with volatilities σ1,σ2, correlation ρ and dividend yields q1,q2, the option to exchange asset 2 for asset 1, with payoff (ST1−ST2)+, is priced by taking asset 2 with its dividends reinvested as the numeraire. With σeff2=σ12+σ22−2ρσ1σ2>0, Margrabe’s formula is
and the interest rate does not appear. With S1=S2=100, σ1=0.2, σ2=0.3, ρ=0.5, no dividends and τ=1, σeff=0.07≈0.2646 and V≈10.524. With ρ=1, σeff=0.1. A basket is a sum of lognormal prices, which is not lognormal, so matching its first two moments with a lognormal gives an approximation, not an exact price.
Most prices are computed, not written down, and each method has its own kind of error. Conditioning belongs to the problem and stability to the algorithm. A Monte Carlo standard error measures sampling error only, a time step adds discretization error, and a grid, a regression or a truncated integral adds errors of its own, so a numerical answer is reported with the error it carries and the error it leaves out.
Conditioning and root finding
For the problem f(x)=b with f′(x)=0, the solution moves by dx/db=1/f′(x), and the relative condition number is κrel=∣b/(xf′(x))∣. A well-conditioned problem can still be computed badly. For large x, x2+1−x cancels to 0 in floating point at x=108, while the equal form 1/(x2+1+x) gives 5×10−9.
Bisection. If f is continuous with f(a0)f(b0)<0, halving the bracket keeps a root inside, and the midpoint after n halvings is within (b0−a0)/2n+1 of a root.
Newton’s method. The step is xn+1=xn−f(xn)/f′(xn). If f is twice continuously differentiable near a simple root x∗ and x0 is close enough, the error satisfies en+1≈2f′(x∗)f′′(x∗)en2, quadratic convergence. Far from the root it can fail. For f(x)=x3−2x+2 from x0=0 the iterates cycle 0,1,0,1,…
For x2=2 the root is 2≈1.414214 and the condition number is 21.
The estimator is unbiased with variance Var(Y)/N, and by the central limit theorem V^N±1.96SE is an approximate 95 percent interval. Halving the error needs four times as many draws. The standard error covers sampling error only, not a wrong model, wrong parameters or the bias of a time discretization, and a 95 percent interval misses in about one run in twenty. One constructed run of 10,000 exact draws for an at-the-money call with S0=K=100, σ=0.2, T=1 and r=q=0 gave V^≈8.2907 with SE≈0.1354. Its interval [8.0254,8.5560] misses the exact value 7.9656.
The Euler-Maruyama scheme for dX=b(t,X)dt+σ(t,X)dW freezes the coefficients over each step h,
Xn+1=Xn+b(tn,Xn)h+σ(tn,Xn)ΔWn,
with ΔWn∼N(0,h). The scalar Milstein scheme adds 21σσx[(ΔWn)2−h]. Under Lipschitz and growth conditions, Euler has strong order 21, (E∣XT−XTh∣2)1/2≤Ch1/2, and with smooth coefficients and a smooth payoff f it has weak order 1, ∣Ef(XT)−Ef(XTh)∣≤Cfh. Milstein has strong order 1 under stronger smoothness. A discontinuous payoff such as a digital can lower the observed weak order. For geometric Brownian motion with S=100, μ=0.05, σ=0.2, h=0.25 and the draw Z=−1.3, Euler gives 88.25, Milstein 88.595 and the exact step 88.4706. For the square-root process dv=κ(θ−v)dt+ξvdW, one Euler step from v=0.001 with κ=1, θ=0.04, ξ=0.5, h=0.1 and Z=−3 gives −0.0101, a negative variance, so such processes need a scheme that keeps the state nonnegative.
Each method below keeps the estimator unbiased and changes only its variance.
Antithetic variates. Average Y(Z) and Y(−Z). When the two have equal variance, the pair average has variance 21[VarY+Cov(Y(Z),Y(−Z))], which beats two independent draws when the covariance is negative, as it is for monotone payoffs.
Control variates. With a variable X of known mean μX, use Y−β(X−μX). The best β∗=Cov(Y,X)/Var(X) leaves the variance Var(Y)(1−ρ2). A β estimated from the same sample adds a bias of order 1/N.
Importance sampling. Sample from a density q instead of p and weight, Ep[Y]=Eq[Yp/q], which needs q>0 wherever pY=0. Shifting a standard normal by a gives the weight φ(z)/φ(z−a)=e−az+a2/2.
With VarY=25, VarX=16 and Cov(Y,X)=18, β∗=1.125, ρ=0.9 and the controlled variance is 4.75. An antithetic covariance of −15 gives the pair variance 5, against 12.5 for two independent draws. A shift a=1 gives the weight e−1.5≈0.2231 at z=2.
Quasi-Monte Carlo estimates I=∫[0,1]df(u)du by QN=N1∑jf(uj) with low-discrepancy points such as Sobol or Halton points. The Koksma-Hlawka inequality bounds the error by ∣QN−I∣≤VHK(f)DN∗, the variation of f in the sense of Hardy and Krause, assumed finite, times the star discrepancy of the points, which is of order (lnN)d/N for good sequences. The bound is rarely computable, so randomized quasi-Monte Carlo repeats the estimate with R independent randomizations, each unbiased, and reports
Quasi-Monte Carlo works best when a few coordinates carry most of the variance, a low effective dimension. The Brownian bridge construction arranges this for paths by drawing WT=TZ1 first and then filling in midpoints from their conditional laws, such as WT/2∼N(w/2,T/4) given W0=0 and WT=w. For f(u)=u2 on [0,1], evenly spaced midpoints give Q4=0.328125 and Q8=0.33203125 against I=31, and four randomized replicates 0.332, 0.334, 0.331 and 0.333 give Qˉ=0.3325 with SE≈0.00065.
In the variables x=lnS and τ=T−t, the Black-Scholes equation becomes Vτ=aVxx+bVx−rV with a=21σ2 and b=r−q−21σ2, and V(τ,x)=e−rτu(τ,x+bτ) reduces it to the heat equation uτ=auyy. On a grid with steps Δτ and Δy, let λ=aΔτ/(Δy)2 and let Lh be the central second difference times a.
Scheme
Update
Stability
explicit
ujn+1=λuj−1n+(1−2λ)ujn+λuj+1n
only for 0<λ≤21
implicit
(I−ΔτLh)un+1=un
unconditional, first order in time
Crank-Nicolson
(I−21ΔτLh)un+1=(I+21ΔτLh)un
unconditional, second order in time
For the plain heat equation ut=uxx, a=1 and the explicit condition is Δt/(Δx)2≤21. Under that condition the explicit update is a weighted average of neighbors and satisfies a discrete maximum principle. Above it, the highest grid frequency is multiplied by 1−4λ<−1 at every step and grows. Crank-Nicolson can still oscillate after a payoff kink, which is often damped by a few implicit steps at the start. With σ=0.2, Δy=0.1 and Δτ=0.1, λ=0.2 and a unit spike becomes (0.2,0.6,0.2). With Δτ=0.3, λ=0.6, the center becomes −0.2 and the amplification factor is −1.4.
A Bermudan option can be exercised at dates t1<⋯<tn. Its continuation value at tk is Ck(x)=EQ[e−rΔtVk+1∣Xk=x], and least squares Monte Carlo estimates it by regressing simulated discounted future values on basis functions, C^k(x)=∑jβ^jψj(x), usually on in-the-money paths only. The resulting policy exercises at the first tk with g(Xk)≥C^k(Xk). Any stopping policy is worth at most the true price, so evaluating the policy on independent paths estimates a lower bound, while evaluating it on the paths used for fitting can be biased upward. Dual methods give upper bounds. In a constructed tree with a put struck at 100, exercise dates 1 and 2 and date-one prices 80, 100 and 120, the exact continuation values are 9160, 980 and 0, and the affine fit C^(s)=3160−94s reproduces them. The policy exercises only at 80 and is worth about 8.560, against 7.901 for exercising only at date 2.
Let ϕ(u)=EQ[eiuXT] be the characteristic function of XT=lnST, so ϕ(0)=1 and ϕ(−u)=ϕ(u). The call price as a function of the log strike k is not integrable, so the Carr-Madan method damps it by eαk with α>0, which needs the moment EQ[STα+1]<∞. The damped price has the Fourier transform
The integral is truncated and discretized, and the fast Fourier transform evaluates it on a log-strike grid with spacing Δk=2π/(NΔv). The errors come from truncation, from the grid, which causes aliasing, and from a poor choice of α inside the strip where the moment exists. For the Black-Scholes characteristic function with S0=K=100, σ=0.2, T=1, r=q=0, α=1.5, Δv=0.025 and N=4096, the trapezoidal rule reproduces the call price 7.965567, and Δk≈0.0614.
Interest rate derivatives depend on the whole term structure, and the bond price P(t,T) is now a random process. A positive numeraire defines its own pricing measure, and choosing the bond, the annuity or the cash account as numeraire makes the right forward rate a martingale. Short-rate models, the Heath-Jarrow-Morton framework and market models describe the curve under Q, with parameters that are pricing parameters, not physical ones.
Numeraires and forward measures
Let N be a positive price process of a traded asset without payouts, with N/B a true Q-martingale. Then
dQdQNFt=N0/B0Nt/Bt
defines an equivalent measure under which prices divided by N are martingales, and every claim H paid at T has the same price in either unit,
Vt=NtEQN[NTHFt]=BtEQ[BTHFt].
With the bond P(t,T) as numeraire this is the T-forward measure, and Vt=P(t,T)EQT[H∣Ft], so forward prices for delivery at T are QT-martingales. If dP(t,T)/P(t,T)=rtdt+σP(t,T)dWtQ, then WtT=WtQ−∫0tσP(s,T)ds is a QT-Brownian motion. With two equally likely Q states in which the cash account grows to 1.02 or 1.08, P(0,T)=21(1.021+1.081)≈0.95316 and the forward measure gives the states the weights 0.5143 and 0.4857. A claim paying 100 in the second state costs 46.296 in either calculation.
The Feller condition 2κθ≥ξ2 keeps a Cox-Ingersoll-Ross rate that starts positive away from zero. Parameters fitted to bond and option prices are Q parameters, and the physical dynamics differ by the market price of risk. With r0=0.03, κ=0.5, θ=0.04, σ=0.01 and τ=5, the Vasicek bond is worth 0.834287, and with ξ=0.1, where 2κθ=0.04≥0.01, the Cox-Ingersoll-Ross bond is worth 0.835234.
The Hull-White model drt=(θ(t)−art)dt+σdWtQ with a,σ>0 adds a time-dependent drift that fits any smooth initial curve PM(0,T) with instantaneous forwards fM(0,t). Write rt=xt+χ(t) with dxt=−axtdt+σdWtQ and x0=0. The fit requires the deterministic shift and drift
Fitting the curve fixes θ but does not identify a and σ, which come from option prices. For a flat curve at 0.03 with a=0.1 and σ=0.01, χ(1)≈0.030045 and θ(1)≈0.0030906, and the model reproduces P(0,5)=e−0.15. A short rate of 0.04 at t=1 gives P(1,5)≈0.857735.
The Heath-Jarrow-Morton framework models the whole forward curve, with P(t,T)=exp(−∫tTf(t,u)du) and rt=f(t,t), through df(t,T)=α(t,T)dt+σ(t,T)⋅dWtQ for each maturity T. With A(t,T)=∫tTα(t,u)du and Σ(t,T)=∫tTσ(t,u)du, and under integrability conditions that allow the stochastic Fubini theorem,
P(t,T)dP(t,T)=[rt−A+21∥Σ∥2]dt−Σ⋅dWtQ.
Discounted bond prices have zero drift under Q, as absence of arbitrage requires, exactly when A=21∥Σ∥2 for every maturity, and differentiating in T gives the drift restriction
α(t,T)=σ(t,T)⋅∫tTσ(t,u)du.
So under Q the volatility determines the drift. The exponential kernel σ(t,T)=ηe−a(T−t) gives Σ=η(1−e−aτ)/a and α=η2e−aτ(1−e−aτ)/a with τ=T−t, the Hull-White case. With η=0.01, a=0.2 and τ=3, Σ≈0.022559 and α≈0.00012381, and the integrated drift is 21Σ2≈0.00025446.
For dates T0<T1<⋯<TN with accruals δi, the simple forward rate is Li(t)=(P(t,Ti)/P(t,Ti+1)−1)/δi for t≤Ti. Under its own forward measure QTi+1, Li is a martingale, and the lognormal market model sets dLi/Li=λi(t)⋅dWti+1. Under the terminal measure QTN the forwards acquire drifts,
and the last forward LN−1 has none. With L0=0.04, L1=0.05, δ1=0.5, volatilities 0.2 and 0.25 and correlation 0.6, the drift rate of L0 under QT2 is −1.0250.025(0.2)(0.25)(0.6)≈−0.000732, an absolute drift of about −2.93×10−5. Rates compounded from overnight fixings over the accrual period are known only at its end, so they are different contracts, and the classical formulas need adjustment for them.
A caplet on the rate L for [Tfix,Tp], with accrual δ, notional N and payment at Tp, is priced under the payment-date forward measure,
Cplt=NδP(t,Tp)×EQTp[(L−K)+∣Ft],
and with the forward rate F, caplet-floorlet parity is Cpl−Fll=NδP(t,Tp)(F−K). With τ the time to fixing, the two standard models for F give the following prices.
Model for F
Caplet price divided by NδP(t,Tp)
Black’s formula, lognormal with volatility σB
FΦ(d1)−KΦ(d2), d1,2=σBτln(F/K)±σB2τ/2
Bachelier, normal with volatility σN
(F−K)Φ(d)+σNτφ(d), d=σNτF−K
A swaption uses the annuity A(t)=∑jαjP(t,Tj) as numeraire. The forward swap rate S(t)=PVfloat(t)/(NA(t)) is a martingale under the annuity measure QA, and a payer swaption with expiry Te is worth NA(t)EQA[(S(Te)−K)+∣Ft], priced with the Black or the Bachelier formula for S. With F=K=0.04, τ=1, N=106, δ=0.5 and P=0.95, the Black caplet with σB=0.2 is worth 1513.46 and the Bachelier caplet with σN=0.008 is worth 1515.98.
The SABR model for a forward is dFt=atFtβdWt and dat=νatdZt, with d[W,Z]t=ρdt, 0≤β≤1, ν≥0 and a0>0, so at=a0eνZt−ν2t/2. Hagan’s formula is an asymptotic approximation of the Black implied volatility. With ℓ=ln(F/K), m=(FK)(1−β)/2 and z=a0νmℓ,
where z/x(z)→1 at the money. For β=1 the at-the-money value is σATM≈a0[1+(4ρνa0+24(2−3ρ2)ν2)T]. The approximation can imply a negative density at low strikes or long maturities, which is an arbitrage. With β=1, a0=0.2, ν=0.4, ρ=−0.3, T=2 and F=0.04, the at-the-money volatility is about 0.20221 and the volatility at K=0.05 about 0.19522.
In an idealized trade with perfect cash collateral C=V earning the collateral rate c, while unsecured funding costs f, the value satisfies Vt+LV−fV+(f−c)C=0. With C=V the funding terms cancel and Vt+LV−cV=0, so the trade is discounted at the collateral rate, typically an overnight index swap (OIS) rate. Discounting and projection then use different curves. A swap’s floating leg uses projection forwards Fix for its tenor and collateral discount factors Dc(0,Ti),
and the tenor basis is the spread between projection curves of different tenors. With Dc=(0.97,0.94), Fx=(0.04,0.045), annual accruals and N=106, PVfloat=81,100 and Kpar≈0.042461, while the single-curve telescoping value N(1−0.94)=60,000 is wrong for these forwards. A rate compounded from daily overnight fixings rj over dj days on an actual/360 basis is
R=∑jdj/360∏j(1+rjdj/360)−1,
so fixings of 0.03, 0.04 and 0.05 over 1, 2 and 1 days compound to about 0.0400055, slightly above their average 0.04.
Credit risk enters prices through default events, both of the issuers a contract refers to and of the counterparty to the contract itself. Intensity models describe when default happens, structural models tie it to a firm’s assets, and the joint law of defaults drives portfolio and tranche losses. Counterparty exposure, collateral and the valuation adjustments are cash-flow calculations under stated conventions, and every probability here is a pricing probability under Q unless it is marked as physical.
Default intensity, survival and recovery
For a default time τ>0, the survival function is S(t)=Q(τ>t), and when it is differentiable the hazard rate is λ(t)=−S′(t)/S(t), so that Q(t<τ≤t+h∣τ>t)=λ(t)h+o(h). Then
S(t)=exp(−∫0tλ(u)du),fτ(t)=λ(t)S(t).
In the Cox construction the intensity λt is a random process, τ is the first time ∫0tλudu reaches an independent exponential variable with mean 1, and S(t)=E[e−∫0tλudu], which is at least e−E∫0tλudu by Jensen’s inequality. A recovery convention states what is paid at default. Under recovery of a fraction R of face value F, paid at default, with constant r and λ, a defaultable zero-coupon bond is worth
B0=Fe−(r+λ)T+RFr+λλ(1−e−(r+λ)T).
With F=100, T=4, r=0.03, λ=0.04 and R=0.35, the survival probability is e−0.16≈0.8521, the survival payment is worth 75.578, the recovery 4.884 and the bond 80.463. The one-year default probability is 1−e−0.04≈0.0392, and λ=0.08 lowers the bond to 73.465.
The Merton model takes the firm’s asset value At to follow geometric Brownian motion with volatility σ, with one zero-coupon debt of face F due at T and no payouts before T. Equity receives ET=(AT−F)+ and debt DT=min(AT,F)=F−(F−AT)+, so equity is a call on the assets and debt is a riskless bond minus a put. Under Q, where the assets drift at r,
with D0=A0−E0. The risk-neutral default probability is Q(AT<F)=Φ(−d2), while the physical one puts the asset drift μ in place of r. The credit spread is −ln(D0/F)/T−r, and by Itô’s lemma the equity volatility satisfies σEE0=σA0Φ(d1). With A0=120, F=100, T=2, r=0.03 and σ=0.25, d1≈0.8622, d2≈0.5086, E0≈31.280, D0≈88.720, the risk-neutral default probability is 0.3055, the spread is 0.02984 and σE≈0.773. With μ=0.08 the physical default probability is 0.2143. Raising σ to 0.4 moves value from debt to equity, E0≈38.846 and D0≈81.154.
A protection buyer pays the spread s on notional N at dates ti with accrual fractions αi until default or maturity T, and the seller pays N(1−R) at default. With deterministic discount factors D(t) and intensity λ(t) under Q, the risky annuity, including the premium accrued since the last payment date when default occurs, and the protection leg are
The premium leg is worth sNA, and the par spread is spar=Prot/(NA). With constant r and λ and a premium paid continuously, spar=(1−R)λ exactly, so for discrete payments spar≈(1−R)λ is an approximation. With T=3, quarterly payments, r=0.02, λ=0.05 and R=0.4, the scheduled annuity is 2.68233, the accrual adds 0.01686, the protection leg is worth 0.081178 per unit notional and spar≈0.030075, against 0.030264 without the accrual term. With R=0.25 the par spread is about 0.037594.
With default indicators Ii=1{τi≤T}, exposures wi and recoveries Ri, the portfolio loss is L=∑iciIi with the losses given default ci=wi(1−Ri), and
Var(L)=i,j∑cicjCov(Ii,Ij).
The marginal default probabilities do not determine the joint law. The one-factor Gaussian model sets Zi=ρY+1−ρϵi with independent standard normal Y and ϵi, and name i defaults when Zi≤Φ−1(pi). For 0≤ρ<1, the default probability given the factor is
pi(y)=Φ(1−ρΦ−1(pi)−ρy),
and the defaults are independent given Y. This is the Gaussian copula. The lower tail dependence coefficient λL=limu↓0C(u,u)/u, where the limit exists, is 0 for a Gaussian copula with ρ<1, so joint extreme defaults are rare in that model, while a t copula has λL>0. Two names with default probability 0.1 each, joint default probability 0.03 and loss 50 each have zero, one or two defaults with probabilities 0.83, 0.14 and 0.03, mean loss 10 and loss variance 550, and the indicator correlation is 0.090.03−0.01≈0.222. Independent names, with joint probability 0.01, give the same mean and variance 450.
For a portfolio loss L as a fraction of notional, 0≤L≤1, a tranche with attachment a and detachment d, 0≤a<d≤1, absorbs
ℓa,d(L)=min((L−a)+,d−a)=(L−a)+−(L−d)+,
which as a fraction of the tranche notional is ℓa,d(L)/(d−a). Its expected loss is an integrated tail,
E[ℓa,d(L)]=∫adP(L>x)dx,
and in general E[ℓa,d(L)]=ℓa,d(E[L]). Tranches that partition [0,1] add up to the whole portfolio loss in every state. With losses 0, 0.04, 0.12 and 0.25 of probabilities 0.7, 0.18, 0.09 and 0.03, the tranche from 0.05 to 0.15 loses 0, 0, 0.07 and 0.10, so its expected loss is 0.0093 of the portfolio and 0.093 of the tranche, although the mean loss 0.0255 lies below the attachment point. Moving 0.03 of probability from the 0.04 state to the 0.25 state raises the tranche’s expected fractional loss to 0.123.
Take the signed value V of a trade from our side, positive when the counterparty owes us. The exposure is V+, and within an enforceable netting set
(i∑Vi)+≤i∑Vi+,
so netting never raises exposure. With collateral C held by us, positive when we hold it, the exposure is (V−C)+. A one-way agreement with threshold H targets the collateral (V−H)+ and moves collateral only when the call reaches a minimum transfer amount. Over the margin period of risk δ between the last collateral exchange and closeout, the exposure is (Vt+δ−Ct)+. Trades worth 12, −9 and 4 have gross exposure 16 and net exposure 7. With collateral 2, threshold 3 and minimum transfer 1, the call of 2 raises collateral to 4 and leaves exposure 3. A move to 7.4 calls only 0.4, below the minimum, so the exposure is 3.4, and if the counterparty then stops posting and the trade closes out at 10.5, the exposure is 6.5.
The unilateral credit valuation adjustment prices the counterparty’s default, with closeout value Vτclose, collateral Cτ and recovery R,
CVA=EQ[BτB0(1−R)×(Vτclose−Cτ)+1{τ≤T}],
where the cash account discounts from the default time to time 0. If exposure is independent of default and interest rates are deterministic, so that B0/Bt=D(0,t), it reduces to
CVA=(1−R)∫0TEE(t)w(t)dt
with the expected exposure EE(t)=EQ[(Vt−Ct)+] and the discounted default density w(t)=D(0,t)λ(t)S(t). Dependence enters through E[EI]=E[E]E[I]+Cov(E,I) for exposure E and default indicator I. Wrong-way risk is a positive covariance, exposure that is large when default is likely, and it raises the adjustment above the independent value. Take two states of probability 0.8 and 0.2 with exposures 2 and 12 and default probabilities 0.01 and 0.2, recovery 0.4 and discount factor 0.97. Then EE=4, the default probability is 0.048, E[EI]=0.496 and the covariance is 0.304, so CVA=0.6⋅0.97⋅0.496≈0.2887, against 0.1117 under independence. Default probabilities 0.06 and 0 keep the same marginals and give right-way risk, with CVA≈0.0559.
The other valuation adjustments are discounted costs of financing a trade, each computed from its own cash-flow ledger. In a restricted linear setting with deterministic discount factors,
where Ft is the uncollateralized funding need with funding spread ft, It the posted initial margin with its funding spread mt, and Kt the capital held, charged at a hurdle rate ht net of the return ct it earns, a policy input. The debt valuation adjustment (DVA) is the value of our own default to the counterparty. Sign conventions differ between institutions, and the adjustments interact, so a funding benefit and the DVA can count the same cash flow twice. One ledger with each cash flow assigned to exactly one adjustment avoids this. With a clean value of 5, two yearly buckets with discount factors 0.98 and 0.95, funding needs 3 and 2 at a spread of 0.01, initial margin 1 and 1.5 at 0.012, capital 0.8 and 0.6 charged 0.08, CVA=0.18 and DVA=0.07, the adjustments are FVA=0.0484, MVA=0.02886 and KVA=0.10832, and the adjusted value is 5−0.18+0.07−0.0484−0.02886−0.10832=4.70442.
Risk measures summarize the losses a portfolio can suffer over a stated horizon, under a stated model and at a stated confidence level. Losses are positive for adverse outcomes here, so a loss is the negative of PnL. Value at risk is a quantile, expected shortfall averages the tail beyond it, and extreme value theory, stress tests, liquidity adjustments and backtests each answer a narrower question. When the model itself is uncertain, a range of values is more honest than one number.
Profit and loss attribution
Over a short period, a second-order Taylor expansion splits the change in a book’s value V(x,t) into carry, market moves and a residual,
ΔV≈VtΔt+∇xV⊤Δx+21Δx⊤HxΔx,
with Hx the Hessian in the risk factors x. The residual is the actual revalued change minus the explained terms. Along the path g(u)=V(x+uΔx), it is bounded by M∥Δx∥3/6 when the third directional derivatives are bounded by M, and it is zero for a quadratic value function. The split depends on a convention, the base point and the order of the factors, which a report states. For V(S,v,t)=0.01S2+2Sv+50v2−3t at S=100, v=0.2, t=0, the value is 142. A move of ΔS=3, Δv=0.02 and Δt=0.01 gives a linear market term 11.6, a quadratic term 0.23 and carry −0.03, which add exactly to the actual change 11.8. Adding 0.0001S3 to V leaves a residual of 0.0027.
For a loss L over a stated horizon and a confidence level α such as 0.95 or 0.99, value at risk is the lower α-quantile
VaRα(L)=inf{ℓ:FL(ℓ)≥α}.
Historical VaR, the estimate from n equally weighted losses with order statistics L(1)≤⋯≤L(n) is q^α=L(⌈nα⌉), and other quantile conventions give other numbers. For independent, identically distributed losses whose density f is positive and continuous at qα, the estimate is approximately normal,
n(q^α−qα)⇒N(0,f(qα)2α(1−α)),
so tail quantiles are estimated poorly where the density is small. VaR need not be subadditive. Two independent positions each lose 100 with probability 0.04 and nothing otherwise, so each has VaR0.95=0, but their sum loses at least 100 with probability 0.0784>0.05, so VaR0.95 of the sum is 100. For the twenty constructed losses −4, −2, −1, 0, 1, …, 10, 12, 14, 16, 19, 25, 40, the historical VaR0.95 is the 19th smallest, 25, and VaR0.90 is the 18th, 19.
with the minimum attained at z=VaRα(L). With an atom at the quantile, ES is not the same as E[L∣L≥VaRα] or E[L∣L>VaRα], because the quantile integral counts only the part of the atom that lies in the tail. A risk measure ρ is coherent when it is monotone, translation invariant, ρ(L+c)=ρ(L)+c, positively homogeneous and subadditive, ρ(L1+L2)≤ρ(L1)+ρ(L2). Expected shortfall is coherent, with the dual representation ESα(L)=sup{E[ZL]:0≤Z≤(1−α)−1,E[Z]=1}, while VaR is not. For losses 0, 10 and 30 with probabilities 0.9, 0.08 and 0.02, VaR0.95=10 and
ES0.95=0.050.02⋅30+0.03⋅10=18,
while E[L∣L>10]=30 and E[L∣L≥10]=14. At α=0.9, ES0.9=14.
If normalized maxima of independent losses with distribution F converge, so that Fn(anx+bn)→Gξ(x)=exp(−(1+ξx)−1/ξ) for 1+ξx>0, with the Gumbel limit at ξ=0, then F lies in the maximum domain of attraction of Gξ. For a continuous F, the Pickands-Balkema-de Haan theorem says that this holds exactly when the excess distribution over a threshold u, Fu(y)=P(L−u≤y∣L>u), is uniformly approximated by a generalized Pareto distribution Hξ,β(u) as u rises to the right endpoint of F. The generalized Pareto tail, for β>0, y≥0 and 1+ξy/β>0, is
P(L−u>y∣L>u)=(1+βξy)−1/ξ,
and for ξ>0 the tail index is 1/ξ. If this tail holds exactly above u with exceedance probability pu=P(L>u), then for α>1−pu and ξ<1
The excesses over a higher threshold u′ are again generalized Pareto with the same ξ and β′=β+ξ(u′−u), which is the threshold stability used to check a fit. With u=100, pu=0.05, β=20, ξ=0.2 and α=0.99, q0.99≈137.97 and ES0.99≈172.47. Moving the threshold to 120 gives β′=24 and exceedance probability 0.0201. With ξ=0.4 the same inputs give 145.18 and 208.64, and the limit ξ→0 gives u+βln(pu/(1−α))≈132.19, so the shape parameter, which is hard to estimate, drives the answer.
A stress scenario is a vector of joint factor shocks, and the portfolio is revalued under it in full, since the joint loss of a nonlinear book is not the sum of the losses from each shock alone. A reverse stress test looks for the most plausible scenario, in a stated metric, that causes a given loss. For V(x,y)=100+8x−5y+3x2+4xy+2y2, the joint shock (−2,1) changes the value by −15, while the shocks applied one at a time give −4 and −3, a total of −7. Minimizing x2+y2 subject to a linear loss −8x+5y≥20 gives the scenario 8920(−8,5)≈(−1.798,1.124) by the Cauchy-Schwarz inequality, but full revaluation there gives a loss of only 15.86, so a linear surrogate can miss the target. This V is convex with its minimum 54.625 at (−6.5,7.75), so no scenario at all loses more than 45.375.
Liquidating q shares at a constant rate over a horizon h, with half-spread b, linear temporary impact η and an unaffected price that moves like Brownian motion with volatility σ in currency per share per square-root unit of time, costs on average bq+ηq2/h, and the price risk of the remaining inventory adds the variance
σ2∫0hq2(1−t/h)2dt=3σ2q2h.
With risk aversion λ, the objective J(h)=bq+ηq2/h+λσ2q2h/3 is convex in h and has the minimum at
h∗=λσ23η.
A faster sale pays more impact and a slower one carries more price risk. With q=105, b=0.005, η=10−7, σ=0.3 per square-root day and λ=10−6, a one-day sale costs 1500 on average with variance 3×108 and objective 1800, while h∗≈1.826 days lowers the objective to about 1595. Doubling σ halves h∗ to about 0.913 days.
A VaR exception at date t is It=1{Lt>VaRt}. If the model has correct coverage and the exceptions are independent, their count over n days is K∼Binomial(n,p0) with p0=1−α. The unconditional coverage likelihood ratio, with k exceptions,
LRuc=2klnp0k/n+2(n−k)ln1−p01−k/n,
is compared with a χ12 distribution, an asymptotic approximation that is rough for small counts. The independence test fits a two-state Markov chain to the exceptions, with p^01=n01/(n00+n01) and p^11=n11/(n10+n11) from the transition counts, and the conditional coverage statistic LRcc=LRuc+LRind, with both parts conditioned on the same first observation, is compared with χ22. With n=100, p0=0.05 and k=12 against 5 expected, LRuc≈7.54>3.84, the 95 percent point of χ12, and the exact probability of 12 or more exceptions is about 0.0043. Four exceptions in twenty days at days 5, 10, 15 and 20 give p^11=0, while four in a row at days 9 to 12 give p^11=0.75, the same count with very different timing.
Parameter uncertainty is doubt about the inputs of one model, and model ambiguity is doubt about which model, or which pricing measure, is right. If a value is monotone in an uncertain parameter, the range of the parameter maps to a valuation envelope. A Black-Scholes call increases in σ, so σ∈[σlo,σhi] gives the price range [C(σlo),C(σhi)]. A local linear bound over a norm ball is sup∥Δθ∥≤ε∇V⊤Δθ=ε∥∇V∥∗ with the dual norm, a first-order bound that holds only for small moves. For a family Q of pricing measures that all fit the market, the robust lower value and the robust upper value of a claim X with discount factor D are
V=Q∈QinfEQ[DX],V=Q∈QsupEQ[DX].
For S0=100, K=105, T=1, r=0.02 and σ between 0.18 and 0.28, the call price lies between 5.908 and 9.895, with 7.901 at σ=0.23 and vega 39.89 there. A claim paying 10 with a probability known only to lie in [0.4,0.6], discounted by 0.98, has robust bounds 3.92 and 5.88.
Portfolio choice turns expected returns, covariances and constraints into weights. The weights are only as good as the estimates behind them, so factor models, shrinkage, Bayesian views and uncertainty sets are ways to handle estimation error, and risk budgets, growth criteria and liability matching are different objectives for the same problem. The probabilities here are physical, and every allocation is the solution of a stated model, not a recommendation.
Mean-variance optimization
A portfolio with weights w on assets with mean returns μ and covariance Σ has mean w⊤μ and variance w⊤Σw. The frontier problem minimizes 21w⊤Σw subject to the budget 1⊤w=1 and the target μ⊤w=m. If Σ is positive definite and μ is not a multiple of 1, let A=1⊤Σ−11, B=1⊤Σ−1μ, C=μ⊤Σ−1μ and Δ=AC−B2>0. Then
and the global minimum-variance portfolio is w=Σ−11/A, with variance 1/A and mean B/A. These weights allow short positions. Constraints such as w≥0 make the problem a quadratic program, and at its solution some constraints are active. With μ=(0.06,0.12) and Σ=(0.040.010.010.09), the target m=0.1 needs w=(31,32) with variance 0.04889, and the minimum-variance portfolio is about (0.727,0.273) with mean 0.0764 and variance 0.0318. The target 0.13 needs w=(−61,67), which is infeasible without short sales.
A factor model writes excess returns as R−μ=Bf+ϵ with loadings B, factor covariance F and residual covariance D, with f and ϵ uncorrelated, so
Σ=BFB⊤+D.
A strict factor model takes D diagonal. The sample covariance Σ^=n−11∑t(Rt−Rˉ)(Rt−Rˉ)⊤ estimates Σ and is singular when n does not exceed the number of assets. Shrinkage (1−α)Σ^+αT with 0≤α≤1 and a structured target T stays positive semidefinite, and it is positive definite when T is and α>0. The first principal component maximizes the Rayleigh quotient, maxv⊤v=1v⊤Σv=λmax(Σ), attained at the top eigenvector. With loadings (1,1.5), factor variance 0.01 and residual variances 0.004 and 0.009, Σ=(0.0140.0150.0150.0315), and the weights (0.6,0.4) have variance 0.0144+0.00288=0.01728. Shrinking 30 percent toward the diagonal gives 0.01512, and a residual covariance of 0.002 between the two assets raises the true variance to 0.01824.
The Black-Litterman model starts from equilibrium expected excess returns π=δΣwmkt for a risk aversion δ and market weights wmkt, with the prior μ∼N(π,C), often C=τΣ. Views are q=Pμ+η with η∼N(0,Ω) independent of μ. Gaussian conditioning gives the posterior mean and covariance, with the gain matrix G,
GmCpost=CP⊤(PCP⊤+Ω)−1,=π+G(q−Pπ),=C−GPC,
and with C and Ω positive definite, m=J−1(C−1π+P⊤Ω−1q) with the precision J=C−1+P⊤Ω−1P. The covariance for predicting returns adds the parameter uncertainty, Σ+Cpost. The prior and the confidences are modeling inputs. With Σ=diag(0.04,0.09), market weights (0.6,0.4), δ=2 and τ=0.01, π=(0.048,0.072). The view μ1−μ2=−0.01 with Ω=0.0001 differs from the prior by 0.014 and moves the posterior mean to (0.052,0.063). A less confident view with Ω=0.001 gives about (0.0504,0.0665).
Robust optimization chooses w in a feasible set to maximize the worst case over an uncertainty set U for the mean,
wmaxμ∈Uinf[μ⊤w−2γw⊤Σw].
For an ellipsoid U={μ^+Au:∥u∥2≤ε} the inner infimum is μ^⊤w−ε∥A⊤w∥2, and for a box ∣μi−μ^i∣≤δi it is μ^⊤w−∑iδi∣wi∣, so the worst case acts as a penalty that shrinks positions. With one risky asset and an unrestricted weight,
w∗=γσ2sign(μ^)(∣μ^∣−δ)+,
which is zero when the estimate is within δ of zero. With μ^=0.08, σ2=0.04, γ=3 and δ=0.02, w∗=0.5 against 32 without uncertainty, and δ=0.09 gives w∗=0. The answer depends on how the uncertainty set is calibrated, which the method does not supply.
A risk budget assigns target shares bi>0 with ∑ibi=1. For positive definite Σ, the strictly convex problem of minimizing 21x⊤Σx−∑ibilnxi over x>0 has a unique solution with xi(Σx)i=bi, and w=x/(1⊤x) has RCi/σp=bi. Equal budgets give risk parity, or equal risk contribution, and for two assets with positive weights equal contributions mean w1σ1=w2σ2, whatever the correlation. With volatilities 0.2 and 0.3, w=(0.6,0.4). At correlation 0.25, σp≈0.1897 with marginal risks 0.1581 and 0.2372 and two equal contributions of 0.0949. At correlation −0.5, σp=0.12 and each contributes 0.06.
Reinvesting a fraction f of wealth in independent, identically distributed returns Rt gives Xn=X0∏t(1+fRt), which needs 1+fRt>0 to keep wealth positive, and by the law of large numbers n1ln(Xn/X0)→E[ln(1+fR)] almost surely. Maximizing this growth rate, the Kelly criterion, is maximizing expected log utility. For a bet that wins b per unit staked with probability p and loses the stake otherwise,
g(f)=pln(1+bf)+(1−p)ln(1−f)
is strictly concave on [0,1), and if pb>1−p its maximum is the Kelly fraction
f∗=p−b1−p.
Without that edge the best fraction is 0. With p=0.58 and b=1.2, f∗=0.23 and g(f∗)≈0.0316 per bet, half the fraction keeps g≈0.0237, and ten losses in a row at f∗ leave 0.7710≈0.073 of wealth. If the true probability is 0.51, betting 0.23 gives g≈−0.0038<0, while the correct fraction 0.1017 gives 0.0062. An overestimated edge can turn the growth rate negative.
Under P, with a constant rate r and one stock with constant drift μ and volatility σ>0, a fraction πt in the stock gives wealth dXt=Xt[r+πt(μ−r)]dt+πtσXtdWt. For terminal utility U, the value J(t,x)=supπE[U(XT)∣Xt=x] satisfies the Hamilton-Jacobi-Bellman equation
Jt+πsup[x(r+π(μ−r))Jx+21π2σ2x2Jxx]=0,
with J(T,x)=U(x), and where x>0, Jx>0 and Jxx<0 the maximizer is π∗=−(μ−r)Jx/(σ2xJxx). For power utility U(x)=x1−γ/(1−γ), with constant relative risk aversion (CRRA) γ>0 and γ=1, the Merton fraction is constant,
π∗=γσ2μ−r,
and J(t,x)=1−γx1−γe(1−γ)k(T−t) with k=r+2γσ2(μ−r)2. A solution of the equation is the value function only after a verification argument over the admissible controls. With μ=0.08, r=0.02, σ=0.2, γ=4 and T=3, π∗=0.375, k=0.03125 and J(0,1)≈−0.2516. A cap of 0.25 on the fraction lowers the value to about −0.2545.
With a flat continuously compounded yield y, a stream of fixed cash flows cj at tj is worth V(y)=∑jcje−ytj, with duration D=−V′/V and convexity C=V′′/V. Immunization against parallel shifts matches the present value and the duration of assets and liabilities, A0=L0 and DA=DL. Then the surplus has zero first-order sensitivity, and a larger asset convexity makes it gain to second order. A liability of 100 due in 5 years at y=0.03 is worth 86.071. Assets with equal present values at 3 and 7 years, faces 47.088 and 53.092, have duration 5 and convexity 29 against 25. After a parallel shift δ the asset-to-liability ratio is 21(e2δ+e−2δ)=cosh(2δ)≥1, and δ=0.01 leaves a surplus of 0.0164. The match fails for other curve moves. A rise of 1 percent in the seven-year rate alone lowers the assets by 2.909 and leaves the liability unchanged. Key rate matching chooses holdings z of hedge instruments whose key rate sensitivities form the columns of a matrix H, so that Hz=ℓ equals the liability’s key rate sensitivities, and this hedges each node to first order.
A research question asks whether information available at a date predicts a later return well enough to matter after costs. Answering it honestly needs data recorded as it was known, targets and features tied to an information set, validation that follows time, an account of every strategy tried, and a model of costs. A backtest is an estimate under these rules, not a forecast, and a correlation found in data is not a causal effect. Probabilities here are physical.
Point-in-time data
The information set Ft contains only records whose availability time is at most t, and a feature Xt is admissible when σ(Xt)⊆Ft, so it is computable at t. Revised data are stored with their release times, and a decision at t uses the latest version released by t, not a later revision. A sample restricted to survivors measures E[R∣survived], which in general differs from the return of the universe fixed at the start, and the difference is survivorship bias. Corporate actions are handled by following wealth, with the total return R=(n1P1+C1−n0P0)/(n0P0) for shares n, prices P and cash C1 received. If a value is released as 2 at time 1, revised to 3 at time 10 and to 2.5 at time 15, decisions at times 9, 11 and 16 see 2, 3 and 2.5. Three stocks returning 0.1, −0.05 and −1 average about −0.317, while the two survivors average 0.025, a bias of about 34 percentage points. One share bought at 120 that splits two for one and ends at 63 per new share with a dividend of 0.5 per new share returns 1202(63)+1−120=1207≈0.058, not the raw price change of −0.475.
A target is defined relative to a decision time and a horizon, such as the return Yt,h=Xt+h/Xt−1 of wealth X, and a feature is a function of observations available by t. If E[Y2]<∞, the best Ft-measurable predictor under squared error is the conditional mean mt=EP[Y∣Ft], since for every square-integrable Ft-measurable at
E[(Y−at)2]=E[(Y−mt)2]+E[(mt−at)2].
A good predictor is not yet a trading rule, which also needs costs, risk and constraints. In two equally likely regimes, known before the return, the return is 0.04 or −0.02 with up probabilities 0.6 and 0.2. The conditional means are 0.016 and −0.008 and the overall mean is 0.004. The best predictor has mean squared error 0.00072, the average within-regime variance, against 0.000864 for the constant prediction, and the difference 0.000144 is the between-regime variance.
A learning method minimizes an empirical risk plus a penalty, estimating the population risk E[ℓ(Y,fθ(X))]. Ridge regression with objective n1∥y−Xθ∥2+λ∥θ∥2 has, for λ>0, the unique solution
θ^=(X⊤X+nλI)−1X⊤y,
because the objective is strictly convex. A probability forecast Q of a binary outcome Y is calibrated when E[Y∣Q]=Q almost surely. A loss is proper when the true probability minimizes the expected loss. The Brier loss is proper, since for P(Y=1∣X)=p the expected loss of the forecast q is p(1−p)+(p−q)2, and the log loss is proper too. Under covariate shift, the law of X changes while P(Y∣X) does not, and if the training density is positive wherever the deployment density is,
Edeploy[ℓ]=Etrain[ptrain(X)pdeploy(X)ℓ].
With x=(1,2), y=(1,2), one coefficient, no intercept and λ=1, θ^=75, with mean squared error 4910 and objective 75, against θ^=1 without the penalty. For p=0.7 the forecast 0.3 has Brier loss 0.37 and the forecast 0.7 has 0.21.
Validation follows the order of time. A label that starts at decision time t with horizon h uses the increments {t+1,…,t+h}, so labels with nearby start times overlap. Walk-forward validation trains only on labels completed before the first test decision. Purging removes training labels whose increments overlap those of the validation labels, and an embargo also removes labels just after the validation block. Nested validation chooses tuning parameters in an inner loop and estimates performance on later data in an outer loop, so selection and evaluation do not share data. None of these steps makes the samples independent or guarantees future performance. With starts 0 to 15, h=3 and validation starts 6, 7 and 8, the validation increments are 7 to 11. Purging removes the starts 4, 5, 9 and 10, an embargo on 11 to 13 leaves 0 to 3, 14 and 15, and walk-forward training uses only the starts 0 to 3, which become 0 to 5 when h=1.
Testing many strategies and keeping the best changes the experiment. With m independent tests of true null hypotheses with uniform p-values, the chance that at least one has p≤α is 1−(1−α)m, which is 0.994 for m=100 and α=0.05. The Bonferroni correction rejects when pj≤α/m and keeps the family-wise error rate at most α under any dependence, by the union bound. The false discovery rate is E[V/max(R,1)], the expected share of false rejections V among all R rejections. The Benjamini-Hochberg procedure sorts the p-values, finds the largest k with p(k)≤kq/m and rejects the k smallest, and under independence it keeps the false discovery rate at most m0q/m≤q, with m0 true nulls. A backtest selected from many trials is biased upward, so every trial is counted and reported. With threshold 0.0005, the family-wise error for 100 independent nulls is about 0.0488. For the p-values 0.001, 0.012, 0.025 and 0.12 with q=0.05, the thresholds are 0.0125, 0.025, 0.0375 and 0.05, so the procedure rejects three.
A series is integrated of order one when its first difference is stationary with short memory but the series is not. Two such series are cointegrated when some nonzero combination of them is stationary. If Xt=Zt+et and Yt=2Zt+vt share a random walk Zt and the noises et and vt are independent and stationary, the trend cancels in Yt−2Xt=vt−2et, with variance σv2+4σe2. If the spread zt=Yt−2Xt follows zt=ρzt−1+ut with ∣ρ∣<1, then
ΔYt=2ΔXt+(ρ−1)zt−1+ut,
an error-correction form in which the lagged spread zt−1=Yt−1−2Xt−1 pulls the series back together, and given Ft the spread has mean ρhzt and variance σu2(1−ρ2h)/(1−ρ2) after h steps. Tests for cointegration have nonstandard distributions, and a spread that reverted in the past can stop reverting, so a trade on it is a risky decision. With σv2=0.04 and σe2=0.01 the spread variance is 0.08. With ρ=0.8 and σu2=0.04 the stationary variance is 91. From z0=1, a shock u1=0.1 gives z1=0.9, and ten steps ahead the expected spread is 0.810≈0.107 with variance 0.110.
The information coefficient of a signal st is Corr(st,Yt+h) with the later return. The Sharpe ratio of excess returns with mean μ and standard deviation σ per period is μ/σ. For the sum of q periods of a stationary series with autocovariances γk,
Scaling a Sharpe ratio by q, for example by 252 from daily to annual, is exact only when the returns are uncorrelated with constant mean and variance, as for independent, identically distributed returns. With μ=0.01, γ0=0.01 and γk=0.01⋅0.5k, twelve periods have variance about 0.32 and SR12≈0.212, not 12×0.1≈0.346. Attribution needs a declared factor model Rt=α+β⊤ft+εt, and with E[εt]=0 the mean splits as E[R]=α+β⊤E[f]. With α=0.002, β=(1.2,−0.5) and factor means (0.01,0.004), the factors contribute 0.012 and −0.002 to a mean of 0.012.
Turnover is τ=∑i∣winew−wiold∣, counting buys and sells, so capital A trades Aτ per period. Under a constructed cost model with proportional cost c and impact coefficient k against market volume V in currency per period, the cost is cAτ+k(Aτ)2/V and the net return on capital is
gnet(A)=g−cτ−VkAτ2
for a gross return g that does not depend on A. If g>cτ, the break-even capacity, where the net return reaches zero, and the profit-maximizing capital are
A∗=kτ2V(g−cτ),Aprofit=2A∗.
With g=0.002, c=0.0002, τ=2, k=0.01 and V=108, capital of 106 earns a net return of 0.0012, a profit of 1200 after costs of 800. Capacity is A∗=4×106, and profit peaks at 1600 with 2×106. Halving turnover to τ=1 raises capacity to 1.8×107.
Models reach markets through orders, calibrated parameters and code. Order book queues, adverse selection and price impact explain execution costs, implementation shortfall measures them, and optimal execution and market making trade cost against inventory risk. Automatic differentiation, calibration and validation are the tools that keep a production model’s numbers correct, identifiable and monitored. The models below are simplified constructions with stated assumptions.
Limit order books and queues
A limit order book holds resting buy and sell orders by price, and at one price orders are filled first in, first out. Suppose a units rest ahead of our one-unit order and eligible removals at that price arrive as a Poisson process with rate μ, with no cancellations ahead of us and no price change. The order fills by time h when at least a+1 removals occur, so
P(fill by h)=1−e−μhk=0∑ak!(μh)k,
and the fill time has the Erlang distribution with mean (a+1)/μ. Birth-death models add arrivals that lengthen the queue and give state-dependent fill probabilities. With a=4, μ=3 per minute and h=2 minutes, the fill probability is 1−115e−6≈0.715 and the mean fill time is 35 minutes. With μ=2 they become 0.371 and 2.5 minutes.
A dealer who sets quotes so that each trade earns zero expected profit charges for the information that trades carry. Let the value be VH or VL with equal probability, let a fraction θ of traders know it and buy exactly when it is high, and let the rest buy or sell with probability 21 each. Then P(H∣buy)=21+θ, and with VH=101 and VL=99 the ask is E[V∣buy]=100+θ and the bid is 100−θ. The spread 2θ exists without any inventory cost, and it is 0.4 for θ=0.2 and 0.8 for θ=0.4. Signed order flow moves prices through a permanent part, which stays in later prices, and a temporary part, which affects only the execution. With linear coefficients 0.0002 and 0.0005 per share, a purchase of 100 shares at a midpoint of 100 executes at 100.07 and leaves the midpoint at 100.02. A regression of price changes on flow measures association, and reading it as causal impact needs a separate identification argument.
For a buy order of Q shares decided at price p0, filled in parts qi at prices pi, with the unfilled rest valued at the final price pT, the implementation shortfall compares the actual portfolio with a paper portfolio that bought everything at p0,
IS=i∑qi(pi−p0)+(Q−i∑qi)(pT−p0)+fees,
the paper gain Q(pT−p0) minus the actual gain ∑iqi(pT−pi)−fees. The volume-weighted average price is VWAP=∑jvjpj/∑jvj, and a fill can beat the VWAP while the shortfall is large, because the benchmark moves with the order’s own trading and ignores the unfilled part. For a sell order the signs reverse. With Q=1000, p0=100, fills of 400 at 100.1 and 300 at 100.2, pT=100.5 and fees of 10, the execution cost is 100, the opportunity cost of the 300 unfilled shares is 150, and IS=260=500−240. Measured from an arrival price of 100.05, it splits into a delay cost of 50, an execution cost of 65, an opportunity cost of 135 and the fees. The fills average 100.143, below the market VWAP of 100.15.
The Almgren-Chriss model sells an inventory x(t) from x(0)=Q to x(T)=0, with linear temporary impact η and an unaffected price that moves like Brownian motion with volatility σ. The expected cost from permanent impact is γQ2/2 whatever the path, so the trader minimizes the temporary impact cost plus λ times the variance of the revenue,
J[x]=η∫0Tx˙2dt+λσ2∫0Tx2dt.
The Euler-Lagrange equation ηx¨=λσ2x with κ=λσ2/η gives
x∗(t)=Qsinh(κT)sinh(κ(T−t)),
and it is the global minimum, since J[x∗+h]−J[x∗]=η∫h˙2dt+λσ2∫h2dt≥0 for every admissible change h with h(0)=h(T)=0. As λ→0 the schedule becomes linear, and a larger λ sells faster at first. With Q=1, T=1, η=0.04, σ=0.2 and λ=1, κ=1, half the time leaves 0.443 of the inventory and the objective is 0.0525, against 0.0533 for the linear schedule. With λ=4, κ=2 and 0.324 remains at half time.
A market maker with exponential utility of risk aversion γ, holding q units and cash x, with a midpoint that moves like Brownian motion with volatility σ over a horizon H, has the certainty equivalent x+qs−21γq2σ2H at the midpoint s. The reservation price, at which one more unit leaves the certainty equivalent unchanged to first order, shifts against the inventory,
r=s−qγσ2H,
and the exact indifference prices for one more unit bought or sold are s−γσ2H(q+21) and s−γσ2H(q−21). If quotes at distance δ from the reservation price are filled with intensity Ae−kδ, the Avellaneda-Stoikov approximation places the bid and the ask at r minus and plus half of
spread≈γσ2H+γ2ln(1+kγ).
This is an approximation, not a solution of the full control problem. With s=50, q=3, γ=0.1, σ=0.5, H=2 and k=2, r=49.85, the spread is about 1.026, and the quotes are about 49.337 and 50.363. A short inventory of −3 shifts them up to 49.637 and 50.663.
Automatic differentiation applies the chain rule to the computational graph of a pricing code. Forward mode carries one input direction per pass, and reverse mode carries adjoints vˉi=∑j:i→jvˉj∂vj/∂vi backward, so one pass gives the derivatives of one output with respect to all inputs. For a simulated path ST=S0ea with a=(r−21σ2)T+σTz and discounted payoff Y=e−rT(ST−K)+, on paths with ST>K,
and all three are 0 when ST<K. Averaging these pathwise derivatives gives unbiased Greeks when the derivative and the expectation can be interchanged, which holds here because the payoff is Lipschitz in the parameters with an integrable constant. For a digital payoff the pathwise derivative is 0 almost everywhere while the price derivative is not, so the interchange fails and a likelihood ratio or a smoothed payoff is needed. With S0=100, K=102, T=1, r=0.03, σ=0.2 and z=0.4, a=0.09, ST≈109.417 and Y≈7.198, with derivatives 1.0618, 21.237 and 98.985 that match central finite differences on the same draw.
Calibration solves an inverse problem, choosing parameters θ so that model prices gi(θ) match quotes qi,
θmini∑wi(gi(θ)−qi)2+η∥L(θ−θ0)∥2,
with positive weights wi and an optional penalty toward a prior value θ0. For linear prices g(θ)=Aθ and weight matrix W, the normal equations are (A⊤WA+ηL⊤L)θ=A⊤Wq+ηL⊤Lθ0. If A⊤WA is singular, the quotes do not identify θ. Different parameters fit equally well and disagree elsewhere, and a penalty selects one of them without identifying it. In nonlinear problems an ill-conditioned price Jacobian has the same effect. With g(t)=a+bt and one quote 3 at t=1, both (a,b)=(3,0) and (1,2) fit exactly but price 3 and 5 at t=2. With unit weight, L=I and the penalty η=0.1 toward (1,1), the fit is a=b=2.13.1≈1.476, which misses the quote slightly, at 2.952. Adding the quote 5 at t=2 identifies (1,2).
Validation checks the mathematical object, its implementation and its use. Invariants such as put-call parity, C−P=S0−KD(0,T) for European options on a stock without dividends, catch inconsistent prices. Numerical convergence is checked by refinement. If an approximation behaves like Ah=A+chp+o(hp), then
∣Ah/2−A∣∣Ah−A∣→2p
as h→0. Monitoring after deployment uses tests set in advance, such as Z=(Xˉ−μ0)/(σ0/n) against a fixed threshold, for n independent observations whose reference mean μ0 and standard deviation σ0 are known. Reproducibility means the same code, data, random seeds and environment give the same output, and the limitations of a model are written down with it. The trapezoidal rule for ∫01e−xdx=1−e−1 with 10, 20 and 40 intervals has errors that fall by a factor of about 4.0 at each halving, so p=2. Prices C=8 and P=5 with S0=K=100 and D=0.97 satisfy parity exactly, and P=5.01 leaves a residual of −0.01. With n=100, μ0=0 and σ0=1, a mean of 0.35 gives Z=3.5, above a threshold of 3, while 0.1 gives Z=1.
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details