Machine Learning for Quantitative Finance

Similar documents
Equity correlations implied by index options: estimation and model uncertainty analysis

Posterior Inference. , where should we start? Consider the following computational procedure: 1. draw samples. 2. convert. 3. compute properties

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

2.1 Mathematical Basis: Risk-Neutral Pricing

Equilibrium Asset Pricing: With Non-Gaussian Factors and Exponential Utilities

IEOR E4703: Monte-Carlo Simulation

High Dimensional Bayesian Optimisation and Bandits via Additive Models

Time-changed Brownian motion and option pricing

Chapter 7: Estimation Sections

Non-informative Priors Multiparameter Models

Strategies for Improving the Efficiency of Monte-Carlo Methods

(5) Multi-parameter models - Summarizing the posterior

Extracting Information from the Markets: A Bayesian Approach

Computer Exercise 2 Simulation

"Pricing Exotic Options using Strong Convergence Properties

ST440/550: Applied Bayesian Analysis. (5) Multi-parameter models - Summarizing the posterior

Chapter 8: Sampling distributions of estimators Sections

Computational Finance. Computational Finance p. 1

Probability & Statistics

Advanced Topics in Derivative Pricing Models. Topic 4 - Variance products and volatility derivatives

Statistical Inference and Methods

Barrier Option. 2 of 33 3/13/2014

Chapter 7: Estimation Sections

King s College London

Chapter 7: Estimation Sections

Value at Risk Ch.12. PAK Study Manual

Valuing volatility and variance swaps for a non-gaussian Ornstein-Uhlenbeck stochastic volatility model

Bloomberg. Portfolio Value-at-Risk. Sridhar Gollamudi & Bryan Weber. September 22, Version 1.0

Computational Finance Least Squares Monte Carlo

1. You are given the following information about a stationary AR(2) model:

IMPLEMENTING THE SPECTRAL CALIBRATION OF EXPONENTIAL LÉVY MODELS

Top-down particle filtering for Bayesian decision trees

Importance sampling and Monte Carlo-based calibration for time-changed Lévy processes

Two hours. To be supplied by the Examinations Office: Mathematical Formula Tables and Statistical Tables THE UNIVERSITY OF MANCHESTER

MAFS5250 Computational Methods for Pricing Structured Products Topic 5 - Monte Carlo simulation

Extend the ideas of Kan and Zhou paper on Optimal Portfolio Construction under parameter uncertainty

IEOR E4703: Monte-Carlo Simulation

MATH4143: Scientific Computations for Finance Applications Final exam Time: 9:00 am - 12:00 noon, April 18, Student Name (print):

Semiparametric Modeling, Penalized Splines, and Mixed Models

درس هفتم یادگیري ماشین. (Machine Learning) دانشگاه فردوسی مشهد دانشکده مهندسی رضا منصفی

MATH 3200 Exam 3 Dr. Syring

Handbook of Financial Risk Management

Estimation Appendix to Dynamics of Fiscal Financing in the United States

Semiparametric Modeling, Penalized Splines, and Mixed Models David Ruppert Cornell University

Option Pricing for Discrete Hedging and Non-Gaussian Processes

arxiv: v1 [math.st] 18 Sep 2018

Lecture 5: Fundamentals of Statistical Analysis and Distributions Derived from Normal Distributions

Monte Carlo Based Reliability Analysis

Monte Carlo Methods for Uncertainty Quantification

The Pennsylvania State University. The Graduate School. Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO

Inverse reinforcement learning from summary data

ANALYSIS OF THE BINOMIAL METHOD

MAFS Computational Methods for Pricing Structured Products

Analytical Option Pricing under an Asymmetrically Displaced Double Gamma Jump-Diffusion Model

Computational Finance Binomial Trees Analysis

The data-driven COS method

Ways of Estimating Extreme Percentiles for Capital Purposes. This is the framework we re discussing

Implied Lévy Volatility

VaR Estimation under Stochastic Volatility Models

Probabilistic Meshless Methods for Bayesian Inverse Problems. Jon Cockayne July 8, 2016

Chapter 8: Sampling distributions of estimators Sections

Practice Exam 1. Loss Amount Number of Losses

Statistical and Computational Inverse Problems with Applications Part 5B: Electrical impedance tomography

Simulating Stochastic Differential Equations

Lecture Quantitative Finance Spring Term 2015

Capital requirements, market, credit, and liquidity risk

Asian Option Pricing: Monte Carlo Control Variate. A discrete arithmetic Asian call option has the payoff. S T i N N + 1

Bias Reduction Using the Bootstrap

Quadratic hedging in affine stochastic volatility models

