SR24–SR26 - Cumulative distribution functions
SR24 accumulates density into a cumulative distribution function and sketches its full shape. SR25 recovers density by differentiation. SR26 uses cumulative probabilities to find intervals, medians and percentiles, including selecting the correct branch of a piecewise function.
A cdf remembers all the probability to the left
A continuous variable has cdf for . To find , should you integrate this expression or subtract two of its values?
The cdf has already accumulated probability. Its height gives an area under the density, so integrating the cdf would accumulate a different quantity. First see how a cdf is built.
You already know
A pdf gives interval probabilities by integration. The area over its whole support is one. A continuous model gives , so strict and inclusive endpoints give the same probability.
The lower-case and upper-case have different jobs. The cdf is dimensionless probability, whereas the pdf is density.
Cumulative distribution function
For a continuous random variable,
Here is a dummy integration variable. For support , the calculation is below , inside, and above ; the integrals used here all have finite limits.
In the formula booklet.
A continuous variable's cdf is continuous, non-decreasing, lies between zero and one, and approaches zero and one at the two ends of the real line. Flat sections mean zero density. A corner is allowed; a jump would give positive point probability and does not describe the purely continuous models here.
Worked example 1: accumulating a piecewise density
Question. A continuous variable has pdf
Find its cdf and describe its sketch.
Plan. Accumulate from zero, retaining the probability already collected before .
For ,
For ,
Why this step? Beginning the second branch at zero would forget the probability already lying below .
Answer.
The sketch is flat at zero, linear up to , then rises with decreasing gradient to , and stays flat.
Check. Both interior branches give at , and the second gives at . No cumulative probability is lost at a join.
Change only how much probability lies below : it is now , rather than . The falling branch is rescaled to keep total probability one.
Worked example 2: a different branch weight
Question. Find the cdf when the pdf is on , on , and zero otherwise.
Plan. Carry probability into the second branch.
Why this step? The second formula must start at and rise by the remaining , not restart at zero.
Answer.
The sketch passes through , and , with constant exterior branches.
Check. and , so both joins are continuous.
The cdf's final plateau is one, but its area is not required to be one. In fact its right-hand plateau continues indefinitely. The area-one condition belongs to the pdf.
[DIAGRAM: asset_name: Accumulating piecewise density without resetting; asset_slug: h645_b099_piecewise_cdf; caption: The cdf keeps its accumulated probability when the pdf changes rule; description: Two panels plot the complete cdfs from the worked examples, including flat zero and one branches. The first passes through one, one half and the second through one, one quarter. Each panel marks the join at x equals one and the endpoint at two, one, with labels placed outside the curves.]

Watch out
Wrong: use only after the breakpoint. Right: add . The second formula must join the first continuously.
Move the probability weight below to .
Differentiate the cdf and check the whole support
A cdf's gradient measures how quickly probability is accumulating. A steep section means a large density; a flat section means no probability is being added.
Density from a cdf
Where the cdf is differentiable,
Differentiate each branch over its own interval. On a constant exterior branch, the density is zero. A density value at an isolated corner or endpoint can be chosen without changing any probability.
This follows from the supplied cdf integral; the derivative form is not printed separately.
Not in the formula booklet: learn it.
To establish that a proposed continuous cdf is valid, check its joins and endpoint values as well as its gradient. Showing that a few sampled values rise is not a proof that the entire function is non-decreasing.
Worked example 3: recovering a linear density
Question. A function is defined by for , for , and for . Show that it is a valid continuous cdf and find a corresponding pdf.
Plan. Check continuous joins and non-negative derivative, then differentiate the interior branch.
Why this step? Correct endpoint values alone do not rule out a dip or an overshoot between them. The derivative establishes monotonicity throughout the interval.
Answer. The function is continuous, non-decreasing and has limits zero and one, so it is a valid continuous cdf. One pdf is on , zero otherwise.
Check. .
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account