3. Consider the following pdf:
Q(x)
= {3x^2 / 2 -1? x ?1
{0 otherwise
a. Set up an acceptance-rejection algorithm for this
distribution. Use the majorizing function g(x) = 3/2.
b. Assuming a linear congruential generator with parameters a:
21, m: 100, c: 13, and x0: 7, generate two random variates from the
distribution q(x).
c. Can you make any comments about the potential period of the
LCG in part
b?