FE-W EMBAF Zvi Wiener 02-588-3049 Financial Engineering.

Slides:



Advertisements
Similar presentations
Sample Approximation Methods for Stochastic Program Jerry Shen Zeliha Akca March 3, 2005.
Advertisements

Structural reliability analysis with probability- boxes Hao Zhang School of Civil Engineering, University of Sydney, NSW 2006, Australia Michael Beer Institute.
Chapter 21 Value at Risk Options, Futures, and Other Derivatives, 8th Edition, Copyright © John C. Hull 2012.
FE-W EMBAF Zvi Wiener Financial Engineering.
Chapter 20 Basic Numerical Procedures
FE-W EMBAF Zvi Wiener Financial Engineering.
CF-4 Bank Hapoalim Jun-2001 Zvi Wiener Computational Finance.
FE-W EMBAF Zvi Wiener Financial Engineering.
Numerical Methods for Option Pricing
CF-3 Bank Hapoalim Jun-2001 Zvi Wiener Computational Finance.
FE-W EMBAF Zvi Wiener Financial Engineering.
FE-W EMBAF Zvi Wiener Financial Engineering.
QA-2 FRM-GARP Sep-2001 Zvi Wiener Quantitative Analysis 2.
FRM Zvi Wiener Following P. Jorion, Financial Risk Manager Handbook Financial Risk Management.
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.
FE-W EMBAF Zvi Wiener Financial Engineering.
FE-W EMBAF Zvi Wiener Financial Engineering.
Chapter 14 Simulation. Monte Carlo Process Statistical Analysis of Simulation Results Verification of the Simulation Model Computer Simulation with Excel.
Correlations and Copulas Chapter 10 Risk Management and Financial Institutions 2e, Chapter 10, Copyright © John C. Hull
RM HUJI-03 Zvi Wiener Financial Risk Management.
Fall-02 Investments Zvi Wiener tel: History of Interest Rates and.
5b.1 Van Horne and Wachowicz, Fundamentals of Financial Management, 13th edition. © Pearson Education Limited Created by Gregory Kuhlemeyer. Chapter.
Hedge with an Edge An Introduction to the Mathematics of Finance Riaz Ahmed & Adnan Khan Lahore Uviersity of Management Sciences Monte Carlo Methods.
Zheng Zhenlong, Dept of Finance,XMU Basic Numerical Procedures Chapter 19.
Lecture 7: Simulations.
Risk Management and Financial Institutions 2e, Chapter 13, Copyright © John C. Hull 2009 Chapter 13 Market Risk VaR: Model- Building Approach 1.
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.
Advanced Risk Management I Lecture 6 Non-linear portfolios.
FRM Zvi Wiener Following P. Jorion, Financial Risk Manager Handbook Financial Risk Management.
18.1 Options, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull Numerical Procedures Chapter 18.
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.
MONTE CARLO SIMULATION. Topics History of Monte Carlo Simulation GBM process How to simulate the Stock Path in Excel, Monte Carlo simulation and VaR.
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
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Basic Numerical Procedure
Estimating Credit Exposure and Economic Capital Using Monte Carlo Simulation Ronald Lagnado Vice President, MKIRisk IPAM Conference on Financial Mathematics.
Quasi-Monte Carlo Methods Fall 2012 By Yaohang Li, Ph.D.
Monte-Carlo Simulation. Mathematical basis The discounted price is a martingale (MA4257 and MA5248).
© The MathWorks, Inc. ® ® Monte Carlo Simulations using MATLAB Vincent Leclercq, Application engineer
© K.Cuthbertson, D. Nitzsche FINANCIAL ENGINEERING: DERIVATIVES AND RISK MANAGEMENT (J. Wiley, 2001) K. Cuthbertson and D. Nitzsche Lecture Asset Price.
Monte-Carlo Simulations Seminar Project. Task  To Build an application in Excel/VBA to solve option prices.  Use a stochastic volatility in the 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, Futures, and Other Derivatives, 5th edition © 2002 by John C. Hull 16.1 Value at Risk Chapter 16.
Options, Futures, and Other Derivatives, 4th edition © 1999 by John C. Hull 14.1 Value at Risk Chapter 14.
Chapter 13 Wiener Processes and Itô’s Lemma 1. Stochastic Processes Describes the way in which a variable such as a stock price, exchange rate or interest.
Chapter 19 Monte Carlo Valuation. © 2013 Pearson Education, Inc., publishing as Prentice Hall. All rights reserved.19-2 Monte Carlo Valuation Simulation.
Probabilistic Cash Flow Analysis
Chapter 19 Monte Carlo Valuation.
Basic simulation methodology
SDE & Statistics MiniCourse Topics List for the Exam
Chapter 4a Stochastic Modeling
Financial Risk Management
Market Risk VaR: Model-Building Approach
Monte Carlo Simulation
Chapter 4a Stochastic Modeling
Lecture 2 – Monte Carlo method in finance
Monte Carlo Valuation Bahattin Buyuksahin, Celso Brunetti 12/8/2018.
Chapter 14 Wiener Processes and Itô’s Lemma
Lecture 4 - Monte Carlo improvements via variance reduction techniques: antithetic sampling Antithetic variates: for any one path obtained by a gaussian.
The lognormal distribution
Presentation transcript:

