A constructed model for a waiting time, measured in hours, uses a density curve that reaches the height . Does that give some waiting time a probability of , which no probability can be? It does not, because a density height is not a probability at all. Keeping three things apart settles the question, namely the possible values, the density at those values, and the probability of an interval. This lesson states exactly what a density must satisfy, what its height and units mean, how to write a complete CDF and read interval probabilities from it, and why each single value has probability zero.
Key terms
Probability density function
Definition A probability density function, or density, is a function defined for every real number with for every and
A random variable has density if, for all real numbers ,
The distribution of is then called absolutely continuous. Every absolutely continuous distribution has a continuous CDF, but a continuous CDF alone does not guarantee a density. In the models of this lesson, the probability is spread over an interval, called the support, and is outside it. A density of a distribution is not unique, since changing at finitely many points, to other nonnegative values, changes no integral and so gives another density of the same distribution.
In plain words A density describes a distribution by how thickly probability is spread along the axis. The probability of an interval is the area under the curve above it, and the heights of the curve are rates, not probabilities.
Example Let the waiting time , in hours, have density
The support is , the function is nonnegative, and the region under it is a triangle with base and height , so its area is . Writing only would not define a distribution, because that formula is negative for every .
Normalization of a density
Definition A function is a density exactly when it passes two separate checks. It must be nonnegative, for every , and it must be normalized, with total integral . If is a nonnegative function whose total area is finite and positive, then is a density, and finding this is called normalizing . In particular, a density of the form requires .
In plain words The total probability must be , so the heights of a density are scaled to fit the width of its support. Spreading the same total over a wider interval calls for a lower average height.
Example Suppose for and otherwise. Normalization requires
so and on , which is nonnegative. The constant height on is nonnegative but encloses area , so it is not a density, while the constant height on is one. In the other direction, on has total area but is negative for , and it would give the interval the impossible value
Density units
Definition If is measured in some unit, then a density value is measured in probability per unit of , the reciprocal unit, such as per hour. A probability comes from a density only as an area, where heights are multiplied by widths and added up. A density value can be any nonnegative number, including numbers larger than . If the variable is rescaled to with a constant , as in a change of units, then , and the substitution in the integral of up to shows that has density
In plain words A density height says how much probability there is per unit of width. Measuring the same quantity in a smaller unit spreads the same probability over more units, so every height is divided by the conversion factor, while every probability stays the same.
Example For the waiting time with density on , the height at hour is per hour. The same wait in minutes is , with density
for , so the height at minutes is per minute. The event of waiting at most half an hour has the same probability in both units, and . In the same way, the density on from the previous card is the density of .
CDF of a continuous variable
Definition If has density , its CDF is
for every real number . This is continuous everywhere and nondecreasing, it tends to as and to as , and at every where is continuous. A complete CDF gives a value at every real threshold. For a density that is outside , it equals for , equals for , and equals for .
In plain words The CDF records the area to the left of each threshold. It is flat on every interval where the density is , rises over every interval where the density is positive, and never exceeds . The horizontal pieces outside the support are part of the answer, not decoration.
Example For the density on , integrating from to gives , so
The formula on its own is not the CDF, since it exceeds for and decreases for , which no CDF can do. The pieces meet at and at , so has no jumps. For the density on , the middle piece is for , with to its left and to its right.
Interval probability from a CDF
Definition For any random variable with CDF and real numbers ,
When has a density, is continuous, so including or excluding endpoints changes nothing. The probabilities , and also equal , and .
In plain words Take the probability accumulated up to the right end and remove what had accumulated by the left end. For an upper tail, remove the accumulated probability from the total .
Example For the density on ,
and . For the density on , the probability of a value above is .
Zero probability at a point
Definition If has a density, then for every real number . Indeed, for every ,
and the right side tends to as decreases to , because is continuous. Probability does not mean impossible. Every value of has probability , yet always takes some value. A random variable that gives some single value positive probability, such as any discrete random variable, has no density.
In plain words In a density model, probability lives on intervals, not on single points. Shrinking an interval around a point shrinks its area to , even where the curve is tall.
Example For the density on ,
which is for and tends to . So , even though lies inside the support and . This is why is also . A fair die roll is different. It has , a jump of in its CDF at , and no density.
Check yourself
- A random variable has density for , for , and otherwise. Check that is a density, and find from areas.
Show the answer
Both heights are nonnegative, and the two rectangles have areas and , which add to . The interval covers half of each rectangle, so
- Write the complete CDF of the same , and use it to check the answer to question 1.
Show the answer
Below nothing has accumulated. On the area is . Beyond the first rectangle contributes and the second adds , which together give . So
The piece is at , both middle pieces give at , and the second of them gives at , so is continuous even though the density jumps at , and . Then , which matches.
- A random variable has density for and otherwise. Find , then find and . A classmate answers . What is wrong with that?
Show the answer
Normalization requires
so , and then is nonnegative on . The CDF on is , so . Because has a density, . The classmate’s value is a probability per unit of , not a probability. It says that a short interval of width near has probability close to .