Option Pricing, Numerical Methods, Monte Carlo, Monte Carlo Simulation.
binomial model to value an American option: import numpy as np import matplotlib.pyplot as plt def binomial_option_values(S, X, r, T, N, sigma, option_type): """ S: current price of the underlying asset X: exercise price of the option r: risk-free interest rate T: time to expiration of the option