Cumulative distributions and percentiles
IB Mathematics AA SLΒ· Unit 4: Statistics & ProbabilityΒ· 15 min read
1. 1. Cumulative Distribution Function (CDF) Basicsβ β ββββ± 5 min
Cumulative Distribution Function (CDF)
For any random variable , the CDF gives the total probability that takes a value less than or equal to a given input , and it ranges from 0 to 1.
Example:
For a fair 6-sided die,
For discrete random variables, the CDF is a step function built by summing individual probabilities up to each value of . For continuous random variables, the CDF is a continuous increasing function found by integrating the probability density function (PDF) from negative infinity up to .
A discrete random variable has probability distribution: , , , . Calculate the full CDF .
- 1
For less than the smallest outcome 1: no probability is accumulated:
- 2
- 3
For , sum probabilities up to 1:
- 4
- 5
For , add the probability of :
- 6
- 7
For , add the probability of :
- 8
- 9
For , all probabilities are accumulated:
- 10
2. 2. Calculating Percentiles and Medianβ β β βββ± 6 min
k-th Percentile
The -th percentile is the value of that satisfies . The median is the 50th percentile.
For discrete random variables, if never exactly equals , the percentile is the smallest value of where . For continuous random variables, you solve the equation directly to get an exact value.
Find the 50th percentile (median) for the CDF calculated in the previous section.
- 1
Write the condition for the 50th percentile:
- 2
- 3
Check the CDF values: , which matches the condition exactly.
- 4
Therefore, the 50th percentile (median) is 2.
A continuous random variable has CDF for . Find the 25th percentile.
- 1
Set up the percentile condition:
- 2
- 3
Substitute the CDF expression and solve:
- 4
3. 3. Interquartile Range (IQR) from CDFβ β β βββ± 4 min
The interquartile range is a common measure of spread that ignores outliers. It is calculated as , where (first quartile) is the 25th percentile and (third quartile) is the 75th percentile. To find IQR from a CDF, you just calculate both quartiles then subtract.
A continuous random variable has CDF for . Calculate the interquartile range.
- 1
Find (25th percentile): set :
- 2
- 3
Find (75th percentile): set :
- 4
- 5
Calculate IQR:
- 6
4. Common Pitfalls
Wrong move:
Using instead of for discrete CDFs
Why:
This changes cumulative probability values for discrete distributions, leading to incorrect percentiles
Correct move:
Always include the current value of when calculating cumulative probability for discrete CDFs
Wrong move:
Using PDF directly to find percentiles
Why:
PDF values do not represent cumulative probability, so solving will not give the median
Correct move:
Always integrate the PDF to get the CDF first, then use the CDF to find percentiles
Wrong move:
Picking the wrong x for discrete percentiles when F(x) β k/100
Why:
Many students pick the last x with F(x) < k/100, which contradicts the definition
Correct move:
Always pick the smallest x where F(x) β₯ k/100 for discrete distributions
Wrong move:
Forgetting to check that CDF ends at 1
Why:
A summation or integration error that leaves F(x) not equal to 1 will throw off all percentile calculations
Correct move:
Always verify that F(max(X)) = 1 before calculating any percentiles or quartiles
5. Quick Reference Cheatsheet
Concept | Discrete Random Variable | Continuous Random Variable |
|---|---|---|
CDF | ||
k-th Percentile Rule | Smallest with | Solve for |
Quartiles | percentile | percentile |
IQR Formula |
6. Frequently Asked
What is the difference between CDF and PDF?
A PDF (probability density/mass function) gives the probability of taking a specific value, while a CDF gives the cumulative probability of being at or below a specific value. CDFs are always used to calculate percentiles.
How do I find percentiles for discrete CDFs when F(x) never equals k/100?
By definition, you select the smallest value of where , which is the convention used in IB exams.
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2023 Β· 1
Find median from continuous CDF
- 2022 Β· 2
Calculate IQR from discrete CDF
Going deeper
- review videoIB AA SL CDF and Percentiles WalkthroughCovers common exam question types
What's Next
Understanding cumulative distributions and percentiles is foundational for more advanced statistical concepts you will encounter in IB AA SL, including normal distribution probability calculations, confidence intervals, and descriptive data analysis. These skills are regularly tested in both paper 1 and paper 2 of the IB exam, often combined with other topics like discrete probability distributions and box plots. Mastery of CDFs and percentiles will also help you when interpreting and summarizing statistical results for your internal assessment project.
