Language
  • Python 3
Reading time
  • Approximately 74 days
What you will learn
  • Finance
Author
  • Eryk Lewinson
Published
  • 1 year, 3 months ago
Packages you will be introduced to
  • pandas
  • numpy
  • scikitlearn
  • pycaret
  • scipy

Use modern Python libraries such as pandas, NumPy, and scikit-learn and popular machine learning and deep learning methods to solve financial modeling problems

Purchase of the print or Kindle book includes a free eBook in the PDF format

Key Features

  • Explore unique recipes for financial data processing and analysis with Python
  • Apply classical and machine learning approaches to financial time series analysis
  • Calculate various technical analysis indicators and backtest trading strategies

Book Description

Python is one of the most popular programming languages in the financial industry, with a huge collection of accompanying libraries. In this new edition of the Python for Finance Cookbook, you will explore classical quantitative finance approaches to data modeling, such as GARCH, CAPM, factor models, as well as modern machine learning and deep learning solutions.

You will use popular Python libraries that, in a few lines of code, provide the means to quickly process, analyze, and draw conclusions from financial data. In this new edition, more emphasis was put on exploratory data analysis to help you visualize and better understand financial data. While doing so, you will also learn how to use Streamlit to create elegant, interactive web applications to present the results of technical analyses.

Using the recipes in this book, you will become proficient in financial data analysis, be it for personal or professional projects. You will also understand which potential issues to expect with such analyses and, more importantly, how to overcome them.

What you will learn

  • Preprocess, analyze, and visualize financial data
  • Explore time series modeling with statistical (exponential smoothing, ARIMA) and machine learning models
  • Uncover advanced time series forecasting algorithms such as Meta's Prophet
  • Use Monte Carlo simulations for derivatives valuation and risk assessment
  • Explore volatility modeling using univariate and multivariate GARCH models
  • Investigate various approaches to asset allocation
  • Learn how to approach ML-projects using an example of default prediction
  • Explore modern deep learning models such as Google's TabNet, Amazon's DeepAR and NeuralProphet

Who this book is for

This book is intended for financial analysts, data analysts and scientists, and Python developers with a familiarity with financial concepts. You'll learn how to correctly use advanced approaches for analysis, avoid potential pitfalls and common mistakes, and reach correct conclusions for a broad range of finance problems.

Working knowledge of the Python programming language (particularly libraries such as pandas and NumPy) is necessary.

Table of Contents

  1. Acquiring Financial Data
  2. Data Preprocessing
  3. Visualizing Financial Time Series
  4. Exploring Financial Time Series Data
  5. Technical Analysis and Building Interactive Dashboards
  6. Time Series Analysis and Forecasting
  7. Machine Learning-Based Approaches to Time Series Forecasting
  8. Multi-Factor Models
  9. Modelling Volatility with GARCH Class Models
  10. Monte Carlo Simulations in Finance
  11. Asset Allocation
  12. Backtesting Trading Strategies
  13. Applied Machine Learning: Identifying Credit Default
  14. Advanced Concepts for Machine Learning Projects
  15. Deep Learning in Finance
The author Eryk Lewinson has the following credentials.

  • Professor at Central European University
  • Works/Worked at PwC Polska
  • Works/Worked at Deloitte Poland