Have a personal or library account? Click to login
Python for Finance Cover

Python for Finance

If your interest is finance and trading, then using Python to build a financial calculator makes absolute sense. As does this book which is a hands-on guide covering everything from option theory to time series.

Paid access
|Sep 2025
Product purchase options

Key Features

    Book Description

    A hands-on guide with easy-to-follow examples to help you learn about option theory, quantitative finance, financial modeling, and time series using Python. Python for Finance is perfect for graduate students, practitioners, and application developers who wish to learn how to utilize Python to handle their financial needs. Basic knowledge of Python will be helpful but knowledge of programming is necessary.

    What you will learn

    • Build a financial calculator based on Python
    • Learn how to price various types of options such as European, American, average, lookback, and barrier options
    • Write Python programs to download data from Yahoo! Finance
    • Estimate returns and convert daily returns into monthly or annual returns
    • Form an nstock portfolio and estimate its variancecovariance matrix
    • Estimate VaR (Value at Risk) for a stock or portfolio
    • Run CAPM (Capital Asset Pricing Model) and the FamaFrench 3factor model
    • Learn how to optimize a portfolio and draw an efficient frontier
    • Conduct various statistic tests such as Ttests, Ftests, and normality tests

    Who this book is for

    Table of Contents

    1. Python Installation and Introduction
    2. Using Python as an ordinary calculator
    3. Using Python as a financial calculator
    4. Python codes (13 lines) to price a call option
    5. Introduction to modules
    6. Introduction to NumPy and SciPy modules
    7. Visual Finance via Matplotlib
    8. Statistical Analysis of Time Series
    9. Python loops and implied volatility based on the Black-Scholes model
    10. Statistical analysis of time series data
    11. Monte Carlo Simulation for options
    12. Volatility Measures and GARCH
    PDF ISBN: 978-1-78328-438-2
    Publisher: Packt Publishing Limited
    Copyright owner: © 2014 Packt Publishing Limited
    Publication date: 2025
    Language: English
    Pages: 408