changed 3 years ago
Published Linked with GitHub

Python Programming in Finance

Location: TBA
Time: TBA

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

"All money is a matter of belief."
-- Adam Smith

"Investing is simple, not easy."
-- Warren Buffett

"In the business world, the rearview mirror
is always clearer than the windshield."
-- Warren Buffett

"It's a Marathon, not a sprint."
-- Anonymous

"Money often costs too much."
-- Ralph Waldo Emerson

Class Information

Instructor

Objectives

This course is an inter-disciplinary course in the fields of computer science, finance, and (a lot of) math:

  • Python programming
  • Debut of quantative research: data acquisition, visualization, strategy development, and backtesting
  • Selected math tools
  • Modern portfolio theory
  • Financial time series analysis
  • Pricing theory
  • Risk management
  • (Optional) Machine learning

These techniques are essential both in P & Q quant. Just for the record, this course is not to teach you how to get rich in your life but get rich in knowledge (such that you may get rich in the future life).

Prerequisites

Working Environment

  • Google Colab with Python 3.6 link
    • You need a Google account, of course.

Recording of classroom lectures is prohibited unless advance written permission is obtained from the class instructor and any guest presenter(s).

Syllabus

Python Crash Course

  • Variable notebook pdf
  • Basic data types: int/float, str, bool
  • Assignment/arithmetic/rational/logical operators
  • List & slicing
  • Branching (if-elif-else)
  • Iterations (for/while loops)
    • Monte Carlo simulation
    • Bisection method for root-finding
  • Function & anonymous expression (lambda)

You may refer to my python course here.

Debut of Quantitative Research


https://finviz.com/

Selected Mathematical Tools

  • Package numpy notebook
    • Vectorization
    • Matrix computation
      • Inner product
      • Inverse matrix
  • Package scipy
    • Interpolation
      • Linear interpolation
      • Cubic spline
    • Optimization
      • Gradient descent
  • Essentials of Statistics notebook pdf

You may refer to my statistics course here.

Modern Portfolio Theory

  • Mean-variance framework and the efficient frontier notebook
  • Capital asset pricing model (CAPM) notebook
  • Multi-factor models notebook
    • Arbitrage pricing theory (APT)
    • Fama-French 3-factor model
    • Barra risk factor analysis
    • AQR: Buffett's Alpha

Financial Time Series Analysis

  • Autocorrelation notebook
  • Stationary process, order of integration, and the mean-reverting property
  • Autoregressive moving-average (ARMA) model
  • Generalized autoregressive conditional heteroskedasticity (GARCH) model notebook
  • Vector autoregression (VAR) model notebook
  • Cointegration & vector error correction model (VECM) notebook
  • Granger causality notebook
  • Structural break notebook

Pricing Theory

  • Introduction to futures and options pdf notebook
  • Arbitrage-free principle
  • Fundamental theorems of asset pricing
  • Binomial option pricing model (BOPM)
  • Risk-neutral valuation
  • Monte Carlo simulation for option pricing
  • Black-Scholes formula for European options
  • Model calibration: implied volatility
  • Simulation of financial models: geometric Brownian motion, mean-reverting process, stochastic volatility process, jump-diffusion process

Risk Management

Machine Learning notebook1 notebook2

  • Supervised learning
  • Unsupervised learning
  • Reinforcement learning
  • Deep learning

Programming Labs

You can find the list of programming assignments here: https://hackmd.io/@arthurzllu/Hy9ana_iD

References

Computer Science

Python Programming

Quantitative Finance by Python

Machine Learning for Finance

Mathematical Foundations

Linear Algebra

  • Stephen H. Friedberg, Arnold J. Insel, Lawrence E. Spence, Linear Algebra, 5/e, 2018

Probability Models

Statistics

Time Series

Numerical Methods

Finance

Financial Market

Investment

  • Zvi Bodie, Alex Kane, Alan J. Marcus, Investments, 12/e, 2020

Derivatives

Portfolio Management

Trading System

Risk Management

Financial Engineering: Pricing Theory & Financial Mathematics

Additional Reading Materials

  • Burton G. Malkiel,漫步華爾街:超越股市漲跌的成功投資策略
  • James Owen Weatherall,華爾街的物理學
  • Nassim Nicholas Taleb,隨機騙局

MISC

Select a repo