Module contents
Lesson 10 of 30Core 100 min

The binomial model and risk-neutral valuation

Replicate and price options in binomial trees, exercise American options, study convergence and calculate tree-based Greeks.

After this lesson you can

  • Replicate a one-period option and derive the risk-neutral probability.
  • Build recombining CRR trees and price European and American options by backward induction.
  • Locate the early-exercise boundary of an American put in the tree.
  • Explain convergence of binomial prices to Black-Scholes and the oscillation of convergence.
  • Calculate delta, gamma and theta directly from the tree.

Before you start

Pricing without choosing a physical probability

In one period there are two possible terminal prices, Su=S0uS_u=S_0u and Sd=S0dS_d=S_0d, with u>d>0u>d>0. The bond turns one unit today into R>0R>0 at the end. Assume both states have positive physical probability, buying and shorting are possible, and there are no costs. If a derivative pays VuV_u or VdV_d, a portfolio of Δ\Delta asset units and BB money invested in the bond replicates both payoffs:

Δ=Vu−VdS0(u−d),B=uVd−dVuR(u−d),V0=ΔS0+B.\Delta=\frac{V_u-V_d}{S_0(u-d)},\qquad B=\frac{uV_d-dV_u}{R(u-d)},\qquad V_0=\Delta S_0+B.

One-period replication fixes price by no arbitrage: if the derivative costs more, sell it and buy the portfolio; if less, do the reverse. We need not know the physical up probability. Bond holding BB can be negative, meaning borrowing.

For example, with S0=100S_0=100, u=1.2u=1.2, d=0.9d=0.9, R=1.02R=1.02 and a call struck at 100, payoffs are 20 and 0. The portfolio has Δ=2/3\Delta=2/3 and B≈−58.823529B\approx-58.823529. In an up state it is worth 80−60=2080-60=20; in a down state, 60−60=060-60=0. Its initial cost is 66.666667−58.823529≈7.84313766.666667-58.823529\approx7.843137. This equality is checked state by state, not only on average.

InteractiveReplicate in one step
  • Replicating portfolio
  • Call payoffs
100
1.20
0.90
2.0 %
100
50.0 %
Replicating delta0.667
Initial bond position−58.81
Risk-neutral probability40.1 %
Replication price7.85
Discounted physical expectation9.80
Hypothetical call without dividends. The control rate is continuous over one period, so R = exp(r). The two points are option payoffs and the segment is the replicating portfolio. Change physical probability: its discounted expectation changes while replication cost does not. If R is outside (d,u), the warning indicates arbitrage.

Substituting the portfolio and collecting terms gives

V0=p∗Vu+(1−p∗)VdR,p∗=R−du−d.V_0=\frac{p^*V_u+(1-p^*)V_d}{R},\qquad p^*=\frac{R-d}{u-d}.

The risk-neutral probability p∗p^* is a valuation weight. Under it, E∗[S1]=RS0\E^*[S_1]=RS_0 and S1/RS_1/R has mean S0S_0; it is not an estimate of the physical frequency of up moves. Market expectations can influence current price, parameters and physical probability, but once payoffs and traded prices are fixed, replication determines price in this complete market.

In the example, p∗=(1.02−0.9)/(1.2−0.9)=0.4p^*=(1.02-0.9)/(1.2-0.9)=0.4 and the discounted risk-neutral call expectation equals 7.843137. If physical probability were 0.7, the discounted physical expectation would be 0.7⋅20/1.02≈13.72550.7\cdot20/1.02\approx13.7255, a different amount. There is no contradiction: discounting physical expectation at the risk-free rate ignores required risk compensation. Replication incorporates the prices of instruments financing the payoffs.

No arbitrage requires d<R<ud<R<u. If R≥uR\ge u, selling the asset and buying the bond with its price costs zero and produces a nonnegative payoff, positive in at least one state. If R≤dR\le d, buying the asset with debt financing gives the reverse opportunity. If d<R<ud<R<u, both risk-neutral weights are strictly positive and price asset and bond; no nonnegative payoff with strict gain can have nonpositive cost. The strict condition also excludes boundary cases.

