Response to the following problem:
For each of the following cases, generate random variables Xi and Yi and compare the empirical average and Rao-Blackwellized estimator of Ef (X) and var f (X):
a. X|y ∼ P(y), Y ∼ Ga(a,b) (X is negative binomial);
b. X|y ∼ N(0,y), Y ∼ Ga(a,b) (X is a generalized t);
c. X|y ∼ Bin(y), Y ∼ Be(a,b) (X is beta binomial).