Monte Carlo Option Pricing Simulator What is this project about? This project is a professional simulator for pricing European Call and Put…
Monte Carlo Option Pricing Simulator What is this project about? This project is a professional simulator for pricing European Call and Put…
This project is a professional simulator for pricing European Call and Put options using Monte Carlo methods. It simulates stock price paths with Geometric Brownian Motion, compares Monte Carlo prices to Black-Scholes analytical prices, and visualizes the results with animated plots. Designed for finance, education, and research.
tubakhxn
main.py: Entry point, handles simulation, visualization, and comparisonutils.py: Contains GBM simulation and pricing functionsrequirements.txt: Python dependenciesREADME.md: Project documentation and formulasStock price evolution: $$ S_t = S_0 \exp\left((r - 0.5\sigma^2)t + \sigma W_t\right) $$ Where:
European Call: $$ C = S_0 N(d_1) - K e^{-rt} N(d_2) $$ European Put: $$ P = K e^{-rt} N(-d_2) - S_0 N(-d_1) $$ Where: $$ d_1 = \frac{\ln(S_0/K) + (r + 0.5\sigma^2)t}{\sigma\sqrt{t}} $$ $$ d_2 = d_1 - \sigma\sqrt{t} $$
pip install -r requirements.txtpython main.pyAll parameters are labeled and visualized in the plot.
MIT
No open issues yet, or sync has not completed.