Many steps and dynamic replication

In the Cox-Ross-Rubinstein tree (CRR), with step Δt=T/n\Delta t=T/n, volatility σ>0\sigma>0 and continuous dividend yield qdq_d, define

u=eσΔt,d=u−1,p∗=e(r−qd)Δt−du−d.u=e^{\sigma\sqrt{\Delta t}},\quad d=u^{-1},\quad p^*=\frac{e^{(r-q_d)\Delta t}-d}{u-d}.

An up followed by a down move reaches the same price as the reverse sequence: the tree recombines. We need d<e(r−qd)Δt<ud<e^{(r-q_d)\Delta t}<u for p∗∈(0,1)p^*\in(0,1). With unsuitable parameters or steps, clipping that probability is insufficient: change the grid or model. With reinvested continuous dividends, the risk-neutral growth factor of the ex-dividend price is e(r−qd)Δte^{(r-q_d)\Delta t}; discounted total return including dividends is the relevant martingale.

Each European node is calculated by backward induction as e−rΔt[p∗Vu+(1−p∗)Vd]e^{-r\Delta t}[p^*V_u+(1-p^*)V_d]. At each step asset and bond holdings are adjusted without adding money: the previous portfolio’s value finances the new one. Without dividends, the two replication equations determine delta and bond at each node. The procedure is also the discounted risk-neutral expectation of terminal payoffs; Cox, Ross and Rubinstein (1979) develop this discrete construction.

In two steps there are four paths but only three terminal prices: S0d2S_0d^2, S0udS_0ud and S0u2S_0u^2. The central node is reached in two move orders. Its continuation value must be the same because it depends on state and time, not how it was reached in this model. For a path-dependent derivative, such as one paying according to the maximum reached, asset price alone may not be a sufficient state and the state must be expanded or another representation used.

The strategy is self-financing if the new bond holding equals inherited portfolio value minus the cost of the new stock position. Delta cannot change by assuming free cash appears. The exhaustive lab checks this identity across all 256 eight-step paths. Uniqueness of risk-neutral probability here comes from two assets and two nondegenerate states at each node; an incomplete market with more risks than instruments can have multiple compatible measures.

The American exercise decision

An American option holder can stop before maturity. The early-exercise rule compares immediate value g(S)g(S) with discounted continuation at each node:

Vi,j=max⁡{g(Si,j), e−rΔt[p∗Vi+1,j+1+(1−p∗)Vi+1,j]}.V_{i,j}=\max\{g(S_{i,j}),\ e^{-r\Delta t}[p^*V_{i+1,j+1}+(1-p^*)V_{i+1,j}]\}.

This is an optimal-stopping problem solved by backward induction. A deep-in-the-money put may justify early exercise because receiving the strike earlier has financial value; the result depends on curve, dividends and steps. In a tie both decisions are optimal in the model. The boundary below marks only exercise strictly better than continuation, not numerical ties.

The American value cannot be below the European with the same tree and payoff, because waiting to maturity is one available decision; nor can it be below immediate exercise value. The difference from the European is the exercise-flexibility premium in that model. For a call without dividends and a nonnegative rate, waiting normally dominates early exercise; a dividend can change the comparison immediately before its date.

InteractiveThe exercise boundary
  • Strict exercise
  • Continuation
  • Unsolved
  • Visible boundary
Nodes solved 15 / 15
5.0 %
0.0 %
Risk-neutral probability51.7 %
Current nodet=0, up moves=0
Asset price100.00
Continuation value8.34
Put value8.34
DecisionContinue or tie
Hypothetical American put with S = K = 100, σ = 25%, T = 1 and five CRR steps; r and q are continuous. Each advance solves one node backward; the line marks the highest exercised price at each visible level. The initial state shows the full tree and you can replay it from the start.

Continuous limit and Greeks

For large nn, the number of up moves is binomial under p∗p^* and log price sums small increments. Its moments converge to mean (r−qd−σ2/2)T(r-q_d-\sigma^2/2)T and variance σ2T\sigma^2T; the central limit theorem, together with payoff control for passing to expectations, leads to the European Black-Scholes price. Binomial convergence does not mean every tree size is closer than the previous one: strike position relative to nodes changes with nn and creates an even-odd zigzag.

