Overview. Transformation method Rejection method. Monte Carlo vs ordinary methods. 1 Random numbers. 2 Monte Carlo integration.

Size: px
Start display at page:

Download "Overview. Transformation method Rejection method. Monte Carlo vs ordinary methods. 1 Random numbers. 2 Monte Carlo integration."

Transcription

1 Overview 1 Random numbers Transformation method Rejection method 2 Monte Carlo integration Monte Carlo vs ordinary methods 3 Summary

2 Transformation method Suppose X has probability distribution p X (x), take Y = f (X ). The probability of finding X in (x, x + dx) must be the same as the probability of finding Y in (y, y + dy), (where dy = f (x + dx) f (x)). p y (y)dy = p x (x)dx

3 Transformation method Suppose X has probability distribution p X (x), take Y = f (X ). The probability of finding X in (x, x + dx) must be the same as the probability of finding Y in (y, y + dy), (where dy = f (x + dx) f (x)). p y (y)dy = p x (x)dx Since p x (x), p Y (y) are both positive, this gives us p Y (y) f (x)dx = p x (x) dx = p Y (y) = p x(x) f (x) with f (x) = df (x) dx.

4 Obtaining a specific distribution We want a certain p y (y). What is y = f (x) if x is uniform? Inverting this gives us 1 f (x) = dx dy = x = = p(y) = dx = p(y)dy y y(x) = P 1 (x) We can find the transformation function if p(z)dz P(y) 1 we can integrate our distribution cumulative distribution P(y) 2 we can invert the cumulative distribution function analytically Very useful for scaling and shifting distributions

5 Shifting and scaling The transformation method is useful for shifting and scaling distributions: Y = X /a + b = p Y (y) = ap X (x) = ap X ( a(y b) ) Example X is gaussian with average 0 and variance 1. We want Y to be gaussian with average µ and variance σ 2, p Y (y) = 1 σ /2σ2 e (y µ)2 2π

6 Shifting and scaling The transformation method is useful for shifting and scaling distributions: Y = X /a + b = p Y (y) = ap X (x) = ap X ( a(y b) ) Example X is gaussian with average 0 and variance 1. We want Y to be gaussian with average µ and variance σ 2, We achieve this by Y = σx + µ p Y (y) = 1 σ /2σ2 e (y µ)2 2π

7 Shifting and scaling The transformation method is useful for shifting and scaling distributions: Y = X /a + b = p Y (y) = ap X (x) = ap X ( a(y b) ) Example X is gaussian with average 0 and variance 1. We want Y to be gaussian with average µ and variance σ 2, We achieve this by Y = σx + µ We can understand this intuitively: p Y (y) = 1 σ /2σ2 e (y µ)2 2π Multiplying by σ stretches or squeezes the distribution Adding µ shifts everything to the left or right

8 Gaussian random numbers We want a gaussian distribution P(y) = 1 2π e y 2 /2 But we have no closed expression for P(y)dy we certainly have no closed expression for the inverse! [Python s scipy package has functions erf and erfinv providing numerical approximations (in the scipy.special module).] A way around We can integrate two gaussian distributions, P(y 1, y 2 ) = 1 2π e (y 2 1 +y 2 2 )/2 = P(y 1 )P(y 2 )

9 Gaussian random numbers Transformation of two or more probability distributions: (x 1, x 2,...) P Y (y 1, y 2,...) = P X (x 1, x 2,...) (y 1, y 2,...) If we take X 1, X 2 uniform on 0, 1 and Y 1 = 2 ln X 1 cos(2πx 2 ) Y 2 = 2 ln X 1 sin(2πx 2 ) then Y 1, Y 2 are gaussian Note Python s numpy package has an inbuilt gaussian rng np.random.randn use the method above if you program in C/C++/Fortran/Java Avoid calls to ln, sin, cos,... as much as possible: they are slow!

10 Rejection method What if we cannot integrate or invert?

11 Rejection method What if we cannot integrate or invert? The shaded blue area is the prob of finding X between x and x + dx

12 Rejection method What if we cannot integrate or invert? The shaded blue area is the prob of finding X between x and x + dx Can we find a way of picking (X, Y ) uniformly distributed under the blue curve?

13 Rejection method What if we cannot integrate or invert? The shaded blue area is the prob of finding X between x and x + dx Can we find a way of picking (X, Y ) uniformly distributed under the blue curve? Assume we can do this for f (x). The ratio of areas is p(x)/f (x)

14 Rejection method What if we cannot integrate or invert? The shaded blue area is the prob of finding X between x and x + dx Can we find a way of picking (X, Y ) uniformly distributed under the blue curve? Assume we can do this for f (x). The ratio of areas is p(x)/f (x) Idea: Select points under the f (x) curve, reject those in the red shaded area

15 Rejection method Implementation 1 Pick uniform Z 0, A ; A = f (x)dx 2 Find X = F 1 (Z) 3 Pick random uniform Y 0, 1 4 If Y < p(x )/f (X ) then accept X as your random number else reject X and try again

16 Rejection method Implementation 1 Pick uniform Z 0, A ; A = f (x)dx 2 Find X = F 1 (Z) 3 Pick random uniform Y 0, 1 4 If Y < p(x )/f (X ) then accept X as your random number else reject X and try again Note: If p(x) is normalised, f (x) is not normalised. A is the total area under the curve, so f (x)/a is normalised F (x) = x f (ξ)dξ is the cumulative probability or the area under the curve up to x. Computing x = F 1 (z) is the transformation method for f (x) or f (x)/a. If you already have a generator for f (x)/a you can apply it directly.

