Bayesian inference in IB Statistics

Frequentists treat $θ$ as a fixed quantity, while Bayesians treat $θ$ as a probabilistic distribution on $Θ$ and view statistical inference as updating one's belief about $θ$.

Suppose initially we have a prior distribution $π(θ)$. After observing data $X=x$, the posterior distribution of $θ$ is given by Bayes' theorem $$ \begin{align*} \underbrace{π(θ\mid x)}_{\text{posterior}} = \frac{π(θ)\,p(x\mid θ)}{p(x)} \propto \underbrace{p(x\mid θ)}_{\text{likelihood}}\,\underbrace{π(θ)}_{\text{prior}}. \end{align*} $$

$π(θ\mid x)$ can be a probability distribution even if the function $π$ may not. In this case we say $π$ is an improper prior.

The prior predictive distribution is the marginal distribution of $X$ $$ \begin{align*} π(x) = \int_{Θ} p(x\midθ) \,π(θ) \d θ \end{align*} $$ and the posterior predictive distribution is the conditional distributional of an iid copy $X'$ given $X$ $$ \begin{align*} π(x'\mid x) = \int_{Θ} p(x'\mid θ) \, π(θ\mid x)\d θ. \end{align*} $$

We say a family of prior distributions is conjugate to a likelihood model if the posterior distribution is in the same family.

Definition (Bayes estimator) open_in_new

Given some loss function $L: Θ\times Θ \to \R$, the Bayes risk of an estimator $\tilde θ$ for $θ$ is $$ \begin{align*} R_X(\tilde θ) = \expect_π(L(θ, \tilde θ)\mid X) = \int_{Θ} L(θ, \tilde θ(X))\, π(θ\mid X) \d θ. \end{align*} $$

The Bayes estimator is $$ \begin{align*} \hat θ(X) = \arg\min_{\tilde θ} R_X(\tilde θ). \end{align*} $$

  • The Bayes estimator with the quadratic loss $L(θ, \tilde θ) = (θ - \tilde θ)^2$ is the posterior mean. (Derivation)

  • The Bayes estimator with the absolute loss $L(θ, \tilde θ) = |\tilde θ - θ|$ is the posterior median. (Derivation)

Definition (credible interval) open_in_new

A $(1-α)$-credible interval for $θ$ is a random interval $[L(X), U(X)]$ such that $$ \begin{align*} π(L(X) \leq θ \leq U(X)\mid X) = 1-α. \end{align*} $$