© The MathWorks, Inc. ® ® Monte Carlo Simulations using MATLAB Vincent Leclercq, Application engineer

Slides:



Advertisements
Similar presentations
Value-at-Risk: A Risk Estimating Tool for Management
Advertisements

Hedging with Black and scholes Analytical Finance I Ellen Bjarnadóttir, Helga Daníelsdóttir and Koorosh Feizi.
Chapter 25 Risk Assessment. Introduction Risk assessment is the evaluation of distributions of outcomes, with a focus on the worse that might happen.
Combining Monte Carlo Estimators If I have many MC estimators, with/without various variance reduction techniques, which should I choose?
Structural reliability analysis with probability- boxes Hao Zhang School of Civil Engineering, University of Sydney, NSW 2006, Australia Michael Beer Institute.
Applications of Stochastic Processes in Asset Price Modeling Preetam D’Souza.
Introduction Data and simula- tion methodology VaR models and estimation results Estimation perfor- mance analysis Conclusions Appendix Doctoral School.
Chapter 20 Basic Numerical Procedures
Sampling Attila Gyulassy Image Synthesis. Overview Problem Statement Random Number Generators Quasi-Random Number Generation Uniform sampling of Disks,
Options and Speculative Markets Introduction to option pricing André Farber Solvay Business School University of Brussels.
Numerical Methods for Option Pricing
CF-3 Bank Hapoalim Jun-2001 Zvi Wiener Computational Finance.
Computational statistics, course introduction Course contents  Monte Carlo Methods  Random number generation  Simulation methodology  Bootstrap  Markov.
Spot Price Models. Spot Price Dynamics An examination of the previous graph shows several items of interest. –Price series exhibit spikes with seasonal.
FE-W EMBAF Zvi Wiener Financial Engineering.
Pricing an Option Monte Carlo Simulation. We will explore a technique, called Monte Carlo simulation, to numerically derive the price of an option or.
FRM Zvi Wiener Following P. Jorion, Financial Risk Manager Handbook Financial Risk Management.
Overview of STAT 270 Ch 1-9 of Devore + Various Applications.
Derivatives Introduction to option pricing André Farber Solvay Business School University of Brussels.
By: Brian Scott. Topics Defining a Stochastic Process Geometric Brownian Motion G.B.M. With Jump Diffusion G.B.M with jump diffusion when volatility is.
JUMP DIFFUSION MODELS Karina Mignone Option Pricing under Jump Diffusion.
Monte Carlo Simulation 1.  Simulations where random values are used but the explicit passage of time is not modeled Static simulation  Introduction.
11.1 Options, Futures, and Other Derivatives, 4th Edition © 1999 by John C. Hull The Black-Scholes Model Chapter 11.
Lecture 7: Simulations.
Ewa Lukasik - Jakub Lawik - Juan Mojica - Xiaodong Xu.
Analysis of Monte Carlo Integration Fall 2012 By Yaohang Li, Ph.D.
Lecture 5: Value At Risk.
Hedging and Value-at-Risk (VaR) Single asset VaR Delta-VaR for portfolios Delta-Gamma VaR simulated VaR Finance 70520, Spring 2002 Risk Management & Financial.
Advanced Risk Management I Lecture 6 Non-linear portfolios.
The Black-Scholes Model for Option Pricing - 2 -Mahantesh Halappanavar -Meeting-3,
18.1 Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull Numerical Procedures Chapter 18.
Exercises of computational methods in finance
Simulating the value of Asian Options Vladimir Kozak.
Chapter 13 Wiener Processes and Itô’s Lemma
RNGs in options pricing Presented by Yu Zhang. Outline Options  What is option?  Kinds of options  Why options? Options pricing Models Monte Carlo.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
Smart Monte Carlo: Various Tricks Using Malliavin Calculus Quantitative Finance, NY, Nov 2002 Eric Benhamou Goldman Sachs International.
Chapter 26 More on Models and Numerical Procedures Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull
1 MGT 821/ECON 873 Numerical Procedures. 2 Approaches to Derivatives Valuation How to find the value of an option?  Black-Scholes partial differential.
1 Chapter 19 Monte Carlo Valuation. 2 Simulation of future stock prices and using these simulated prices to compute the discounted expected payoff of.
Valuation of Asian Option Qi An Jingjing Guo. CONTENT Asian option Pricing Monte Carlo simulation Conclusion.
Chapter 4 Stochastic Modeling Prof. Lei He Electrical Engineering Department University of California, Los Angeles URL: eda.ee.ucla.edu
Financial Mathematics. In finance, a hedge is an investment that is taken out specifically to reduce or cancel out the risk in another investment.financerisk.
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Basic Numerical Procedure
1 MathFinance Colloquium Frankfurt, June 1 st, 2006 Exploring the Limits of Closed Pricing Formulas in the Black and Scholes.
Monte Carlo: Option Pricing
Covariance Estimation For Markowitz Portfolio Optimization Ka Ki Ng Nathan Mullen Priyanka Agarwal Dzung Du Rezwanuzzaman Chowdhury 14/7/2010.
Monte-Carlo Simulation. Mathematical basis The discounted price is a martingale (MA4257 and MA5248).
© K.Cuthbertson, D. Nitzsche FINANCIAL ENGINEERING: DERIVATIVES AND RISK MANAGEMENT (J. Wiley, 2001) K. Cuthbertson and D. Nitzsche Lecture Asset Price.
CIA Annual Meeting LOOKING BACK…focused on the future.
Monte-Carlo Simulations Seminar Project. Task  To Build an application in Excel/VBA to solve option prices.  Use a stochastic volatility in the model.
Valuing Stock Options:The Black-Scholes Model
Chapter 19 Monte Carlo Valuation. Copyright © 2006 Pearson Addison-Wesley. All rights reserved Monte Carlo Valuation Simulation of future stock.
S TOCHASTIC M ODELS L ECTURE 4 P ART II B ROWNIAN M OTIONS Nan Chen MSc Program in Financial Engineering The Chinese University of Hong Kong (Shenzhen)
OPTIONS PRICING AND HEDGING WITH GARCH.THE PRICING KERNEL.HULL AND WHITE.THE PLUG-IN ESTIMATOR AND GARCH GAMMA.ENGLE-MUSTAFA – IMPLIED GARCH.DUAN AND EXTENSIONS.ENGLE.
Applications of Stochastic Processes in Asset Price Modeling Preetam D’Souza.
Chapter 19 Monte Carlo Valuation. © 2013 Pearson Education, Inc., publishing as Prentice Hall. All rights reserved.19-2 Monte Carlo Valuation Simulation.
(joint work with Ai-ru Cheng, Ron Gallant, Beom Lee)
Chapter 19 Monte Carlo Valuation.
Basic simulation methodology
CS 179 Lecture 17 Options Pricing.
Mathematical Finance An Introduction
Monte Carlo Simulation
Lecture 2 – Monte Carlo method in finance
Andrei Iulian Andreescu
Monte Carlo Valuation Bahattin Buyuksahin, Celso Brunetti 12/8/2018.
Lecture 4 - Monte Carlo improvements via variance reduction techniques: antithetic sampling Antithetic variates: for any one path obtained by a gaussian.
Numerical Methods in Finance
Valuing Stock Options:The Black-Scholes Model
Presentation transcript:

