Lecture 7: Simulations.

Slides:



Advertisements
Similar presentations
Copula Representation of Joint Risk Driver Distribution
Advertisements

Chapter 25 Risk Assessment. Introduction Risk assessment is the evaluation of distributions of outcomes, with a focus on the worse that might happen.
COMM 472: Quantitative Analysis of Financial Decisions
The Simple Regression Model
TK 6413 / TK 5413 : ISLAMIC RISK MANAGEMENT TOPIC 6: VALUE AT RISK (VaR) 1.
Introduction Data and simula- tion methodology VaR models and estimation results Estimation perfor- mance analysis Conclusions Appendix Doctoral School.
Lecture Presentation Software to accompany Investment Analysis and Portfolio Management Seventh Edition by Frank K. Reilly & Keith C. Brown Chapter.
Chapter 20 Basic Numerical Procedures
Pricing an Option Monte Carlo Simulation. We will explore a technique, called Monte Carlo simulation, to numerically derive the price of an option or.
Materials for Lecture 13 Purpose summarize the selection of distributions and their appropriate validation tests Explain the use of Scenarios and Sensitivity.
Linear and generalised linear models
Risk, Return, and Discount Rates Capital Market History The Risk/Return Relation Applications to Corporate Finance.
Correlations and Copulas Chapter 10 Risk Management and Financial Institutions 2e, Chapter 10, Copyright © John C. Hull
Linear and generalised linear models
Basics of regression analysis
Linear and generalised linear models Purpose of linear models Least-squares solution for linear models Analysis of diagnostics Exponential family and generalised.
Autocorrelation Lecture 18 Lecture 18.
Estimation Error and Portfolio Optimization Global Asset Allocation and Stock Selection Campbell R. Harvey Duke University, Durham, NC USA National Bureau.
Lecture II-2: Probability Review
Correlations and Copulas 1. Measures of Dependence 2 The risk can be split into two parts: the individual risks and the dependence structure between them.
Options, Futures, and Other Derivatives 6 th Edition, Copyright © John C. Hull Chapter 18 Value at Risk.
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.
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.
Alternative Measures of Risk. The Optimal Risk Measure Desirable Properties for Risk Measure A risk measure maps the whole distribution of one dollar.
Investment Analysis and Portfolio management Lecture: 24 Course Code: MBF702.
Investment Analysis and Portfolio Management Chapter 7.
Simulating the value of Asian Options Vladimir Kozak.
LECTURE 22 VAR 1. Methods of calculating VAR (Cont.) Correlation method is conceptually simple and easy to apply; it only requires the mean returns and.
Chapter 13 Wiener Processes and Itô’s Lemma
Elements of Financial Risk Management Second Edition © 2012 by Peter Christoffersen 1 Distributions and Copulas for Integrated Risk Management Elements.
Two Approaches to Calculating Correlated Reserve Indications Across Multiple Lines of Business Gerald Kirschner Classic Solutions Casualty Loss Reserve.
Lecture 6: Value At Risk Part 2. What we will learn in this lecture A recap on the end of last weeks lecture How we can extend our ideas of mean and variance.
Module 1: Statistical Issues in Micro simulation Paul Sousa.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
Multivariate Statistics Matrix Algebra I W. M. van der Veld University of Amsterdam.
Basic Numerical Procedures Chapter 19 1 Options, Futures, and Other Derivatives, 7th Edition, Copyright © John C. Hull 2008.
Value at Risk Chapter 16. The Question Being Asked in VaR “What loss level is such that we are X % confident it will not be exceeded in N business days?”
Elements of Financial Risk Management Second Edition © 2012 by Peter Christoffersen 1 Simulating the Term Structure of Risk Elements of Financial Risk.
Risk Analysis & Modelling Lecture 2: Measuring Risk.
Monte-Carlo Simulation. Mathematical basis The discounted price is a martingale (MA4257 and MA5248).
Risk Analysis & Modelling
© The MathWorks, Inc. ® ® Monte Carlo Simulations using MATLAB Vincent Leclercq, Application engineer
Simulation is the process of studying the behavior of a real system by using a model that replicates the system under different scenarios. A simulation.
CIA Annual Meeting LOOKING BACK…focused on the future.
Copyright © 2009 Pearson Prentice Hall. All rights reserved. Chapter 8 Investor Choice: Risk and Reward.
Robert Engle UCSD and NYU and Robert F. Engle, Econometric Services DYNAMIC CONDITIONAL CORRELATIONS.
Monte-Carlo Simulations Seminar Project. Task  To Build an application in Excel/VBA to solve option prices.  Use a stochastic volatility in the model.
 Measures the potential loss in value of a risky asset or portfolio over a defined period for a given confidence interval  For example: ◦ If the VaR.
