Docsity

m4EWQeOveY, Exercises of Probability and Statistics

Toggle sidebar
bg1
PSTAT 120C: Assignment #7 May 29, 2008
These problems are related to the material on Bayesian inference from week 9 and 10. These are
for practice and exam preparation and will not be graded. The solutions will be posted Wednesday,
June 3.
1. Suppose that Y∼ N (µ, σ2) and Z∼ N (ν, τ 2) are independent, and then X=Y+Z.
(a) We create a new random variable
W=τ
σY−σ
τZ.
Show that Cov(X, W ) = 0. (For normal random variables a zero covariance implies
independence.)
(b) Show that
Y=σ2
σ2+τ2X+στ
σ2+τ2W.
(c) If Xand Ware independent, then argue that
E(W|X) = τ
σµ−σ
τν.
(d) Use the previous results to show that
E(Y|X) = σ2
σ2+τ2(X−ν) + τ2
σ2+τ2µ.
2. Exercise 16.8 on page 807 in the textbook.
3. Two friends Bob and Carol decide to play 5 sets of tennis. Before they begin playing, Carol
and Bob agree to a wager: he’ll pay her $40 dollars if she wins and she’ll pay him $60 if he
wins (she’s a better tennis player). Carol wins two of the first three sets.
Assume that the prior distribution on the probability pthat Carol will win any particular set
is a Beta distribution with α= 1.2 and β= 0.8, and that the outcomes of the 5 sets are
independent.
(a) Find the Bayes estimate for pgiven that Carol won 2 of the first 3 sets.
(b) Find the Bayes estimate for the probability that Bob will win 3 out of 5 sets given that
he has already lost 2 of the first three.
(c) Calculate Carol’s posterior expectation of the amount of money she will win (or lose).
4. A survey of 226 residents of California found that 83% supported the latest bond initiative.
(a) Calculate a 95% Confidence Interval for p.
(b) Assuming that we start with a pthat has a Beta prior with α=β= 1/2, find a 95%
credible interval for p. (Hint: Approximate the Beta probabilities by a normal probability
with the same mean and standard deviation.)
1
pf2

Partial preview of the text

Download m4EWQeOveY and more Exercises Probability and Statistics in PDF only on Docsity!

PSTAT 120C: Assignment #7 May 29, 2008

These problems are related to the material on Bayesian inference from week 9 and 10. These are for practice and exam preparation and will not be graded. The solutions will be posted Wednesday, June 3.

  1. Suppose that Y ∼ N (μ, σ^2 ) and Z ∼ N (ν, τ 2 ) are independent, and then X = Y + Z.

(a) We create a new random variable

W =

τ σ

Y −

σ τ

Z.

Show that Cov(X, W ) = 0. (For normal random variables a zero covariance implies independence.) (b) Show that

Y =

σ^2 σ^2 + τ 2

X +

στ σ^2 + τ 2

W.

(c) If X and W are independent, then argue that

E(W |X) =

τ σ μ −

σ τ ν.

(d) Use the previous results to show that

E(Y | X) =

σ^2 σ^2 + τ 2

(X − ν) +

τ 2 σ^2 + τ 2

μ.

  1. Exercise 16.8 on page 807 in the textbook.
  2. Two friends Bob and Carol decide to play 5 sets of tennis. Before they begin playing, Carol and Bob agree to a wager: he’ll pay her $40 dollars if she wins and she’ll pay him $60 if he wins (she’s a better tennis player). Carol wins two of the first three sets. Assume that the prior distribution on the probability p that Carol will win any particular set is a Beta distribution with α = 1.2 and β = 0.8, and that the outcomes of the 5 sets are independent.

(a) Find the Bayes estimate for p given that Carol won 2 of the first 3 sets. (b) Find the Bayes estimate for the probability that Bob will win 3 out of 5 sets given that he has already lost 2 of the first three. (c) Calculate Carol’s posterior expectation of the amount of money she will win (or lose).

  1. A survey of 226 residents of California found that 83% supported the latest bond initiative.

(a) Calculate a 95% Confidence Interval for p. (b) Assuming that we start with a p that has a Beta prior with α = β = 1/2, find a 95% credible interval for p. (Hint: Approximate the Beta probabilities by a normal probability with the same mean and standard deviation.)

(c) How do these two intervals compare? Which one is shorter?

  1. We start with μ ∼ N (0, τ 2 ) as a prior distribution on the normal parameter. We observe n independent observations x 1 ,... , xn from a N (μ, σ^2 ), and find that the posterior distribution is μ | ¯x ∼ N

x ¯

nτ 2 nτ 2 + σ^2

σ^2 τ 2 nτ 2 + σ^2

(see Example 16.4 in the text). If we then observe an additional m observations, y 1 ,... , ym, independent normals with mean μ and variance σ^2 , show that the Bayesian estimator computed by using the posterior μ | x¯ as the prior distribution on μ will be the same as the estimator which puts the x’s and y’s together into one sample of n + m observations.

  1. We are going to measure the LDL cholesterol levels of 150 patients on a special exercise regimen. The prior distribution on μ for these measurements is a normal with mean 120 with a standard deviation of 40.

(a) If the average cholesterol of this group is ¯x = 114.73, then calculate the Bayesian estimate of μ if we assume that σ^2 = 20. (b) Calculate the posterior probability that μ is less than 120.

  1. Suppose that we observe the random variable X which has a discrete probability distribution on the set { 1 , 2 , 3 , 4 , 5 }. Our model is

X 1 2 3 4 5 P 1 − θ θ(1 − θ) θ^2 (1 − θ) θ^3 (1 − θ) θ^4

and our prior distribution is the uniform distribution over the interval [0, 1].

(a) Calculate the posterior distribution of θ if X = 1. (b) Find the Bayesian estimate of θ.