Risk-neutral valuation in the Cox--Ross--Rubinstein model (source code)

= Risk-neutral valuation in the Cox--Ross--Rubinstein model
{c}

Let $S_t$ be the undiscounted stock, $B_t=R^t$ the money-market account, and $Q$ the <risk-neutral measure> of the <Cox--Ross--Rubinstein model>. A <payoff>[terminal payoff] $G$ in currency units has arbitrage-free value
$$
V_t=B_t\mathbb E_Q[G/B_T\mid\mathcal F_t]=R^{-(T-t)}\mathbb E_Q[G\mid\mathcal F_t].
$$
Equivalently, the discounted claim $H=G/B_T$ has discounted value $\widetilde V_t=V_t/B_t=\mathbb E_Q[H\mid\mathcal F_t]$. These are different unit conventions for the same valuation. For a European <payoff> $G=g(S_T)$ and $n=T-t$,
$$
V_t=R^{-n}\sum_{k=0}^n\binom nk q^k(1-q)^{n-k}g(S_tU^kD^{n-k}).
$$
The outside discount and the undiscounted stock multipliers must appear together. If a <payoff> is instead expressed using the discounted stock, its <function> must be transformed accordingly.<Option Pricing: A Simplified Approach by John C. Cox and others>[Section3, manuscript pp.7–11, risk-neutral discounted expectation and multiperiod formula]{ref}

For $S_0=100$, $U=1.2$, $D=0.8$, $R=1.05$, a one-step <European call option> with strike100 pays20 or0. Its risk-neutral up <probability> is $q=0.625$, so its value is $0.625\cdot20/1.05\simeq11.9048$. Holding one half-share and borrowing about38.0952 reproduces both <payoff>[payoffs]. This replication explains why the price uses risk-neutral weights rather than the investor's physical up <probability>.