Value at Risk Chapter 20 Options, Futures, and Other Derivatives, 7th International Edition, Copyright © John C. Hull 2008.
Risk Analysis Simulate a scenario of possible input values that could occur and observe key financial impacts Pick many different input scenarios according.
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 7 An Introduction to Portfolio Management.
Lecture 3 Types of Probability Distributions Dr Peter Wheale.
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.
1 Lecture Plan Modelling Profit Distribution from Wind Production (Excel Case: Danish Wind Production and Spot Prices) Reasons for copula.
1 VaR Models VaR Models for Energy Commodities Parametric VaR Historical Simulation VaR Monte Carlo VaR VaR based on Volatility Adjusted.
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.
Types of risk Market risk
The Three Common Approaches for Calculating Value at Risk
Market-Risk Measurement
Basic simulation methodology
Portfolio Risk Management : A Primer
Types of risk Market risk
Monte Carlo Simulation
Estimation Error and Portfolio Optimization
Estimation Error and Portfolio Optimization
Presentation transcript:

Lecture 7: Simulations

What will we cover in this lecture A introduction to the idea and concept of stochastic simulation A look at the 2 main methods of stochastic simulation: Bootstrapping & Monte Carlo Simulation A look at the use of these methods in the calculation of risk

The Idea Behind Simulations Simulations are basically the idea of simulating a set of possible future outcomes or ‘realisations’ Each ‘future’ realisation is just one possibility of what may occur in the future By generating many possible future realisations we can assess the range of future outcomes In an earlier lecture we simulated a possible path for stock prices by generating a set of possible future returns from a normal distribution This was an example of a univariate simulation (a simulation of one variable)

The Idea of a Simulation Possible Range Of Future Prices Current Price Price Time Possible Future Price Paths

Useful Simulations For a simulation to be useful the paths generated must reflect the behaviour of the asset/liabilities we are simulating Each randomly generated future path will then represent a ‘possible’ future outcome The basis for both our Bootstrapping and Monte Carlo Simulations will be the Brownian Motion Process we have been using so far

Brownian Motion Process Time Value ? At each step the proportional change in the value is a random variable from a distribution

Bootstrapping: A simple & powerful approach Bootstrapping is based on a very simple idea: that we can use past observations as a bag from which we randomly sample to create possible future outcomes! The premise is a simple one: all of our past observations were sampled from a given distribution and all future observations will also be sampled from this same distribution Instead of having to estimate the underlying distribution and then sampling random variables from it we directly sample from our past observations which are representative

Bootstrapping Idea Directly Observed Past Outcome Simulated Future Outcome The Past Outcomes Represent A Random Sample From The Distribution, We Don’t Care About This Distribution! The Simulated Future Outcome Is A Random Sample Of The Past Outcomes ?

Univariate Bootstrap Univariate Bootstrap is the generation of a possible path for a single simultaneous random process We generate a pool of observations from the process’s historic behaviour We then generate a future path by randomly sampling from this pool of observations

An Example: Bootstrapping a stock price If we assume that the continuously compounded return of the stock price each day is sampled from a constant distribution then we can generate future price paths Firstly we build up our pool of past daily returns by calculating the implied return from the price history Secondly we randomly sample from this pool to generate a possible future path

