The Cumulative Distribution Function:
Unlike the probability mass function (discrete variables only) or the density (continuous variables only), the cumulative distribution function (c.d.f.) is defined for every random variable (Definition 12.6): records the total probability accumulated up to the point — the 'sum-or-area-so-far' function. The '' is deliberate (Remark 12.2): it includes the endpoint and makes the c.d.f. deliver interval probabilities, . For a discrete variable the c.d.f. is a step function (Remark 12.3) that is flat between the possible values and jumps by at each one, as for the change-in-wealth variable of Example 12.7; for a continuous variable it rises smoothly, obtained by integrating the density, as for the variable of Example 12.8. Whatever its type, every c.d.f. shares the same three shape properties (Proposition 12.2): it is nondecreasing, right-continuous, and climbs from at to at .
Before you start — give these a try
Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.
For the same variable (), use the interval formula to find . Give a decimal to places.
Let , whose c.d.f. is for (and below , above ). Find . Give a decimal to places.
What you’ll be able to do
- State Definition 12.6: the c.d.f. of a random variable is the function , defined for all , and explain why it applies to any random variable — discrete, continuous, or mixed — unlike the p.m.f. or density.
- Use the interval formula (Remark 12.2) and explain why the '' in the definition makes the relevant interval the half-open .
- Build the step-function c.d.f. of a discrete variable from its p.m.f. by cumulative summation , reading off the upward jump of size at each possible value (Remark 12.3, Example 12.7).
- Build the c.d.f. of a continuous variable by integrating its density, , and in particular derive the piecewise-linear c.d.f. of (Example 12.8).
- State the defining properties of a c.d.f. (Proposition 12.2) — nondecreasing, right-continuous, with and — and use them to decide whether a given function can be a c.d.f.
In your course
· MATH2015 · Linear Algebra & Probability- Definition 12.6Cumulative distribution functionfor all ; defined for every random variable.
- Remark 12.2The '' inequality and interval probabilities, the probability of .
- Remark 12.3The discrete c.d.f. is a step function; jumps by at each value; right-continuous.
- Proposition 12.2Properties of the c.d.f.Nondecreasing with ; , ; right-continuous.
- Example 12.7c.d.f. of the change in wealth (a step function)
- Example 12.8c.d.f. of (a linear ramp)
The cumulative distribution function $F(x)=\mathbb{P}\{X\le x\}$
A probability mass function describes only discrete variables and a density only continuous ones, but the cumulative distribution function (c.d.f.) describes them all. For a random variable it is the function the probability that lands at or below the level . Think of as the accumulated probability — the 'sum-or-area-so-far' function — sweeping a threshold from rightward and recording how much probability has been collected by the time it reaches . Because is a probability it always lies in , and because sweeping right can only add probability, can never decrease. This single object works for a die (discrete), a waiting time (continuous), or a payout that is partly a lump and partly spread out (mixed) — which is exactly why the c.d.f., rather than the p.m.f. or density, is the universal description of a random variable's distribution.
Why the '$\le$' matters: interval probabilities $F(b)-F(a)$
The inequality in is less-than-or-equal, so is the probability of the half-line including the endpoint (Remark 12.2). This is what lets the c.d.f. measure any interval: for , Subtracting strips off everything up to and including , leaving the half-open interval — open on the left, closed on the right. For a continuous variable a single point has probability , so swapping for at an endpoint changes nothing. For a discrete variable it matters a great deal: an endpoint can carry positive mass, so and differ by exactly . Keeping track of which endpoints are included is therefore the whole game when computing discrete interval probabilities from .
The c.d.f. of a discrete variable is a step function
If is discrete with p.m.f. , then the definition becomes a sum, taken over the possible values that are (Remark 12.3). As the threshold moves right it picks up a new term only when it crosses a possible value, so is a step function: perfectly flat between consecutive values and jumping upward by exactly at each possible value . The jumps add up to the total mass , so climbs in a staircase from to . A discrete c.d.f. is therefore not continuous — it is only right-continuous, : at a value the function already sits at the post-jump (upper) level, because the '' includes itself. Reading the picture in reverse recovers the p.m.f.: the mass at a point is the height of the jump there, . Example 12.7 (the change in wealth ) is the model case.
The continuous case, and the properties every c.d.f. shares (Proposition 12.2)
For a continuous variable with density , the sum becomes an integral, the area under the density up to ; here rises smoothly instead of in jumps. For the density is the constant on , and integrating gives the straight ramp for (with below and above ), as in Example 12.8. Discrete or continuous, every c.d.f. obeys the same three laws (Proposition 12.2): it is nondecreasing with ; it satisfies the limits (no probability has accumulated yet) and (all of it eventually does); and it is right-continuous. These properties are also a checklist: a function that decreases somewhere, escapes , or fails the end-limits cannot be a c.d.f.
The cumulative distribution function of a random variable is the function given by It is defined for every random variable, whether discrete, continuous, or mixed.
Because the definition uses '', is the probability of the closed half-line (the endpoint is included). Consequently, for any , the probability of the half-open interval .
If is discrete with p.m.f. , then This is a step function: constant between consecutive possible values and increasing by at each possible value . It is right-continuous, .
Every cumulative distribution function satisfies: (1) , and is nondecreasing (); (2) the limits and ; (3) is right-continuous, . Conversely, any function with these three properties is the c.d.f. of some random variable.
Worked examples
Example 12.7 (change in wealth). A random variable (a change in wealth) takes the values with probability mass function . Find the cumulative distribution function and describe its graph.
- 1
Check it is a p.m.f. The masses are nonnegative and sum to :
- 2
Below the smallest value. For no possible value is , so
- 3
Accumulate across each value. For only qualifies: . For both and qualify: . For all three qualify:
- 4
Read the graph. is a step function with upward jumps of at , at , and at — each jump equals . It is flat in between and right-continuous (the value at a jump is the upper level).
Example 12.8 (uniform). Let , so its density is for and otherwise. Find the c.d.f. .
Example (an interval probability from a step c.d.f.). A discrete random variable takes the values with p.m.f. . Compute and , then use the interval formula to find .