# Jeffreys prior

(Redirected from Jeffreys' prior)

In Bayesian probability, the Jeffreys prior, named after Sir Harold Jeffreys, is a non-informative (objective) prior distribution for a parameter space; its density function is proportional to the square root of the determinant of the Fisher information matrix:

${\displaystyle p\left({\vec {\theta }}\right)\propto {\sqrt {\det {\mathcal {I}}\left({\vec {\theta }}\right)}}.\,}$

It has the key feature that it is invariant under a change of coordinates for the parameter vector ${\displaystyle {\vec {\theta }}}$. That is, the relative probability assigned to a volume of a probability space using a Jeffreys prior will be the same regardless of the parameterization used to define the Jeffreys prior. This makes it of special interest for use with scale parameters.[1]

## Reparameterization

### One-parameter case

For an alternative parameterization ${\displaystyle \varphi }$  we can derive

${\displaystyle p(\varphi )\propto {\sqrt {I(\varphi )}}\,}$

from

${\displaystyle p(\theta )\propto {\sqrt {I(\theta )}}\,}$

using the change of variables theorem for transformations and the definition of Fisher information:

{\displaystyle {\begin{aligned}p(\varphi )&=p(\theta )\left|{\frac {d\theta }{d\varphi }}\right|\\&\propto {\sqrt {I(\theta )\left({\frac {d\theta }{d\varphi }}\right)^{2}}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d\ln L}{d\theta }}\right)^{2}\right]\left({\frac {d\theta }{d\varphi }}\right)^{2}}}\\&={\sqrt {\operatorname {E} \!\left[\left({\frac {d\ln L}{d\theta }}{\frac {d\theta }{d\varphi }}\right)^{2}\right]}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d\ln L}{d\varphi }}\right)^{2}\right]}}\\&={\sqrt {I(\varphi )}}.\end{aligned}}}

### Multiple-parameter case

For an alternative parameterization ${\displaystyle {\vec {\varphi }}}$  we can derive

${\displaystyle p({\vec {\varphi }})\propto {\sqrt {\det I({\vec {\varphi }})}}\,}$

from

${\displaystyle p({\vec {\theta }})\propto {\sqrt {\det I({\vec {\theta }})}}\,}$

using the change of variables theorem for transformations, the definition of Fisher information, and that the product of determinants is the determinant of the matrix product:

{\displaystyle {\begin{aligned}p({\vec {\varphi }})&=p({\vec {\theta }})\left|\det {\frac {\partial \theta _{i}}{\partial \varphi _{j}}}\right|\\&\propto {\sqrt {\det I({\vec {\theta }})\,{\det }^{2}{\frac {\partial \theta _{i}}{\partial \varphi _{j}}}}}\\&={\sqrt {\det {\frac {\partial \theta _{k}}{\partial \varphi _{i}}}\,\det \operatorname {E} \!\left[{\frac {\partial \ln L}{\partial \theta _{k}}}{\frac {\partial \ln L}{\partial \theta _{l}}}\right]\,\det {\frac {\partial \theta _{l}}{\partial \varphi _{j}}}}}\\&={\sqrt {\det \operatorname {E} \!\left[\sum _{k,l}{\frac {\partial \theta _{k}}{\partial \varphi _{i}}}{\frac {\partial \ln L}{\partial \theta _{k}}}{\frac {\partial \ln L}{\partial \theta _{l}}}{\frac {\partial \theta _{l}}{\partial \varphi _{j}}}\right]}}\\&={\sqrt {\det \operatorname {E} \!\left[{\frac {\partial \ln L}{\partial \varphi _{i}}}{\frac {\partial \ln L}{\partial \varphi _{j}}}\right]}}={\sqrt {\det I({\vec {\varphi }})}}.\end{aligned}}}

## Attributes

From a practical and mathematical standpoint, a valid reason to use this non-informative prior instead of others, like the ones obtained through a limit in conjugate families of distributions, is that the relative probability of a volume of the probability space is not dependent upon the set of parameter variables that is chosen to describe parameter space.

Sometimes the Jeffreys prior cannot be normalized, and is thus an improper prior. For example, the Jeffreys prior for the distribution mean is uniform over the entire real line in the case of a Gaussian distribution of known variance.

Use of the Jeffreys prior violates the strong version of the likelihood principle, which is accepted by many, but by no means all, statisticians. When using the Jeffreys prior, inferences about ${\displaystyle {\vec {\theta }}}$  depend not just on the probability of the observed data as a function of ${\displaystyle {\vec {\theta }}}$ , but also on the universe of all possible experimental outcomes, as determined by the experimental design, because the Fisher information is computed from an expectation over the chosen universe. Accordingly, the Jeffreys prior, and hence the inferences made using it, may be different for two experiments involving the same ${\displaystyle {\vec {\theta }}}$  parameter even when the likelihood functions for the two experiments are the same—a violation of the strong likelihood principle.

## Minimum description length

In the minimum description length approach to statistics the goal is to describe data as compactly as possible where the length of a description is measured in bits of the code used. For a parametric family of distributions one compares a code with the best code based on one of the distributions in the parameterized family. The main result is that in exponential families, asymptotically for large sample size, the code based on the distribution that is a mixture of the elements in the exponential family with the Jeffreys prior is optimal. This result holds if one restricts the parameter set to a compact subset in the interior of the full parameter space[citation needed]. If the full parameter is used a modified version of the result should be used.

## Examples

The Jeffreys prior for a parameter (or a set of parameters) depends upon the statistical model.

### Gaussian distribution with mean parameter

For the Gaussian distribution of the real value ${\displaystyle x}$

${\displaystyle f(x\mid \mu )={\frac {e^{-(x-\mu )^{2}/2\sigma ^{2}}}{\sqrt {2\pi \sigma ^{2}}}}}$

with ${\displaystyle \sigma }$  fixed, the Jeffreys prior for the mean ${\displaystyle \mu }$  is

{\displaystyle {\begin{aligned}p(\mu )&\propto {\sqrt {I(\mu )}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d}{d\mu }}\log f(x\mid \mu )\right)^{2}\right]}}={\sqrt {\operatorname {E} \!\left[\left({\frac {x-\mu }{\sigma ^{2}}}\right)^{2}\right]}}\\&={\sqrt {\int _{-\infty }^{+\infty }f(x\mid \mu )\left({\frac {x-\mu }{\sigma ^{2}}}\right)^{2}dx}}={\sqrt {1/\sigma ^{2}}}\propto 1.\end{aligned}}}

That is, the Jeffreys prior for ${\displaystyle \mu }$  does not depend upon ${\displaystyle \mu }$ ; it is the unnormalized uniform distribution on the real line — the distribution that is 1 (or some other fixed constant) for all points. This is an improper prior, and is, up to the choice of constant, the unique translation-invariant distribution on the reals (the Haar measure with respect to addition of reals), corresponding to the mean being a measure of location and translation-invariance corresponding to no information about location.

### Gaussian distribution with standard deviation parameter

For the Gaussian distribution of the real value ${\displaystyle x}$

${\displaystyle f(x\mid \sigma )={\frac {e^{-(x-\mu )^{2}/2\sigma ^{2}}}{\sqrt {2\pi \sigma ^{2}}}},}$

with ${\displaystyle \mu }$  fixed, the Jeffreys prior for the standard deviation ${\displaystyle \sigma >0}$  is

{\displaystyle {\begin{aligned}p(\sigma )&\propto {\sqrt {I(\sigma )}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d}{d\sigma }}\log f(x\mid \sigma )\right)^{2}\right]}}={\sqrt {\operatorname {E} \!\left[\left({\frac {(x-\mu )^{2}-\sigma ^{2}}{\sigma ^{3}}}\right)^{2}\right]}}\\&={\sqrt {\int _{-\infty }^{+\infty }f(x\mid \sigma )\left({\frac {(x-\mu )^{2}-\sigma ^{2}}{\sigma ^{3}}}\right)^{2}dx}}={\sqrt {\frac {2}{\sigma ^{2}}}}\propto {\frac {1}{\sigma }}.\end{aligned}}}

Equivalently, the Jeffreys prior for ${\textstyle \log \sigma =\int d\sigma /\sigma }$  is the unnormalized uniform distribution on the real line, and thus this distribution is also known as the logarithmic prior. Similarly, the Jeffreys prior for ${\displaystyle \log \sigma ^{2}=2\log \sigma }$  is also uniform. It is the unique (up to a multiple) prior (on the positive reals) that is scale-invariant (the Haar measure with respect to multiplication of positive reals), corresponding to the standard deviation being a measure of scale and scale-invariance corresponding to no information about scale. As with the uniform distribution on the reals, it is an improper prior.

### Poisson distribution with rate parameter

For the Poisson distribution of the non-negative integer ${\displaystyle n}$ ,

${\displaystyle f(n\mid \lambda )=e^{-\lambda }{\frac {\lambda ^{n}}{n!}},}$

the Jeffreys prior for the rate parameter ${\displaystyle \lambda \geq 0}$  is

{\displaystyle {\begin{aligned}p(\lambda )&\propto {\sqrt {I(\lambda )}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d}{d\lambda }}\log f(n\mid \lambda )\right)^{2}\right]}}={\sqrt {\operatorname {E} \!\left[\left({\frac {n-\lambda }{\lambda }}\right)^{2}\right]}}\\&={\sqrt {\sum _{n=0}^{+\infty }f(n\mid \lambda )\left({\frac {n-\lambda }{\lambda }}\right)^{2}}}={\sqrt {\frac {1}{\lambda }}}.\end{aligned}}}

Equivalently, the Jeffreys prior for ${\textstyle {\sqrt {\lambda }}=\int d\lambda /{\sqrt {\lambda }}}$  is the unnormalized uniform distribution on the non-negative real line.

### Bernoulli trial

For a coin that is "heads" with probability ${\displaystyle \gamma \in [0,1]}$  and is "tails" with probability ${\displaystyle 1-\gamma }$ , for a given ${\displaystyle (H,T)\in \{(0,1),(1,0)\}}$  the probability is ${\displaystyle \gamma ^{H}(1-\gamma )^{T}}$ . The Jeffreys prior for the parameter ${\displaystyle \gamma }$  is

{\displaystyle {\begin{aligned}p(\gamma )&\propto {\sqrt {I(\gamma )}}={\sqrt {\operatorname {E} \!\left[\left({\frac {d}{d\gamma }}\log f(x\mid \gamma )\right)^{2}\right]}}={\sqrt {\operatorname {E} \!\left[\left({\frac {H}{\gamma }}-{\frac {T}{1-\gamma }}\right)^{2}\right]}}\\&={\sqrt {\gamma \left({\frac {1}{\gamma }}-{\frac {0}{1-\gamma }}\right)^{2}+(1-\gamma )\left({\frac {0}{\gamma }}-{\frac {1}{1-\gamma }}\right)^{2}}}={\frac {1}{\sqrt {\gamma (1-\gamma )}}}\,.\end{aligned}}}

This is the arcsine distribution and is a beta distribution with ${\displaystyle \alpha =\beta =1/2}$ . Furthermore, if ${\displaystyle \gamma =\sin ^{2}(\theta )}$  then

${\displaystyle \Pr[\theta ]=\Pr[\gamma ]{\frac {d\gamma }{d\theta }}\propto {\frac {1}{\sqrt {(\sin ^{2}\theta )(1-\sin ^{2}\theta )}}}~2\sin \theta \cos \theta =2\,.}$

That is, the Jeffreys prior for ${\displaystyle \theta }$  is uniform in the interval ${\displaystyle [0,\pi /2]}$ . Equivalently, ${\displaystyle \theta }$  is uniform on the whole circle ${\displaystyle [0,2\pi ]}$ .

### N-sided die with biased probabilities

Similarly, for a throw of an ${\displaystyle N}$ -sided die with outcome probabilities ${\displaystyle {\vec {\gamma }}=(\gamma _{1},\ldots ,\gamma _{N})}$ , each non-negative and satisfying ${\displaystyle \sum _{i=1}^{N}\gamma _{i}=1}$ , the Jeffreys prior for ${\displaystyle {\vec {\gamma }}}$  is the Dirichlet distribution with all (alpha) parameters set to one half. This amounts to using a pseudocount of one half for each possible outcome.

Equivalently, if we write ${\displaystyle \gamma _{i}=\varphi _{i}^{2}}$  for each ${\displaystyle i}$ , then the Jeffreys prior for ${\displaystyle {\vec {\varphi }}}$  is uniform on the (N − 1)-dimensional unit sphere (i.e., it is uniform on the surface of an N-dimensional unit ball).

## References

1. ^ Jaynes, E. T. (1968) "Prior Probabilities", IEEE Trans. on Systems Science and Cybernetics, SSC-4, 227 pdf.