Vertex Learn

Uniform and triangular distributions, and judging a model

WorksheetShare to Classroom

What this lesson covers

  • Continuous uniform and triangular probabilities are areas of rectangles and triangles.
  • A model is judged by comparing its probabilities with the data's relative frequencies.
Key idea

Models with hard limits

  • Some values cannot go below a or above b.
  • Uniform and triangular: both in the booklet.
  • A probability is an area. Total area 1.
Worked example

Uniform: a flat pdf

  • Every wait from 0 to 12 equally likely.
  • Height 1/(b − a) = 1/12.
  • More than 8 minutes: a rectangle.
Uniform: a flat pdf
Key idea

Try it: a flat model

Worked example

The working, and the assumption

  • Width × height.
  • Assumes a random arrival.
  1. X ~ U(0, 12)
  2. height = 1/(12 − 0) = 1/12
  3. P(X > 8) = width × height
  4. = (12 − 8) × 1/12
  5. = 4/12 = 1/3 = 0.3333
Worked example

Triangular: a = 2, c = 4, b = 10

  • Lowest 2, most likely 4, highest 10.
  • Peak height 0.25 at c = 4.
  • Over 8 minutes: a small triangle.
Triangular: a = 2, c = 4, b = 10
Key idea

Try it: area under the model

Worked example

The tail: ½ × base × height

  • Peak 2/(b − a).
  • Then ½ × base × height.
  1. a = 2, c = 4, b = 10
  2. peak = 2/(10 − 2) = 0.25
  3. f(8) = (10 − 8)/(10 − 4) × 0.25
  4. = 2/6 × 1/4 = 1/12
  5. P(X > 8) = ½ × base × height
  6. = ½ × 2 × 1/12
  7. = 1/12 = 0.0833
Worked example

A middle area: 1 minus the tails

  • 1 minus both tails.
  • The left tail: a triangle.
  1. f(3) = (3 − 2)/(4 − 2) × 0.25
  2. = 1/2 × 0.25 = 0.125
  3. P(X < 3) = ½ × 1 × 0.125
  4. = 0.0625
  5. P(X > 8) = 0.0833from before
  6. P(3 < X < 8) = 1 − 0.0625 − 0.0833
  7. = 0.8542
Key idea

Probability calculator

Key idea

Choosing a, b and c

  • A and b: the plausible limits.
  • C: the most likely value, the peak.
  • Nothing more likely? Uniform.
ParameterChoose it as
alowest plausible value
bhighest plausible value
cmost likely value
Uniformno value more likely
Worked example

The model against 80 orders

  • No order under 2 or over 10 minutes.
  • Tallest bar: 4 to 5 minutes.
  • Judge it with numbers, not by eye.
The model against 80 orders
Worked example

Relative frequency against the model

  • Count ÷ total.
  • Then compare.
  1. X > 8: 8/80 = 0.1model 0.0833
  2. X < 3: 4/80 = 0.05model 0.0625
  3. 4 to 5: 19/80 = 0.2375
  4. model f(5) = 5/6 × 0.25 = 5/24
  5. model: ½(1/4 + 5/24) × 1 = 11/48
  6. = 0.2292data 0.2375
Worked example

Common slips with triangles

  • Triangle peak: 2/(b − a), not 1/(b − a).
  • A triangle needs the half.
  • A count is not a probability.
WrongRight
Triangle height1/(b − a)2/(b − a)
Triangle areabase × height½ × base × height
From a histogram8 orders8/80 = 0.1
Modelnot nameda = 2, c = 4, b = 10
Worked example

Changing a parameter: b = 11

  • Raise b to 11.
  • Over 8 jumps past 0.1.
  1. b = 11: peak = 2/(11 − 2) = 2/9
  2. f(8) = (11 − 8)/(11 − 4) × 2/9
  3. = 3/7 × 2/9 = 2/21
  4. P(X > 8) = ½ × 3 × 2/21 = 1/7
  5. = 0.1429data 0.1
  6. f(3) = 1/2 × 2/9 = 1/9
  7. P(X < 3) = ½ × 1 × 1/9 = 0.0556
Worked example

