Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Python for Finance. - Second Edition

You're reading from  Python for Finance. - Second Edition

Product type Book
Published in Jun 2017
Publisher
ISBN-13 9781787125698
Pages 586 pages
Edition 2nd Edition
Languages

Table of Contents (23) Chapters

Python for Finance Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Python Basics Introduction to Python Modules Time Value of Money Sources of Data Bond and Stock Valuation Capital Asset Pricing Model Multifactor Models and Performance Measures Time-Series Analysis Portfolio Theory Options and Futures Value at Risk Monte Carlo Simulation Credit Risk Analysis Exotic Options Volatility, Implied Volatility, ARCH, and GARCH Index

Two general formulae for many functions


This section is optional since it is quite complex in terms of mathematical expression. Skipping this section would not have any impact on the understanding of the other chapters. Thus, this section is for advanced learners. Up to now in this chapter, we have learnt the usage of several functions, such as pv(), fv(), nper(), pmt(), and rate() included in the SciPy module or numpy.lib.financial submodule. The first general formula is related to the present value:

On the right-hand side of the preceding equation, the first one is the present value of one future cash flow, while the second part is the present value of annuity. The variable type takes a value of zero (default value); it is the present value of a normal annuity, while it is an annuity due if type takes a value of 1. The negative sign is for the sign convention. If using the same notation as that used for the functions contained in SciPy and numpy.lib.financial, we have the following formula...

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 $15.99/month. Cancel anytime}