Convergence in distribution of the underlying alone is insufficient for every unbounded payoff function. For this standard call or put, control of exponential moments provides the integrability needed to pass to the limit of discounted expectation. This is a limit of the CRR model under fixed parameters, not proof that real volatilities are constant or Black-Scholes reproduces every quote.

InteractiveThe convergence zigzag
  • Odd n
  • Even n
  • Average of adjacent steps
  • Black-Scholes
100
0.20
0.05
Black-Scholes5.5735
500-step CRR5.5695
Average of steps 499 and 5005.5733
Excluded tree sizes0
Hypothetical European put with S = 100, T = 1 and zero dividend. We calculate 500 CRR trees and compare with Black-Scholes using a numerical normal approximation. Lines separate even and odd steps and show the average of consecutive sizes: smoothing can reduce oscillations but does not guarantee improvement at every point.

The average of VnV_n and Vn+1V_{n+1} often dampens alternation, but is not a bound and does not guarantee smaller error in every configuration. Leisen and Reimer (1996) study other trees to improve convergence; this figure does not implement that method.

Using values at the first levels, a nodal approximation is Δ≈(Vu−Vd)/(Su−Sd)\Delta\approx(V_u-V_d)/(S_u-S_d). Gamma is obtained by dividing the difference between the two subtree deltas by their average price separation; theta can be estimated by (Vud−V0)/(2Δt)(V_{ud}-V_0)/(2\Delta t), comparing the central two-step node with the initial one. These are finite grid differences: they change with nn and are not automatically exact derivatives. With continuous dividends, nodal slope must not be confused without adjustment with the initial share count in a dividend-reinvesting replication.

A fixed cash dividend generally breaks recombination in a tree that directly multiplies the ex-dividend price and then subtracts cash. The lab uses another explicit model: subtract the present value of known fixed dividends from price and make that net component recombine; at each date add the present value of remaining dividends. On ex-dividend dates it considers exercise just before and after. It permits dividends only at grid nodes, qd=0q_d=0 when discrete payments exist and a positive initial net component. This is a dynamics assumption, not a general equivalence to a multiplicative total-price tree.

In that model, if the fixed dividend is DD at tdt_d, the initial component is X0=S0−De−rtdX_0=S_0-De^{-rt_d}. Before the date, asset price is Xt+De−r(td−t)X_t+De^{-r(t_d-t)}; immediately afterward it is XtX_t. Component XX can be viewed as a financed share together with an obligation to pay the known dividend, and evolves by CRR factors. If X0≤0X_0\le0, this construction does not define the positive tree used here. Approximating an off-grid dividend by the nearest date changes the problem and must be reported.

Lab: vectorized CRR

A value vector is stored and updated backward from maturity, with O(n2)O(n^2) time and O(n)O(n) memory. The boundary summarizes the minimum and maximum exercised prices by date and phase; it does not store all nodes. Nodal Greeks are returned only without discrete dividends, avoiding interpretation as fixed-price theta of a node crossing an ex-dividend date.

