Question: In this exercise we examine a useful technique for generating a set of samples having a given pdf. (a) First, prove the following theorem: If
In this exercise we examine a useful technique for generating a set of samples having a given pdf.
(a) First, prove the following theorem: If X is a con tinuous random variable with cdf FX(x), the random variable
Y = Fx(X)
is a uniformly distributed random variable in the interval (0, 1).
(b) Using this theorem, design a random number generator to generate a sequence of exponentially distributed random variables having the pdf
fX(x) = αe-αxu(x)
where u(x) is the unit step. Plot histograms of the random numbers generated to check the validity of the random number generator you designed.
Step by Step Solution
3.32 Rating (176 Votes )
There are 3 Steps involved in it
ce61m Generate an exponentially distributed random variable with parameter a from a uniform random v... View full answer
Get step-by-step solutions from verified subject matter experts