Changing a parameter: c = 5

  • Or move c to 5.
  • Fix one tail, check the rest.
  1. c = 5: peak = 2/(10 − 2) = 0.25
  2. f(8) = (10 − 8)/(10 − 5) × 0.25
  3. = 2/5 × 0.25 = 0.1
  4. P(X > 8) = ½ × 2 × 0.1 = 0.1matches the data
  5. f(3) = (3 − 2)/(5 − 2) × 0.25
  6. = 1/3 × 0.25 = 1/12
  7. P(X < 3) = ½ × 1 × 1/12 = 0.0417
Key idea

Where the marks are

  • Achieved: sketch, and a probability as an area.
  • Merit: justify a, b and c.
  • Excellence: judge the fit, and changes.
Summary

What to take away

  • Sketch it, find the area, then check it against data.
Uniform height1/(b − a)
Triangle peak2/(b − a)
Probabilityan area
Middle area1 − the two tails
a, b and cfrom data and context
Judge a modelrelative frequencies

Common mistakes

  • Triangle peak = 1/(b − a) = 1/8
    The triangle's peak is 2/(b − a) = 2/8 = 0.25, because ½ × base × height must give a total area of 1.
  • P(X > 8) = base × height = 2 × 1/12 = 1/6
    The tail is a triangle, so it needs the half: ½ × 2 × 1/12 = 1/12 = 0.0833.
  • The tail height at 8 is the peak, 0.25.
    The height falls in a straight line from the peak: f(8) = (10 − 8)/(10 − 4) × 0.25 = 1/12.
  • 8 orders were over 8 minutes and the model gives 0.0833, so the model is wrong.
    Turn the count into a relative frequency first: 8/80 = 0.1, then compare 0.1 with the model's 0.0833.
Your turn

Your turn: four questions

  • Sketch each pdf and mark its height.
  • Questions 2 and 3 share a model.
GivenFind
1X ~ U(10, 30)P(X > 25)
2a = 0, c = 6, b = 10P(X < 3)
3the same modelP(X > 8)
414 of 100 over 8judge Q3
1
2
3
4
Show answer

1. Height 1/20; 5 × 1/20 = 0.25. 2. Peak 0.2, height at 3 is 0.1; ½ × 3 × 0.1 = 0.15. 3. Height at 8 is 0.1; ½ × 2 × 0.1 = 0.1. 4. Data 14/100 = 0.14 against the model 0.1: the model is light in the upper tail, so a larger c or b would fit better (c = 7 gives 0.1333).

Worked example

The answers: questions 1 and 2

  1. 1. X ~ U(10, 30): height 1/20
  2. P(X > 25) = (30 − 25) × 1/20
  3. = 5/20 = 0.25
  4. 2. a = 0, c = 6, b = 10
  5. peak = 2/(10 − 0) = 0.2
  6. f(3) = (3 − 0)/(6 − 0) × 0.2
  7. = 1/2 × 0.2 = 0.1
  8. P(X < 3) = ½ × 3 × 0.1 = 0.15
Worked example

The answers: questions 3 and 4

  1. a = 0, c = 6, b = 10, peak 0.2
  2. 3. f(8) = (10 − 8)/(10 − 6) × 0.2
  3. = 1/2 × 0.2 = 0.1
  4. P(X > 8) = ½ × 2 × 0.1 = 0.1
  5. 4. data: 14/100 = 0.14
  6. 0.14 > 0.1model light in upper tail
  7. c = 7: f(8) = 2/3 × 0.2 = 0.1333
  8. P(X > 8) = ½ × 2 × 0.1333 = 0.1333
Your turn

Sample question: Achieved

The time for a guided kayak trip is modelled by a triangular distribution with minimum 2 hours, most likely 3 hours and maximum 6 hours. Find the probability that a trip takes more than 5 hours.

Hint

The peak height is 2b − a. The tail above 5 is a small triangle: ½ × base × height.

Answer

P(X > 5) = 112 = 0.0833

Step by step
  1. Define X = trip time in hours, triangular with a = 2, c = 3, b = 6.
  2. Sketch it: a triangle from 2 to 6 with its peak at 3.
  3. The total area must be 1. Recall the peak height: 2b − a = 26 − 2 = 0.5.
  4. More than 5 hours is the right tail: a small triangle from 5 to 6.
  5. Its height at 5 is a fraction of the peak: 6 − 56 − 3 × 0.5 = 13 × 0.5 = 16.
  6. Area = ½ × base × height = ½ × 1 × 16 = 112 = 0.0833.
  7. Classic mistake: using 1b − a for the peak. That is the uniform height, and it makes the triangle's area only ½.
