Skip to content
BIASED

Continuous distributions

Block 1 of 8~3 min

From sums to areas

The topic Discrete distributions described a random variable by its pmf: list the values, give each one a probability, add them up. That works for counts. But a server's response time, a person's height or a classifier's score take values on a continuum, and there the list breaks down.

The reason already appeared in the topic Kolmogorov's axioms: for a point uniform on [0,1][0, 1], every single value has probability 00. Adding up zeros gives nothing. So we stop asking about points and start asking about intervals.

A density is a function pX(x)≥0p_X(x) \ge 0 whose graph encloses total area 11. The probability that XX lands in an interval is the area under the density over that interval:

P(a≤X≤b)=∫abpX(x) dx.P(a \le X \le b) = \int_a^b p_X(x)\,dx.

That is all we need from integrals in this topic: ∫ab\int_a^b is the area under the graph between aa and bb. A random variable with a density is called continuous.

Two consequences follow at once. First, P(X=a)=0P(X = a) = 0 for every aa, because a vertical line has no area. Second, endpoints do not matter: P(a≤X≤b)=P(a<X<b)P(a \le X \le b) = P(a < X < b).

An example we will reuse: the density p(x)=2xp(x) = 2x on [0,1][0, 1], and 00 elsewhere. Its graph is a triangle with base 11 and height 22, so the area is 11. The probability P(X≤0.5)P(X \le 0.5) is the small triangle with base 0.50.5 and height 11:

P(X≤0.5)=12⋅0.5⋅1=0.25.P(X \le 0.5) = \tfrac12 \cdot 0.5 \cdot 1 = 0.25.

Values near 11 are more likely than values near 00, even though each single value has probability zero.

Answers are saved on the server and tied to this browser until you sign in.