Python for Finance: Analyze Big Financial Data 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
There is a newer edition of this item:
The financial industry has adopted Python at a tremendous rate recently, with some of the largest investment banks and hedge funds using it to build core trading and risk management systems. This hands-on guide helps both developers and quantitative analysts get started with Python, and guides you through the most important aspects of using Python for quantitative finance.
Using practical examples through the book, author Yves Hilpisch also shows you how to develop a full-fledged framework for Monte Carlo simulation-based derivatives and risk analytics, based on a large, realistic case study. Much of the book uses interactive IPython Notebooks, with topics that include:
- Fundamentals: Python data structures, NumPy array handling, time series analysis with pandas, visualization with matplotlib, high performance I/O operations with PyTables, date/time information handling, and selected best practices
- Financial topics: mathematical techniques with NumPy, SciPy and SymPy such as regression and optimization; stochastics for Monte Carlo simulation, Value-at-Risk, and Credit-Value-at-Risk calculations; statistics for normality tests, mean-variance portfolio optimization, principal component analysis (PCA), and Bayesian regression
- Special topics: performance Python for financial algorithms, such as vectorization and parallelization, integrating Python with Excel, and building financial applications based on Web technologies
Books with Buzz
Discover the latest buzz-worthy books, from mysteries and romance to humor and nonfiction. Explore more
Customers who viewed this item also viewed
Customers who bought this item also bought
Editorial Reviews
About the Author
Yves Hilpisch is the founder and managing partner of The Python Quants, an analytics software provider and financial engineering group. The Python Quants offer, among others, the Python Quant Platform (http://quant-platform.com) and DX Analytics (http://dx-analytics.com). Yves also lectures on mathematical finance and organizes meetups and conferences about Python for Quantitative Finance in New York and London.
I'd like to read this book on Kindle
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Product details
- ASIN : 1491945281
- Publisher : O'Reilly Media; 1st edition (January 6, 2015)
- Language : English
- Paperback : 606 pages
- ISBN-10 : 9781491945285
- ISBN-13 : 978-1491945285
- Item Weight : 2.27 pounds
- Dimensions : 7.01 x 1.22 x 9.17 inches
- Best Sellers Rank: #747,821 in Books (See Top 100 in Books)
- #504 in Data Modeling & Design (Books)
- #683 in Business Finance
- #898 in Python Programming
- Customer Reviews:
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Then you have to figure out what they are and what their value and type should be. Also it looks like most of the code is entered using a terminal instead of creating a module with something like Spyder. A real pain.
The middle chapters cover different Python libraries which are useful in finance such as Numpy and Pandas. The later chapters cover financial simulations again. I did not really understand this ordering of the chapters. It felt like the book dived too fast into simulations, then took a bunch of steps back to cover Python, and then switched back to financial discussion.
Python 2.7 is the language used in this book along with the IPython interactive prompt. I did not understand this decision at all either as Python 3 and files would have been a lot better to stay up to date with current programming practices.
Some of the programming practices mentioned were just plainly inaccurate in certain cases. For example there is the reduce function mentioned on page 92 where the author says: "reduce helps when we want to apply a function to all elements of a list object that returns a single value only." Reduce is not available in Python 3 because it is now deprecated. I went on StackOverflow to learn more about reduce and the top rated answers said that you should not use reduce anymore, and that in 99% of cases it is better to write out a loop for this functionality instead.
I found the author to recommend the non-Pythonic way in a number of different places. In chapter 13 on object orientated programming the author briefly describes how you can make variables private in Python by adding an underscore. He says (p.385): "It might be helpful to have (class/object) private attributes". I thought this was a poorly worded description that does not describe the Pythonic way at all.
Some sections use repetitive wording often. For example, in the first couple chapters the author uses the expression "On one hand... On the other hand" at least 5 times. I think the author needed to tell a better story overall and work on sentence structure.
The financial code sections seemed like they could be really useful to someone in the industry. I do have enough previous experience with the options models to say how accurate these parts are. The book does cover both the European and American options models. Sections about Monte Carlo simulations were helpful.
Overall, this book could be really useful to someone in finance that has not programmed much in Python. I think this book would have worked a lot better to have assumed that the reader is familiar with Python, and then go more in depth on practical applications.
As someone who started using Matlab and R while getting my MBA in finance, I am finding this book to be very helpful in gaining a working knowledge of the other programming languages that I can use in my work and play.
Top reviews from other countries
Really great thing about this approach is that one can be productive learning concepts (if you’re new to quant finance), learn how to implement these concepts in python (if you’re new to Python), and make use of some great frameworks of Python (if you’re new to frameworks; eg: numpy, Pandas, IPython notebook…) via building practical examples that you can test real-world problems from the day one. I’ve been in quant finance for many years, but relatively new to Pandas and some of the Python frameworks; without a doubt, Yves’ book managed to save me many weeks of effort having to Google, read other analysis/blogs/opinions etc...
In summary, the book provides you tons of useful insights, and other references for you to read about, and to consolidate your knowledge of Python and quantitative methods for finance; whether you’re an expert in either areas, or neither areas…. If you’re an expert in both, the book will convince you of your know-how, and will still give you useful references to keep your knowledge up to date. A brilliant buy.
Covers much of Numpy, Pandas, Scipy, Matplotlib.









