- Show that the conjugate prior family for $\theta$ is $\pi_{a,b}(\theta) \propto \exp\{a c(\theta)+bd(\theta)\}$.
- Find a conjugate prior for the parameter $\lambda$ of the Poisson distribution Pois(λ).

- Find a noninformative prior for θ (according to the Jefrreys' rule) and the corresponding posterior distribution.
- Estimate θ w.r.t. to the quadratic error and compare the resulting Bayesian estimator with the MLE.
- Repeat the previous paragraph for estimating μ=EY and p=P(Y>a).
- In addition to the sample of Y's, we have another independent sample X
_{1},...,X_{m}~ exp(φ), EX=1/φ. Again, we use the noninformative prior for φ. We are interested in the ratio θ/φ. Find its posterior distribution, the posterior mean and compare it with the MLE for this ratio.

- (hint: recall some of basic distributions you know like χ
^{2},*F*, etc.) -
### Question 4.

Three friends, Optimist, Realist and Pessimist, are going to participate in a certain kind of gambling game in casino when they do not know the probability of win*p*. Motivated by an exciting course in Bayesian statistics, they decided to apply Bayesian analysis. Optimist chose a prior on*p*from the conjugate family of distributions. In addition, he believes that the chances are 50%-50% (i.e. E(p)=1/2) with Var(p)=1/36. Realist chose a uniform prior U[0,1].- Show that both priors belong to the family of Beta distributions and find their parameters for the priors of
Optimist and Realist.
- (hint: $E\left(Beta(\alpha,\beta)\right)=\frac{\alpha}{\alpha+\beta},\; Var\left(Beta(\alpha,\beta)\right)=\frac{\alpha \beta}{(\alpha+\beta)^2 (\alpha+\beta+1)}$)

- Pessimist does not have any prior beliefs and decides to choose the noninformative prior according to the Jeffreys' rule. What is his prior? Does it also belong to the Beta family?
- Being poor students in Statistics, Optimist, Realist and Pessimist do not have enough money to gamble separately, so they decided to play together. They played the game 25 times and won 12 times. What is the posterior distribution of each one of them?
- Find the corresponding posterior means and calculate the corresponding 95% Bayesian credible intervals for
*p*.- (hint: use the fact that if p~Beta(α,β) and ρ=p/(1-p) is the odds ratio, then
(β/α)ρ ~ F
_{2α,2β}- those who do not believe it, can (should!) easily verify it!)

- (hint: use the fact that if p~Beta(α,β) and ρ=p/(1-p) is the odds ratio, then
(β/α)ρ ~ F
- Three friends told their classmate Skeptic about the exciting Bayesian analysis each one of them has done. However,
Skeptic is, naturally, very skeptical about Bayesian approach and does not belive in any priors - his credo is "
*In G-d we trust... All others bring data*". So he decided to perform a "classical" (non-Bayesian) analysis of the same data. What is his estimate and the 95%-confidence interval for*p*? Compare the results and comment them briefly.

### Question 5

The waiting time for a bus at a given corner at a certain time of day is known to have a uniform distribution U[0,θ]. From other similar routes it is known that θ has a Pareto distribution Pa(7,4), where the density of Pareto distribution Pa(α,β) is π_{α,β}(θ)=(α/β)(β/θ)^{α+1}for θ ≥ β and 0, otherwise. Waiting times of 10, 3, 2, 5 and 14 minutes have been observed at the given corner at the last 5 days.- Show that the Pareto distribution provides a conjugate prior for uniform data and find the posterior distribution of θ.
- Estimate θ w.r.t. to the quadratic error (recall that E(Pa(α,β))=αβ/(α-1), α>1).
- Find a 95% HPD for θ.
- Test the hypothesis H
_{0}: 0 ≤ θ ≤ 15 vs. H_{1}: θ > 15 by choosing the most likely (a posteriori) hypothesis.

- Show that both priors belong to the family of Beta distributions and find their parameters for the priors of
Optimist and Realist.