FE-W EMBAF Zvi Wiener Financial Engineering

FE-W EMBAF Monte Carlo Simulations

Zvi WienerFE-Monte Carlo slide 3 Plan 1. Monte Carlo Method 2. Variance Reduction Methods 3. Quasi Monte Carlo 4. Permuting QMC sequences 5. Dimension reduction 6. Financial Applications simple and exotic options American type prepayments

Zvi WienerFE-Monte Carlo slide 4 Monte Carlo

Zvi WienerFE-Monte Carlo slide 5 Monte Carlo

Zvi WienerFE-Monte Carlo slide 6 Monte Carlo

Zvi WienerFE-Monte Carlo slide 7 Monte Carlo

Zvi WienerFE-Monte Carlo slide 8 Generating Normal Variables Very simple method of generating almost Normal random variables: p i are uniformly distributed between 0 and 1.

Zvi WienerFE-Monte Carlo slide 9 Multi dimensional random numbers Goal : to generate an n-dimensional vector each component of which is a normally distributed random number, with correlation matrix S. Cholesky factorization: S=MM T, where M is lower triangular, see example.

Zvi WienerFE-Monte Carlo slide 10 Cholesky factorization Needs["LinearAlgebra`Cholesky`"] s = Table[1/(i + j - 1), {i, 1, 4}, {j, 1, 4}]; Eigenvalues[N[s]]; u = CholeskyDecomposition[s]; u // MatrixForm MatrixForm[Transpose[u].u]

Zvi WienerFE-Monte Carlo slide 11 Monte Carlo in Risk Management Distribution of market factors Simulation of a large number of events P&L for each scenario Order the results VaR = lowest quantile

Zvi WienerFE-Monte Carlo slide 12 How to design MC The central point is to model the distribution of relevant risk factors. For example, in pricing you should use the risk-neutral distribution. For risk measurement use true distribution. What should be used for an estimate of frequency of hedge?

Zvi WienerFE-Monte Carlo slide 13 Geometrical Brownian Motion

Zvi WienerFE-Monte Carlo slide 14 Lognormal process

Zvi WienerFE-Monte Carlo slide 15 Euler Scheme

Zvi WienerFE-Monte Carlo slide 16 Milstein Scheme

Zvi WienerFE-Monte Carlo slide 17 MC for simple options Needs["Statistics`NormalDistribution`"] Clear[MCEuropean, MCEuropeanCall, MCEuropeanPut] nor[mu_,sig_]:=Random[NormalDistribution[mu,sig]];

