Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Continuous distributions and density functions

Heinrich Heine University Düsseldorf

The word closed is not decoration here. Without it the intersection would be empty for every distribution with a density: for X∼U([0,1])X \sim U([0,1]) the set [0,1]∖{x}[0,1] \setminus \{x\} still has probability 1 for every single xx (individual points are null sets – more on that shortly), so no point at all would lie in all of these sets. Insist on closed sets and [0,1][0,1] comes out, as it should. (That the intersection itself has probability 1 again, because countably many of the AA already suffice, is something we will not need.)

Every interval of the form [a,b][a,b] is closed, for instance, as is all of R\mathbb{R} and every finite set. The interval (0,1](0,1], by contrast, is not: the sequence 1k\frac1k lies in it, its limit 0 does not. The closure of (0,1](0,1] is [0,1][0,1].

For a discrete distribution with pmf pp and finitely many values, the support simplifies to

supp⁡(X)={ x ∣ p(x)>0 },\operatorname{supp}(X) = \{\, x \ \mid\ p(x) > 0 \,\},

that is, to the set of values that can occur at all (with infinitely many values, their accumulation points come along too, since the support is closed).

The support is defined for discrete real random variables too – the obvious difference being that the support of a discrete random variable contains no interval.

Density functions

So for a real random variable X ⁣:Ω→RX \colon \Omega \to \mathbb{R} whose distribution PXP_X has a density ff, we have for A⊆RA \subseteq \mathbb{R}

∫X−1(A)dP(ω)=P(X∈A)=PX(A)=∫Af(x)dx\int_{X^{-1}(A)} dP(\omega) = P(X \in A) = P_X(A) = \int_A f(x) dx

The integral on the right is now an integral over the range of XX. In the same way we can also compute the expected value and the variance:

This is the continuous counterpart of the sum over the probability mass function in the chapter Expected value and variance: the density takes the place of the pmf, the integral the place of the sum. That other functions of XX may be integrated in the same way is what the following theorem says.

We do not prove the theorem (it follows from the change-of-variables theorem for integrals), but we use it constantly: the definition of the variance is precisely the special case g(x)=(x−E(X))2g(x) = (x - \mathbb{E}(X))^2, and with g(x)=x2g(x) = x^2 we obtain, as in the discrete case,

V(X)=E(X2)−(E(X))2=∫Dx2f(x)dx−(E(X))2.\mathbb{V}(X) = \mathbb{E}(X^2) - {\left( \mathbb{E}(X) \right)}^2 = \int_D x^2 f(x) dx - {\left( \mathbb{E}(X) \right)}^2.

In general, E(Xk)=∫Dxkf(x)dx\mathbb{E}(X^k) = \int_D x^k f(x) dx is called the kk-th moment of XX.

So the cdf climbs steeply exactly where the density is large. In the chapter The most important continuous distributions the pdf and the cdf are always plotted together; look out for it there.