Americas
Europe
Q. 10.11
Expert-verifiedUse the rejection method with g(x) = 1, 0 < x < 1, to determine an algorithm for simulating a random variable having density function
The algorithm is generate(which is unform) and take random number .
We have given the density function
Finding the upper bound of on the interval . Using the differentiation, we have
which implies the equality
So, the maximum value of is assumed to be in point and it is equal to localid="1648210382401" . So, the algorithm is as follows: generate (which is uniform) and take random number Consider if
and in that case declare Otherwise, go to the step again.
94% of StudySmarter users get better grades.
Sign up for free