Try   HackMD

Financial Computing Lab
Futures & Options

Location: Room 108
Time: 1630 ~ 1830

"Δ + Γ + Θ = r"
-- The Black-Scholes hedging formula

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

Class Information

Instructor

Objectives

I will introduce the pricing theory of futures and options and also the hedging techniques with Python and Excel sample programs. After completing this course, you will primarily understand futures and options, and conduct quantitative analysis of options, such as calculating implied volatility and delta. These concepts are central to the financial risk management. This course is suitable for financial practitioners or students interested in financial engineering or quantitative research. Note that the pricing theory of derivatives will involve some mathematics, where I will do my best to make it clear.

本課程將介紹期貨與選擇權的定價理論,並提供學員 Python 與 Excel 的範例程式參考與修改,最後說明如何透過複製資產來達到避險效果。學員完成本課程後將可以了解期貨與選擇權的基本功能,並可以自行計算選擇權的重要參數,例如隱含波動率 (implied volatility) 與 delta 等,進而在操作期貨與選擇權時有客觀量化的數據利於調整投資組合。本課程適合金融從業人員或是對於衍生性金融商品有興趣的學員。注意,選擇權的定價理論將會牽涉到些許數學,我將會逐一帶領學員了解其意義,無須擔心數學推導的過程。

Prerequisites

  • Basic knowledge about financial markets for example, what is stock/equity?
  • Python programming
  • Statistics for example, what is a normal distribution?

Working Environment

  • Google Colab with Python 3.6 or later
    • You need a Google account before using Colab.
  • JupyterLab
    • You can run the JupyterLab server on your host machine.
    • In this way, you don't need to share your ideas with Google.

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

Syllabus

Session Name Summary Files
Quant Research Basics ◍ Python basics
◍ Useful packages: datetime, yfinance, pandas, matplotlib
◍ TXF/TXO data
◍ Backtesting
python
ta
backtesting.py
Futures & Options: Pricing ◍ Fundamental theorems of asset pricing: arbitrage-free principle
◍ Option pricing: binomial option pricing model (BOPM)
◍ Risk-neutral valuation
◍ Monte Carlo simulation
◍ Black-Scholes formula for European options
◍ Implied volatility
◍ Volatility index
◍ QuantLib tutorial
◍ Financial mathematics
option_pdf
code
vix_pdf
quantlib_code
math
Sensitivity Analysis: Greeks ◍ Delta & dynamic delta hedging
◍ Gamma
◍ Theta
◍ Vega
◍ Rho
pdf
code
Option Trading ◍ Option combinations
◍ Portfolio Profiler by Python & Excel
link
profiler_code
excel-dashboard
xlwings
Financial Machine Learning ◍ Orc wing model for volatility smile
◍ PCA of implied volatility surface
◍ ARCH model
◍ Long-Short Term Memory (LSTM)
orc wing
paper
PCA_demo
vol_modeling
LSTM
paper

Supplementary Materials

References

General Introduction

Programming Techniques/Framework for Financial Engineering

Volatility

Financial Mathematics

More Derivative Pricing

Financial Machine Learning

  • Marcos M. López de Prado, Machine Learning for Asset Managers, 2020
    Image Not Showing Possible Reasons
    • The image was uploaded to a note which you don't have access to
    • The note which the image was originally uploaded to has been deleted
    Learn More →

MISC