### Normalization factor

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 non-negative function must be multiplied so the area under its graph is 1, e.g., to make it a probability density function or a probability mass function. For example, if we define

$p\left(x\right)=e^\left\{-x^2/2\right\}, x\in\left(-\infty,\infty\right)$

we have

$\int_\left\{-\infty\right\}^\infty p\left(x\right)\,dx=\int_\left\{-\infty\right\}^\infty e^\left\{-x^2/2\right\}\,dx=\sqrt\left\{2\pi\,\right\},$

if we define function $\varphi\left(x\right)$ as

$\varphi\left(x\right)= \frac\left\{1\right\}\left\{\sqrt\left\{2\pi\,\right\}\right\} p\left(x\right) = \frac\left\{1\right\}\left\{\sqrt\left\{2\pi\,\right\}\right\} e^\left\{-x^2/2\right\}$

so that

$\int_\left\{-\infty\right\}^\infty \varphi\left(x\right)\,dx=\int_\left\{-\infty\right\}^\infty \frac\left\{1\right\}\left\{\sqrt\left\{2\pi\,\right\}\right\} e^\left\{-x^2/2\right\}\,dx=1$

Function $\varphi\left(x\right)$ 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.)

And constant $\frac\left\{1\right\}\left\{\sqrt\left\{2\pi\,\right\}\right\}$ is the normalizing constant of function $p\left(x\right)$.

Similarly,

$\sum_\left\{n=0\right\}^\infty \frac\left\{\lambda^n\right\}\left\{n!\right\}=e^\lambda ,$

and consequently

$f\left(n\right)=\frac\left\{\lambda^n e^\left\{-\lambda\right\}\right\}\left\{n!\right\}$

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 λ.

Note that if the probability density function is a function of various parameters, so too will be its normalizing constant. The parametrised 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 to assign measure 1 to the whole space, i.e., to get a probability measure. In a simple discrete case we have

$P\left(H_0|D\right) = \frac\left\{P\left(D|H_0\right)P\left(H_0\right)\right\}\left\{P\left(D\right)\right\}$

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:

$P\left(H_0|D\right) \propto P\left(D|H_0\right)P\left(H_0\right).$

Since P(H|D) is a probability, the sum over all possible (mutually exclusive) hypotheses should be 1, leading to the conclusion that

$P\left(H_0|D\right) = \frac\left\{P\left(D|H_0\right)P\left(H_0\right)\right\}\left\{\displaystyle\sum_i P\left(D|H_i\right)P\left(H_i\right)\right\} .$

In this case, the reciprocal of the value

$P\left(D\right)=\sum_i P\left(D|H_i\right)P\left(H_i\right) \;$

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 so its value at 1 is 1 is a normalizing constant.

Orthonormal functions are normalized such that

$\langle f_i , \, f_j\rangle = \, \delta_\left\{i,j\right\}$

with respect to some inner product <fg>.

The constant 1/√2 is used to establish the hyperbolic functions cosh and sinh from the lengths of the adjacent and opposite sides of a hyperbolic triangle.