Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python for Finance Cookbook

You're reading from   Python for Finance Cookbook Over 50 recipes for applying modern Python libraries to financial data analysis

Arrow left icon
Product type Paperback
Published in Jan 2020
Publisher Packt
ISBN-13 9781789618518
Length 432 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Eryk Lewinson Eryk Lewinson
Author Profile Icon Eryk Lewinson
Eryk Lewinson
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Financial Data and Preprocessing 2. Technical Analysis in Python FREE CHAPTER 3. Time Series Modeling 4. Multi-Factor Models 5. Modeling Volatility with GARCH Class Models 6. Monte Carlo Simulations in Finance 7. Asset Allocation in Python 8. Identifying Credit Default with Machine Learning 9. Advanced Machine Learning Models in Finance 10. Deep Learning in Finance 11. Other Books You May Enjoy

What this book covers

Chapter 1, Financial Data and Preprocessing, explores how financial data is different from other types of data commonly used in machine learning tasks. You will be able to use the functions provided to download financial data from a number of sources (such as Yahoo Finance and Quandl) and preprocess it for further analysis. Finally, you will learn how to investigate whether the data follows the stylized facts of asset returns.

Chapter 2, Technical Analysis in Python, demonstrates some fundamental basics of technical analysis as well as how to quickly create elegant dashboards in Python. You will be able to draw some insights into patterns emerging from a selection of the most commonly used metrics (such as MACD and RSI).

Chapter 3, Time Series Modeling, introduces the basics of time series modeling (including time series decomposition and statistical stationarity). Then, we look at two of the most widely used approaches of time series modeling—exponential smoothing methods and ARIMA class models. Lastly, we present a novel approach to modeling a time series using the additive model from Facebook's Prophet library.

Chapter 4, Multi-Factor Models, shows you how to estimate various factor models in Python. We start with the simplest one-factor model and then explain how to estimate more advanced three-, four-, and five-factor models.

Chapter 5, Modeling Volatility with GARCH Class Models, introduces you to the concept of volatility forecasting using (G)ARCH class models, how to choose the best-fitting model, and how to interpret your results.

Chapter 6, Monte Carlo Simulations in Finance, introduces you to the concept of Monte Carlo simulations and how to use them for simulating stock prices, the valuation of European/American options, and for calculating the VaR.

Chapter 7, Asset Allocation in Python, introduces the concept of Modern Portfolio Theory and shows you how to obtain the Efficient Frontier in Python. Then, we look at how to identify specific portfolios, such as minimum variance or the maximum Sharpe ratio. We also show you how to evaluate the performance of such portfolios.

Chapter 8, Identifying Credit Default with Machine Learning, presents a case of using machine learning for predicting credit default. You will get to know the state-of-the-art classification algorithms, learn how to tune the hyperparameters of the models, and handle problems with imbalanced data.

Chapter 9, Advanced Machine Learning Models in Finance, introduces you to a selection of advanced classifiers (including stacking multiple models). Additionally, we look at how to deal with class imbalance, use Bayesian optimization for hyperparameter tuning, and retrieve feature importance from a model.

Chapter 10, Deep Learning in Finance, demonstrates how to use deep learning techniques for working with time series and tabular data. The networks will be trained using PyTorch (with possible GPU acceleration).

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 $19.99/month. Cancel anytime
Banner background image