Salam Academy
Contents · 0% complete
  1. Learning objectives
  2. Core idea
  3. Key formulae
  4. Worked examples
  5. Explore the graph
  6. Common mistakes
  7. Exam tip
  8. Guided practice
  9. Practice questions
  10. Challenge
  11. Summary
  12. Quick quiz
  13. Same topic, different board
  14. Past paper questions
Continuous distributions · Subtopic 1 of 2

The Continuous Uniform Distribution

If XX is equally likely to be anywhere between aa and bb, then X∼U[a,b]X\sim U[a,b]. Its pdf is a flat rectangle of height 1b−a\dfrac1{b-a}, so any probability is just (width of the interval) ÷ (total width). Its mean is the midpoint and its variance is (b−a)212\dfrac{(b-a)^2}{12}.

Edexcel YMA01 WST02Edexcel 9FM0 OptionAQA 7367 Paper 3≈ 30 minRevision 6 · updated 2026-10-27
Practise this topicTimed testAsk Salam Tutor
Section 1 of 14

Learning objectives

  • Write down the pdf of U[a,b]U[a,b].
  • Find probabilities as areas of rectangles.
  • Use E(X)=a+b2E(X)=\tfrac{a+b}2 and Var(X)=(b−a)212\text{Var}(X)=\tfrac{(b-a)^2}{12}.
  • Model situations such as random cut points and rounding errors.
Pause and think

A bus comes every 2020 minutes and you arrive at a random time. What's the chance you wait less than 55 minutes? Exactly 55 minutes?

Section 2 of 14

Core idea

Start hereArriving at a random time

Buses come every 10 minutes and you turn up at a random moment. Your wait is anywhere from 0 to 10 minutes, every value equally likely. Its pdf is flat: a rectangle. Probabilities become simple length ratios.

The big idea

X∼U[a,b]X\sim U[a,b]: f(x)=1b−af(x)=\frac1{b-a}. P(c<X<d)=d−cb−aP(c<X<d)=\frac{d-c}{b-a}. E(X)=a+b2E(X)=\frac{a+b}2, Var⁡(X)=(b−a)212\operatorname{Var}(X)=\frac{(b-a)^2}{12}.

1. Probabilities

Waiting time U[0, 10]: P(X < k) is a rectangle
246810120.020.040.060.080.10.120.140minutesf(x)f(x) = 1/10k/10
P(X<k)=k10P(X<k)=\dfrac{k}{10}: the chance of waiting less than 3 minutes is 0.30.3.
f(x)=1b−a (a≤x≤b),P(c<X<d)=d−cb−af(x)=\frac1{b-a}\ (a\le x\le b),\qquad P(c<X<d)=\frac{d-c}{b-a}
where
a,ba,b
end points.
1b−a\frac1{b-a}
height making the area 1.
Worked exampleWaiting time U[0,10]U[0,10]

P(X<3)P(X<3), P(4<X<7)P(4<X<7), mean, variance.

Goal
Four values.
Strategy
Length ratios; formulas.
  1. P(X<3)=310=0.3P(X<3)=\tfrac3{10}=0.3
    Rectangle width 3.
  2. P(4<X<7)=310=0.3P(4<X<7)=\tfrac3{10}=0.3
    Same width, same probability.
  3. E=5, Var⁡=10012=8.33E=5,\ \operatorname{Var}=\tfrac{100}{12}=8.33
    Formulas.
Answer0.30.3, 0.30.3, 55, 8.338.33.
✓ CheckMean at the centre by symmetry ✓.

2. Deriving the variance

Var⁡(X)=(b−a)212\operatorname{Var}(X)=\frac{(b-a)^2}{12}
  1. E(X2)=∫abx2b−adx=b3−a33(b−a)E(X^2)=\int_a^b\frac{x^2}{b-a}dx=\frac{b^3-a^3}{3(b-a)}
    Integrate.
  2. =a2+ab+b23=\frac{a^2+ab+b^2}3
    b3−a3=(b−a)(a2+ab+b2)b^3-a^3=(b-a)(a^2+ab+b^2).
  3. Var⁡=a2+ab+b23−(a+b)24\operatorname{Var}=\frac{a^2+ab+b^2}3-\frac{(a+b)^2}4
    Subtract the squared mean.
  4. =4a2+4ab+4b2−3a2−6ab−3b212=(b−a)212=\frac{4a^2+4ab+4b^2-3a^2-6ab-3b^2}{12}=\frac{(b-a)^2}{12}
    Common denominator; a2−2ab+b2a^2-2ab+b^2.
Worked exampleBreaking a rod

A 1 m rod breaks at a random point. P(shorter piece < 0.2 m)?

Goal
Probability.
Strategy
Break point X∼U[0,1]X\sim U[0,1]; identify the region.
  1. X<0.2 or X>0.8X<0.2\ \text{or}\ X>0.8
    Shorter piece is near either end.
  2. 0.2+0.2=0.40.2+0.2=0.4
    Two lengths.
Answer0.40.4.
✓ CheckForgetting the second end gives 0.20.2: half the answer ✓.
Edge caseEndpoints P(X=3)=0P(X=3)=0, so << and ≤\le give the same probability.

Summary

  • Flat pdf; probability = length ratio.
  • Mean midpoint; variance (b−a)2/12(b-a)^2/12.
Key words
Rectangular distribution
Another name for continuous uniform.
X ~ U[2, 6]
123456780.050.10.150.20.250.30.350.40xf(x)f(x) = 1/4P(3 < X < 5) = 0.5
The density is a rectangle of height 1b−a=14\dfrac{1}{b-a}=\dfrac14, so the total area is 11. Probabilities are areas: P(3<X<5)=2×14=0.5P(3<X<5)=2\times\dfrac14=0.5.
HistoryBuffon's needle. In 1777 the Comte de Buffon dropped needles onto a floor of parallel boards. Assuming the needle's position and angle were uniformly random, he showed the chance of crossing a line involves π\pi, so you can estimate π\pi by throwing needles.
Fun factRandom numbers on a computer. Programming languages' basic random function gives a number from U[0,1]U[0,1]. Almost every other random simulation (dice, normal distributions, games) is built by transforming those uniform numbers.
Section 3 of 14

Key formulae

PDFf(x)=1b−a,a≤x≤bf(x)=\frac1{b-a},\quad a\le x\le b
MeanE(X)=a+b2E(X)=\frac{a+b}2
VarianceVar(X)=(b−a)212\text{Var}(X)=\frac{(b-a)^2}{12}
TrickWidth over width. Every uniform probability is "width of what you want ÷ width of everything". No integration needed: draw the rectangle and measure.
Section 4 of 14

Worked examples

Example 1 · A probability0 / 1 steps
X∼U[2,10]X\sim U[2,10]. Find P(X<5)P(X<5).
    Example 2 · Finding a and b0 / 2 steps
    X∼U[a,b]X\sim U[a,b] with E(X)=6E(X)=6 and Var(X)=3\text{Var}(X)=3. Find aa and bb.
      Section 5 of 14

      Explore the graph

      Probability as a rectangle
      Loading the interactive graph…
      Try this
      1. The rectangle is the pdf of U[a,b]U[a,b]; the darker part is P(X<c)P(X<c). The value is c−ab−a\tfrac{c-a}{b-a}.
      2. Make the interval wider. What happens to the height, and why must it?
      3. Put cc at the midpoint. What probability do you get?

      Height 1b−a\tfrac1{b-a} makes the total area exactly 11.

      In the real worldRounding errors. If a length is rounded to the nearest centimetre, the rounding error is modelled as U[−0.5,0.5]U[-0.5,0.5]: any error in that range is equally likely. Engineers use its variance, 112\tfrac1{12}, to estimate how errors add up.
      Section 6 of 14

      Common mistakes

      IncorrectP(X<5)=510P(X<5)=\tfrac5{10} for U[2,10]U[2,10]
      Correct5−210−2\tfrac{5-2}{10-2}
      Measure from the lower limit.
      IncorrectVar=b−a12\text{Var}=\dfrac{b-a}{12}
      Correct(b−a)212\dfrac{(b-a)^2}{12}
      Square the width.
      IncorrectP(X=5)=18P(X=5)=\tfrac18
      Correct00
      A single point has no width.
      IncorrectWidth with negative limits
      Correctb−ab-a, e.g. 5−(−3)=85-(-3)=8
      Subtracting a negative adds.

      Continuous uniform distribution

      A rectangle with a probability of exactly 11 inside it and absolutely no drama

      Section 7 of 14

      Exam tip

      Exam tipDefine the variable. In modelling questions, start with "Let XX be the distance of the cut from AA; X∼U[0,30]X\sim U[0,30]". Stating the model clearly is usually the first mark.
      Section 8 of 14

      Guided practice

      SA-IAL-S2-CD-G012 marksL1 FoundationCalculatorUniform probabilities
      X∼U[2,10]X\sim U[2,10]. Find P(X<5)P(X<5).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 9 of 14

      Practice questions

      SA-IAL-S2-CD1-0011 markL1 FoundationNon-calculatorUniform probabilities
      X∼U[0,5]X\sim U[0,5]. Write down the value of the probability density function for 0≤x≤50\le x\le5.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD-0032 marksL1 FoundationCalculatorUniform probabilities
      X∼U[0,20]X\sim U[0,20]. Find P(4<X≤9)P(4<X\le9).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD1-0051 markL1 FoundationNon-calculatorUniform probabilities
      X∼U[0,10]X\sim U[0,10]. Find P(X>7.5)P(X>7.5).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD1-0021 markL1 FoundationNon-calculatorMean & variance
      X∼U[3,11]X\sim U[3,11]. Write down E(X)E(X).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD1-0031 markL1 FoundationNon-calculatorMean & variance
      X∼U[0,12]X\sim U[0,12]. Find Var(X)\text{Var}(X).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD-0013 marksL1 FoundationCalculatorMean & variance
      X∼U[−3,5]X\sim U[-3,5]. Find E(X)E(X) and Var(X)\text{Var}(X).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD-0053 marksL2 StandardCalculatorMean & variance
      X∼U[1,7]X\sim U[1,7]. Find E(X2)E(X^2).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-IAL-S2-CD-0025 marksL3 ExamCalculatorMean & variance
      X∼U[a,b]X\sim U[a,b], where E(X)=6E(X)=6 and Var(X)=3\text{Var}(X)=3. Find aa and bb.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme

      More questions on every skill in this subtopic are in the question bank under Practise.

      Section 10 of 14

      Challenge

      SA-IAL-S2-CD-0043 marksL3 ExamCalculatorUniform probabilities
      A rod of length 3030 cm is cut at a point chosen at random along its length. Find the probability that the shorter piece is less than 66 cm long.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 11 of 14

      Summary

      • f(x)=1b−af(x)=\tfrac1{b-a} on [a,b][a,b].
      • Probability == width ÷ total width; P(X=c)=0P(X=c)=0.
      • E(X)=a+b2E(X)=\tfrac{a+b}2, Var(X)=(b−a)212\text{Var}(X)=\tfrac{(b-a)^2}{12}.
      • E(X2)=Var(X)+[E(X)]2E(X^2)=\text{Var}(X)+[E(X)]^2.
      Section 12 of 14

      Quick quiz

      Q1 · SA-IAL-S2-CD-Q011 markL1 FoundationCalculatorMean & variance
      For X∼U[a,b]X\sim U[a,b], Var(X)=\text{Var}(X)=
      Choose one option

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Q2 · SA-IAL-S2-CD1-0041 markL1 FoundationNon-calculatorUniform probabilities
      X∼U[2,8]X\sim U[2,8]. Write down P(X=5)P(X=5).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 13 of 14

      Same topic, different board

      Specification
      IAL Mathematics, unit WST02 (Statistics 2)
      Where
      S2 · 3 Continuous distributions: the continuous uniform (rectangular) distribution
      Expected
      The continuous uniform distribution U[a, b]: its pdf, probabilities as areas, mean (a + b)/2 and variance (b − a)²/12; modelling, e.g. rounding errors or a random cut point.
      Calculator
      Calculators are permitted, but exact answers (surds, fractions, π) are expected where the question asks.
      Typical style
      "A rod is cut at a random point… find the probability that the shorter piece is less than 6 cm."
      Open in
      YMA01 · WST029FM0 · Option
      Section 14 of 14

      Past paper questions

      No past paper questions are tagged to this subtopic yet. We add papers every week.

      Browse past papers

      Salam Academy original content · Content status: reviewed and published. Syllabus mapping: Pearson Edexcel YMA01, 2018 specification (official specification).