GENERATING NON-UNIFORM RANDOM DEVIATES

Slides:



Advertisements
Similar presentations
Stats for Engineers Lecture 5
Advertisements

 1  Outline  terminating and non-terminating systems  analysis of terminating systems  generation of random numbers  simulation by Excel  a terminating.
CPSC 531:Random-Variate Generation
Chapter 8 Random-Variate Generation
Use of moment generating functions. Definition Let X denote a random variable with probability density function f(x) if continuous (probability mass function.
Probability Distribution
Review of Basic Probability and Statistics
Chapter 1 Probability Theory (i) : One Random Variable
Random-Variate Generation. Need for Random-Variates We, usually, model uncertainty and unpredictability with statistical distributions Thereby, in order.
Simulation Modeling and Analysis
Probability Distributions Finite Random Variables.
Today Today: Chapter 5 Reading: –Chapter 5 (not 5.12) –Suggested problems: 5.1, 5.2, 5.3, 5.15, 5.25, 5.33, 5.38, 5.47, 5.53, 5.62.
1 Review of Probability Theory [Source: Stanford University]
A gentle introduction to Gaussian distribution. Review Random variable Coin flip experiment X = 0X = 1 X: Random variable.
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
Probability and Statistics Review
28-1 ©2006 Raj Jain Random Variate Generation.
Properties of Random Numbers
Discrete and Continuous Distributions G. V. Narayanan.
A Review of Probability Models
0 Simulation Modeling and Analysis: Input Analysis K. Salah 8 Generating Random Variates Ref: Law & Kelton, Chapter 8.
Chapter 5 Statistical Models in Simulation
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
Commonly Used Distributions Andy Wang CIS Computer Systems Performance Analysis.
Moment Generating Functions
Binomial Distributions Calculating the Probability of Success.
Random Sampling, Point Estimation and Maximum Likelihood.
Chapter 10 – Sampling Distributions Math 22 Introductory Statistics.
LECTURE 25 SIMULATION AND MODELING Md. Tanvir Al Amin, Lecturer, Dept. of CSE, BUET CSE 411.
Convergence in Distribution
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
Chapter 7 Sampling and Sampling Distributions ©. Simple Random Sample simple random sample Suppose that we want to select a sample of n objects from a.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
Using the Tables for the standard normal distribution.
Week 121 Law of Large Numbers Toss a coin n times. Suppose X i ’s are Bernoulli random variables with p = ½ and E(X i ) = ½. The proportion of heads is.
Chapter 8 Random-Variate Generation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
By Satyadhar Joshi. Content  Probability Spaces  Bernoulli's Trial  Random Variables a. Expectation variance and standard deviation b. The Normal Distribution.
Random Variables Example:
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U.
Chapter 31Introduction to Statistical Quality Control, 7th Edition by Douglas C. Montgomery. Copyright (c) 2012 John Wiley & Sons, Inc.
Central Limit Theorem Let X 1, X 2, …, X n be n independent, identically distributed random variables with mean  and standard deviation . For large n:
Chapter 6 Large Random Samples Weiqi Luo ( 骆伟祺 ) School of Data & Computer Science Sun Yat-Sen University :
Binomial Distributions Chapter 5.3 – Probability Distributions and Predictions Mathematics of Data Management (Nelson) MDM 4U Authors: Gary Greer (with.
Generating Random Variates
Sampling and Sampling Distributions
Random number generation
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
Supplemental Lecture Notes
EMIS 7300 SYSTEMS ANALYSIS METHODS FALL 2005
Random Variable 2013.
ASV Chapters 1 - Sample Spaces and Probabilities
Functions and Transformations of Random Variables
Expectations of Random Variables, Functions of Random Variables
Keller: Stats for Mgmt & Econ, 7th Ed
Chapter 5 Joint Probability Distributions and Random Samples
Random Variates 2 M. Overstreet Spring 2005
Chapter 4 Continuous Random Variables and Probability Distributions
Sampling Distribution of the Sample Mean
ASV Chapters 1 - Sample Spaces and Probabilities
Random-Variate Generation
Probability Review for Financial Engineers
Chapter 18 – Central Limit Theorem
The Binomial Distribution
Using the Tables for the standard normal distribution
Example Suppose X ~ Uniform(2, 4). Let . Find .
GENERATING NON-UNIFORM RANDOM DEVIATES
Chapter 8 Random-Variate Generation
ASV Chapters 1 - Sample Spaces and Probabilities
Chapter 3 : Random Variables
Generating Random Variates
Presentation transcript:

GENERATING NON-UNIFORM RANDOM DEVIATES 1/1/2019 VMASC MSIM 710/810

INTRO X is a random variable with non-uniform distribution F(x) = Prob[X <= x] Inter-arrival time (exponential) Heights of basketball players (triangular) Target location error (2-D Normal) Failure time (Weibull) Coin flips before H-H-H (Geometric) Dice Rolls (Binomial) Drawing an “Out” (Bernoulli) 1/1/2019 VMASC MSIM 710/810

BASICS Generate one or more independent U[0, 1] Create sample of X using these as input Use few Uniforms Be Fast Be Simple Be EXACT (we’ll relax this later) 1/1/2019 VMASC MSIM 710/810

INVERSE TRANSFORM METHOD Generate U~U[0, 1] Find x such that F(x) = U, return x F(x) = P[X <= x] Since F is a monotonically increasing function in x, we can reliably use F-1 F-1(U) = x 1/1/2019 VMASC MSIM 710/810

INVERSE TRANSFORM METHOD PROOF! 1/1/2019 VMASC MSIM 710/810

PROOF BY PICTURE 1/1/2019 VMASC MSIM 710/810

EXAMPLE Weibull (a = 1.5, b = 6) example 1/1/2019 VMASC MSIM 710/810

WEIBULL 1/1/2019 VMASC MSIM 710/810

WEIBULL Trickeration: 1-U and U are identically distributed 1/1/2019 VMASC MSIM 710/810

SPECIAL CASE: EXPONENTIALS Exponential = Weibull with… b = 1/l a = 1 X = -1/l * ln(1 – U) 1/1/2019 VMASC MSIM 710/810

DISCRETE DISTRIBUTIONS P[X=xi]=pi 1/1/2019 VMASC MSIM 710/810

NORMALS F, the CDF of the Normal Distribution, cannot be written down in closed form What to Do? exploit the Central Limit Theorem use conditional probability for a new method 1/1/2019 VMASC MSIM 710/810

EXPLOITING THE CLT Result: sum of n i.i.d. random variables (m, s2)  N(nm, ns2) Method (Composite) Generate U1, U2, ..., U30 ~U[0, 1] SUM ~ N(30 * ½, 30 * 1/6) (SUM – 15)/sqrt(5) ~ N(0, 1) CLT approximation is more exact with data having symetric distributions “30” comes from very old folklore (Galton) 1/1/2019 VMASC MSIM 710/810

ACCEPTANCE-REJECTION METHOD To generate variate X from inaccessible CDF FX... Generate x uniformly in the Range of X Generate U~U[0, max(f(x))] if U <= fX(x), return x otherwise, try again 1/1/2019 VMASC MSIM 710/810

Proof: Consider this slice 1/1/2019 VMASC MSIM 710/810

EXACT COMPOSITION METHODS n Summed exponentials make a Gamma(n, l) Two summed Uniforms make a Triangular Summed Bernouli’s make a Binomial See ... Handy T&R Facts.pdf 1/1/2019 VMASC MSIM 710/810

SUMMARY Inverse transform method is exact and simple Composite methods are easy You need to know a little about the probability you are modeling Excel has inverse functions built in! 1/1/2019 VMASC MSIM 710/810