Study Guide

Cumulative distributions and percentiles

IB Mathematics AA SLΒ· Unit 4: Statistics & ProbabilityΒ· 15 min read

1. 1. Cumulative Distribution Function (CDF) Basicsβ˜…β˜…β˜†β˜†β˜†β± 5 min

πŸ“˜ Definition

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 .

πŸ“ Worked Example

A discrete random variable has probability distribution: , , , . Calculate the full CDF .

  1. 1

    For less than the smallest outcome 1: no probability is accumulated:

  2. 2
    F(x)=0for x<1F(x) = 0 \quad \text{for } x < 1
  3. 3

    For , sum probabilities up to 1:

  4. 4
    F(x)=0.2F(x) = 0.2
  5. 5

    For , add the probability of :

  6. 6
    F(x)=0.2+0.3=0.5F(x) = 0.2 + 0.3 = 0.5
  7. 7

    For , add the probability of :

  8. 8
    F(x)=0.5+0.4=0.9F(x) = 0.5 + 0.4 = 0.9
  9. 9

    For , all probabilities are accumulated:

  10. 10
    F(x)=0.9+0.1=1for xβ‰₯4F(x) = 0.9 + 0.1 = 1 \quad \text{for } x \geq 4

2. 2. Calculating Percentiles and Medianβ˜…β˜…β˜…β˜†β˜†β± 6 min

πŸ“˜ Definition

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.

πŸ“ Worked Example

Find the 50th percentile (median) for the CDF calculated in the previous section.

  1. 1

    Write the condition for the 50th percentile:

  2. 2
    F(p50)=50100=0.5F(p_{50}) = \frac{50}{100} = 0.5
  3. 3

    Check the CDF values: , which matches the condition exactly.

  4. 4

    Therefore, the 50th percentile (median) is 2.

πŸ“ Worked Example

A continuous random variable has CDF for . Find the 25th percentile.

  1. 1

    Set up the percentile condition:

  2. 2
    F(p25)=0.25F(p_{25}) = 0.25
  3. 3

    Substitute the CDF expression and solve:

  4. 4
    0.2p25=0.25β€…β€ŠβŸΉβ€…β€Šp25=0.250.2=1.250.2 p_{25} = 0.25 \implies p_{25} = \frac{0.25}{0.2} = 1.25

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.

πŸ“ Worked Example

A continuous random variable has CDF for . Calculate the interquartile range.

  1. 1

    Find (25th percentile): set :

  2. 2
    Q1216=0.25β€…β€ŠβŸΉβ€…β€ŠQ12=4β€…β€ŠβŸΉβ€…β€ŠQ1=2\frac{Q_1^2}{16} = 0.25 \implies Q_1^2 = 4 \implies Q_1 = 2
  3. 3

    Find (75th percentile): set :

  4. 4
    Q3216=0.75β€…β€ŠβŸΉβ€…β€ŠQ32=12β€…β€ŠβŸΉβ€…β€ŠQ3=23β‰ˆ3.464\frac{Q_3^2}{16} = 0.75 \implies Q_3^2 = 12 \implies Q_3 = 2\sqrt{3} \approx 3.464
  5. 5

    Calculate IQR:

  6. 6
    IQR=Q3βˆ’Q1=23βˆ’2β‰ˆ1.46IQR = Q_3 - Q_1 = 2\sqrt{3} - 2 \approx 1.46

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.