[ ]European and American options and dividendsBrowser
import numpy as np
def binomial(S,K,r,q,sigma,T,n,kind='put',american=False,dividends=()):
    if not np.isfinite([S,K,r,q,sigma,T]).all() or S<=0 or K<=0 or T<=0 or sigma<=0 or not isinstance(n,int) or n<3 or kind not in ('put','call'): raise ValueError('Parámetros inválidos')
    dt=T/n; events={}
    for step,amount in dividends:
        if not isinstance(step,int) or not 0<step<n or not np.isfinite(amount) or amount<0: raise ValueError('Dividendo inválido o fuera de la malla')
        events[step]=events.get(step,0)+amount
    if events and q!=0: raise ValueError('Este modelo combina dividendo discreto solo con q=0')
    x0=S-sum(amount*np.exp(-r*step*dt) for step,amount in events.items())
    if x0<=0: raise ValueError('El subyacente neto debe ser positivo')
    u=np.exp(sigma*np.sqrt(dt)); d=1/u; p=(np.exp((r-q)*dt)-d)/(u-d); discount=np.exp(-r*dt)
    if not 0<p<1: raise ValueError('Árbol con arbitraje')
    def payoff(stock): return np.maximum(stock-K,0) if kind=='call' else np.maximum(K-stock,0)
    def remaining(i): return sum(amount*np.exp(-r*(step-i)*dt) for step,amount in events.items() if step>i)
    j=np.arange(n+1); stocks=x0*u**(2*j-n); v=payoff(stocks)
    boundary=[]; saved={}
    for i in range(n-1,-1,-1):
        j=np.arange(i+1); stocks=x0*u**(2*j-i)+remaining(i)
        cont=discount*((1-p)*v[:-1]+p*v[1:]); value=cont
        if american:
            post=payoff(stocks); before=payoff(stocks+events.get(i,0)) if i in events else post
            post_exercise=(post>cont+1e-12)&(post>0)
            pre_exercise=(before>np.maximum(cont,post)+1e-12)&(before>0) if i in events else np.zeros_like(post_exercise)
            post_values=stocks[post_exercise]; pre_values=(stocks+events.get(i,0))[pre_exercise]
            boundary.append({'tiempo':i*dt,'post':None if not len(post_values) else (float(post_values.min()),float(post_values.max())),
                             'pre':None if not len(pre_values) else (float(pre_values.min()),float(pre_values.max()))})
            value=np.maximum(cont,np.maximum(post,before))
        v=value
        if i in (1,2): saved[i]=(stocks.copy(),v.copy())
    delta=gamma=theta=None
    if not events:
        s1,v1=saved[1]; s2,v2=saved[2]
        delta=(v1[1]-v1[0])/(s1[1]-s1[0])
        delta_low=(v2[1]-v2[0])/(s2[1]-s2[0]); delta_high=(v2[2]-v2[1])/(s2[2]-s2[1])
        gamma=(delta_high-delta_low)/((s2[2]-s2[0])/2)
        theta=(v2[1]-v[0])/(2*dt)
    return {'precio':float(v[0]),'p_neutral':float(p),'delta_nodal':None if delta is None else float(delta),
            'gamma_nodal':None if gamma is None else float(gamma),'theta_nodal':None if theta is None else float(theta),'frontera':list(reversed(boundary))}

The next cell compares early steps and a dividend of 3 at step 2 of a four-step tree. For the call with K=90K=90, the model may exercise immediately before the dividend. The boundary range indicates discrete state prices, not an observed continuous curve.

[ ]Exercise and grid GreeksBrowser
for n in (3,25,100):
    eu=binomial(100,100,.05,0,.2,1,n,'put',False)
    am=binomial(100,100,.05,0,.2,1,n,'put',True)
    print('n',n,'put europea',round(eu['precio'],6),'americana',round(am['precio'],6),'delta gamma theta',np.round([am['delta_nodal'],am['gamma_nodal'],am['theta_nodal']],6))
div=((2,3.),)
for early in (False,True):
    value=binomial(100,90,.05,0,.2,1,4,'call',early,div)
    print('call con dividendo; americana',early,'precio',round(value['precio'],6),'frontera',value['frontera'])

With these parameters, the three-step American put is worth 6.499560 and the European 6.166814. The call with dividend is worth 14.671532 European and 14.890972 American in this four-step model. These are calculations from the specified tree, not quotes.

[ ]Observed convergence orderBrowser
from math import erf,log,sqrt,exp
def normcdf(x): return .5*(1+erf(x/sqrt(2)))
def bs_put(S,K,r,q,sigma,T):
    d1=(log(S/K)+(r-q+sigma*sigma/2)*T)/(sigma*sqrt(T)); d2=d1-sigma*sqrt(T)
    return K*exp(-r*T)*normcdf(-d2)-S*exp(-q*T)*normcdf(-d1)
