Chapter 08
Chapter 08
Chapter 08
Random-Variate Generation
2
Inverse-transform Technique
The concept:
For cdf function: r = F(x)
Generate r from uniform (0,1)
Find x: r = F(x)
x = F-1(r) r1
x1
3
Exponential Distribution [Inverse-transform]
Exponential Distribution:
Exponential cdf:
r= F(x)
= 1 – e- x for x 0
To generate X1, X2, X3 …
Xi = F-1(R )i
4
Exponential Distribution [Inverse-transform]
5
Other Distributions [Inverse-transform]
6
Empirical Continuous Dist’n [Inverse-transform]
7
Empirical Continuous Dist’n [Inverse-transform]
Consider R 1 = 0.83:
8
Discrete Distribution [Inverse-transform]
9
Discrete Distribution [Inverse-transform]
Generate R
Procedures:
no
Step 1. Generate R ~ U[0,1]
Condition
Step 2a. If R >= ¼, accept X=R.
yes
Step 2b. If R < ¼, reject R, return to Step 1
Output R’
Condition
R <= (t)
yes
Output E ’~ t
12
NSPP [Acceptance-Rejection]
14
Direct Transformation [Special Properties]
Xi = + Zi
Yi = eXi
16
Summary
Principles of random-variate generate via
Inverse-transform technique
Acceptance-rejection technique
Special properties
17