ⓘ Normalizing constant. The concept of a normalizing constant arises in probability theory and a variety of other areas of mathematics. The normalizing constant i ..


ⓘ Normalizing constant

The concept of a normalizing constant arises in probability theory and a variety of other areas of mathematics. The normalizing constant is used to reduce any probability function to a probability density function with total probability of one.


1. 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 x = e − x 2 / 2, x ∈ − ∞, ∞ {\displaystyle px=e^{-x^{2}/2},x\in -\infty,\infty}

we have

∫ − ∞ ∞ p x d x = ∫ − ∞ ∞ e − x 2 / 2 d x = 2 π, {\displaystyle \int _{-\infty }^{\infty }px\,dx=\int _{-\infty }^{\infty }e^{-x^{2}/2}\,dx={\sqrt {2\pi \,}},}

if we define a function φ x {\displaystyle \varphi x} as

φ x = 1 2 π p x = 1 2 π e − x 2 / 2 {\displaystyle \varphi x={\frac {1}{\sqrt {2\pi \,}}}px={\frac {1}{\sqrt {2\pi \,}}}e^{-x^{2}/2}}

so that

∫ − ∞ ∞ φ x d x = ∫ − ∞ ∞ 1 2 π e − x 2 / 2 d x = 1 {\displaystyle \int _{-\infty }^{\infty }\varphi x\,dx=\int _{-\infty }^{\infty }{\frac {1}{\sqrt {2\pi \,}}}e^{-x^{2}/2}\,dx=1}

then the function φ x {\displaystyle \varphi x} is a probability density function. This is the density of the standard normal distribution.

And constant 1 2 π {\displaystyle {\frac {1}{\sqrt {2\pi \,}}}} is the normalizing constant of function p x {\displaystyle px}.


∑ n = 0 ∞ λ n n! = e λ, {\displaystyle \sum _{n=0}^{\infty }{\frac {\lambda ^{n}}{n!}}=e^{\lambda },}

and consequently

f n = λ n e − λ n! {\displaystyle fn={\frac {\lambda ^{n}e^{-\lambda }}{n!}}}

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.


2. 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 H 0 | D = P D | H 0 P H 0 P D {\displaystyle PH_{0}|D={\frac {PD|H_{0}PH_{0}}{PD}}}

where PH 0 is the prior probability that the hypothesis is true; PD|H 0 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; PH 0 |D is the posterior probability that the hypothesis is true given the data. PD 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 H 0 | D ∝ P D | H 0 P H 0. {\displaystyle PH_{0}|D\propto PD|H_{0}PH_{0}.}

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

P H 0 | D = P D | H 0 P H 0 ∑ i P D | H i P H i. {\displaystyle PH_{0}|D={\frac {PD|H_{0}PH_{0}}{\displaystyle \sum _{i}PD|H_{i}PH_{i}}}.}

In this case, the reciprocal of the value

P D = ∑ i P D | H i P H i {\displaystyle PD=\sum _{i}PD|H_{i}PH_{i}\;}

is the normalizing constant. It can be extended from countably many hypotheses to uncountably many by replacing the sum by an integral.


3. Non-probabilistic uses

The Legendre polynomials are characterized by orthogonality with respect to the uniform measure on the interval 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

⟨ f i, f j ⟩ = δ i, j {\displaystyle \langle f_{i},\,f_{j}\rangle =\,\delta _{i,j}}

with respect to some inner product < f, g >.

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.