Risk-Neutral Pricing
Risk-neutral pricing values a derivative as the expected value of its payoff, discounted at the risk-free rate, with the probabilities chosen so that the underlying asset itself is expected to earn only the risk-free rate.
It works because an option can be copied with the underlying asset and borrowing or lending. The price of that copy does not depend on how much investors dislike risk, so the option can be priced as if they did not care about it at all (Cox and Ross, 1976). The real-world probabilities and the risk premium drop out; what is left are the risk-neutral probabilities, which exist exactly when the market has no arbitrage (Harrison and Kreps, 1979; Harrison and Pliska, 1981).
The formula for the risk-neutral price is as follows:
\[V = e^{- r \cdot T} \cdot E_{Q}\left[\text{Payoff at}\; T\right]\]Where V is the value today, r the continuously compounded risk-free rate, T the time to expiration in years and \(E_{Q}\) the expectation under the risk-neutral probabilities, under which the stock grows at the risk-free rate less its dividend yield.
Risk-neutral probabilities are prices, not forecasts. They give more weight to bad outcomes than investors expect them to have, as insurance against those outcomes is dear, so the default probabilities implied by credit spreads and the crash probabilities implied by option prices lie above what history shows.
In the Finance Toolkit every option model prices this way: the Black-Scholes model in closed form, the binomial tree step by step backwards from expiration (Cox, Ross and Rubinstein, 1979) and the Monte Carlo price as the average of simulated payoffs. The risk-neutral density and moments read the market’s risk-neutral distribution from option prices, and the implied default probabilities do the same for credit spreads.
Example · KO · 2025
Install the Finance Toolkit with pip install financetoolkit -U, then:
from financetoolkit import Toolkit
toolkit = Toolkit(
["KO"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2025-01-01",
end_date="2025-12-31",
)
toolkit.options.get_binomial_model(
strike_price_range=0, strike_step_size=1, time_steps=5
).loc["KO"]
Which returns:
| Item | 2025-12-31 | 2026-03-14 | 2026-05-26 | 2026-08-07 | 2026-10-19 | 2026-12-31 |
|---|---|---|---|---|---|---|
| (70, ‘UUUUU’) | 5.3445 | 8.4014 | 12.7664 | 18.5956 | 25.7101 | 33.495 |
| (70, ‘DUUUU’) | nan | 2.4212 | 4.24 | 7.2343 | 11.8932 | 18.4642 |
| (70, ‘DDUUU’) | nan | nan | 0.6695 | 1.3603 | 2.764 | 5.6163 |
| (70, ‘DDDUU’) | nan | nan | nan | 0 | 0 | 0 |
| (70, ‘DDDDU’) | nan | nan | nan | nan | 0 | 0 |
| (70, ‘DDDDD’) | nan | nan | nan | nan | nan | 0 |
References
- Paper Cox, J.C., and Ross, S.A. (1976). “The Valuation of Options for Alternative Stochastic Processes.” Journal of Financial Economics, 3(1-2), 145-166.
- Paper Harrison, J.M., and Kreps, D.M. (1979). “Martingales and Arbitrage in Multiperiod Securities Markets.” Journal of Economic Theory, 20(3), 381-408.
- Paper Cox, J.C., Ross, S.A., and Rubinstein, M. (1979). “Option Pricing: A Simplified Approach.” Journal of Financial Economics, 7(3), 229-263.
- Paper Harrison, J.M., and Pliska, S.R. (1981). “Martingales and Stochastic Integrals in the Theory of Continuous Trading.” Stochastic Processes and their Applications, 11(3), 215-260.