Continuous variables and the rectangular distribution
How continuous distributions differ
- A continuous random variable can take any value in a range — a mass, a time, a length.
- Because there are infinitely many possible values, the probability of any single exact value is zero:
- This is not a technicality to memorise and forget. It has a practical consequence:
- For continuous variables the inequality signs make no difference. This is the opposite of the discrete case, where they matter a great deal.
Probability is area
- A continuous distribution is described by a probability density function — a curve whose area gives probability.
- Two rules define any density:
- the curve is never below zero
- the total area under it is exactly 1.
- is the area under the curve between and .
- In this standard the areas come from geometry — rectangles and triangles — or from your calculator's normal functions. You are not required to integrate.
The rectangular (continuous uniform) distribution
- The rectangular distribution models a variable where every value in a range is equally likely.
- Over the interval from to , the density is a horizontal line of height:
- This height is exactly what makes the total area 1, since the rectangle has width .
Finding probabilities
- For any sub-interval from to inside the range:
- In words: the probability is the fraction of the range covered. If the range is 10 minutes wide and you want a 3-minute window, the probability is 0.3.
- Trim the interval to the range first. If the variable runs from 2 to 8 and you want , the answer is 1, not something larger.
Mean and standard deviation
- The mean is the midpoint, which is obvious from the symmetry.
- The standard deviation formula is given in the booklet. As a rough check, , so is a little under a third of the range.
When a rectangular model is appropriate
- Use it when there is genuinely no reason to favour any part of the range:
- the waiting time for a bus that runs every 15 minutes, if you arrive at a random moment
- the position of a randomly occurring fault along a cable
- rounding error, which is uniform across the rounding interval.
- Do not use it simply because you only know the minimum and maximum. Most real measurements cluster near a central value, and a rectangular model assumes the extremes are exactly as likely as the middle — which is usually false, and is a strong claim to make.
- The give-away in an exam question is the phrase "equally likely", "at random within", or a description with no central tendency.
Worked ExampleA rectangular model and its limits
A shuttle bus leaves a park-and-ride every 12 minutes. A commuter arrives at the stop at a random time, and is the number of minutes she waits.
(a) State the distribution of and sketch its density. (b) Find the probability she waits less than 4 minutes. (c) Find the probability she waits between 5 and 9 minutes. (d) Find the mean and standard deviation of her waiting time. (e) The bus company replaces the timetable so buses leave "roughly every 12 minutes, but sometimes bunching together". Discuss whether the rectangular model still applies.
(a) The distribution
Because she arrives at a random moment within the 12-minute gap between buses, every waiting time from 0 to 12 minutes is equally likely.
Density height:
(b) Waiting less than 4 minutes
This is simply the fraction of the range covered: 4 minutes out of 12.
(c) Waiting between 5 and 9 minutes
Note this equals the answer to (b): both intervals are 4 minutes wide, and under a rectangular distribution only the width matters, not the position. That property is unique to this distribution and is worth stating if a question asks you to compare.
(d) Mean and standard deviation
Interpret: on average she waits half the interval, which makes intuitive sense — arriving at a random moment puts her on average halfway through the gap. The large standard deviation relative to the mean reflects that all waits from 0 to 12 minutes are equally likely, so the waiting time is highly variable.
(e) When buses bunch
Step 1 — Identify what the model assumes.
Step 2 — Consider what bunching does.
Step 3 — Work out the effect, which is not the obvious one.
Step 4 — Conclude on the model.
Step 5 — Note the second assumption too.