Zvi WienerFE-Monte Carlo slide 18 MC for simple options MCEuropean[s_, T_, r_,  _, n_, exercise_Function]:= Module[{m = N[Log[s]+(r  2 )*T], sg=N[  Sqrt[T] ], tbl}, tbl= Table[nor[m, sg], {i, n}]; Exp[-r*T]*Map[exercise, Exp[Join[tbl, 2*m - tbl]]]// {Mean[#], StandardErrorOfSampleMean[#]}& ]

Zvi WienerFE-Monte Carlo slide 19 MC for simple options MCEuropeanCall[s_, x_, T_, r_,  _, n_]:= MCEuropean[s, T, r, , n, Max[#-x,0]&] MCEuropeanPut[s_, x_, T_, r_,  _, n_]:= MCEuropean[s, T, r, , n, Max[x-#,0]&]

Zvi WienerFE-Monte Carlo slide 20 MC for path dependent options RandomWalk[n_Integer] := FoldList[Plus, 0, Table[Random[] - 1/2, {n}]]; ListPlot[ RandomWalk[500], PlotJoined -> True];

Zvi WienerFE-Monte Carlo slide 21 MC for path dependent options The function paths generates a random sample of price paths for the averaging period. It returns a list of numberPaths random paths, each consisting of numberPrices prices over the period from time T1 to time T. The prices at the start of the period are given by the appropriate lognormal distribution for time T1.

Zvi WienerFE-Monte Carlo slide 22 MC for path dependent options paths[s_,sigma_,T1_,T_,r_,numberPrices_,numberPaths_]:= Module[{meanAtT1=Log[s]+(r-sigma^2/2)*T1, sigmaAtT1 = sigma*Sqrt[T1], meanPath = 1+ r*(T-T1)/(numberPrices-1), sigmaPath = sigma*Sqrt[(T-T1)/(numberPrices-1)] }, Table[NestList[# nor[meanPath,sigmaPath]&, Exp[nor[meanAtT1,sigmaAtT1]], numberPrices - 1], {i,numberPaths}] ]

Zvi WienerFE-Monte Carlo slide 23 MC for Asian options MCAsianCall[s_,x_,sigma_,T1_,T_,r_,numberPrices_,numberPaths_]:= Module[{ t1, t2, t3}, t1 = paths[s,sigma,T1,T,r,numberPrices,numberPaths] ; t2 = Map[Max[0,Mean[#] - x]&, t1]; t3 = Exp[-T*r]*t2; {Mean[t3], StandardErrorOfSampleMean[t3]} ]

Zvi WienerFE-Monte Carlo slide 24 Speed of convergence Whole circle Upper triangle

Zvi WienerFE-Monte Carlo slide 25 Smart Sampling

Zvi WienerFE-Monte Carlo slide 26 Spectral Truncation

Zvi WienerFE-Monte Carlo slide 27 Variance Reduction Let X(  ) be an option. Let Y be a similar option which is correlated with X but for which we have an analytic formula. Introduce a new random variable

Zvi WienerFE-Monte Carlo slide 28 Variance Reduction The variance of the new variable is If 2  cov[X,Y] >  2 var[Y] we have reduced the variance.

Zvi WienerFE-Monte Carlo slide 29 Variance Reduction The optimal value of  is Then the variance of the estimator becomes:

Zvi WienerFE-Monte Carlo slide 30 Variance Reduction Note that we do not have to use the optimal  * in order to get a significant variance reduction.

Zvi WienerFE-Monte Carlo slide 31 Multidimensional Variance Reduction A simple generalization of the method can be used when there are several correlated variables with known expected values. Let Y 1, …, Y n be variables with known means. Denote by  Y the covariance matrix of variables Y and by  XY the n-dimensional vector of covariances between X and Y i.

Zvi WienerFE-Monte Carlo slide 32 Multidimensional Variance Reduction Then the optimal projection on the Y plane is given by vector: The resulting minimum variance is where

Zvi WienerFE-Monte Carlo slide 33 Variance Reduction Antithetic sampling Moment matching/calibration Control variate Importance sampling Stratification

Zvi WienerFE-Monte Carlo slide 34 Quasi Monte Carlo Van der Corput Halton Haber Sobol Faure Niederreiter Permutations Nets

Zvi WienerFE-Monte Carlo slide 35 Quasi Monte Carlo Are efficient in low (1-2) dimensions. Sobol sequences can be used for small dimensions as well. As an alternative one can create a fixed set of well-distributed paths.

Zvi WienerFE-Monte Carlo slide 36 Do not use free sequences

Zvi WienerFE-Monte Carlo slide 37 Other MC applications Pricing Optimal hedging Impact of dividends Bounds on a basket Prepayments Tranches of MBS

Zvi WienerFE-Monte Carlo slide 38 Other MC related topics Use of analytical approximations Richardson extrapolation Ratchets example American properties Bundling Modeling Fat tails

Zvi WienerFE-Monte Carlo slide 39 Home Assignment Read chapter 26 in Wilmott. Read and understand the Excel file coming with this chapter. Calculate  using the method described in class. Calculate a value of a simple Call option using Monte Carlo method (design your spreadsheet).