Bootstrapping Stock Price Time Price Time Price Historic Price Path Simulated Future Price Path Pool of Daily Returns From Historic Observation Randomly Select From Pool To Generate Future Path

Multivariate Bootstrapping It is equally possible to simultaneously generate future paths for multiple correlated processes Like our univariate bootstrap we build up a pool of observations from the past We maintain any correlations by grouping simtaneous observations together Any correlations will be captured in these linked historic observations When we randomly sample from the pool to generate the future paths we preserve these groupings

Bivariate Bootstrap Time Price Time Price Time Price Time Price The pool is made up of linked pairs which were observed simultaneously

What if we do not preserve the grouping of simultaneous observations? If we do not keep the groups then we cannot expect our generated paths to reflect any correlations If we have strong reason to believe that there is no correlation between the processes then we might break apart the observations and sample them completely randomly We might do this to increase the size of our ‘pool’

Bootstrapping Is Very Powerful The power of bootstrapping is that it does not rely on any statistical assumptions All it says is that the future will be sampled from the same distribution as the past We need a large sample of historic observations to build up a large pool The assumption that the future will come from the same distribution as the past is crucial and requires a stationary series This simple bootstrapping technique does not capture serial correlation across time.

Bootstrapping in Excel For practical usage bootstrapping is better suited to a programming language such as VBA, or a specialist tool The exercise book for this lecture contains an array function called “bootstrap” bootstrap will take an input range and reorder it randomly bootstrap is an array formula for which an output range must be selected and ctrl-shift-enter must be used to enter it!

Monte Carlo Simulation The Monte Carlo Simulation generates random numbers from probability distribution rather than pools of historic observations We will focus on Monte Carlo Simulations based about the normal distribution We will see how we can use the Covariance matrix to generate multivariate Monte Carlo Simulations

Univariate Monte Carlo Simulations By generating random variables sampled from a normal distribution it is possible to generate a brownian motion paths based on this sequence of random numbers In the example of the stock price if the return is normally distributed with mean  and standard deviation  then by generating returns from a distribution with these properties we can generate a possible path for this stock The most common method for generating normal random numbers is Box-Muller, and we will use Excel’s built in facility

Stock Price Simulation In the case where the stock price is generated from the following process: By generating a sequence of random variables r we can generate a future path for P This would be an example of a univariate Monte Carlo Simulation

Univariate Stock Price Simulation Time Price Randomly Sampled Returns From Normal Distribution Randomly generated feasible path

Multivariate Monte Carlo Simulation A multivariate Monte Carlo Simulation is where we sample random values from a multivariate distribution which captures the various correlations So if 2 assets have a strong correlation we want to see strong correlations in the random numbers we generate There is a set method which allows us to generate a set of ‘correlated’ normally distributed random variables using the covariance matrix

What we would like We have described the statistical properties of returns using the expectation vector and the covariance matrix. We would like to generate sets of random numbers that match this expected return vector and covariance matrix We could then generate simultaneous paths for the various assets/liabilities described by these statistics

The Basis of Multivariate Monte Carlo: The Cholesky Decomposition The Cholesky decomposition of the covariance matrix will allow us to generate sets of random variables described by the covariance matrix The Cholesky decomposition is sometimes called the square root of a matrix It takes the form: Where CV is the covariance matrix and C is the cholesky decomposition. C is a lower diagonal matrix and of the same dimensions as CV The Cholesky decomposition only exists for positive definite matrices.

Cholesky Decomposition Example =* CV CCTCT

The Cholesky Transformation Image we have 2 random variables A and B each of which are sampled from a standard normal distribution (mean 0, standard deviation 1). We will put these in a vector S (S for stochastic) We would like to transform these variables to random variables sampled from a distribution with mean, variance and covariance described by the following: ER A ER B R=CV= Var A Cov A,B Var B A B S=

