5.03e–5.03g - Cumulative distribution functions
A cumulative distribution function stores every left-tail probability in one curve. In 5.03e–5.03f you will construct and use that curve, recover its density and locate percentiles; 5.03g then uses inequalities to find the distributions of related variables.
Constructing a c.d.f.
If you choose a random value from a continuous distribution and report the fraction of the distribution lying below it, what distribution does that reported fraction have? For a steadily increasing cumulative curve, the answer is unexpectedly simple: it spreads uniformly between and . You will see one exact example by the end of the lesson.
You already know
A density is non-negative with total area , and . Individual points have probability zero, so strict and inclusive endpoints give the same probability.
Start with the density on . The area to the left of is ; the area to the left of is . Letting the endpoint move turns these separate answers into a function.
Cumulative distribution function
The cumulative distribution function, or c.d.f., of is
It gives the total probability at or to the left of . For a continuous variable it is continuous, never decreases, and has limiting values and at the far left and far right. It can have flat intervals when the density is zero there.
A density describes probability per unit width; its c.d.f. describes accumulated probability. Use a different letter inside the integral so that the endpoint is not confused with the variable being integrated.
Cumulative probability
For a continuous variable with p.d.f. ,
In the formula booklet.
The limits outside a finite support are part of the answer: no area has accumulated before the support, and all the area has accumulated after it.
Worked example 1: the whole real line
Question. Find the c.d.f. of with density for , and zero otherwise.
Plan. Find the integral within the support, then include the constant branches outside it.
Why this step? is a probability for every real input, including inputs outside the support of .
Answer.
Check. , agreeing with the area calculated above; rises continuously from to .
Worked example 2 changes one feature: the density is piecewise. The second branch of the c.d.f. must retain all the probability accumulated in the first branch.
Worked example 2: carrying area across a join
Question. Find the c.d.f. when for , for , and zero otherwise.
Plan. Integrate from on the first interval; on the second, add the area already accumulated up to .
Why this step? Restarting the second integral at zero probability would throw away the first half of the distribution.
Answer.
Check. Both middle expressions give , and the second gives . The c.d.f. is continuous at every join.
The density rises and then falls, but the c.d.f. keeps rising: positive density always adds probability.
[DIAGRAM: asset_name: A density and its accumulated area; asset_slug: h245_5_03_density_cdf; caption: The triangular density rises then falls, while its cumulative distribution function always rises and reaches one; description: Two separate labelled panels show the triangular density x then 2 minus x on 0 to 2, and its c.d.f. x squared over 2 then 1 minus half of 2 minus x squared. Dashed guides mark x equals 1 and cumulative probability one half; the c.d.f. is zero before 0 and one after 2]

Watch out
Wrong on the second interval: , giving . Right: add . A continuous variable's c.d.f. cannot jump at the join.
Use the outside branches and continuity as quick checks before calculating anything from your c.d.f.
Using and differentiating a c.d.f.
Once cumulative probabilities are available, an interval probability is a subtraction and the density is the slope.
From c.d.f. to probabilities and density
For a continuous variable,
The derivative relation follows from the c.d.f. integral in the booklet. These rules are not printed there separately.
Not in the formula booklet: learn it.
At a corner of , a derivative need not exist. The value assigned to the density at an individual point does not affect any probability. What matters is the slope on each open interval and the correct support.
Worked example 3: recover the density and an interval
Question. A continuous variable has c.d.f.
Find its density and .
Plan. Differentiate the non-constant branch and subtract the two cumulative probabilities.
Why this step? includes all values below , which the requested event excludes.
Answer. for , and zero outside the support; the probability is . Endpoint density values may be chosen without changing the distribution.
Check. , and integrating it directly from to gives .
Worked example 4 changes one feature: the distribution is reflected about . The interval stays the same, so the probability should be unchanged even though the density slopes the other way.
Worked example 4: a decreasing density
Question. A continuous variable has c.d.f.
Find its density and .
Plan. Differentiate carefully using the chain rule, then subtract cumulative values.
Why this step? The chain-rule factor makes the derivative positive, as every density must be.
Answer. for , zero outside; the probability is .
Check. The reflected interval is the same interval, so reflection preserves its probability. Also increases from to , although decreases.
If , conditional probabilities such as , with , become . First identify the intersection, as with any conditional event.
Watch out
Wrong: . The c.d.f. is the left tail. Right: . Likewise, differentiating gives the density, not another probability.
For piecewise c.d.f.s, differentiate each branch separately and choose the correct branch at each probability endpoint.
Median, quartiles and percentiles
A percentile reverses a cumulative-probability calculation: the probability is known, and the boundary is unknown.
Percentiles
A percentile at cumulative probability satisfies , where . The median uses , and the lower and upper quartiles use and . For example, the ninetieth percentile leaves probability to its left and to its right. If is flat at the required level, more than one boundary can satisfy the equation; use the problem's stated convention if it asks for a unique choice.
Choose the correct branch before solving. For the triangular distribution above, , so its lower quartile lies below and its upper quartile lies above it.
Percentile equation
For a continuous distribution, find the percentile at cumulative probability by solving
with in the support and in the interval for the branch used. Equivalently, solve .
Not in the formula booklet: learn it.
A square root or logarithm may produce algebraic candidates. A candidate outside its branch interval is not a percentile of that branch.
Worked example 5: the lower quartile
Question. For the triangular density on and on , find the lower quartile.
Plan. Use ; the quartile lies in the first branch because .
Why this step? The negative square root solves the algebraic equation but lies outside the support.
Answer. The lower quartile is .
Check. It is between and , and .
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account