reference=bs_put(100,100,.05,0,.2,1); ns=np.array([50,100,200,400]); values=np.array([binomial(100,100,.05,0,.2,1,int(n))['precio'] for n in ns]); errors=np.abs(values-reference)
print('Black-Scholes:',round(reference,8),'| pasos:',ns,'| errores:',np.round(errors,8))
print('pendiente log-error / log-n para estos pasos pares:',round(float(np.polyfit(np.log(ns),np.log(errors),1)[0]),4))

A slope from this fit describes only this option and chosen sizes; oscillation makes it inappropriate to promise that order for every step sequence or option.

In the run with even steps 50, 100, 200 and 400, absolute errors relative to 5.57352602 were approximately 0.039892, 0.019972, 0.009992 and 0.004998; the fitted slope was −0.9989. These are results for this grid and parameters, not a universal law for the American put or alternating steps.

Lab: replication across all paths

For a small tree without dividends we store all levels only to inspect hedging. At each node delta and bond are recalculated using inherited value; no money is injected on rebalancing. Enumerate all 282^8 paths and then sample with two distinct physical probabilities. Error should be zero apart from rounding because replication is state by state.

[ ]Self-financing replicationBrowser
import numpy as np, itertools
S,K,r,sigma,T,n=100.,100.,.05,.2,1.,8
dt=T/n; u=np.exp(sigma*np.sqrt(dt)); d=1/u; R=np.exp(r*dt); pstar=(R-d)/(u-d)
tree=[None]*(n+1); tree[n]=np.maximum(S*u**(2*np.arange(n+1)-n)-K,0)
for i in range(n-1,-1,-1): tree[i]=((1-pstar)*tree[i+1][:-1]+pstar*tree[i+1][1:])/R
def path_error(steps):
    j=0; wealth=tree[0][0]; maxerr=0.
    for i,up in enumerate(steps):
        stock=S*u**(2*j-i); delta=(tree[i+1][j+1]-tree[i+1][j])/(stock*(u-d))
        bond=wealth-delta*stock; j+=up; next_stock=S*u**(2*j-(i+1)); wealth=delta*next_stock+bond*R
        maxerr=max(maxerr,abs(wealth-tree[i+1][j]))
    return maxerr
errors=[path_error(path) for path in itertools.product((0,1),repeat=n)]
print('todos los caminos',len(errors),'máximo error',max(errors))
g=np.random.default_rng(281002)
for physical in (.2,.8):
    paths=g.binomial(1,physical,size=(1000,n)); err=[path_error(path) for path in paths]
    print('p física',physical,'fracción subidas',paths.mean(),'error máximo',max(err))

In the run, maximum error across 256 paths was 4.26×10−144.26\times10^{-14}. Simulations with physical probabilities 0.2 and 0.8 gave up proportions 0.19875 and 0.80525 respectively, and maximum errors at the same rounding order. Frequency changes while each possible path remains hedged.

Exercises

NumericRisk-neutral probability
S = 100, u = 1.2, d = 0.9 and the bond grows 2% per period, R = 1.02. What is the risk-neutral up probability?
NumericCall price
With the same data and K = 100, how much does the one-period call cost?
ProofThe factor condition
Prove: Prove no arbitrage is equivalent to d<R<ud<R<u in one period with two physically possible states.
0
The bond grows by R>0R>0 and long and short positions are allowed without costs.

Step 1 of 3. What happens if R is at least u?

NumericThree-step American put
With S = K = 100, σ = 20%, continuous r = 5%, zero dividend, T = 1 and three CRR steps, what is the American put price?
QuizProbabilities and replication
Why does physical probability not appear when pricing the option in the complete tree?
CodeLinear-memory induction
Implement binomial_american(S,K,r,q,sigma,T,n,kind), with continuous q and kind 'put' or 'call'. Return the CRR American price using O(n) memory; reject risk-neutral probability outside (0,1).
def binomial_american(S,K,r,q,sigma,T,n,kind):
  raise NotImplementedError()
Shift+Enter to run

Ideas to remember

Replication at each node determines price under an equivalent risk-neutral measure when the strict no-arbitrage condition holds. An American option adds a stopping decision; the tree converges in the CRR regime but can oscillate and its Greeks are finite differences. A fixed dividend requires stating how it is modeled and where it falls on the grid.