Full working
  1. X ~ triangular, a = 2, c = 3, b = 6X = trip time, hours
  2. peak = 26 − 2 = 0.5
  3. f(5) = 6 − 56 − 3 × 0.5 = 16
  4. P(X > 5) = ½ × 1 × 16½ × base × height
  5. P(X > 5) = 112 = 0.0833
Your turn

Sample questions: Merit

1

Pizza delivery times are modelled by a triangular distribution with a = 10, c = 16 and b = 30 minutes. Find the probability that a delivery takes between 14 and 25 minutes.

Hint

The middle is awkward, so find the two tail triangles and take them away from 1.

Answer

P(14 < X < 25) = 0.7774

Step by step
  1. Define X = delivery time in minutes, triangular with a = 10, c = 16, b = 30.
  2. Peak height = 2b − a = 220 = 0.1.
  3. The middle area from 14 to 25 contains the peak, so it is not a single shape. Use 1 minus the two tails.
  4. Left tail, from 10 to 14. Height at 14: 14 − 1016 − 10 × 0.1 = 46 × 0.1 = 115.
  5. Left area = ½ × 4 × 115 = 215 = 0.1333.
  6. Right tail, from 25 to 30. Height at 25: 30 − 2530 − 16 × 0.1 = 514 × 0.1 = 128.
  7. Right area = ½ × 5 × 128 = 556 = 0.0893.
  8. Middle = 1 − 0.1333 − 0.0893 = 0.7774.
  9. Classic mistake: using the peak height for a tail. The height at 14 is lower than the peak, because 14 is left of c.
  10. Check: the tails are short on the left and long but thin on the right, so most of the area is in the middle. 0.7774 fits.
Full working
  1. peak = 230 − 10 = 0.1
  2. f(14) = 14 − 1016 − 10 × 0.1 = 115
  3. P(X < 14) = ½ × 4 × 115 = 0.1333
  4. f(25) = 30 − 2530 − 16 × 0.1 = 128
  5. P(X > 25) = ½ × 5 × 128 = 0.0893
  6. P(14 < X < 25) = 1 − 0.1333 − 0.08931 minus the tails
  7. P(14 < X < 25) = 0.7774
2

The time a café takes to make an order is triangular with a = 0, c = 4 and b = 10 minutes. The café wants a time t that only 5% of orders take longer than. Find t, to 2 decimal places.

Hint

Write the right-tail area above t in terms of t, set it equal to 0.05, and solve.

Answer

t = 10 − √3 = 8.27 minutes

Step by step
  1. Define X = time to make an order in minutes, triangular with a = 0, c = 4, b = 10.
  2. Peak height = 210 − 0 = 0.2.
  3. Only 5% take longer, so t is in the right tail, past the peak at 4.
  4. Height at t: 10 − t10 − 4 × 0.2 = 10 − t30.
  5. Tail area = ½ × base × height = ½ × (10 − t) × 10 − t30 = (10 − t)²60.
  6. Set it equal to 0.05: (10 − t)² = 3.
  7. 10 − t = √3, taking the positive root because t is below 10. So t = 10 − √3 = 8.27 minutes.
  8. Check: (10 − 8.2679)²60 = 360 = 0.05. Correct.
  9. Classic mistake: assuming t is halfway along the tail. The area shrinks with the square of the base, not in proportion.
Full working
  1. peak = 210 = 0.2
  2. f(t) = 10 − t6 × 0.2 = 10 − t30
  3. P(X > t) = ½ × (10 − t) × 10 − t30 = (10 − t)²60
  4. (10 − t)²60 = 0.05, so (10 − t)² = 3
  5. 10 − t = √3t < 10, take the positive root
  6. t = 10 − √3 = 8.27 minutes
Your turn

Sample questions: Excellence

1

A café models the time to make a coffee as triangular with a = 2, c = 5 and b = 12 minutes. In 120 recorded orders, 22 took more than 9 minutes and 9 took less than 3 minutes. Compare the model with the data. Then test the model with a = 1, c = 5 and b = 13, and say which model fits better.

Hint

Turn the counts into relative frequencies, then find the same tail areas from each model.

Answer

