4.7 Exercises: Chapter 4

  1. Write in the canonical form the distribution of the Bernoulli example, and find the mean and variance of the sufficient statistic.

  2. Given a random sample y=[y1,y2,,yN] from a binomial distribution where the number of trials (n) is known. Show that p(y|θ) is in the exponential family, and find the posterior distribution, the marginal likelihood and the predictive distribution of the binomial-beta model assuming the number of trials is known.

  3. Given a random sample y=[y1,y2,,yN] from a exponential distribution. Show that p(y|α,β) is in the exponential family, and find the posterior distribution, marginal likelihood and predictive distribution of the exponential-gamma model.

  4. Find the marginal likelihood in the normal/inverse-Wishart model.

  5. Find the posterior predictive distribution in the normal/inverse-Wishart model.

  6. Show that in the linear regression model βn(B1nB1nM1B1n)βn=βCβ and β=X0βn.

  7. Show that (YXB)(YXB)=S+(BˆB)XX(BˆB) where S=(YXˆB)(YXˆB), ˆB=(XX)1XY.