Question Sheet Nine

Set: Lecture 22, Tuesday 2nd May 2023.

Due in: There is no deadline for this work. I will happily mark and return any work you submit. Paper copies may be submitted directly to me either in lectures or my office, 4W4.10. Pdf copies may be submitted to the portal available on the Moodle page. Solution Sheets will be made available on-line on Friday 5th May 2023.

Question 1

Consider the following loss function \[\begin{eqnarray*} L(\theta, d) & = & \frac{d}{\theta} - \log \left(\frac{d}{\theta}\right) - 1. \end{eqnarray*}\] Let \(X_{1}, \ldots, X_{n}\) be exchangeable so that the \(X_{i}\) are conditionally independent given parameter \(\theta\). Suppose that \(X_{i} \, | \, \theta \sim Po(\theta)\) and \(\theta \sim Gamma(\alpha, \beta)\) with \(\alpha > 1\).

  1. Find the Bayes rule of an immediate decision.

  2. Find the Bayes rule after observing \(x = (x_{1}, \ldots, x_{n})\).

  3. Interpret the Bayes rules that you have found.

Question 2

We wish to estimate the parameter, \(\theta\), of an exponential distribution. We consider that \(X_{1}, \ldots, X_{n}\) are exchangeable with \(X_{i} \, | \, \theta \sim Exp(\theta)\) so that \(E(X_{i} \, | \, \theta) = 1/\theta\). Our prior for \(\theta\) is \(Gamma(\alpha, \beta)\) with \(\alpha > 3\). We wish to produce an estimate, \(d\), for \(\theta\), with loss function \[\begin{eqnarray*} L(\theta, d) & = & \frac{(\theta - d)^{2}}{\theta^{3}}. \end{eqnarray*}\]

  1. Find the Bayes rule and Bayes risk of an immediate decision.

  2. Suppose that we may take a sample of \(n\) observations before estimating \(\theta\). Find the Bayes rule and Bayes risk when we have observed \(x = (x_{1}, \ldots, x_{n})\).

  3. Find the Bayes risk of the sampling procedure.

  4. If each observation costs a fixed amount \(c\) find the total risk of a sample of size \(n\) and thus the optimal choice of \(n\). (Hint: the total risk of the sample is the Bayes risk of the sampling procedure added to the sample cost.)

Question 3

A certain coin has probability \(\omega\) of landing heads. We assess that the prior for \(\omega\) is a Beta distribution with parameters \(\alpha, \beta > 1\). The loss function for estimate \(d\) and value \(\omega\) is \[\begin{eqnarray*} L(\omega, d) & = & \frac{(\omega - d)^{2} + d^{2}}{\omega}. \end{eqnarray*}\]

  1. Find the Bayes rule and Bayes risk for an immediate decision.

  2. Suppose that we toss the coin \(n\) times before making our decision, and observe \(k\) heads and \(n-k\) tails. Find the new Bayes rule and Bayes risk.

  3. Find the Bayes risk of the sampling procedure of tossing the coin \(n\) times and then making a decision when \(\alpha = \beta = 2\).