ELEMENTS OF MONTE CARLO SIMULATION

Similar documents
Chapter 2 Uncertainty Analysis and Sampling Techniques

Math Computational Finance Option pricing using Brownian bridge and Stratified samlping

University of California Berkeley

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi

A First Course in Probability

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

Monte Carlo Methods for Uncertainty Quantification

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

TABLE OF CONTENTS - VOLUME 2

Math Option pricing using Quasi Monte Carlo simulation

FREDRIK BAJERS VEJ 7 G 9220 AALBORG ØST Tlf.: URL: Fax: Monte Carlo methods

Bias Reduction Using the Bootstrap

Corso di Identificazione dei Modelli e Analisi dei Dati

Math Computational Finance Double barrier option pricing using Quasi Monte Carlo and Brownian Bridge methods

Hand and Spreadsheet Simulations

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

[D7] PROBABILITY DISTRIBUTION OF OUTSTANDING LIABILITY FROM INDIVIDUAL PAYMENTS DATA Contributed by T S Wright

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

SIMULATION OF ELECTRICITY MARKETS

Continuous random variables

Results for option pricing

UNIT 4 MATHEMATICAL METHODS

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

Strategies for Improving the Efficiency of Monte-Carlo Methods

2.1 Mathematical Basis: Risk-Neutral Pricing

Week 7 Quantitative Analysis of Financial Markets Simulation Methods

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

Probability and Statistics

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

Random Variables and Probability Distributions

Section 3.1: Discrete Event Simulation

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

10. Monte Carlo Methods

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

Self-organized criticality on the stock market

Project Trainee : Abhinav Yellanki 5 th year Integrated M.Sc. Student Mathematics and Computing Indian Institute of Technology, Kharagpur

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

MONTE CARLO EXTENSIONS

Describing Uncertain Variables

Chapter 7 presents the beginning of inferential statistics. The two major activities of inferential statistics are

Introduction to Algorithmic Trading Strategies Lecture 8

F19: Introduction to Monte Carlo simulations. Ebrahim Shayesteh

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

Math 416/516: Stochastic Simulation

CPSC 540: Machine Learning

Computational Finance Least Squares Monte Carlo

Gamma. The finite-difference formula for gamma is

Computational Finance Improving Monte Carlo

Slides for Risk Management

Quasi-Monte Carlo for Finance

Module 4: Monte Carlo path simulation

Numerical schemes for SDEs

Introduction Recently the importance of modelling dependent insurance and reinsurance risks has attracted the attention of actuarial practitioners and

CPSC 540: Machine Learning

Lecture outline. Monte Carlo Methods for Uncertainty Quantification. Importance Sampling. Importance Sampling

Probability and distributions

Simulation Wrap-up, Statistics COS 323

Brooks, Introductory Econometrics for Finance, 3rd Edition

Institute of Actuaries of India Subject CT6 Statistical Methods

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

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

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

A Highly Efficient Shannon Wavelet Inverse Fourier Technique for Pricing European Options

IEOR E4703: Monte-Carlo Simulation

Distortion operator of uncertainty claim pricing using weibull distortion operator

SYLLABUS AND SAMPLE QUESTIONS FOR MSQE (Program Code: MQEK and MQED) Syllabus for PEA (Mathematics), 2013

Statistical Methods in Practice STAT/MATH 3379

Point Estimation. Stat 4570/5570 Material from Devore s book (Ed 8), and Cengage

Contents Critique 26. portfolio optimization 32

Simulation of probability distributions commonly used in hydrological frequency analysis

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

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

Computational Finance

CHAPTER 5 STOCHASTIC SCHEDULING

Using Halton Sequences. in Random Parameters Logit Models

King s College London

Statistics for Business and Economics

Diploma in Business Administration Part 2. Quantitative Methods. Examiner s Suggested Answers

,,, be any other strategy for selling items. It yields no more revenue than, based on the

Multilevel quasi-monte Carlo path simulation

TN 2 - Basic Calculus with Financial Applications

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

Practice Exercises for Midterm Exam ST Statistical Theory - II The ACTUAL exam will consists of less number of problems.

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

Time Observations Time Period, t

I. Time Series and Stochastic Processes

Section 8.2: Monte Carlo Estimation

2.1 Random variable, density function, enumerative density function and distribution function

The histogram should resemble the uniform density, the mean should be close to 0.5, and the standard deviation should be close to 1/ 12 =

SECOND EDITION. MARY R. HARDY University of Waterloo, Ontario. HOWARD R. WATERS Heriot-Watt University, Edinburgh

