2.2 Choosing prior

It is clear that the choice of prior will influence the inference and so the choice of prior distribution becomes important.

If we have a subjective belief about what values the parameter is likely to take we can choose a prior that reflects this belief. For example we might know from experience that coins have a probability close to 0.5 of landing on heads and so we would choose a prior with most of the probability around 0.5.

However if the goal is to make scientific inference, for example convince the government that a particular drug is safe, choosing a subjective prior could face criticism. In such cases an alternative is to choose a non-informative prior. One way is to use a flat prior, \(p(\theta)\propto \text{constant}\). For example in the Bernoulli example choosing \(p(\theta)=1\) for \(0\leq \theta \leq 1\) seems reasonable.

Consider the model \(X\sim \mathsf N(\theta,\sigma^2)\), \(\sigma^2\) known. Here the flat prior would be \(p(\theta)=c>0\). Note however that \(p\) can never be a proper density since \[ \int_{-\infty}^\infty p(\theta)d\theta = \infty, \] for every choice of \(c\). Then \(p\) is said to be an improper prior. Although a little curious, we can still perform the Bayesian inference program. The posterior distribution is \[ p(\theta \mid x) \propto L(\theta)p(\theta) \propto L(\theta). \] So that with this choice the posterior distribution is just the likelihood. Continuing the example, let us say that we have a sample of size \(n\) with sample mean \(\bar x\). Then the likelihood is \[ L(\theta) \propto \prod_{i=1}^n e^{-\frac{1}{2\sigma^2}(x_i-\theta)^2} = e^{-\frac{1}{2\sigma^2}\sum_{i=1}^n(x_i-\theta)^2} \propto e^{-\frac{n}{2\sigma^2}(\theta-\bar x)^2}, \] which is the density of \(\mathsf N(\bar x, \sigma^2/n)\). Therefore the point estimates and interval estimators will be the same as in likelihood based inference.

A problem with flat priors is however that they are only non-informative in a particular parameterisation. Take again the Bernoulli example. If we say that we do not have any information about \(\theta\), then it would be reasonable to say that we also do not have any information about some function of \(\theta\). Take for example \(\Psi = \ln (\theta/(1-\theta))\). If \(p(\theta)=1\) for \(0\leq\theta\leq 1\), then the density of \(\Psi\) is \[\begin{align} p(\psi) & = \partial_\psi P(\Psi \leq \psi) = \partial_\psi P\left( \ln (\theta/(1-\theta)) \leq \psi \right)\\ &= \partial_\psi P\left( \theta \leq \frac{e^\psi}{1+e^\psi} \right) = \partial_\psi \frac{e^\psi}{1+e^\psi} = \frac{e^\psi}{(1+e^\psi)^2}, \end{align}\] which is clearly no longer non-informative. We say that flat priors are not transformation invariant.

One way to construct a prior that does not change under a change of parameterisation is Jeffreys’ prior: \[ p(\theta)\propto \sqrt{I(\theta)}, \] where \(I\) is the Fisher information. Recall that in the \(\mathsf{Bernoulli}(\theta)\) case \(I(\theta)=(\theta(1-\theta))^{-1}\) and so the Jeffreys prior is \[ p(\theta) \propto \theta^{-1/2}(1-\theta)^{-1/2}, \] which is a \(\mathsf{Beta}(1/2,1/2)\).