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 , every single value has probability . Adding up zeros gives nothing. So we stop asking about points and start asking about intervals.
A density is a function whose graph encloses total area . The probability that lands in an interval is the area under the density over that interval:
That is all we need from integrals in this topic: is the area under the graph between and . A random variable with a density is called continuous.
Two consequences follow at once. First, for every , because a vertical line has no area. Second, endpoints do not matter: .
An example we will reuse: the density on , and elsewhere. Its graph is a triangle with base and height , so the area is . The probability is the small triangle with base and height :
Values near are more likely than values near , even though each single value has probability zero.