CHAPTERS 5 & 6: CONTINUOUS RANDOM VARIABLES

Commonly Used Distributions

Introduction to Sequential Monte Carlo Methods

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

MODELLING OF INCOME AND WAGE DISTRIBUTION USING THE METHOD OF L-MOMENTS OF PARAMETER ESTIMATION

Week 1 Quantitative Analysis of Financial Markets Distributions B

IEOR E4602: Quantitative Risk Management

Contents. An Overview of Statistical Applications CHAPTER 1. Contents (ix) Preface... (vii)

PROBABILITY. Wiley. With Applications and R ROBERT P. DOBROW. Department of Mathematics. Carleton College Northfield, MN

- 1 - **** d(lns) = (µ (1/2)σ 2 )dt + σdw t

Transcription:

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 Central Limit Theorem or the Law of Large Numbers, the sample mean can be used as an unbiased estimate of the mathematical expectation when the number of samples is large enough. The variance of the sample mean is an indicator of estimation accuracy. Take the application of Monte Carlo simulation to risk assessment as an example. Let U denote the unavailability or failure probability of a system and x i be the zero one indicator variable that can be obtained using a Monte Carlo simulation method: x i = if the sampled system state is a failed one x i = 0 if the sampled system state is a successful one The estimate of the system unavailability is given by the following sample mean: U = N x N i i= (B.) where N is the number of system state samples. The sample variance is defined as V(x) = N (x i U) 2 (B.2) N i= Risk Assessment of Power Systems. By Wenyuan Li 289 ISBN 0-47-6368-X 2005 the Institute of Electrical and Electronics Engineers, Inc.

290 ELEMENTS OF MONTE CARLO SIMULATION The estimated unavailability given in Equation (B.) is also a random variable that depends on the number of samples and the sampling process. The uncertainty around the estimate can be measured by the variance of the sample mean, which is defined as V(x) V(U) = = N (x i U) 2 (B.3) N N(N ) It can be seen that the sample variance V(x) given by Equation (B.2) and the variance of the sample mean V(U) given by Equation (B.3) are two different concepts and should not be confused with each other. The standard deviation of the sample mean is i= V (x ) = V (U ) = (B.4) N Equation (B.4) indicates that two measures can be used to reduce the standard deviation of the estimate in Monte Carlo simulation: increasing the number of samples or decreasing the sample variance. Many variance reduction techniques have been developed to improve the effectiveness of Monte Carlo simulation. It is important to appreciate that the variance cannot be reduced to zero in any case and, therefore, it is always necessary to consider a reasonable and sufficiently large number of samples. Monte Carlo simulation creates a fluctuating convergence process and there is no guarantee that a few more samples will definitely lead to a smaller error. It is true, however, that the error bound or confidence range decreases as the number of samples increases. The accuracy level of Monte Carlo simulation can be measured using the coefficient of variance, which is defined as the standard deviation of the estimate divided by the estimate: = V (U ) /U (B.5) The coefficient of variance is often used as a convergence criterion. B.2 RANDOM NUMBER GENERATORS Generating a random number is a key step in Monte Carlo simulation. Theoretically, a random number generated by a mathematical method is not really random and is called a pseudorandom number. In principle, a pseudorandom number sequence should be statistically tested to assure its randomness. B.2. Multiplicative Congruent Generator The multiplicative congruent generator is given by the following recursive relationship:

B.2 RANDOM NUMBER GENERATORS 29 x i+ = ax i (mod m) (B.6) where a is the multiplier and m is the modulus; a and m have to be nonnegative integers. The module notation (mod m) means that x i+ = ax i mk i (B.7) where k i = [ax i /m] denotes the largest positive integer in ax i /m. Given an initial value x 0 that is called a seed, Equation (B.6) generates a random number sequence which lies between [0, m]. A random number sequence uniformed distributed in the interval [0, ] can be obtained by R i = x i m (B.8) Obviously, the random number sequence generated using Equation (B.6) will repeat itself in at most m step and is periodic. If the repeat period equals m, it is called a full period. Different choices of the parameters a and m produce large impacts on the statistical features of random numbers. Based on many statistical tests, the following parameters provide satisfactory statistical features in generated random numbers: m = 2 3 a = 6807 or 63036006 The initial value x 0 is any odd number. B.2.2 Mixed Congruent Generator The mixed congruent generator is given by the following recursive relationship: x i + = (ax i + c)(mod m) (B.9) Compared to the multiplicative congruent generator, the new parameter c is added in the mixed congruent generator. The quantity c is called the increment and it also has to be a nonnegative integer. Statistical tests indicate that the following two sets of parameters provide satisfactory statistical features in generated random numbers: m = 2 3 m = 2 35 a = 3459269 a = 5 5 c = 453806245 c =

