Bayesian inference in II Priniciple of Statistics

Bayesian inference in IB Statistics open_in_new

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*} $$

Definition (Jeffreys prior) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model with $Θ\subseteq \R^p$.

The Jeffreys prior is any (possibly improper) prior satisfying $$ \begin{align*} π_{J,θ}(θ) \propto \sqrt{\det I(θ)} \end{align*} $$ where $I(θ)$ is the Fisher information matrix.

It is invariant under a change of coordinates in the parameter space $Θ$. (Proof) Therefore it is an uninformative prior.

Theorem (Bernstein-von Mises) open_in_new

Let $\sb{f(\cdot ,θ)}{θ\in Θ}$ be a statistical model, $Θ\subseteq \R^p$, and $X_1, X_2, \ldots$ are iid copies of $X$. Work in a frequentist framework: suppose the true parameter is $θ_0$. Let $π$ be a prior on $θ$ and $π_n(θ) = π(θ \mid X_1, \ldots, X_n)$ be the (random) posterior distribution.

Assume

  1. the usual regularity conditions; and

  2. $π$ has a continuous density at $θ_0$ and $π(θ_0)>0$.

Then $π_n$ converges to a $N(\hat θ_n, I(θ_0)\inv/n)$ distribution in total variation almost surely, i.e. writing $\hat ϕ_n$ for the density of $N(\hat θ_n, I(θ_0)\inv/n)$, $$ \begin{align*} 2\|π_n - \hat ϕ_n\|_{TV} := \int_{Θ} |π_n(θ) - \hat ϕ_n(θ)| \d θ \xrightarrow{a.s.} 0. \end{align*} $$

Proof of special case

Note for any measurable set $A\subseteq Θ$, $$ \begin{align*} |π_n(A) - \hat ϕ_n(A)| \leq 2\|π_n - \hat ϕ_n\|_{TV} \xrightarrow{a.s.} 0. \end{align*} $$

Suppose $Θ\subseteq \R$ and consider a $(1-α)$-credible interval $$ \begin{align*} C_n := \sb{θ}{\sqrt{n}|θ - \hat θ_n| < R_n} \end{align*} $$ where $R_n$ is chosen such that $π_n(C_n) = 1-α$ Then $C_n$ is an asymptotic $(1-α)$-confidence interval, i.e. $\prob_{θ_0}(θ_0 \in C_n) \to 1-α$.

Proof

Decision theory open_in_new

Definition (loss, risk) open_in_new

Given a statistical model $\sb{f(\cdot ,θ)}{θ\in Θ}$, let a sample $X$ takes value in $\mathcal{X}$ and there is an action space $\mathcal{A}$.

A decision rule is a function $δ: \mathcal{X}\to \mathcal{A}$.

A loss function is a function $L: \mathcal{A}\times Θ \to [0,\infty)$.

The risk is $$ \begin{align*} R(δ, θ) := \expect_θ[L(δ(X), θ)] = \int_{\mathcal{X}} L(δ(X), θ) f(x,θ) \d x. \end{align*} $$

Definition (Bayes risk, Bayes rule) open_in_new

(Context) Given a prior distribution $π$ on $Θ$, the $π$-Bayes risk of a decision rule $δ$ is $$ \begin{align*} R_π(δ) := \expect_π[L(δ(X), θ)] \equiv \int_{Θ} R(δ,θ) \, π(θ) \d θ \equiv \int_{Θ} \int_{\mathcal{X}} L(δ(X), θ) \, f(x\mid θ)\, π(θ) \d x \d θ. \end{align*} $$

If $δ_π$ is a decision rule that minimises the $π$-Bayes risk, then we call it a $π$-Bayes decision rule.

See also Bayes estimator.

Definition (posterior risk) open_in_new

(Context) Given a prior distribution $π$ on $Θ$, the $π$-posterior risk of a decision rule $δ$ given an observation $x\in \mathcal{X}$ is $$ \begin{align*} \expect_π[L(δ(x), θ) \mid x] \equiv \int_{Θ} R(δ(x), θ) \,π(θ\mid x) \d θ. \end{align*} $$

Theorem (minimising posterior risk) open_in_new