© The MathWorks, Inc. ® ® Monte Carlo Simulations using MATLAB Vincent Leclercq, Application engineer

2 ® ® Agenda  Principles and uses cases for Monte Carlo methods  Using MATLAB toolbox for Monte Carlo simulations  Develop you own Monte Carlo engine  A quick overview of Variance reduction technics

3 ® ® An simple example  Compute the area of a lake  We shot N cannon balls  n balls out of the “lake”  N- n balls in the lake  One gets

4 ® ® Take outs  Results depends on :  random number generation (Mersenne Twister)  Number of simulations

5 ® ® Typical uses cases of Monte carlo in finance  Derivatives pricing  Risk  Structurer  Stochastic Asset Liability Management  …

6 ® ® General Principles  Estimation technique based on the simulation of a great number of random variables  Let’s consider  This can be seen as the expectation, with U being a uniform random variable on (0,1), ie U~(0,1)  We can estimate tis expectation using an empiric mean from random draws

7 ® ® General Principles, continued  We need to generate a sequence {U i } of random samples, which are independent (iid)  Then we can compute the empiric mean:  From the law of Great Numbers, one gets :  Variance :  Confidence interval : using a Gaussian approximation

8 ® ® Good points and drawbacks  Good points  Various application areas  Few hypothesis  Easy to develop  Drawbacks  Dependency to random number generator  Big variability (accuracy)  Computation time

9 ® ® Why MATLAB ?  Efficiency :  paths in less than 1 s  25 times fastest thanExcel  State of the Art Algorithms  Mersenne Twister  Linear algebra  Lots of statistical distributions supported (+ than 20)  Easy deployment

10 ® ® Agenda  Principles and uses cases for Monte Carlo methods  Using MATLAB toolbox for Monte Carlo simulations  Develop you own Monte Carlo engine  A quick overview of Variance reduction technics

