Theory & Documentation
Option Pricing Theory & Methods
This application implements three fundamental approaches to option pricing: the Black-Scholes analytical model for European options and two numerical lattice methods (Binomial and Trinomial trees) that can handle both European and American-style options.
All models assume a frictionless market with no dividends (), constant volatility , and constant risk-free rate .
1. Black-Scholes-Merton Model
The Black-Scholes-Merton model (1973) provides closed-form analytical solutions for European options. Under the assumption of geometric Brownian motion for the underlying asset, the option prices are given by:
European Call Option Price:
European Put Option Price:
Where the auxiliary variables are:
Parameters:
Note: The Black-Scholes model assumes continuous trading, no transaction costs, constant volatility, and log-normal distribution of stock prices. It is exact only for European options.
2. The Greeks - Risk Sensitivities
The Greeks quantify how option prices change with respect to various market parameters. These are partial derivatives of the option price and are essential for risk management and hedging strategies.
Delta (Δ) - Rate of Change w.r.t. Underlying Price
Delta represents the sensitivity of the option price to changes in the underlying asset price. It ranges from 0 to 1 for calls and -1 to 0 for puts. Delta is also the hedge ratio.
Gamma (Γ) - Rate of Change of Delta
Where is the standard normal probability density function:
Gamma measures the convexity of the option's value. High gamma means delta changes rapidly, requiring frequent rehedging.
Theta (Θ) - Time Decay
Theta measures the rate of decline in option value as time passes (time decay). Expressed per day by dividing by 365. Most options experience negative theta, especially near expiration.
Vega (ν) - Volatility Sensitivity
Vega measures sensitivity to changes in implied volatility. Expressed per 1% change in volatility (divided by 100). Options are most sensitive to volatility when at-the-money.
Rho (ρ) - Interest Rate Sensitivity
Rho measures sensitivity to changes in the risk-free interest rate. Expressed per 1% change in rates (divided by 100). Less significant for short-dated options.
3. Binomial Tree Model (Cox-Ross-Rubinstein)
The Cox-Ross-Rubinstein (CRR) binomial tree model (1979) is a discrete-time method that models stock price evolution as a recombining tree. It can price both European and American options and converges to the Black-Scholes price as the number of steps increases.
Model Parameters:
Time step:
Up factor:
Down factor:
Risk-neutral probability:
Discount factor:
Algorithm: Backward Induction
- Initialize: Set , compute , , and
- Build Terminal Nodes: At maturity (step ), calculate stock prices for all nodes:
- Terminal Payoffs: Compute option values at maturity:
- Backward Recursion: For each step and node :
- American Exercise (Optional): For American options, at each node check early exercise:
- Result: Option price is at the root node
Key Properties: The binomial tree is recombining (up-then-down = down-then-up), has nodes at each time step, and converges to Black-Scholes at rate for European options.
4. Trinomial Tree Model (Boyle)
The Boyle (1988) trinomial tree extends the binomial model by adding a middle branch where the stock price remains unchanged. This provides better convergence properties and more flexibility in modeling.
Model Parameters (Boyle Parameterization):
Time step:
Up factor:
Down factor:
Middle factor:
Risk-Neutral Probabilities:
Auxiliary variables:
Probability of up move:
Probability of down move:
Probability of middle move:
Algorithm: Trinomial Backward Induction
- Initialize: Set , compute , , , , and
- Build Terminal Nodes: At maturity, trinomial tree has nodes representing net up moves:
- Terminal Payoffs:
- Backward Recursion: For each step with nodes:
- American Exercise (Optional): At each node, compare with intrinsic value:
- Result: Option price is at the root
Advantages: Trinomial trees typically exhibit smoother convergence than binomial trees and can better model path-dependent options. The additional middle branch provides more accurate probability matching.
5. Convergence Analysis
As the number of time steps increases, both tree models converge to the continuous-time Black-Scholes price for European options. Understanding convergence behavior is crucial for selecting appropriate values.
Convergence Algorithm:
- Define step range: Select and (e.g., 1 to 100)
- Compute Black-Scholes benchmark: Calculate exact European option price
- Iterate over steps: For each :
a) Run binomial tree with steps →
b) Run trinomial tree with steps →
- Compute errors: Calculate absolute errors:
- Visualize: Plot vs with Black-Scholes reference line
Convergence Properties:
- Rate of Convergence:
• Binomial tree: for European options
• Trinomial tree: Generally , faster convergence
- Oscillatory Behavior: Tree prices oscillate around the Black-Scholes value due to discrete time approximation. Oscillations dampen as .
- Even/Odd Effect: Some tree models exhibit different convergence patterns for even vs. odd when (at-the-money).
- Practical Considerations:
• : Good balance of accuracy and speed
• : Diminishing returns, increased computation
• For American options: Higher often needed near exercise boundary
Richardson Extrapolation: To improve convergence, advanced techniques like Richardson extrapolation can be applied: Combine results from and steps to achieve convergence.
6. Model Validation Tests
The application performs comprehensive validation tests to ensure numerical accuracy and theoretical consistency of the implemented models.
1. Put-Call Parity (European Options):
Verifies the fundamental no-arbitrage relationship between European call and put prices with the same strike and maturity. Any deviation indicates pricing errors.
2. American Early Exercise Premium:
American options must be worth at least as much as their European counterparts due to the early exercise feature. Violations suggest algorithmic errors.
3. Tree-BS Convergence:
For European options, tree model prices should converge to the Black-Scholes analytical solution as the number of steps increases. Typical tolerance: for .
4. Boundary Conditions:
Option prices must satisfy lower bounds to prevent arbitrage. Calls and puts must be worth at least their intrinsic values.
5. Probability Validity:
Risk-neutral probabilities must be valid (non-negative and sum to 1). Violations may occur for extreme parameter combinations.
7. Implementation & Technology Stack
Backend
- • Python 3.10+
- • FastAPI for REST API
- • NumPy for vectorized computations
- • SciPy for statistical functions
Frontend
- • Next.js 14 with TypeScript
- • Tailwind CSS for styling
- • Plotly.js for charts
- • KaTeX for LaTeX rendering
Key Assumptions:
- • No dividends ()
- • Constant volatility
- • Constant risk-free rate
- • Frictionless markets (no transaction costs)
- • Continuous trading (for Black-Scholes)
- • Log-normal distribution of stock prices
Performance Optimizations:
- • NumPy vectorization for terminal payoffs
- • Efficient backward induction (no redundant calculations)
- • Sparse convergence sampling for large N
- • Client-side caching of results
Ready to Apply the Theory?
Use our interactive calculator to price options with your own parameters and visualize convergence behavior
Launch Pricing Calculator →