(Context) Let $δ$ be a decision rule and $π$ be a prior on $Θ$.

If $δ$ minimises the $π$-posterior risk for all $x\in \mathcal{X}$, then $δ$ is a $π$-Bayes rule.

Proof

For the quadratic risk $L(δ, θ) = (δ - θ)^2$, a $π$-Bayes rule is $$ \begin{align*} δ_π(x) = \expect_π[θ \mid x]. \end{align*} $$ (Derivation)

Theorem (unbiased Bayes estimator is degenerate under quadratic loss) open_in_new

(Context) Let $δ(x)$ be an estimator of $θ$.

Under the quadratic loss $L(δ,θ) = (δ - θ)^2$, if

  1. $δ$ is a $π$-Bayes rule for some prior $π$ on $Θ$; and

  2. $δ$ is unbiased,

then $δ(X) = θ$ almost surely.

Proof

Definition (maximal risk, minimax rule) open_in_new

(Context) Let $δ$ be a decision rule.

The maximal risk of $δ$ is $$ \begin{align*} R_m(δ) := \sup_{θ\in Θ} R(δ,θ). \end{align*} $$ The minimax risk is $$ \begin{align*} \inf_{δ} R_m(δ). \end{align*} $$

If $δ$ attains the minimax risk, it is called minimax.

$R_π(δ)$${}\leq R_m(δ)$ for any prior $π$.

Definition (least favourable prior) open_in_new

(Context) A prior $λ$ on $Θ$ is said to be least favourable if $$ \begin{align*} R_λ(δ_λ) \leq R_π(δ_π) &&\text{for all priors $π$}. \end{align*} $$

Theorem (Bayes risk equals maximal risk) open_in_new

(Context) Let $λ$ be a prior on $Θ$.

If a $λ$-Bayes rule $δ_λ$ has equal $π$-Bayes risk $R_π(δ_λ)$ and maximal risk $R_m(δ_λ)$, then

  1. $δ_λ$ is minimax;

  2. if $δ_λ$ is the unique $λ$-Bayes rule, then it is the unique minimax rule;

  3. $λ$ is least favourable.

Proof

A sufficient condition is that $R(δ_λ, θ)$ is constant in $θ$.

Definition (admissible rule) open_in_new

(Context) Let $δ,δ'$ be decision rules.

Say $δ'$ dominates $δ$ if

  • $R(δ', θ) \leq R(δ, θ)$ for all $θ\in Θ$; and

  • $R(δ', θ) < R(δ, θ)$ for some $θ\in Θ$.

If such $δ'$ exists, say $δ$ is inadmissible. Otherwise $δ$ is admissible.

Any unique Bayes rule is admissible. (Proof)

If $δ$ is admissible and $R(δ, θ)$ is constant in $θ$, then $δ$ is minimax. (Proof)

Complete class theorem: all admissible estimators are Bayes estimators or limits of Bayes estimators.

Theorem (sample mean is admissible in normal location problem) open_in_new

Suppose $X_1, \ldots, X_n$ are iid copies of $X\sim N(θ, 1)$ for some unknown parameter $θ$.

The sample mean $\overline{X_n}$ is an admissible and minimax estimator of $θ$ under the quadratic loss $L(δ, θ) = (δ - θ)^2$ (under regularity conditions).

Proof

Theorem (James-Stein estimator) open_in_new

Let $X\sim N_p(θ, I_p)$ where $θ$ is an unknown parameter. Define the James-Stein estimator $$ \begin{align*} δ^\text{JS}(X) = \left(1 - \frac{p-2}{\|X\|^2}\right) X. \end{align*} $$

Under the quadratic loss $L(δ,θ) = (δ - θ)^2$, its risk is $$ \begin{align*} R(δ^\text{JS}, θ) = p - (p-2)^2 \expect_θ\left[\frac{1}{\|X\|^2}\right] \end{align*} $$ so $δ^\text{JS}$ dominates the maximum likelihood estimator $X$ for $p\geq 3$.

Proof

$δ^\text{JS}$ is not admissible either as it is dominated by $$ \begin{align*} δ^\text{JS+}(X) = \max\left\{0, \;1-\frac{p-2}{\|X\|^2}\right\} X. \end{align*} $$