STAT 825 Notes Random Number Generation

Gamma. The finite-difference formula for gamma is

Lecture Notes 6. Assume F belongs to a family of distributions, (e.g. F is Normal), indexed by some parameter θ.

**BEGINNING OF EXAMINATION** A random sample of five observations from a population is:

Financial Models with Levy Processes and Volatility Clustering

Multilevel quasi-monte Carlo path simulation

Monte Carlo Simulations

SAQ KONTROLL AB Box 49306, STOCKHOLM, Sweden Tel: ; Fax:

EC316a: Advanced Scientific Computation, Fall Discrete time, continuous state dynamic models: solution methods

Bayesian Inference for Random Coefficient Dynamic Panel Data Models

Unit 5: Sampling Distributions of Statistics

MLEMVD: A R Package for Maximum Likelihood Estimation of Multivariate Diffusion Models

Unit 5: Sampling Distributions of Statistics

Module 2: Monte Carlo Methods

Generating Random Numbers

Computer Exercise 2 Simulation

STOCHASTIC VOLATILITY MODELS: CALIBRATION, PRICING AND HEDGING. Warrick Poklewski-Koziell

Statistical analysis and bootstrapping

A Closed-form Solution for Outperfomance Options with Stochastic Correlation and Stochastic Volatility

A Consistent Pricing Model for Index Options and Volatility Derivatives

PRMIA Exam 8002 PRM Certification - Exam II: Mathematical Foundations of Risk Measurement Version: 6.0 [ Total Questions: 132 ]

Implementing Models in Quantitative Finance: Methods and Cases

The data-driven COS method

Model Estimation. Liuren Wu. Fall, Zicklin School of Business, Baruch College. Liuren Wu Model Estimation Option Pricing, Fall, / 16

Accelerated Option Pricing Multiple Scenarios

Beyond Black-Scholes

Financial Time Series Volatility Analysis Using Gaussian Process State-Space Models

DRAFT. 1 exercise in state (S, t), π(s, t) = 0 do not exercise in state (S, t) Review of the Risk Neutral Stock Dynamics

Premia 14 HESTON MODEL CALIBRATION USING VARIANCE SWAPS PRICES

Application of Moment Expansion Method to Option Square Root Model

Monte Carlo Methods in Structuring and Derivatives Pricing

Transcription:

Machine Learning for Quantitative Finance Fast derivative pricing Sofie Reyners Joint work with Jan De Spiegeleer, Dilip Madan and Wim Schoutens

Derivative pricing is time-consuming... Vanilla option pricing European-type Fast Fourier transform American-type Tree methods Exotic option pricing Monte Carlo simulations 1 Machine Learning for Quantitative Finance

... but time is money! time-consuming algorithms continuously moving markets prices are outdated when available, overnight calculations cannot be performed in one night,... 2 Machine Learning for Quantitative Finance

Let a machine learn the pricing function machine learning product, market and model parameters model price time-consuming method Expensive pricing function is summarized with machine learning. 3 Machine Learning for Quantitative Finance

Let a machine learn the pricing function machine learning product, market and model parameters model price time-consuming method When training is completed, prediction is extremely fast! 3 Machine Learning for Quantitative Finance

Gaussian process regression (GPR) Consider a training set (X, y) = {(x i, y i ) i = 1,..., n}. Find a relation between inputs and outputs: y i = f(x i ) + ε i where f(x) is a Gaussian process and ε i N (0, σ 2 n) are i.i.d. random variables representing the noise in the data. 4 Machine Learning for Quantitative Finance

Gaussian process A Gaussian process f(x) is a, possibly infinite, collection of random variables, any finite subset of it having a joint Gaussian distribution. Mean function: m(x) = E [ f(x) ] Kernel function: k(x, x ) = Cov(f(x), f(x )) = f(x) GP (m(x), k(x, x )) 5 Machine Learning for Quantitative Finance

Gaussian process If f(x) GP (0, k(x, x )), then f N (0, K(X, X)) where (X, f) = {(x i, f i ) i = 1,..., n} is a sample from f(x) and k(x 1, x 1 )... k(x 1, x n ) K(X, X) =..... k(x n, x 1 )... k(x n, x n ) 6 Machine Learning for Quantitative Finance

GPR: a Bayesian method Don t model the relation as one function, but as a distribution over functions. Procedure: 1 Start from a prior GP prior knowledge: smooth function, periodic function,... prior distribution over functions 2 Include observed data points 3 Compute a posterior GP 7 Machine Learning for Quantitative Finance