17 Rejection method Simplest version: f (x) = const = sup p(x) just choose a uniform random number X x min, x max

18 Rejection method Simplest version: f (x) = const = sup p(x) just choose a uniform random number X x min, x max will not work when X is unbounded can have very high rejection rate for peaked distributions

19 Rejection method Simplest version: f (x) = const = sup p(x) just choose a uniform random number X x min, x max will not work when X is unbounded can have very high rejection rate for peaked distributions In physics we often have smallish perturbations on gaussian or exponential Example Generate a pseudo-random number with the distribution p(x) e x 1 + x 2, x > 0, assuming we already have a generator for the exponential distribution. Algorithm: 1 Generate an exponentially distributed number z. 2 Generate a standard uniform deviate u. 3 If u < 1/(1 + z 2 ), set x = z, otherwise go back to 1. 4 Repeat this to generate as many numbers x as you require.

20 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos

21 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers

22 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers Throw the dice, spin the roulette wheel, rake in the cash

23 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers Throw the dice, spin the roulette wheel, rake in the cash Three main types Direct Monte Carlo Monte Carlo integration Markov chain Monte Carlo

24 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers Throw the dice, spin the roulette wheel, rake in the cash Three main types Direct Monte Carlo model complicated or unknown processes by random numbers Stochastic dynamics, eg Brownian motion or traffic modelling Monte Carlo integration Markov chain Monte Carlo

25 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers Throw the dice, spin the roulette wheel, rake in the cash Three main types Direct Monte Carlo model complicated or unknown processes by random numbers Stochastic dynamics, eg Brownian motion or traffic modelling Monte Carlo integration calculate integrals using random numbers especially useful in many dimensions Markov chain Monte Carlo

26 Monte Carlo methods Monte Carlo is a town on the Mediterranean famous for its casinos Monte Carlo methods are numerical methods based on random numbers Throw the dice, spin the roulette wheel, rake in the cash Three main types Direct Monte Carlo model complicated or unknown processes by random numbers Stochastic dynamics, eg Brownian motion or traffic modelling Monte Carlo integration calculate integrals using random numbers especially useful in many dimensions Markov chain Monte Carlo generate statistical distributions using random walks a stalwart of many-particle physics

27 Monte Carlo integration We want to integrate a function f on interval [a, b]: I = b a f (x)dx Standard numerical integration (previous semester): divide [a, b] into N evenly spaced points x i evaluate f (x) of those points I = b a N N w i f (x i ) i=0

28 Monte Carlo integration We want to integrate a function f on interval [a, b]: I = b a f (x)dx Standard numerical integration (previous semester): divide [a, b] into N evenly spaced points x i evaluate f (x) of those points I = b a N N w i f (x i ) i=0 Monte Carlo integration Pick the points x i randomly!

29 But why?? It works! Take X to be uniformly distributed on [a, b] : p X (x) = 1/(b a)

30 But why?? It works! Take X to be uniformly distributed on [a, b] : p X (x) = 1/(b a) Then the expectation value of f (X ) is f p(ξ)f (ξ)dξ = 1 b f (ξ)dξ = b a a I b a

31 But why?? It works! Take X to be uniformly distributed on [a, b] : p X (x) = 1/(b a) Then the expectation value of f (X ) is Advantages f p(ξ)f (ξ)dξ = 1 b f (ξ)dξ = b a a I b a It works in arbitrary numbers of dimensions: fdv = V f It works for complicated boundaries

32 Computing π π is the area of the unit circle x 2 + y 2 < 1 π 4 is the area of the quadrant x 2 + y 2 < 1; x, y 0, 1

33 Computing π π is the area of the unit circle x 2 + y 2 < 1 π 4 is the area of the quadrant x 2 + y 2 < 1; x, y 0, 1 This can be written as a 2-dimensional integral: π 4 = = Θ ( 1 (x 2 + y 2 ) ) dxdy Θ ( 1 (x 2 + y 2 ) ) dxdy/ dxdy

34 Computing π π is the area of the unit circle x 2 + y 2 < 1 π 4 is the area of the quadrant x 2 + y 2 < 1; x, y 0, 1 This can be written as a 2-dimensional integral: π 4 = = Θ ( 1 (x 2 + y 2 ) ) dxdy Θ ( 1 (x 2 + y 2 ) ) dxdy/ dxdy Procedure 1 Generate N pairs of random numbers (x, y) 2 Add 1 each time x 2 + y 2 < 1 3 Divide by N to get the average 4 Multiply by 4, and you have π!

35 Error estimates The variance of a stochastic variable X is σ 2 X var X (X X ) 2 = X 2 X 2

36 Error estimates The variance of a stochastic variable X is σ 2 X var X (X X ) 2 = X 2 X 2 For our MC integral we get (b a ) 2 b a 2 σ 2 = f i f i N N i i (b [ a)2 1 = fi f i f j N f 2] N N N = = (b ( a)2 f N N (b ( a)2 f 2 + N i i j fi fj N f 2) i j N(N 1) f 2 N f 2) = N (b a)2 ( f 2 f 2) N In going from the second to the third line we have used that f i and f j are independent and uncorrelated.

37 Advantages in many dimensions In general: σ 2 = V 2 N ( f 2 f 2) the error decreases as 1 N

38 Advantages in many dimensions In general: σ 2 = V 2 N ( f 2 f 2) the error decreases as 1 N Standard numerical integration gives errors powers of the grid spacing, err δ 2 1 N, δ3 1 N 3,... Adding more points gives much faster improvement in accuracy than MC Not good for Monte Carlo in one dimension, but...

