A probability density function of a PP on Rd\mathbb R^d is a nonnegative measurable function ff such that, for every Borel set AA,

P(A)=Af(x)dx,P(A)=\int_A f(x)\,dx,

where the is with respect to .

Properties

Necessarily Rdf(x)dx=1\int_{\mathbb R^d}f(x)\,dx=1. Densities are unique only up to changes on sets of Lebesgue measure zero. The density of a random variable means a density of its .

A density can exceed one; probabilities are integrals over sets. Not every probability measure has a density with respect to Lebesgue measure.

General reference measures

Relative to another measure ν\nu, a density is a dP/dνdP/d\nu. A is a density relative to counting measure on a countable state space.

Examples

The has a Gaussian density; the has constant density on that interval.