top of page

Option Pricing:
Black-Scholes Model

The project calculates the price of European options before their expiry date using the Black-Scholes Model which is a differential equation that takes the following parameters into account:

- Risk-free rate

- Underlying security price

- Strike price

- Time before the expiry

- Standard deviation

Importing the required libraries:

Screen Shot 2022-09-13 at 14.03.37.png

The function I defined to calculate the price of the option based on the parameters written in red:

Screen Shot 2022-09-13 at 14.04.20.png

Final output where I obtain the price of the option:

Parameters could be changed as desired

Screen Shot 2022-09-13 at 14.04.36.png
bottom of page