Q. 10.10
Question
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 question of whether we could obtain a more efficient algorithm by using a different exponential density—that is, we could use the density g(x) = λe−λx. Show that the mean number of iterations needed in the rejection scheme is minimized when λ = 1.
Step-by-Step Solution
VerifiedWriteand find Using the differentiation, and prove is minimal if any only if which is explained below.
We have given the exponential density
.
Using the rejection method
and
which implies
So, we can take
Now, proving has minimal value when By, differentiation, we have
So, we notice that if and only Hence, we have proved that is minimal for, so it takes the minimum time(on average) to obtain the accepting value.