- $S_0$: The stock price today.
- $p$: The probability of a price rise.
- $u$:The factor by which the price rises.
- $d$: The factor by which the price falls.
Three equations are required to be able to uniquely specify values for the three parameters of the binomial model. Two of these equations arise from the expectation that over a small period of time the binomial model should behave in the same way as an asset in a risk neutral world.This leads to the equation
\begin{align}
p\,u+(1-p)d=e^{r\,\Delta t}
\end{align}
which ensures that over the small period of time $\Delta t$ the expected return of the binomial model matches the expected return in a risk-neutral world, and the equation,
\begin{align}
p\,u^2+(1-p)d^2=\sigma^2\Delta t
\end{align}
which ensures that the variance matches.
Cox-Ross-Rubinstein
Cox, Ross and Rubinstein proposed the third equation
\begin{align}
u=\frac{1}{d}
\end{align}
Rearranging the above three equations to solve for parameters p, u and d leads to,
\begin{align}
&p=\frac{e^{r\,\Delta t}-d}{u-d}\\
&u=e^{\sigma\,\sqrt{\Delta t}}\\
&d=e^{-\sigma\,\sqrt{\Delta t}}
\end{align}
The unique solution for parameters p, u and d given in above Equation ensures that over a short period of time the binomial model matches the mean and variance of an asset in a risk free world, and as will be seen shortly, ensures that for a multi-step model the price of the underlying asset is symmetric around the starting price $S_0$ .

In general the time period between today and expiry of the option is sliced into many small time periods. A tree of potential future asset prices is then calculated. Each point in the tree is refer to as a node. The tree contains potential future asset prices for each time period from today through to expiry.
Discounting the Payoff for American put option.
\begin{align}
V_n=max\{K-S_n\,,\, e^{-\sigma\,\sqrt{\Delta t}}\left(p\,V_u+(1-p)V_d\right)\}
\end{align}
where
- $n$ designates a node prior to expiry.
- $V_n$ is the option value.
- $K$ is the strike.
- $S_n$ is the price of the underlying asset.
- $V_u$ is the option value from node upper node at $n+1$.
- $V_d$ is the option value from the lower node at $n+1$.
This example shows how to price an American put option with an exercise price of $\$ 90$ that matures in 1 year. The current asset price is $\$100$, the risk-free interest rate is $ 10\%$, and the volatility is $92\%$. There is no dividend payment.
[Price, Option]=binprice(Price, Strike, Rate, Time, Increment, Volatility, Flag)
where
Flag:Specifies whether the option is a call (Flag = 1) or a put (Flag = 0).