39 Advantages in many dimensions In general: σ 2 = V 2 N ( f 2 f 2) the error decreases as 1 N Standard numerical integration gives errors powers of the grid spacing, err δ 2 1 N, δ3 1 N 3,... Adding more points gives much faster improvement in accuracy than MC Not good for Monte Carlo in one dimension, but... In d dimensions N ( L δ )d so err N k/d The Monte Carlo error is still err N 1/2

40 Summary Random number distributions Transformation method when desired distribution integrable and invertible useful for scaling and shifting distributions

41 Summary Random number distributions Transformation method when desired distribution integrable and invertible useful for scaling and shifting distributions Rejection method works for any distribution

42 Summary Random number distributions Transformation method when desired distribution integrable and invertible useful for scaling and shifting distributions Rejection method works for any distribution Monte Carlo integration Integrate functions by randomly sampling points Errors decrease as 1/ N Superior for high-dimensional integrals

ELEMENTS OF MONTE CARLO SIMULATION

ELEMENTS OF MONTE CARLO SIMULATION APPENDIX B ELEMENTS OF MONTE CARLO SIMULATION B. GENERAL CONCEPT The basic idea of Monte Carlo simulation is to create a series of experimental samples using a random number sequence. According to the

More information

Monte Carlo Methods for Uncertainty Quantification

Monte Carlo Methods for Uncertainty Quantification Monte Carlo Methods for Uncertainty Quantification Abdul-Lateef Haji-Ali Based on slides by: Mike Giles Mathematical Institute, University of Oxford Contemporary Numerical Techniques Haji-Ali (Oxford)

More information

CPSC 540: Machine Learning

