Probability density function


A probability density function (PDF) is a function associated with a continuous Random variable that gives the Probability that the variable, when measured, falls between a certain range of values. The PDF describes the Probability distribution that the variable follows, though some care should be taken when interpreting individual values of the PDF.

Formally, for a random variable XX, its probability density function fX(x)f_{X}(x) is a non-negative Lebesgue-integrable function such that the probability of XX falling in the range [a,b][a,b] is

P[axb]=abfX(x)dxP[a\leq x\leq b]=\int_{a}^{b}f_{X}(x)dx

It must also be normalized, that is, integrate to one over the entire sample space to satisfy the definition of probability:

ΩfX(x)dx=1\int_{\Omega}f_{X}(x)dx=1

Unlike the Probability mass function, the PDF does not return probability values: it must be integrated to find the probabilities. In fact, unlike the PMF, the density's image is not limited between 0 and 1 and may contain values greater than 1. As such, the values of a PDF do not qualify as a probability by definition. The integral of the density, however, does have an image of [0,1][0,1] and fits the requirements of a probability, hence the normalization requirement. It is therefore convenient to define the integral of the PDF

xfX(u)du=FX(x)\int_{-\infty}^{x} f_{X}(u)du=F_{X}(x)

This integral is known as the cumulative distribution function of XX. It represents the probability that XX will be lower than xx.

Transformations

Given a continuous random variable XX of PDF fXf_{X} and an invertible transformation g(x)g(x), we can define the transformed random variable as Y=g(X)Y=g(X). The PDF of YY is

fY(y)=fX(g1(y))dxdyf_{Y}(y)=f_{X}(g^{-1}(y)) \left\lvert \frac{dx}{dy} \right\rvert

The same definition applies to a continuous random vector X\mathbf{X} that is invertibly transformed into another random vector Y=g(X)\mathbf{Y}=g(\mathbf{X}), except that the derivative becomes the determinant of the Jacobian of X\mathbf{X} with respect to Y\mathbf{Y}:

fY(y)=fX(g1(y)) JwhereJij=xiyjf_{\mathbf{Y}}(\mathbf{y})=f_{\mathbf{X}}(g^{-1}(\mathbf{y}))\ \lvert \mathrm{J} \rvert \quad\text{where}\quad J_{ij}=\frac{ \partial x_{i} }{ \partial y_{j} }