Q. 10.11
Question
Use the rejection method with g(x) = 1, 0 < x < 1, to determine an algorithm for simulating a random variable having density function
Step-by-Step Solution
Verified Answer
The algorithm is generate(which is unform) and take random number .
1Step 1: Given Information
We have given the density function
2Step 2: Simplify
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 . 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.
Other exercises in this chapter
Q. 10.9
Suppose we have a method for simulating random variables from the distributions F1 and F2. Explain how to simulate from the distribution F(x) = pF1(x) + (1
View solution Q. 10.10
In Example 2c we simulated the absolute value of a unit normal by using the rejection procedure on exponential random variables with rate 1. This raises the que
View solution Q. 10.12
Explain how you could use random numbers to approximate ∫01k(x)dx, where k(x) is an arbitrary function.
View solution Q. 10.13
Let (X, Y) be uniformly distributed in the circle of radius 1 centered at the origin. Its joint density is thus f(x,y)=1π 0≤x2+y2X
View solution