Skip to content

kritidewanganwork/black-scholes-option-pricing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Black–Scholes Option Pricing Model

This repository contains a simple and transparent Python implementation of the Black–Scholes option pricing model for European call and put options. The objective of this project is to understand the mathematical structure of the model and implement the closed-form solution without overengineering.

Overview

The Black–Scholes model is a foundational framework used in derivative pricing to determine the theoretical value of European options under a set of simplifying assumptions.

This project focuses on:

  • Translating the mathematical formula into Python
  • Understanding the role of key parameters
  • Computing option prices using the analytical solution

Model Assumptions

  • Asset prices follow a lognormal distribution
  • Constant volatility and risk-free interest rate
  • No arbitrage
  • Frictionless markets
  • European-style exercise only

Implementation Details

The notebook computes:

  • d1 and d2 using the Black–Scholes formulation
  • European call option price
  • European put option price

The implementation uses the cumulative normal distribution to evaluate option values under the risk-neutral framework.

Inputs

The model accepts the following inputs:

  • Spot price (S)
  • Strike price (K)
  • Risk-free interest rate (r)
  • Volatility (σ)
  • Time to maturity (T)

Technologies Used

  • SciPy
  • Jupyter Notebook

How to Run

  1. Clone the repository git clone https://github.com/your-username/black-scholes-option-pricing.git
  2. Install dependencies pip install -r requirements.txt
  3. Open jupyter notebook and run - BSM_Option_Pricing.ipynb

Limitations

  • Applicable only to European options
  • Assumes constant volatility and interest rates
  • Does not model dividends
  • Does not include Greeks or implied volatility

Future Enhancements

  • Greeks computation
  • Implied volatility estimation
  • Binomial Tree pricing

About

Basic Python implementation of the Black–Scholes model for pricing European call and put options.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors