Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Python for Finance
  • Toc
  • feedback
Python for Finance

Python for Finance

By : Yuxing Yan
3.9 (22)
close
Python for Finance

Python for Finance

3.9 (22)
By: Yuxing Yan

Overview of this book

A hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python. Python for Finance is perfect for graduate students, practitioners, and application developers who wish to learn how to utilize Python to handle their financial needs. Basic knowledge of Python will be helpful but knowledge of programming is necessary.
Table of Contents (14 chapters)
close
13
Index

European options with known dividends

Assume that we have a known dividend d distributed at time T1, T1 < T, where T is our maturity date. We can modify the original Black-Scholes-Merton option model by replacing S0 with S, where:

European options with known dividends
European options with known dividends
European options with known dividends
European options with known dividends
European options with known dividends

In the previously discussed example, if we have a known dividend of $1.5 delivered in one month, what is the price of the call?. The price is calculated as follows:

>>>import p4f
>>>s0=40
>>>d=1.5
>>>r=0.015
>>>T=6/12
>>>s=s0-exp(-r*T*d)
>>>x=42
>>>sigma=0.2 
>>>round(p4f.bs_call(s,x,T,r,sigma),2)
1.18

The first line of the program imports the p4f module, which contains the call option model. The result shows that the price of the call is $1.18, which is lower than the previous value ($1.56). It is understandable since the price of the underlying stock would drop roughly by $1.5 in one month. Because of this, the chance that we could exercise our call option will be less, that is...

bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete