PYQ Vault

HSC Maths · Probability Distributions

The Cumulative Distribution Function

The cumulative distribution function F(x) = P(X ≤ x) adds up the probability up to x: a sum of the p.m.f. for a discrete random variable and an integral of the p.d.f. for a continuous one.

Why this matters

19 questions, five of them from board papers: the c.d.f. of a continuous random variable with its values or the probabilities read from it (2015, 2016, 2017, and in 2026 for the p.d.f. x/8 on 0 < x < 4), and F(2) for a discrete table with k (2026). The textbook rows are the c.d.f. examples of 7.3.2 and 7.4, Exercise 7.2 Q.8 and Q.9 and Miscellaneous Exercise 7.

Concept 1 of 3: c.d.f. of a discrete random variable

F(x) is a running total of the p.m.f.: start at the smallest value of X and keep adding probabilities as you move right. A running total of non-negative numbers never goes down, and once every value is included it has reached 1.

Definition

  • F(x)=P[X≤x]=∑xi≤xP[X=xi]F(x) = P[X \leq x] = \sum_{x_i \leq x} P[X = x_i], where the sum is over the values of XX up to and including xx.
  • FF is a non-decreasing step function, and it equals 1 from the largest value of XX onwards.
  • Table: add a row F(x)F(x) under the row of P[X=x]P[X = x]; each entry is the one before it plus the next probability.
  • From a c.d.f. table you get the p.m.f. back: P[X=xi]=F(xi)−F(xi−1)P[X = x_i] = F(x_i) - F(x_{i-1}).

Discrete c.d.f.

F(x)=P[X≤x]=∑xi≤xP[X=xi]F(x) = P[X \leq x] = \sum_{x_i \leq x} P[X = x_i]

Worked example

XX takes the values 1, 2, 3, 4 with probabilities 0.1, 0.3, 0.4, 0.2. Write the c.d.f. of XX as a table and find F(3)F(3) and P(X>1)P(X > 1).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 13Moderate

Example 1 · Probability Distributions · Cumulative Distribution Function

The probability distribution of r.v. XX is as follows:
X=xX = x01234
P(X=x)P(X = x)0.1kk2k2k2k2kkk
Find : (i) kk (ii) F(2)F(2)

Writing F(x) as P(X = x)

F(x)F(x) is cumulative: it is the probability of XX being at most xx, so it includes every smaller value as well.

A c.d.f. that goes down

Each entry of the FF row adds a non-negative probability, so the row can never decrease and must end at 1. A fall in your table means an arithmetic slip.

Concept 2 of 3: c.d.f. of a continuous random variable

For a continuous variable the running total becomes an area: F(x) is the area under the p.d.f. from the start of the support up to x. Before the support no area has built up, so F is 0; after it all the area is in, so F is 1. A full answer gives all three pieces.

Definition

  • F(x)=∫axf(t) dtF(x) = \int_a^x f(t)\,dt for a<x<ba < x < b, where (a,b)(a, b) is the support.
  • F(x)=0F(x) = 0 for x≤ax \leq a and F(x)=1F(x) = 1 for x≥bx \geq b.
  • Use tt as the variable inside the integral, so that xx can be the upper limit.
  • For a continuous variable, FF is non-decreasing and continuous, so the middle piece must give 0 at x=ax = a and 1 at x=bx = b.
  • If ff is given in two pieces, the c.d.f. on the second piece starts from the whole area of the first piece.

Continuous c.d.f.

F(x)={0,x≤a∫axf(t) dt,a<x<b1,x≥bF(x) = \begin{cases} 0, & x \leq a \\ \int_a^x f(t)\,dt, & a < x < b \\ 1, & x \geq b \end{cases}

Worked example

XX has p.d.f. f(x)=3x28f(x) = \dfrac{3x^2}{8} for 0<x<20 < x < 2 and =0= 0 otherwise. Find the c.d.f. of XX and its value at x=1x = 1 and x=3x = 3.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 25Moderate

Example 2 · Probability Distributions · Cumulative Distribution Function

The following is the p.d.f. of continuous r.v. f(x)=x8f(x) = \frac{x}{8}; 0<x<40 < x < 4 =0= 0, Otherwise Find (i) expression for c.d.f of XX. (ii) F(x)F(x) at 0.5 and 5

Giving only the middle piece

The c.d.f. is defined for every real xx. Write all three ranges: 0 before the support, the integral inside it, 1 after it.

Using x as both the limit and the variable

Write ∫axf(t) dt\int_a^x f(t)\,dt, not ∫axf(x) dx\int_a^x f(x)\,dx; with one letter doing two jobs, the working is hard to follow and easy to get wrong.

Starting the integral at 0 when the support does not

If the support is (−3,3)(-3, 3), the c.d.f. is ∫−3xf(t) dt\int_{-3}^{x} f(t)\,dt. Starting at 0 leaves out the area on the negative side.

Concept 3 of 3: Probabilities from the c.d.f.

Once F is known, there is no need to integrate again: every probability is a value of F or a difference of two values. 'Hence find' in a question means exactly this.

Definition

  • P[X≤c]=F(c)P[X \leq c] = F(c).
  • P[X>c]=1−F(c)P[X > c] = 1 - F(c).
  • P[c<X≤d]=F(d)−F(c)P[c < X \leq d] = F(d) - F(c).
  • For a continuous XX, << and ≤\leq give the same values, since P[X=c]=0P[X = c] = 0.
  • A point below the support gives F=0F = 0; a point above it gives F=1F = 1.

Reading probabilities off F

P[c<X≤d]=F(d)−F(c),P[X>c]=1−F(c)P[c < X \leq d] = F(d) - F(c), \qquad P[X > c] = 1 - F(c)

Worked example

The c.d.f. of a continuous XX is F(x)=0F(x) = 0 for x≤1x \leq 1, F(x)=x2−18F(x) = \dfrac{x^2 - 1}{8} for 1<x<31 < x < 3, and F(x)=1F(x) = 1 for x≥3x \geq 3. Find P(X<2)P(X < 2), P(X>2.5)P(X > 2.5) and P(1.5<X<2.5)P(1.5 < X < 2.5).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2017 · Q. 6. (B) iii.Moderate

Example 3 · Probability Distributions · Cumulative Distribution Function

Given the probability density function (p.d.f.) of a continuous random variable XX as, f(x)= x23\frac{x^{2}}{3} for -1<x<2 = 0 otherwise Determine the cumulative distribution function (c.d.f.) of XX and hence find P(X<1)P(X < 1), P(X>0)P(X > 0), P(1<X<2)P(1 < X < 2).

Writing P(X > c) as F(c)

F(c)F(c) is the probability up to cc. Above cc is the rest: 1−F(c)1 - F(c).

Subtracting in the wrong order

P(c<X<d)=F(d)−F(c)P(c < X < d) = F(d) - F(c) with d>cd > c. A negative answer means the two values were subtracted the wrong way round.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • c.d.f. of a discrete random variable

    Discrete c.d.f.

    F(x)=P[X≤x]=∑xi≤xP[X=xi]F(x) = P[X \leq x] = \sum_{x_i \leq x} P[X = x_i]
  • c.d.f. of a continuous random variable

    Continuous c.d.f.

    F(x)={0,x≤a∫axf(t) dt,a<x<b1,x≥bF(x) = \begin{cases} 0, & x \leq a \\ \int_a^x f(t)\,dt, & a < x < b \\ 1, & x \geq b \end{cases}
  • Probabilities from the c.d.f.

    Reading probabilities off F

    P[c<X≤d]=F(d)−F(c),P[X>c]=1−F(c)P[c < X \leq d] = F(d) - F(c), \qquad P[X > c] = 1 - F(c)

Watch out for (7)

Test yourself on Probability Distributions

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.