
STAT 771 Quiz 3 Newton: 4–20–09.
Record all answers in the blue books. Show your work.
1. Suppose that Z0, Z1, Z2, . . . , Znform a two-state Markov chain on states {1,2}, according to
a transition probabilities {pj,k}, and the event Z0= 1 is known to have occurred. Observables
Y1, Y2, . . . , Ynare conditionally independent of each other given the Markov chain, with Yi
having conditional density fk(y) given Zi=k. Let un(k) = 1 for k∈ {1,2}, and for any
i∈ {1,2, . . . , n −1}define the density ui(k) = P(yi+1, yi+2, . . . , yn|Zi=k) for realizations
of the observables. Derive a recursive algorithm to evaluate ui(k) for all iand all k. Justify
steps taken.
2. Proportions yi/miin the table below are realizations of Binomial proportions from a system
in which the true underlying probabilities are non-decreasing. Implement the pool adjacent
violators algorithm to obtain the maximum likelihood estimate of the underlying probabilities.
i yimi
1 2 4
2 1 4
3 2 4
4 3 4
5 4 4
6 2 4
3. Consider a rejection sampling algorithm to generate standard normal variables using Laplace-
distributed variables. I.e., the target density is f(x) = 1
√2πexp{−x2/2}and the easily sampled
density is g(x) = 1
2exp{−|x|}. Recall that if Sis a random sign (taking values +1 and −1
with equal probability) and if Uis a uniform(0,1) variable, then X=Slog(1/U ) has density
g. Show that f(x)≤cg(x) for some c≥1, and identify the smallest possible value of c.
Describe the rejection sampling algorithm for realizing a standard normal.
4. We have four discrete random variables X, Y, A, and B. The latter two each take Kpossible
values {1,2, . . . , K}. For each possibility x,yof the first two, the computation required to
compute p(x, y) = PK
a=1 PK
b=1 p(x, y, a, b) involves about K2individual summation operations
in the absense of modeling constraints. One model considered involves conditional indepen-
dencies such that p(x, y, a, b) = p(x|a)p(y|a)p(a|b)p(b) for all arguments. Indicate how this
model reduces the computational burden in evaluating p(x, y).