Posterior distribution Only consider functions that agree with the data. Take new inputs X, with corresponding (unknown) function values f Joint distribution of training outputs and function values: [ ] ( [ ]) y K(X, X) + σ 2 N 0, n I K(X, X ) K(X, X) K(X, X ) f 8 Machine Learning for Quantitative Finance

Posterior distribution Condition on the observations: ( ) f X, X, y N µ, Σ with µ = K(X, X) [ K(X, X) + σ 2 ni ] 1 y Σ = K(X, X ) K(X, X) [ K(X, X) + σ 2 ni ] 1 K(X, X ) 9 Machine Learning for Quantitative Finance

Kernel function Squared exponential kernel function ( x x k(x, x ) = σf 2 2 ) exp 2l 2 with hyperparameters σ f and l: σ 2 f = signal variance l = length-scale parameter Hyperparameters (including σ n ) are estimated from the training data, usually with MLE. 10 Machine Learning for Quantitative Finance

Mean function Often set to zero, but can be modelled using basis functions h(x). g(x) = f(x) + h(x) T β GP (h(x) T β, k(x, x )) where f(x) GP (0, k(x, x )) β should be estimated from the training data Common choice: h(x) = (1, x, x 2 ) 11 Machine Learning for Quantitative Finance

Application set-up Construct a training set: product, market and model parameters time-consuming method model price sample n random combinations x i compute n corresponding prices y i Fit a Gaussian process regression (GPR) model. Fast prediction of new model prices. 12 Machine Learning for Quantitative Finance

Pricing European call options Training set: Product/market VG Heston K [40%, 160%] σ [0.05, 0.45] κ [1.4, 2.6] T [11M, 1Y ] ν [0.55, 0.95] ρ [ 0.85, 0.55] r [1.5%, 2.5%] θ [ 0.35, 0.05] θ [0.45, 0.75] q [0%, 5%] η [0.01, 0.1] v 0 [0.01, 0.1] sample n values of each parameter calculate n FFT-based model prices 13 Machine Learning for Quantitative Finance

Pricing European call options Fit the GPR model K, T, r q, model parameters GPR FFT model price Construct a test set: Similarly as training set Slightly smaller parameter intervals 14 Machine Learning for Quantitative Finance

Out-of-sample prediction (a) Variance Gamma (b) Heston model trained on 10 000 points, tested on 100 000 points. 15 Machine Learning for Quantitative Finance

Performance summary VG Heston Size of training set 5000 10 000 20 000 5000 10 000 20 000 In-sample prediction MAE 0.0016 0.0017 0.0013 0.0036 0.0027 0.0033 AAE 2.5763e-04 1.9627e-04 1.4747e-04 5.2260e-04 4.0347e-04 3.4524e-04 Out-of-sample prediction MAE 0.0028 0.0022 0.0016 0.0060 0.0054 0.0048 AAE 2.2508e-04 1.6942e-04 1.2828e-04 5.8991e-04 4.4112e-04 3.6623e-04 Speed-up 30 15 7 40 20 10 with MAE = max { EC F F T (i) EC GP R(i), i = 1,..., n} AAE = 1 n EC F F T (i) EC GP R(i) n i=1 16 Machine Learning for Quantitative Finance

Pricing American options Put options with strike K and maturity T Use binomial tree model (daily steps) with volatility σ [0.05, 0.55] K, T, r, q, σ GPR binomial tree model price 17 Machine Learning for Quantitative Finance

Out-of-sample performance MAE 0.0086 AAE 9.1684e-04 Speed-up 70 model trained on 10 000 points, tested on 100 000 points. 18 Machine Learning for Quantitative Finance

Pricing barrier options Down-and-out barrier put options with barrier level H, strike K and maturity T with H [55%, 99%] Use Monte Carlo simulation, according to Heston s model H, K, T, r, q, GPR MC Heston κ, ρ, θ, η, v 0 model price 19 Machine Learning for Quantitative Finance

Out-of-sample performance MAE 0.0086 AAE 6.7386e-04 Speed-up 5850 model trained and tested on 10 000 points. 20 Machine Learning for Quantitative Finance

Conclusion Time-consuming pricing methods Gaussian process regression Matrix inversion Hyperparameter optimization Apply GPR on existing methods Speed-up of several orders of magnitude Some trade-off with accuracy 21 Machine Learning for Quantitative Finance

Thank you! More information: De Spiegeleer, J., Madan, D. B., Reyners, S. and Schoutens, W. (2018), Machine Learning for Quantitative Finance: Fast Derivative Pricing, Hedging and Fitting, Quantitative Finance, forthcoming. 22 Machine Learning for Quantitative Finance