Final Practice Problems
Final Practice Problems
1. A crime has been committed. Assume that the crime was committed by exactly one
person, and that there are 1000 people who could have committed the crime and that,
in the absence of any evidence, these people are all equally likely to be guilty of the
crime. Suppose a piece of evidence is found and a particular individual is accused. It
is judged that this evidence would have a probability of 0.99 of being observed if the
crime were committed by that individual, and a probability of only 0.0001 of being
observed, if the crime were committed by any other individual. Find the probability,
given the evidence, that the individual committed the crime.
(a) Suppose there is only one observation x = 13, and the prior is discrete uniform
on {0, 1/6, 2/6, 3/6, 4/6, 5/6, 1}. Derive the posterior probability mass f (θ|x) and
calculate the posterior mean as an estimator of θ.
(b) Now consider a random sample X1 , . . . , Xn and Beta(a, b) prior for θ, that is,
1
π(θ) = θα−1 (1 − θ)β−1
B(α, β)
Derive the posterior pdf f (θ|x1 , . . . , xn ) and use it to show that the Beta distri-
bution is a conjugate prior for this model.
(c) In the setup of part (b), suppose the sample is 20, 1, 2, 14, 1, 5, 2, 3, 9, 2 and
that the parameters of the Beta prior are α = 6, β = 2. Graph the posterior pdf
and estimate θ with the posterior mean.
3. Let {Zt } be a sequence of independent normal random variables, each with mean 0
and variance σ 2 , and let a, b, and c be constants. Which, if any, of the following
processes are (weakly) stationary? For each stationary process specify the mean and
the autocovariance function.
1
4. Suppose the following transition matrix was proposed for a Markov chain {Xn } that
models the transition between rainy and non-rainy days (where the first row / column
represents rain and the second row / column represents non-rain):
0.8 0.2
0.5 0.5