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

f(x)60x3(1-x)20<x<10otherwise

Step-by-Step Solution

Verified
Answer

The algorithm is generateY~g(which is unform) and take random number U(0,1).

1Step 1: Given Information

We have given the density function

f(x)60x3(1-x)20<x<10otherwise

2Step 2: Simplify

Finding the upper bound of f on the interval (0 , 1). Using the differentiation, we have

f1(x)=180x2(1-x)2-120x3(1-x)=0

which implies the equality

3(1-x)=2xx=35

So, the maximum value of f is assumed to be in point x=35 and it is equal to f352.0736:=c. So, the algorithm is as follows: generate Y~g(which is uniform) and take random number U(0, 1). Consider if

Uf(Y)cg(Y)

and in that case declare X=Y. Otherwise, go to the step 1 again.