
STAT 710 1st Exam Period Problems Solution
Department of Statistics, University of Wisocnsin
Spring 2007
Exercise 1 (#4.1). Show that the priors in the following cases are conjugate priors:
(i) X= (X1; :::; Xn)is a random sample from Nk(๎; Ik),๎2 Rk, and the prior is Nk(๎0;๎0);
(ii) X= (X1; :::; Xn)is a random sample from the binomial distribution with probability ๎and size
k(a known positive integer), ๎2(0;1), and the prior is the beta distribution with parameter (๎; ๎);
(iii) X= (X1; :::; Xn)is a random sample from the uniform distribution on the interval (0;๎ ),๎ > 0,
and the prior has Lebesgue density bab๎๎(b+1)I(a;1)(๎);
(iv) X= (X1; :::; Xn)is a random sample from the exponential distribution with Lebesgue density
๎๎1e๎x=๎I(0;1)(x),๎ > 0, and the prior of ๎๎1is the gamma distribution with shape parameter ๎
and scale parameter ๎.
Solution. (i) Let T=Pn
i=1 Xiand A=nIk+ ๎๎1
0. The product of the density of Xand the prior
density is
CXexp ๎๎kT๎n๎k2
2๎(๎๎๎0)๎๎๎1
0(๎๎๎0)
2๎
=DXexp (๎๎๎๎A๎1(๎๎1
0๎0+T)๎๎A๎๎๎A๎1(๎๎1
0๎0+T)๎
2);
where CXand DXare quantities depending on Xbut not ๎. Thus, the posterior distribution of ๎
given Xis Nk๎A๎1(๎๎1
0๎0+T); A๎1๎.
(ii) Let T=Pn
i=1 Xi. The product of the density of Xand the prior density is
CX๎T+๎๎1(1 ๎๎)nk๎T+๎๎1;
where CXdoes not depend on ๎. Thus, the posterior distribution of ๎given Xis the beta distribution
with parameter (T+๎; nk ๎T+๎).
(iii) Let X(n)be the largest order statistic. The product of the density of Xand the prior density is
๎๎nI(0;๎)(X(n))bab๎๎(b+1)I(a;1)(๎) = ๎๎(n+b+1) I(maxfX(n);ag;1)(๎):
Thus, the posterior distribution of ๎given Xhas the same form as the prior with areplaced by
maxfX(n); agand breplaced by b+n.
(iv) Let T=Pn
i=1 Xi. The product of the density of Xand the prior density is
CX๎๎(n+๎+1) exp ๎๎(T+๎๎1)=๎๎;
where CXdoes not depend on ๎. Thus, the posterior distribution of ๎๎1given Xis the gamma
distribution with shape parameter n+๎and scale parameter (T+๎๎1)๎1.
1