Probability Mass, Density, and Cumulative Probability
Separate discrete probability mass from continuous density and interval area. Use the cumulative distribution function to describe accumulated probability and recover interval probabilities by subtraction.
The word “probability” refers to different numerical objects in discrete and continuous models. A discrete value can carry probability mass. A continuous point has no interval width and normally carries zero probability; a density describes how probability is concentrated nearby. The cumulative distribution function provides one language that works in both settings.
Discrete Values Carry Probability Mass
For a discrete random variable , the probability mass function (PMF) is:
Every mass is nonnegative, and the masses across the support sum to one:
Consider a variable with the following PMF:
The event contains the values and , so:
A PMF value is already a probability. Its horizontal location identifies one possible value, and its height gives the mass placed exactly there.
Exercise: Add discrete probability mass
Using the table above, what is ?
Compute it first, then check your number.
HintIdentify the included values
The event contains and .
SolutionSum the masses at one and two
The two included values carry masses and . Therefore:
The mass at is excluded because that value does not satisfy the event.
Continuous Values Use Probability Density
For a continuous random variable, a probability density function (PDF), written , describes probability per unit of . A valid density is nonnegative and has total area one:
Probability over an interval is area under the density:
“The probability that lies from through equals the integral of its density from to .” For a continuous variable, probability is the area over the interval, not the density height at one point.
Suppose on and is zero elsewhere. The density is constant, and its total rectangular area is . The probability between and is:
The density height is not the probability of one point. For a continuous random variable:
even where is positive. A single point has zero width, so its area is zero.
Exercise: Calculate area under a uniform density
A density equals on and zero elsewhere. What is ?
Compute it first, then check your number.
HintMultiply height by interval width
The interval width is .
SolutionIntegrate the constant density
Since the density is constant on the interval:
The result is an interval area and is therefore a probability between zero and one.
A Density Can Be Greater Than One
A probability must not exceed one, but a density is not a probability. If a variable is uniform on the short interval , its density must have height so that its total area is one:
The density value is valid because probability comes from height multiplied by width. On the subinterval , the probability is .
Exercise: Interpret a density above one
A random variable is uniform on , with density on that interval. Is this a valid density?
Select one choice, then check.
HintCalculate the rectangle's area
Multiply the support width by the height .
SolutionNormalization depends on area
The density is nonnegative and its total area is:
It is therefore valid. The bound applies to event probabilities, not to density values measured per unit of .
The CDF Accumulates Probability
The cumulative distribution function (CDF) of any real-valued random variable is:
Every CDF has four structural properties:
- ;
- it never decreases as increases;
- it approaches far to the left;
- it approaches far to the right.
A CDF is also right-continuous: its value at includes any mass placed exactly at .
For a discrete variable, the CDF is a step function. At a value , its jump size equals the point mass:
where is the accumulated probability immediately to the left of .
For a continuous variable with density :
and wherever the CDF is differentiable:
Thus the CDF is accumulated probability, while the density is its local rate of accumulation.
Exercise: Read point mass from a CDF jump
A discrete CDF has and . What is ?
Compute it first, then check your number.
HintMeasure the jump at two
Subtract the accumulated probability immediately before from the value that includes .
SolutionThe CDF jump equals the point mass
The jump size is:
This jump is possible because the variable is discrete. A continuous CDF has no point-mass jumps.
CDF Differences Give Interval Probability
Because includes all mass at or below , while includes all mass at or below :
If and , then:
For a continuous random variable, individual endpoints have probability zero, so , , and the other endpoint variants are equal. For a discrete variable, endpoint inclusion can change the answer and must be read carefully.
Exercise: Calculate an interval from a CDF
If and , what is ?
Compute it first, then check your number.
HintRemove the earlier accumulation
The probability through is already included in the probability through .
SolutionSubtract the two cumulative probabilities
The required interval excludes values at or below and includes values up to . Therefore:
Compare PMFs, PDFs, and CDFs Visually
The following plots place a discrete PMF beside its step-shaped CDF and a continuous uniform PDF beside its continuous CDF. Change the discrete masses or the uniform interval and inspect what changes locally and cumulatively.
Plot discrete mass, continuous density, and their CDFs
Edit either distribution. In the left column, height means mass or density; in the right column, height always means accumulated probability.
Ready to run.
The CDF always has probability on its vertical axis. By contrast, the PMF has probability mass on its vertical axis and the PDF has probability per unit of . This difference is also visible in their units.
Units Distinguish Mass from Density
Probability mass and cumulative probability are unitless. A density has inverse units. If is measured in seconds, has units of probability per second. Integrating over an interval measured in seconds cancels those units and produces a unitless probability.
Before using a distribution, identify whether a displayed function is a PMF, PDF, or CDF. For a PMF, add heights. For a PDF, integrate area. For a CDF, subtract accumulated values. Check endpoint inclusion for discrete variables, and never interpret a continuous density height as exact-point probability.
The next lesson studies expectation, which uses a distribution to form a probability-weighted average of a random variable.