CPSC 540: Machine Learning CPSC 540: Machine Learning Monte Carlo Methods Mark Schmidt University of British Columbia Winter 2019 Last Time: Markov Chains We can use Markov chains for density estimation, d p(x) = p(x 1 ) p(x }{{}

More information

Chapter 2 Uncertainty Analysis and Sampling Techniques

Chapter 2 Uncertainty Analysis and Sampling Techniques Chapter 2 Uncertainty Analysis and Sampling Techniques The probabilistic or stochastic modeling (Fig. 2.) iterative loop in the stochastic optimization procedure (Fig..4 in Chap. ) involves:. Specifying

More information

CPSC 540: Machine Learning

CPSC 540: Machine Learning CPSC 540: Machine Learning Monte Carlo Methods Mark Schmidt University of British Columbia Winter 2018 Last Time: Markov Chains We can use Markov chains for density estimation, p(x) = p(x 1 ) }{{} d p(x

More information

Value at Risk Ch.12. PAK Study Manual

Value at Risk Ch.12. PAK Study Manual Value at Risk Ch.12 Related Learning Objectives 3a) Apply and construct risk metrics to quantify major types of risk exposure such as market risk, credit risk, liquidity risk, regulatory risk etc., and

More information

Monte Carlo Simulations in the Teaching Process

Monte Carlo Simulations in the Teaching Process Monte Carlo Simulations in the Teaching Process Blanka Šedivá Department of Mathematics, Faculty of Applied Sciences University of West Bohemia, Plzeň, Czech Republic CADGME 2018 Conference on Digital

More information

15 : Approximate Inference: Monte Carlo Methods

15 : Approximate Inference: Monte Carlo Methods 10-708: Probabilistic Graphical Models 10-708, Spring 2016 15 : Approximate Inference: Monte Carlo Methods Lecturer: Eric P. Xing Scribes: Binxuan Huang, Yotam Hechtlinger, Fuchen Liu 1 Introduction to

More information

10. Monte Carlo Methods

10. Monte Carlo Methods 10. Monte Carlo Methods 1. Introduction. Monte Carlo simulation is an important tool in computational finance. It may be used to evaluate portfolio management rules, to price options, to simulate hedging

More information

Market Volatility and Risk Proxies

Market Volatility and Risk Proxies Market Volatility and Risk Proxies... an introduction to the concepts 019 Gary R. Evans. This slide set by Gary R. Evans is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International

More information

Strategies for Improving the Efficiency of Monte-Carlo Methods

Strategies for Improving the Efficiency of Monte-Carlo Methods Strategies for Improving the Efficiency of Monte-Carlo Methods Paul J. Atzberger General comments or corrections should be sent to: paulatz@cims.nyu.edu Introduction The Monte-Carlo method is a useful

More information

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions. Random Variables 2 A random variable X is a numerical (integer, real, complex, vector etc.) summary of the outcome of the random experiment.

More information

PROBABILITY AND STATISTICS

PROBABILITY AND STATISTICS Monday, January 12, 2015 1 PROBABILITY AND STATISTICS Zhenyu Ye January 12, 2015 Monday, January 12, 2015 2 References Ch10 of Experiments in Modern Physics by Melissinos. Particle Physics Data Group Review

More information

Computational Finance

Computational Finance Path Dependent Options Computational Finance School of Mathematics 2018 The Random Walk One of the main assumption of the Black-Scholes framework is that the underlying stock price follows a random walk

More information

Quasi-Monte Carlo for Finance

Quasi-Monte Carlo for Finance Quasi-Monte Carlo for Finance Peter Kritzer Johann Radon Institute for Computational and Applied Mathematics (RICAM) Austrian Academy of Sciences Linz, Austria NCTS, Taipei, November 2016 Peter Kritzer

More information

Lecture 17: More on Markov Decision Processes. Reinforcement learning

Lecture 17: More on Markov Decision Processes. Reinforcement learning Lecture 17: More on Markov Decision Processes. Reinforcement learning Learning a model: maximum likelihood Learning a value function directly Monte Carlo Temporal-difference (TD) learning COMP-424, Lecture

More information

Results for option pricing

Results for option pricing Results for option pricing [o,v,b]=optimal(rand(1,100000 Estimators = 0.4619 0.4617 0.4618 0.4613 0.4619 o = 0.46151 % best linear combination (true value=0.46150 v = 1.1183e-005 %variance per uniform

More information

Generating Random Numbers

Generating Random Numbers Generating Random Numbers Aim: produce random variables for given distribution Inverse Method Let F be the distribution function of an univariate distribution and let F 1 (y) = inf{x F (x) y} (generalized

More information

Computational Finance Improving Monte Carlo

Computational Finance Improving Monte Carlo Computational Finance Improving Monte Carlo School of Mathematics 2018 Monte Carlo so far... Simple to program and to understand Convergence is slow, extrapolation impossible. Forward looking method ideal

More information

IEOR E4703: Monte-Carlo Simulation

IEOR E4703: Monte-Carlo Simulation IEOR E4703: Monte-Carlo Simulation Generating Random Variables and Stochastic Processes Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com

More information

MONTE CARLO EXTENSIONS

MONTE CARLO EXTENSIONS MONTE CARLO EXTENSIONS School of Mathematics 2013 OUTLINE 1 REVIEW OUTLINE 1 REVIEW 2 EXTENSION TO MONTE CARLO OUTLINE 1 REVIEW 2 EXTENSION TO MONTE CARLO 3 SUMMARY MONTE CARLO SO FAR... Simple to program

More information

4.2 Probability Distributions

4.2 Probability Distributions 4.2 Probability Distributions Definition. A random variable is a variable whose value is a numerical outcome of a random phenomenon. The probability distribution of a random variable tells us what the

More information

INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY. Lecture -5 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc.

INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY. Lecture -5 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc. INDIAN INSTITUTE OF SCIENCE STOCHASTIC HYDROLOGY Lecture -5 Course Instructor : Prof. P. P. MUJUMDAR Department of Civil Engg., IISc. Summary of the previous lecture Moments of a distribubon Measures of

More information

Numerical Simulation of Stochastic Differential Equations: Lecture 2, Part 2

Numerical Simulation of Stochastic Differential Equations: Lecture 2, Part 2 Numerical Simulation of Stochastic Differential Equations: Lecture 2, Part 2 Des Higham Department of Mathematics University of Strathclyde Montreal, Feb. 2006 p.1/17 Lecture 2, Part 2: Mean Exit Times

More information

6.1 Discrete & Continuous Random Variables. Nov 4 6:53 PM. Objectives

6.1 Discrete & Continuous Random Variables. Nov 4 6:53 PM. Objectives 6.1 Discrete & Continuous Random Variables examples vocab Objectives Today we will... - Compute probabilities using the probability distribution of a discrete random variable. - Calculate and interpret

More information

continuous rv Note for a legitimate pdf, we have f (x) 0 and f (x)dx = 1. For a continuous rv, P(X = c) = c f (x)dx = 0, hence

continuous rv Note for a legitimate pdf, we have f (x) 0 and f (x)dx = 1. For a continuous rv, P(X = c) = c f (x)dx = 0, hence continuous rv Let X be a continuous rv. Then a probability distribution or probability density function (pdf) of X is a function f(x) such that for any two numbers a and b with a b, P(a X b) = b a f (x)dx.

More information

Exam M Fall 2005 PRELIMINARY ANSWER KEY

Exam M Fall 2005 PRELIMINARY ANSWER KEY Exam M Fall 005 PRELIMINARY ANSWER KEY Question # Answer Question # Answer 1 C 1 E C B 3 C 3 E 4 D 4 E 5 C 5 C 6 B 6 E 7 A 7 E 8 D 8 D 9 B 9 A 10 A 30 D 11 A 31 A 1 A 3 A 13 D 33 B 14 C 34 C 15 A 35 A

More information

1. For a special whole life insurance on (x), payable at the moment of death:

1. For a special whole life insurance on (x), payable at the moment of death: **BEGINNING OF EXAMINATION** 1. For a special whole life insurance on (x), payable at the moment of death: µ () t = 0.05, t > 0 (ii) δ = 0.08 x (iii) (iv) The death benefit at time t is bt 0.06t = e, t

More information

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL

STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL STOCHASTIC CALCULUS AND BLACK-SCHOLES MODEL YOUNGGEUN YOO Abstract. Ito s lemma is often used in Ito calculus to find the differentials of a stochastic process that depends on time. This paper will introduce

More information

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091)

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091) Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091) Magnus Wiktorsson Centre for Mathematical Sciences Lund University, Sweden Lecture 3 Importance sampling January 27, 2015 M. Wiktorsson

More information

Random Variables Handout. Xavier Vilà

Random Variables Handout. Xavier Vilà Random Variables Handout Xavier Vilà Course 2004-2005 1 Discrete Random Variables. 1.1 Introduction 1.1.1 Definition of Random Variable A random variable X is a function that maps each possible outcome

More information

History of Monte Carlo Method

History of Monte Carlo Method Monte Carlo Methods History of Monte Carlo Method Errors in Estimation and Two Important Questions for Monte Carlo Controlling Error A simple Monte Carlo simulation to approximate the value of pi could

More information

2011 Pearson Education, Inc

2011 Pearson Education, Inc Statistics for Business and Economics Chapter 4 Random Variables & Probability Distributions Content 1. Two Types of Random Variables 2. Probability Distributions for Discrete Random Variables 3. The Binomial

More information

Write legibly. Unreadable answers are worthless.

Write legibly. Unreadable answers are worthless. MMF 2021 Final Exam 1 December 2016. This is a closed-book exam: no books, no notes, no calculators, no phones, no tablets, no computers (of any kind) allowed. Do NOT turn this page over until you are

More information

2.1 Mathematical Basis: Risk-Neutral Pricing

2.1 Mathematical Basis: Risk-Neutral Pricing Chapter Monte-Carlo Simulation.1 Mathematical Basis: Risk-Neutral Pricing Suppose that F T is the payoff at T for a European-type derivative f. Then the price at times t before T is given by f t = e r(t

More information

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing Prof. Chuan-Ju Wang Department of Computer Science University of Taipei Joint work with Prof. Ming-Yang Kao March 28, 2014

More information

IEOR E4703: Monte-Carlo Simulation

IEOR E4703: Monte-Carlo Simulation IEOR E4703: Monte-Carlo Simulation Other Miscellaneous Topics and Applications of Monte-Carlo Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com

More information

Statistical Computing (36-350)

Statistical Computing (36-350) Statistical Computing (36-350) Lecture 16: Simulation III: Monte Carlo Cosma Shalizi 21 October 2013 Agenda Monte Carlo Monte Carlo approximation of integrals and expectations The rejection method and

More information

MAS3904/MAS8904 Stochastic Financial Modelling

MAS3904/MAS8904 Stochastic Financial Modelling MAS3904/MAS8904 Stochastic Financial Modelling Dr Andrew (Andy) Golightly a.golightly@ncl.ac.uk Semester 1, 2018/19 Administrative Arrangements Lectures on Tuesdays at 14:00 (PERCY G13) and Thursdays at

More information

Discrete Random Variables

Discrete Random Variables Discrete Random Variables ST 370 A random variable is a numerical value associated with the outcome of an experiment. Discrete random variable When we can enumerate the possible values of the variable

More information

Rapid computation of prices and deltas of nth to default swaps in the Li Model

Rapid computation of prices and deltas of nth to default swaps in the Li Model Rapid computation of prices and deltas of nth to default swaps in the Li Model Mark Joshi, Dherminder Kainth QUARC RBS Group Risk Management Summary Basic description of an nth to default swap Introduction

More information

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

Posterior Inference. , where should we start? Consider the following computational procedure: 1. draw samples. 2. convert. 3. compute properties Posterior Inference Example. Consider a binomial model where we have a posterior distribution for the probability term, θ. Suppose we want to make inferences about the log-odds γ = log ( θ 1 θ), where

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Suhasini Subba Rao The binomial: mean and variance Recall that the number of successes out of n, denoted

More information

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

Equity correlations implied by index options: estimation and model uncertainty analysis 1/18 : estimation and model analysis, EDHEC Business School (joint work with Rama COT) Modeling and managing financial risks Paris, 10 13 January 2011 2/18 Outline 1 2 of multi-asset models Solution to

More information

Homework 1 posted, due Friday, September 30, 2 PM. Independence of random variables: We say that a collection of random variables

Homework 1 posted, due Friday, September 30, 2 PM. Independence of random variables: We say that a collection of random variables Generating Functions Tuesday, September 20, 2011 2:00 PM Homework 1 posted, due Friday, September 30, 2 PM. Independence of random variables: We say that a collection of random variables Is independent

More information

Central Limit Theorem, Joint Distributions Spring 2018

Central Limit Theorem, Joint Distributions Spring 2018 Central Limit Theorem, Joint Distributions 18.5 Spring 218.5.4.3.2.1-4 -3-2 -1 1 2 3 4 Exam next Wednesday Exam 1 on Wednesday March 7, regular room and time. Designed for 1 hour. You will have the full

More information

Chapter 4 Random Variables & Probability. Chapter 4.5, 6, 8 Probability Distributions for Continuous Random Variables

Chapter 4 Random Variables & Probability. Chapter 4.5, 6, 8 Probability Distributions for Continuous Random Variables Chapter 4.5, 6, 8 Probability for Continuous Random Variables Discrete vs. continuous random variables Examples of continuous distributions o Uniform o Exponential o Normal Recall: A random variable =

More information

Hand and Spreadsheet Simulations

Hand and Spreadsheet Simulations 1 / 34 Hand and Spreadsheet Simulations Christos Alexopoulos and Dave Goldsman Georgia Institute of Technology, Atlanta, GA, USA 9/8/16 2 / 34 Outline 1 Stepping Through a Differential Equation 2 Monte

More information

Financial Engineering and Structured Products

Financial Engineering and Structured Products 550.448 Financial Engineering and Structured Products Week of March 31, 014 Structured Securitization Liability-Side Cash Flow Analysis & Structured ransactions Assignment Reading (this week, March 31

More information

Introduction to Probability

Introduction to Probability August 18, 2006 Contents Outline. Contents.. Contents.. Contents.. Application: 1-d diffusion Definition Outline Consider M discrete events x = x i, i = 1,2,,M. The probability for the occurrence of x

More information

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Stochastic Differential Equations in Finance and Monte Carlo Simulations Stochastic Differential Equations in Finance and Department of Statistics and Modelling Science University of Strathclyde Glasgow, G1 1XH China 2009 Outline Stochastic Modelling in Asset Prices 1 Stochastic

More information

Chapter 5. Continuous Random Variables and Probability Distributions. 5.1 Continuous Random Variables

Chapter 5. Continuous Random Variables and Probability Distributions. 5.1 Continuous Random Variables Chapter 5 Continuous Random Variables and Probability Distributions 5.1 Continuous Random Variables 1 2CHAPTER 5. CONTINUOUS RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS Probability Distributions Probability

More information

Importance Sampling for Option Pricing. Steven R. Dunbar. Put Options. Monte Carlo Method. Importance. Sampling. Examples.

Importance Sampling for Option Pricing. Steven R. Dunbar. Put Options. Monte Carlo Method. Importance. Sampling. Examples. for for January 25, 2016 1 / 26 Outline for 1 2 3 4 2 / 26 Put Option for A put option is the right to sell an asset at an established price at a certain time. The established price is the strike price,

More information

Monte Carlo Simulations

Monte Carlo Simulations Is Uncle Norm's shot going to exhibit a Weiner Process? Knowing Uncle Norm, probably, with a random drift and huge volatility. Monte Carlo Simulations... of stock prices the primary model 2019 Gary R.

More information

Slides for Risk Management

Slides for Risk Management Slides for Risk Management Introduction to the modeling of assets Groll Seminar für Finanzökonometrie Prof. Mittnik, PhD Groll (Seminar für Finanzökonometrie) Slides for Risk Management Prof. Mittnik,

More information

Drunken Birds, Brownian Motion, and Other Random Fun

Drunken Birds, Brownian Motion, and Other Random Fun Drunken Birds, Brownian Motion, and Other Random Fun Michael Perlmutter Department of Mathematics Purdue University 1 M. Perlmutter(Purdue) Brownian Motion and Martingales Outline Review of Basic Probability

More information

Probability. An intro for calculus students P= Figure 1: A normal integral

Probability. An intro for calculus students P= Figure 1: A normal integral Probability An intro for calculus students.8.6.4.2 P=.87 2 3 4 Figure : A normal integral Suppose we flip a coin 2 times; what is the probability that we get more than 2 heads? Suppose we roll a six-sided

More information

A new approach for scenario generation in risk management

A new approach for scenario generation in risk management A new approach for scenario generation in risk management Josef Teichmann TU Wien Vienna, March 2009 Scenario generators Scenarios of risk factors are needed for the daily risk analysis (1D and 10D ahead)

More information

Calculating Implied Volatility

Calculating Implied Volatility Statistical Laboratory University of Cambridge University of Cambridge Mathematics and Big Data Showcase 20 April 2016 How much is an option worth? A call option is the right, but not the obligation, to

More information

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS Commun. Korean Math. Soc. 23 (2008), No. 2, pp. 285 294 EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS Kyoung-Sook Moon Reprinted from the Communications of the Korean Mathematical Society

More information

1 The continuous time limit

1 The continuous time limit Derivative Securities, Courant Institute, Fall 2008 http://www.math.nyu.edu/faculty/goodman/teaching/derivsec08/index.html Jonathan Goodman and Keith Lewis Supplementary notes and comments, Section 3 1

More information

CE 513: STATISTICAL METHODS

CE 513: STATISTICAL METHODS /CE 608 CE 513: STATISTICAL METHODS IN CIVIL ENGINEERING Lecture-1: Introduction & Overview Dr. Budhaditya Hazra Room: N-307 Department of Civil Engineering 1 Schedule of Lectures Last class before puja

More information

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 10: Continuous RV Families. Prof. Vince Calhoun

ECE 340 Probabilistic Methods in Engineering M/W 3-4:15. Lecture 10: Continuous RV Families. Prof. Vince Calhoun ECE 340 Probabilistic Methods in Engineering M/W 3-4:15 Lecture 10: Continuous RV Families Prof. Vince Calhoun 1 Reading This class: Section 4.4-4.5 Next class: Section 4.6-4.7 2 Homework 3.9, 3.49, 4.5,

More information

Stochastic Simulation

Stochastic Simulation Stochastic Simulation APPM 7400 Lesson 5: Generating (Some) Continuous Random Variables September 12, 2018 esson 5: Generating (Some) Continuous Random Variables Stochastic Simulation September 12, 2018

More information

Gamma. The finite-difference formula for gamma is

Gamma. The finite-difference formula for gamma is Gamma The finite-difference formula for gamma is [ P (S + ɛ) 2 P (S) + P (S ɛ) e rτ E ɛ 2 ]. For a correlation option with multiple underlying assets, the finite-difference formula for the cross gammas

More information

RMSC 4005 Stochastic Calculus for Finance and Risk. 1 Exercises. (c) Let X = {X n } n=0 be a {F n }-supermartingale. Show that.

RMSC 4005 Stochastic Calculus for Finance and Risk. 1 Exercises. (c) Let X = {X n } n=0 be a {F n }-supermartingale. Show that. 1. EXERCISES RMSC 45 Stochastic Calculus for Finance and Risk Exercises 1 Exercises 1. (a) Let X = {X n } n= be a {F n }-martingale. Show that E(X n ) = E(X ) n N (b) Let X = {X n } n= be a {F n }-submartingale.

More information

ASC Topic 718 Accounting Valuation Report. Company ABC, Inc.

ASC Topic 718 Accounting Valuation Report. Company ABC, Inc. ASC Topic 718 Accounting Valuation Report Company ABC, Inc. Monte-Carlo Simulation Valuation of Several Proposed Relative Total Shareholder Return TSR Component Rank Grants And Index Outperform Grants

More information

Basic Data Analysis. Stephen Turnbull Business Administration and Public Policy Lecture 4: May 2, Abstract

Basic Data Analysis. Stephen Turnbull Business Administration and Public Policy Lecture 4: May 2, Abstract Basic Data Analysis Stephen Turnbull Business Administration and Public Policy Lecture 4: May 2, 2013 Abstract Introduct the normal distribution. Introduce basic notions of uncertainty, probability, events,

More information

Quasi-Convex Stochastic Dynamic Programming

Quasi-Convex Stochastic Dynamic Programming Quasi-Convex Stochastic Dynamic Programming John R. Birge University of Chicago Booth School of Business JRBirge SIAM FM12, MSP, 10 July 2012 1 General Theme Many dynamic optimization problems dealing

More information

Using Monte Carlo Integration and Control Variates to Estimate π

Using Monte Carlo Integration and Control Variates to Estimate π Using Monte Carlo Integration and Control Variates to Estimate π N. Cannady, P. Faciane, D. Miksa LSU July 9, 2009 Abstract We will demonstrate the utility of Monte Carlo integration by using this algorithm

More information

Optimal Stopping for American Type Options

Optimal Stopping for American Type Options Optimal Stopping for Department of Mathematics Stockholm University Sweden E-mail: silvestrov@math.su.se ISI 2011, Dublin, 21-26 August 2011 Outline of communication Multivariate Modulated Markov price

More information

GENERATION OF STANDARD NORMAL RANDOM NUMBERS. Naveen Kumar Boiroju and M. Krishna Reddy

GENERATION OF STANDARD NORMAL RANDOM NUMBERS. Naveen Kumar Boiroju and M. Krishna Reddy GENERATION OF STANDARD NORMAL RANDOM NUMBERS Naveen Kumar Boiroju and M. Krishna Reddy Department of Statistics, Osmania University, Hyderabad- 500 007, INDIA Email: nanibyrozu@gmail.com, reddymk54@gmail.com

More information

Computer Exercise 2 Simulation

Computer Exercise 2 Simulation Lund University with Lund Institute of Technology Valuation of Derivative Assets Centre for Mathematical Sciences, Mathematical Statistics Fall 2017 Computer Exercise 2 Simulation This lab deals with pricing

More information

Chapter 6. Importance sampling. 6.1 The basics

Chapter 6. Importance sampling. 6.1 The basics Chapter 6 Importance sampling 6.1 The basics To movtivate our discussion consider the following situation. We want to use Monte Carlo to compute µ E[X]. There is an event E such that P(E) is small but

More information

EE641 Digital Image Processing II: Purdue University VISE - October 29,

EE641 Digital Image Processing II: Purdue University VISE - October 29, EE64 Digital Image Processing II: Purdue University VISE - October 9, 004 The EM Algorithm. Suffient Statistics and Exponential Distributions Let p(y θ) be a family of density functions parameterized by

More information

ECO220Y Continuous Probability Distributions: Normal Readings: Chapter 9, section 9.10

ECO220Y Continuous Probability Distributions: Normal Readings: Chapter 9, section 9.10 ECO220Y Continuous Probability Distributions: Normal Readings: Chapter 9, section 9.10 Fall 2011 Lecture 8 Part 2 (Fall 2011) Probability Distributions Lecture 8 Part 2 1 / 23 Normal Density Function f

More information

King s College London

King s College London King s College London University Of London This paper is part of an examination of the College counting towards the award of a degree. Examinations are governed by the College Regulations under the authority

More information

Reinforcement Learning and Simulation-Based Search

Reinforcement Learning and Simulation-Based Search Reinforcement Learning and Simulation-Based Search David Silver Outline 1 Reinforcement Learning 2 3 Planning Under Uncertainty Reinforcement Learning Markov Decision Process Definition A Markov Decision

More information

Limit Theorems for the Empirical Distribution Function of Scaled Increments of Itô Semimartingales at high frequencies

Limit Theorems for the Empirical Distribution Function of Scaled Increments of Itô Semimartingales at high frequencies Limit Theorems for the Empirical Distribution Function of Scaled Increments of Itô Semimartingales at high frequencies George Tauchen Duke University Viktor Todorov Northwestern University 2013 Motivation

More information

6 Central Limit Theorem. (Chs 6.4, 6.5)

6 Central Limit Theorem. (Chs 6.4, 6.5) 6 Central Limit Theorem (Chs 6.4, 6.5) Motivating Example In the next few weeks, we will be focusing on making statistical inference about the true mean of a population by using sample datasets. Examples?

More information

Economics 2010c: Lecture 4 Precautionary Savings and Liquidity Constraints

Economics 2010c: Lecture 4 Precautionary Savings and Liquidity Constraints Economics 2010c: Lecture 4 Precautionary Savings and Liquidity Constraints David Laibson 9/11/2014 Outline: 1. Precautionary savings motives 2. Liquidity constraints 3. Application: Numerical solution

More information

4 Random Variables and Distributions

4 Random Variables and Distributions 4 Random Variables and Distributions Random variables A random variable assigns each outcome in a sample space. e.g. called a realization of that variable to Note: We ll usually denote a random variable

More information

Heston Stochastic Local Volatility Model

Heston Stochastic Local Volatility Model Heston Stochastic Local Volatility Model Klaus Spanderen 1 R/Finance 2016 University of Illinois, Chicago May 20-21, 2016 1 Joint work with Johannes Göttker-Schnetmann Klaus Spanderen Heston Stochastic

More information

"Pricing Exotic Options using Strong Convergence Properties

Pricing Exotic Options using Strong Convergence Properties Fourth Oxford / Princeton Workshop on Financial Mathematics "Pricing Exotic Options using Strong Convergence Properties Klaus E. Schmitz Abe schmitz@maths.ox.ac.uk www.maths.ox.ac.uk/~schmitz Prof. Mike

More information

IEOR E4703: Monte-Carlo Simulation

IEOR E4703: Monte-Carlo Simulation IEOR E4703: Monte-Carlo Simulation Simulating Stochastic Differential Equations Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com

More information

Monte-Carlo Planning: Introduction and Bandit Basics. Alan Fern

Monte-Carlo Planning: Introduction and Bandit Basics. Alan Fern Monte-Carlo Planning: Introduction and Bandit Basics Alan Fern 1 Large Worlds We have considered basic model-based planning algorithms Model-based planning: assumes MDP model is available Methods we learned

More information

Random Variables and Probability Functions

Random Variables and Probability Functions University of Central Arkansas Random Variables and Probability Functions Directory Table of Contents. Begin Article. Stephen R. Addison Copyright c 001 saddison@mailaps.org Last Revision Date: February

More information

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values.

MA 1125 Lecture 14 - Expected Values. Wednesday, October 4, Objectives: Introduce expected values. MA 5 Lecture 4 - Expected Values Wednesday, October 4, 27 Objectives: Introduce expected values.. Means, Variances, and Standard Deviations of Probability Distributions Two classes ago, we computed the

More information

Time-changed Brownian motion and option pricing

Time-changed Brownian motion and option pricing Time-changed Brownian motion and option pricing Peter Hieber Chair of Mathematical Finance, TU Munich 6th AMaMeF Warsaw, June 13th 2013 Partially joint with Marcos Escobar (RU Toronto), Matthias Scherer

More information

Chapter 7. Random Variables

Chapter 7. Random Variables Chapter 7 Random Variables Making quantifiable meaning out of categorical data Toss three coins. What does the sample space consist of? HHH, HHT, HTH, HTT, TTT, TTH, THT, THH In statistics, we are most

More information

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going?

Part 1 In which we meet the law of averages. The Law of Averages. The Expected Value & The Standard Error. Where Are We Going? 1 The Law of Averages The Expected Value & The Standard Error Where Are We Going? Sums of random numbers The law of averages Box models for generating random numbers Sums of draws: the Expected Value Standard

More information

Financial Risk Forecasting Chapter 7 Simulation methods for VaR for options and bonds

Financial Risk Forecasting Chapter 7 Simulation methods for VaR for options and bonds Financial Risk Forecasting Chapter 7 Simulation methods for VaR for options and bonds Jon Danielsson 2017 London School of Economics To accompany Financial Risk Forecasting www.financialriskforecasting.com

More information

Tutorial 11: Limit Theorems. Baoxiang Wang & Yihan Zhang bxwang, April 10, 2017

Tutorial 11: Limit Theorems. Baoxiang Wang & Yihan Zhang bxwang, April 10, 2017 Tutorial 11: Limit Theorems Baoxiang Wang & Yihan Zhang bxwang, yhzhang@cse.cuhk.edu.hk April 10, 2017 1 Outline The Central Limit Theorem (CLT) Normal Approximation Based on CLT De Moivre-Laplace Approximation

More information

Section 7.5 The Normal Distribution. Section 7.6 Application of the Normal Distribution

Section 7.5 The Normal Distribution. Section 7.6 Application of the Normal Distribution Section 7.6 Application of the Normal Distribution A random variable that may take on infinitely many values is called a continuous random variable. A continuous probability distribution is defined by

More information

Introduction to Reinforcement Learning. MAL Seminar

Introduction to Reinforcement Learning. MAL Seminar Introduction to Reinforcement Learning MAL Seminar 2014-2015 RL Background Learning by interacting with the environment Reward good behavior, punish bad behavior Trial & Error Combines ideas from psychology

More information

Chapter 3 Common Families of Distributions. Definition 3.4.1: A family of pmfs or pdfs is called exponential family if it can be expressed as

Chapter 3 Common Families of Distributions. Definition 3.4.1: A family of pmfs or pdfs is called exponential family if it can be expressed as Lecture 0 on BST 63: Statistical Theory I Kui Zhang, 09/9/008 Review for the previous lecture Definition: Several continuous distributions, including uniform, gamma, normal, Beta, Cauchy, double exponential

More information

Section The Sampling Distribution of a Sample Mean

Section The Sampling Distribution of a Sample Mean Section 5.2 - The Sampling Distribution of a Sample Mean Statistics 104 Autumn 2004 Copyright c 2004 by Mark E. Irwin The Sampling Distribution of a Sample Mean Example: Quality control check of light

More information

Session 5. A brief introduction to Predictive Modeling

Session 5. A brief introduction to Predictive Modeling SOA Predictive Analytics Seminar Malaysia 27 Aug. 2018 Kuala Lumpur, Malaysia Session 5 A brief introduction to Predictive Modeling Lichen Bao, Ph.D A Brief Introduction to Predictive Modeling LICHEN BAO

More information

Introduction Dickey-Fuller Test Option Pricing Bootstrapping. Simulation Methods. Chapter 13 of Chris Brook s Book.

Introduction Dickey-Fuller Test Option Pricing Bootstrapping. Simulation Methods. Chapter 13 of Chris Brook s Book. Simulation Methods Chapter 13 of Chris Brook s Book Christopher Ting http://www.mysmu.edu/faculty/christophert/ Christopher Ting : christopherting@smu.edu.sg : 6828 0364 : LKCSB 5036 April 26, 2017 Christopher

More information

Lecture 2. David Aldous. 28 August David Aldous Lecture 2

Lecture 2. David Aldous. 28 August David Aldous Lecture 2 Lecture 2 David Aldous 28 August 2015 The specific examples I m discussing are not so important; the point of these first lectures is to illustrate a few of the 100 ideas from STAT134. Bayes rule. Eg(X

More information