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

Verified
Answer

Writef(x)g(x)and findc Using the differentiation, and prove c is minimal if any only if λ=1which is explained below.

1Step 1: Given Information

We have given the exponential density

g(x)=λe-λx.

2Step 2: Simplify

Using the rejection method

f(x)=22πe-x22

and

g(x)=λe-λx

which implies

f(x)g(x)=1λ3πexp-x2-2λx2         =1λ2πexp-x2-2λz+λ22+λ22         =eλ22λ2πexp-(x-λ)22          eλλ222π

So, we can take

c=eλ22λ2π

Now, provingc has minimal value when λ=1. By, differentiation, we have

dcdλ=2πeλ22(λ2-1)λ2

So, we notice that dcdλ=0 if and only λ=±1. Hence, we have proved that c is minimal forλ=1, so it takes the minimum time(on average) to obtain the accepting value.