Question: Let f(x) = 6x2(1 - x)2, for -1 ≤ x ≤ 1.
a. Describe an algorithm to generate random variables from this density using the rejection method. In what proportion of the trials will the acceptance step be taken?
b. Write a computer program to do so, and test it out.