Valuing Options – Black Scholes Merton
Generate a 3D plot import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy.stats import norm def black_scholes_merton(S, K, T, r, sigma, option_type): d1 = (np.log(S…