Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Python for Finance

You're reading from   Mastering Python for Finance Implement advanced state-of-the-art financial statistical applications using Python

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher Packt
ISBN-13 9781789346466
Length 426 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
James Ma Weiming James Ma Weiming
Author Profile Icon James Ma Weiming
James Ma Weiming
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Section 1: Getting Started with Python
2. Overview of Financial Analysis with Python FREE CHAPTER 3. Section 2: Financial Concepts
4. The Importance of Linearity in Finance 5. Nonlinearity in Finance 6. Numerical Methods for Pricing Options 7. Modeling Interest Rates and Derivatives 8. Statistical Analysis of Time Series Data 9. Section 3: A Hands-On Approach
10. Interactive Financial Analytics with the VIX 11. Building an Algorithmic Trading Platform 12. Implementing a Backtesting System 13. Machine Learning for Finance 14. Deep Learning for Finance 15. Other Books You May Enjoy

Pricing European options

Consider a two-step binomial tree. A non-dividend paying stock price starts at $50, and, in each of the two time steps, the stock may go up by 20 percent or go down by 20 percent. Suppose that the risk-free rate is five percent per annum and that the time to maturity, T, is two years. We would like to find the value of a European put option with a strike price K of $52. The following diagram shows the pricing of the stock and the payoffs at the terminal nodes using a binomial tree:

Here, the nodes are calculated as follows:

At the terminal nodes, the payoff from exercising a European call option is given as follows:

In the case of a European put option, the payoff is as follows:

European call and put options are usually denoted by lowercase letters, c and p, while American call and put options are usually denoted by uppercase...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime