Definitioncore
Improper prior
Also called flat prior.
A prior measure with infinite total mass, such as a uniform prior on the real line. It is usable when the posterior it gives is proper.
An improper prior is a measure on the parameter space with infinite total mass, used in Bayes' theorem in the place of a prior density. Standard cases are the flat density on the real line for a location parameter and the density for a scale parameter. The product of likelihood and prior can still have a finite integral, and then the normalized product is a proper posterior that can be used like any other. Whether it is proper depends on the model and often on the data, so it must be checked; an improper prior also gives no joint law of parameter and data, so marginal likelihoods and Bayes factors are not defined.
Definition
Let the data have density , . An improper prior is a -finite measure on with infinite total mass; on it is given by a density with .
- The formal marginal is .
- If , the formal posterior is a probability density, and the posterior is called proper. If , there is no posterior.
- An improper prior is defined only up to a positive constant . The posterior does not depend on ; the formal marginal does.
A prior is improper because of its total mass, not because it is flat: the uniform density on is a proper prior, and on is improper without being flat. A noninformative prior can be proper, such as the Jeffreys prior Beta for a binomial proportion.
Why use one. Improper priors appear in three ways.
- As limits of proper priors. The posterior for a normal mean under the prior tends to the posterior under the flat prior as .
- From invariance. The flat prior on a location and on a scale are the priors left unchanged by shifts and by changes of units; the Jeffreys prior and the reference prior are often improper.
- To give estimators with good frequentist risk. The minimizer of posterior expected loss under an improper prior is a generalized Bayes estimator; many admissible estimators are of this form, and some generalized Bayes estimators are not admissible, such as the sample mean of a normal vector in three or more dimensions.
What breaks. Under an improper prior has no joint probability law and is not a probability density, since . Three consequences follow.
- Propriety must be checked. For each model, find the data sets with . The check is analytic: bound the integral of near every place where or is large, such as the ends of and points where a variance is 0.
- A sampler does not check it. The full conditional laws used by Gibbs sampling can all be proper while the joint posterior is not. The chain then runs and gives numbers that approximate nothing (Hobert and Casella, 1996).
- Bayes factors are undefined. The Bayes factor changes by the factor when the improper prior of model 1 is replaced by , so its value is arbitrary. The constant cancels only for a parameter that both models share with the same prior. A very diffuse proper prior in its place gives a Bayes factor that depends on the prior scale; that is the Lindley paradox.
Examples and non-examples
A normal mean, flat prior. Let be iid with known and on . Then is finite for and the posterior is . Its 95% credible interval has the numbers of the z confidence interval.
A normal mean and scale, prior . Let on . For observations that are not all equal the posterior is proper, and is distributed as , with the sample variance with divisor . For the data 2.1, 3.4, 2.9, 3.8 (, , ) the 95% credible interval for is , the same numbers as the t confidence interval. For the posterior is improper: integrating over first gives .
The Haldane prior. For Binomial take on , the formal Beta. The formal posterior is Beta, which is proper only when . For , . A data set with no successes, the case where a prior matters most, gives no posterior at all.
A variance component with prior . Let and for , with . Integrating out the gives iid , whose likelihood tends to the positive value as , where is the standard normal density. So , and the posterior is improper for every data set. Yet both full conditionals are proper: , and is inverse gamma with shape and scale .
What the Gibbs sampler does (measured). Take and start the chain at . For data drawn with seed 7 and (), fell below at iteration 237 and was at iteration 2000: the chain fell into the infinite mass at 0. For data drawn with and seeds 1, 2 and 3 (, 93.59 and 63.15), 200000 iterations never went below 0.33, and the medians of the first 10000 draws were 11.5, 11.38 and 7.38. Those chains look healthy, but there is no posterior for them to approximate.
Non-example: the uniform prior on . It is flat and proper. The "flat prior" alias of this page refers to flat densities on unbounded sets.
Non-example: a vague proper prior. for a mean is proper, so the posterior always exists. When the data are informative its posterior is close to the flat-prior one, but its marginal likelihood, and so any Bayes factor that uses it, depends on the value .
Related definitions
- Jeffreys prior. The prior proportional to ; improper for location and scale families, proper for a binomial proportion.
- Reference prior. Bernardo's prior that lets the data dominate; often improper, and defined as a limit of proper priors on compact sets.
- Generalized Bayes estimator. The minimizer of posterior expected loss under an improper prior with a proper posterior; see Bayes estimator.
- Marginal likelihood. Defined only up to the arbitrary constant of an improper prior, so it cannot compare models.
- Hierarchical Bayesian model. The setting where improper priors on variance components most often give improper posteriors; proper priors such as a half-Cauchy on the standard deviation avoid the problem.
References
- James P. Hobert and George Casella, The effect of improper priors on Gibbs sampling in hierarchical linear mixed models, Journal of the American Statistical Association 91(436), 1996, pages 1461 to 1473 (conditions for a proper posterior in hierarchical linear mixed models, and Gibbs samplers whose conditionals are proper while the joint posterior is not)
- Christian P. Robert, The Bayesian Choice, 2nd edition, Springer, 2007, Chapter 1 (improper prior distributions) and Chapter 3 (noninformative priors)
- Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari and Donald B. Rubin, Bayesian Data Analysis, 3rd edition, CRC Press, 2013, Chapter 2 (noninformative and improper priors, and the need to check that the posterior is proper) and Chapter 5 (hierarchical models and the prior for the group-level variance)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 9EF9PG Edit this page History Report an error Markdown