Model 1: P(X > 9) = 0.1286, P(X < 3) = 0.0333 against data 0.1833 and 0.075; both tails too light. Model 2: 0.1667 and 0.0833, much closer, so the wider model fits better

Step by step
  1. Data first: a count is not a probability. 22120 = 0.1833 took over 9 minutes, and 9120 = 0.075 took under 3 minutes.
  2. Model 1: a = 2, c = 5, b = 12, peak 210 = 0.2.
  3. Right tail from 9 to 12: height 12 − 912 − 5 × 0.2 = 37 × 0.2. Area = ½ × 3 × 37 × 0.2 = 970 = 0.1286.
  4. Left tail from 2 to 3: height 3 − 25 − 2 × 0.2 = 115. Area = ½ × 1 × 115 = 130 = 0.0333.
  5. Compare: the model gives 0.1286 against 0.1833 for slow orders, and 0.0333 against 0.075 for quick ones. Both tails are too light.
  6. So the real times are more spread out than the model. That suggests a smaller a and a larger b, keeping the mode at 5.
  7. Model 2: a = 1, c = 5, b = 13, peak 212 = 16.
  8. Right tail from 9 to 13: height 48 × 16 = 112. Area = ½ × 4 × 112 = 16 = 0.1667.
  9. Left tail from 1 to 3: height 24 × 16 = 112. Area = ½ × 2 × 112 = 112 = 0.0833.
  10. Model 2 gives 0.1667 against 0.1833 and 0.0833 against 0.075. Both are close, so Model 2 fits better.
  11. Limitation: 120 orders is a modest sample, and we only checked two tails, not the whole shape.
Full working
  1. data: 22120 = 0.1833 over 9, 9120 = 0.075 under 3relative frequencies
  2. Model 1: P(X > 9) = ½ × 3 × 37 × 0.2 = 970 = 0.1286
  3. Model 1: P(X < 3) = ½ × 1 × 115 = 130 = 0.0333
  4. both tails too light: widen a and b
  5. Model 2: P(X > 9) = ½ × 4 × 112 = 0.1667
  6. Model 2: P(X < 3) = ½ × 2 × 112 = 0.0833
  7. Model 2 (a = 1, c = 5, b = 13) fits better
2

A variable X has a triangular distribution with a = 0 and b = 20, but the mode c is unknown. P(X < 5) = 0.1, and c is more than 5. Find c. Hence find P(X > 15) and the median of X.

Hint

Write the left-tail area below 5 in terms of c. For the median, first decide whether it is left or right of c.

Answer

c = 12.5; P(X > 15) = 16 = 0.1667; median = √125 = 11.18

Step by step
  1. Peak height = 2b − a = 220 = 0.1, whatever c is.
  2. Since c > 5, the region below 5 is a left-tail triangle. Height at 5: 5 − 0c − 0 × 0.1 = 0.5c.
  3. Area = ½ × 5 × 0.5c = 1.25c. Set it equal to 0.1: c = 12.5. It is more than 5, as required.
  4. Right tail above 15: height 20 − 1520 − 12.5 × 0.1 = 57.5 × 0.1 = 115.
  5. P(X > 15) = ½ × 5 × 115 = 16 = 0.1667.
  6. Median: the value m with half the area below it. First, the area left of the peak is cb = 12.520 = 0.625.
  7. 0.625 is more than 0.5, so the median is left of the peak, in the rising part.
  8. Area below m: ½ × m × (m12.5 × 0.1) = m²250. Set m²250 = 0.5, so m² = 125.
  9. m = √125 = 11.18.
  10. Classic mistake: assuming the median is the mode, 12.5. The triangle is not symmetric, so they differ.
  11. Check: 11.18²250 = 125250 = 0.5. Correct.
Full working
  1. peak = 220 = 0.1
  2. P(X < 5) = ½ × 5 × 0.5c = 1.25c = 0.1c > 5, so a left-tail triangle
  3. c = 12.5
  4. P(X > 15) = ½ × 5 × 115 = 16height at 15 is 115
  5. P(X < c) = 12.520 = 0.625 > 0.5median left of the peak
  6. m²250 = 0.5, m = √125
  7. c = 12.5, P(X > 15) = 0.1667, median = 11.18
Practice

Practise this

Worksheet with answersWithout answersDownload PDF
2026 practice paper with worked answersOpen the paper
Report a mistake

More in AS 91586

Is your child on track?

Take the free placement test