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

Exercises

1. Write a Python program to price a call option.

2. Explain the empty shell method that is used while writing a complex Python program.

3. Explain the logic behind the so-called comment-all-out method when writing a complex Python program.

4. Explain the usage of a return value when we debug a program.

5. When we write the CND, we could define a1, a2, a3, a4, and a5 separately. What are the differences between the following two approaches?

Current approach:

(a1,a2,a3,a4,a5)=(0.31938153,-0.356563782,1.781477937,-1.821255978,1.330274429)

An alternative approach:

a1=0.31938153
a2=-0.356563782
a3=1.781477937
a4=-1.821255978
a5=1.330274429

6. What are the definitions of effective annual rate, effect semi-annual rate, and risk-free rate for the call option model? Assuming that the current annual risk-free rate is 5 percent, compounded semi-annually, which value should we use as our input value for the Black-Scholes call option model?

7. What is the call premium when the stock is traded at...

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