Normalizing constant
|
The concept of a normalizing constant arises in probability theory and a variety of other areas of mathematics.
Definition and examples
In probability theory, a normalizing constant is a constant by which an everywhere nonnegative function must be multiplied in order to get a probability density function or a probability mass function. For example, we have
- <math>\int_{-\infty}^\infty e^{-x^2/2}\,dx=\sqrt{2\pi\,},<math>
so that
- <math> \varphi(x) = \frac{1}{\sqrt{2\pi\,}} e^{-x^2/2} <math>
is a probability density function. This is the density of the standard normal distribution. (Standard, in this case, means the expected value is 0 and the variance is 1.)
Similarly,
- <math>\sum_{n=0}^\infty \frac{\lambda^n}{n!}=e^\lambda ,<math>
and consequently
- <math>f(n)=\frac{\lambda^n e^{-\lambda}}{n!}<math>
is a probability mass function on the set of all nonnegative integers. This is the probability mass function of the Poisson distribution with expected value λ.
The normalizing constant for the Boltzmann distribution plays a central role in statistical mechanics. In that context, the normalizing constant is called the partition function.
Bayes' theorem
Bayes' theorem says that the posterior probability measure is proportional to the product of the prior probability measure and the likelihood function . Proportional to implies that one must multiply or divide by a normalizing constant in order to assign measure 1 to the whole space, i.e., to get a probability measure. In a simple discrete case we have
- <math>P(H_0|D) = \frac{P(D|H_0)P(H_0)}{P(D)}<math>
where P(H0) is the prior probability that the hypothesis is true; P(D|H0) is the conditional probability of the data given that the hypothesis is true, but given that the data are known it is the likelihood of the hypothesis (or its parameters) given the data; P(H0|D) is the posterior probability that the hypothesis is true given the data. P(D) should be the probability of producing the data, but on its own is difficult to calculate, so an alternative way to describe this relationship is as one of proportionality:
- <math>P(H_0|D) \sim P(D|H_0)P(H_0)<math>.
Since P(H|D) is a probability, the sum over all possible (mutually exclusive) hypotheses should be 1, leading to the conclusion that
- <math>P(H_0|D) = \frac{P(D|H_0)P(H_0)}{\sum_i P(D|H_i)P(H_i)} .<math>
In this case, the value
- <math>P(D)=\sum_i P(D|H_i)P(H_i) \;<math>
is the normalizing constant. It can be extended from countably many hypotheses to uncountably many by replacing the sum by an integral.
Non-probabilistic uses
The Legendre polynomials are characterized by orthogonality with respect to the uniform measure on the interval [− 1, 1] and the fact that they are normalized so that their value at 1 is 1. The constant by which one multiplies a polynomial in order that its value at 1 will be 1 is a normalizing constant.