292 ELEMENTS OF MONTE CARLO SIMULATION B.3 INVERSE TRANSFORM METHOD OF GENERATING RANDOM VARIATES A random variate refers to a random number sequence following a given distribution. The two random number generators presented in Section B.2 generate the random number sequence following a uniform distribution between [0, ]. The methods for generating the random variates following other distributions can be classified into three categories: () inverse transform method, (2) composition method, and (3) acceptance rejection method. This section only covers the inverse transform method, which is most commonly used. The inverse transform method is based on the following proposition: If a random variate R follows a uniform distribution in the interval between [0, ], the random variate X = F (R) has a continuous cumulative probability distribution function F(x). The proposition can be generalized to the case of a discrete distribution, and in this case the inverse function is defined as X = F (R) = min{x : F(x) R} (0 R ) (B.0) The procedure of generating random variates using the inverse transform method is as follows: Generate a uniformly distributed random number sequence R between [0, ] Calculate the random variate which has the cumulative probability distribution function F(x) by X = F (R) For some random variates, the cumulative probability distribution function does not have the explicit expression of its inverse function. In this case, an approximate analytical expression is needed. B.4 IMPORTANT RANDOM VARIATES IN RISK EVALUATION B.4. Exponential Distribution Random Variate The cumulative probability distribution function of the exponential distribution is F(x) = e x (B.) A uniform distribution random number R is generated so that R = F(x) = e x (B.2)

B.4 IMPORTANT RANDOM VARIATES IN RISK EVALUATION 293 Using the inverse transform method, we have X = F (R) = ln( R) (B.3) Since ( R) distributes uniformly in the same way as R in the interval [0, ], Equation (B.3) equivalently becomes X = ln(r) (B.4) where R is a uniform distribution random number sequence and X follows the exponential distribution. B.4.2 Normal Distribution Random Variate There exists no analytical expression for the inverse function of the normal cumulative distribution function. The following approximate expression can be used. Given an area Q(z) under the normal density distribution curve as shown in Fig. A., the corresponding z can be calculated by [2] where and c 0 = 2.5557 c = 0.802853 c 2 = 0.00328 d =.432788 d 2 = 0.89269 d 3 = 0.00308 2 c i s i i=0 z = s + 3 d i s i i= s = 2 l n Q (B.5) (B.6) The maximum error of Equation (B.5) is smaller than 0.45 0 4. The algorithm for generating the normal distribution random variate is stated as follows: Step : Generate a uniform distribution random number sequence R between [0, ].

294 ELEMENTS OF MONTE CARLO SIMULATION Step 2: Calculate the normal distribution random variate X by z X = 0 z if 0.5 < R.0 if R = 0.5 if 0 R < 0.5 (B.7) where z is obtained from Equation (B.5) and Q in Equation (B.6) is given by Q = R R if 0.5 < R.0 if 0 R 0.5 (B.8) B.4.3 Log-Normal Distribution Random Variate According to the basic probability theory, if the random variable Y is a function of the random variable X, that is, y = y(x), then the probability density functions of Y and X have the following relationship: dx f(y) = f(x) dy (B.9) It can be proved from Equation (B.9) that if X follows the normal distribution, then Y = e X follows the log-normal distribution. The algorithm for generating the log-normal distribution random variate is as follows: Step : Generate a random variate Z following the standard normal distribution. Step 2: Let X = + Z, where and are the parameters in the density function of the log-normal distribution. Note that as mentioned in Section A.3.3, they are not the mean and standard deviation of the log-normal distribution. Step 3: Let Y = e X, where Y is a log-normally distributed random variate. B.4.4 Weibull Distribution Random Variate By using the inverse transform method, let a uniform distribution random number R equal the Weibull cumulative probability distribution function, which is given by Equation (A.28): x R = F(x) = exp (B.20) Equivalently, X = [ ln( R)] / (B.2)

B.4 IMPORTANT RANDOM VARIATES IN RISK EVALUATION 295 Since ( R) distributes uniformly in the same way as R in the interval [0, ], Equation (B.2) becomes X = ( ln R) / (B.22) The algorithm for generating the Weibull distribution random variate is as follows: Step : Generate a uniform distribution random number sequence R between [0, ]. Step 2: Calculate the Weibull distribution random variate X using Equation (B.22).