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, and , with . The bond turns one unit today into at the end. Assume both states have positive physical probability, buying and shorting are possible, and there are no costs. If a derivative pays or , a portfolio of asset units and money invested in the bond replicates both payoffs:
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 can be negative, meaning borrowing.
For example, with , , , and a call struck at 100, payoffs are 20 and 0. The portfolio has and . In an up state it is worth ; in a down state, . Its initial cost is . This equality is checked state by state, not only on average.
Substituting the portfolio and collecting terms gives
The risk-neutral probability is a valuation weight. Under it, and has mean ; 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, and the discounted risk-neutral call expectation equals 7.843137. If physical probability were 0.7, the discounted physical expectation would be , 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 . If , selling the asset and buying the bond with its price costs zero and produces a nonnegative payoff, positive in at least one state. If , buying the asset with debt financing gives the reverse opportunity. If , 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 , volatility and continuous dividend yield , define
An up followed by a down move reaches the same price as the reverse sequence: the tree recombines. We need for . 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 ; discounted total return including dividends is the relevant martingale.
Each European node is calculated by backward induction as . 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: , and . 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 with discounted continuation at each node:
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.
Continuous limit and Greeks
For large , the number of up moves is binomial under and log price sums small increments. Its moments converge to mean and variance ; 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 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.
The average of and 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 . Gamma is obtained by dividing the difference between the two subtree deltas by their average price separation; theta can be estimated by , comparing the central two-step node with the initial one. These are finite grid differences: they change with 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, 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 at , the initial component is . Before the date, asset price is ; immediately afterward it is . Component can be viewed as a financed share together with an obligation to pay the known dividend, and evolves by CRR factors. If , 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 time and 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.
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 , the model may exercise immediately before the dividend. The boundary range indicates discrete state prices, not an observed continuous curve.
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.
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 paths and then sample with two distinct physical probabilities. Error should be zero apart from rounding because replication is state by state.
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 . 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
Step 1 of 3. What happens if R is at least u?
def binomial_american(S,K,r,q,sigma,T,n,kind):
raise NotImplementedError()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.