This GitHub repository contains all the work related to my study of Black-Scholes European option pricing. My notes arise from my own independent research.
The Black-Scholes model is a model for the dynamics of a financial market containing derivative instruments. It is widely used in finance as one can deduce the Black-Scholes equation. This is a parabolic partial differential equation that has a closed form solution, which gives an estimate of the price of a European option. The main idea behind the model is to hedge the option by buying and selling the underlying asset in a way to eliminate risk. This type of hedging is called delta hedging.
Under a continuous-time framework, investors are allowed to trade in the financial market up to finite time
- The price of the underlying risky asset follows a geometric Brownian motion
- The price of the riskless asset follows the differential equation
- The risk-free interest rate
$r$ and volatility$\sigma$ are known functions, - The asset pays no dividends during the life of the option,
- There are no transaction costs,
- There are no arbitrage opportunities within the market,
- The market is complete,
- Short selling is permitted.
Let
The price of a particular derivative can be obtained by setting suitable boundary conditions specific to the derivative. For example, a European call option has boundary condition
A closed form solution can be derived using the heat equation. See Chapter 2.1 in Black_Scholes_Project.pdf
. Wwe implement a heat map displaying the arbitrage price of call and put options using the closed form solution to the Black-Scholes equation for varying volatility and spot prices. In addition, given an arbitrary price of the underlying at expiration, we display a heat map displaying the profitability of call and put options. See the first part of 20062024_Black_Scholes_code.ipynb
for the implementation.
We also discuss the risk-neutral pricing approach which utilises a change of measure and the Monte Carlo method. This is discussed in great detail in Chapters 2.2-2.3 in Black_Scholes_Project.pdf
.
To see both heat maps, check Black_scholes_european_heatmap.png
and Black_scholes_european_profitability_heatmap.png
. We analyse the convergence of Monte Carlo estimations. See Black_scholes_MC_prices.png
and Black_scholes_MC_errors.png
.
- Barrier options
- Greeks
- Psuedorandom and quasirandom sequeunces