Professional Documents
Culture Documents
Now from the CLT we know that for large k, Z has approximately a
Gaussian distribution. Since for each Ri we have E[Ri] = 1/2 and
the mean value of Z is k/2 and its standard deviation
Thus, we can use
Final comment. Methods for generating samples from some of the standard pdf's
and pmf's have been the subject of much research in recent years. Our main
purpose above was to present some typical (and correct) approaches rather than the
most accurate or efficient method in each example. For instance, excellent
alternatives to (7.5) exist for simulating negative exponential pdf's [NEUM 51],
[FISH 78].
Similarly, an alternative to (7.12) for the Gaussian random variable with mean
and variance is the following:
I. Generate two random numbers r1 and r2.
2. Set:
This method is exact and requires only two random numbers. It can be derived
from the analysis described in Example 3 of Chapter 3 (that involved the Rayleigh
distribution) and is further developed in Problem 7.2. Many of the more advanced
simulation languages/systems (e.g., GPSS, SIMSCRIPT) provide standard internal
subroutines for the generation of samples from some of the most common pdf's and
pmf's (e.g., the Gaussian, the negative exponential, the Poisson, and the uniform):
all that a user of the language/system must do is provide the necessary input
parameters. The subroutine then automatically returns a sample value from the
specified random variable.
Review example. We review now the first three of the foregoing approaches with
an example.
https://web.mit.edu/urban_or_book/www/book/chapter7/7.1.3.html 8/10