11 ® ® Which tools for Monte Carlo simulations ?  MATLAB : Core linear algebra engine, matrix factorisation, …  Statistics toolbox : Random numbers, copulas, …  Financial toolbox :  Portsim :” Monte Carlo simulation of correlated asset returns”  GARCH Toolbox  garchsim

12 ® ® Financial toolbox : portsim  On a time interval, performances are driven by the following equation :  Time basis must be consistent for input parameters (drift and volatility)  Annual time basis -> dt in years  Daily time basis-> dt in days

13 ® ® Demo 1: Geometric brownian motion Lognormality of equity prices  Historical data input  Drift and volatility  Annually or Daily  Simulate paths on one year.  Compare results

14 ® ® Demo 2: Use the previous paths to price aVanilla option  Apply the option payoff  Vanilla -> No path dependancy  Compute the call price for different strikes  Compute the confidence intervals

15 ® ® GARCH Toolbox : garchsim Stochastic Volatility  Simulations of Auto Regressive models / GARCH  “Perform Monte Carlo simulation of univariate returns, innovations,and conditional volatilities”  Fitting (Adjust the model, garchfit function) and Simulation  Simulation, several possibilities:  Use of historic data (bootstrapping)  See Market Risk Using Bootstrapping and Filtered Historical SimulationMarket Risk Using Bootstrapping and Filtered Historical Simulation  Use of random variables

16 ® ® Agenda  Principles and uses cases for Monte Carlo methods  Using MATLAB toolbox for Monte Carlo simulations  Develop you own Monte Carlo engine  A quick overview of Variance reduction technics

17 ® ® What do I need for Monte Carlo ?  A good random number generator  Rand, randn -> several chocie possible for random number generation  Random (more than 20 distributions), copularnd -> Statistics toolbox  Linear algebra functions:  Cholesky factorization  cumsum

18 ® ® Process  Generate Random numbers  Directly from the statistical distribution  Through a uniform law  -> Allow the use of quasi random number generation  Apply the model (volatility, …)  Computation of the empiric mean  Confidence interval estimation

19 ® ® Demo Correlated Equities Simulation  Input :  Time : NDays  Number of different paths : NSimulation  Number of Assets : 2, NAssets with correlation  We know :  Volatility  Correlations  Output :  Matrice de NDays* NSimulation*NAssets  Preserved Correlations

20 ® ® Agenda  Principles and uses cases for Monte Carlo methods  Using MATLAB toolbox for Monte Carlo simulations  Develop you own Monte Carlo engine  A quick overview of Variance reduction technics

21 ® ® Variance Reduction  Why ?  Slow Convergence of Monte Carlo pricing  Need a great number of paths  Solution :  Use if various variance reduction methods  Several possible methods

22 ® ® Variance Reduction : Overview  Antithetic Variables  Efficient, easy to implement  Efficiency depends of the option (ex : Butterfly)  Control Variables  Use of a variable correlated to the one we want to estimate  Ex : Vanilla option Pricing  We canuse the close formula (Hulll) in order to compute the variance and the expected return of the underlying at maturity  We need to estimate the covariance between our control variable (the underlying) and the variable we want to estimate (option price)

23 ® ® Variance Reduction Overview (2/3)  Quasi Monte Carlo  Use of low discrepancy sequences  “quasi random” sequences  Halton sequences, Sobol sequences, …  Better Accuracy

24 ® ® Variance Reduction Overview (3/3)  Variance reduction using conditionning  Principle: Var(E[X]) < Var(E[X |Y])  Example : As You Like It option,  At time T1, one can exercise a put or call at time T2, with a given strike  At time T1, one can use Black Scholes closed formula to compute the call and put price -> Reduced Variance  Other techniques :  Importance sampling  Stratified sampling

25 ® ® Demonstration Vanilla option pricing using Variance Reduction  Several methodology used  Antithetic Variables  Quasi Monte Carlo (Halton / Sobol)  Control Variable  Results comparison

26 ® ® Variance Reduction, Key takeouts  Efficient, Generic method  Confidence intervals  Variance Reduction technics should be used wisely, depending on the product to price  Example : Antithetic for options Butterfly lead to an increase of the variance  Lots of research papers

27 ® ® General Conclusion  MATLAB allow users to quickly develop and test advanced Monte Carlo simulation  Very generic solution  New : a complete framework Monte Carlo simulation of Stochastic Differential Equations

28 ® ® Bibliography used  Paolo Brandimarte, Numerical Methods in finance and Economics, A MATLAB ®-based introduction, Second Edition  Several MATLAB examples  Paul Glasserman, Monte Carlo Methods in Financial Engineering  Quasi-Monte Carlo Simulation Quasi-Monte Carlo Simulation 

29 ® ®  Questions ?