Firstly we perform the Cholesky decomposition on the covariance matrix to obtain C Then we simply perform the following Cholesky transformation Where S’ is a vector of transformed random variables sampled from a distribution described by R and CV A’ B’ S’= Where A’ will have mean ER A and variance Var A, B’ will have mean ER B and variance Var B, and A’ and B’ will have Covariance Cov A,B

Cholesky Transformation Graphic AB……YZ Input a vector of uncorrelated random variable with mean 0 and variance 1 Cholesky Transformation A’B’……Y’Z’ Output a vector of correlated random variable with mean,variance and covariance described by the covariance matrix and the expected vector

Cholesky Factorisations in Excel Cholesky Factorisations are not provided by Excel’s built in matrix support The class workbook comes with a VBA macro that will perform this factorisation for you, it is an array function called cholesky

Multivariate Monte Carlo Simulation Using the Cholesky Transformation we can generate sets of correlated random numbers Using these sets of correlated random numbers we can generate simultaneous future paths for correlated processes These simulated paths make up one possible future outcome in our Monte Carlo Simulation Monte Carlo Simulations use 1000’s or even ’s of possible future outcomes to build up a picture of the range of future possibilities

Graphic: Bivariate Monte Carlo Simulation Correlated sets of random numbers Time Value

General Multivariate Monte Carlo Algorithm 1) Decompose the covariance matrix VC into its Cholesky decomposition C 2) Generate a vector of N unit variate normal random number, where N is the dimensions of the simulation 3) Multiply the decomposition C by the vector N to get a result vector X 4) Add the vector X to the expected return vector R to get a vector V which contains the fully transformed random variables 5) Add transformed vector V to the set of transformed vectors S 6) If S contains less than the desired number of random variables then goto step 2

The montecarlo macro Embedded in the exercise spreadsheets there is a VBA macro which runs the Monte Carlo algorithm It take two parameters: first the range specifying the covariance matrix, second the range specifying the expected return vector From these inputs it outputs a set of random variables sampled from a distribution described by the covariance matrix and expected vector in a range specified by the user It is important to remember to specify one column for every random variate you want to generate and press ctrl-shift-enter to tell the computer it is an array formula!

Stochastic Boundaries And Monte Carlo Simulations In early lectures we looked at placing boundaries on the behaviour of a stochastic process These boundaries are linked to Monte Carlo Simulations in that we expect only 5% or 2.5% of simulations to be outside the respective diffusion boundary

Diffusion Boundary vs Monte Carlo Possible Paths Only 2.5% of paths will break above the 2.5% upper boundary Time Value

Uses of Simulation Simulations have many uses and allow us to avoid a lot of complex mathematics People think you are a rocket scientist if you know about Monte Carlo Simulations One example would be an alternative approach to calculating the Value-At-Risk We would generate say 100 future paths for a portfolio’s value by generating a set of 100 simultaneous future paths for each of the assets it contains using either a Monte Carlo or Bootstrap simulation Out of this 100 we would take the worst 5 or 5% to calculate the 5% VaR

VaR Using Simulation Portfolio Value Time Take the worst 5% of simulated values as 5% VaR

Option VaR Using Monte Carlo Simulations One particular use of Monte Carlo simulation is the accurate calculation of VaR on non-linear portfolios containing options We generate 100s of possible paths for the assets on which the options are written and look at the value of the option in each state We then take the worst 5% or 2.5% of outcomes to calculate the portfolio 5% or 2.5% VaR

Appendix Cholesky Transformation: A Proof It is important to note that if we have a vector of stochastic variables S with mean zero, then the E(S.S T ) = CV: A B AB = A.AA.B B.AB.B E E = Var(A)Cov(A,B) Var(B) If we perform the Cholesky transformation on a vector of standard normal variables, and assume the expectation remains 0:

Now Taking expectations: Since S is a vector of unit normal variables E(S.S T ) will be the identity matrix (why?) So the transformed random variables will have variance and covariance described by the covariance matrix C was decomposed from.