4.1Uniform distribution
The idea
In a uniform distribution every value (or every sub-interval of the same length) is equally likely. Probabilities are ratios of lengths.
Think of it like this: Throwing a dart at a ruler, completely blindly: any 1 cm stretch gets the same chance.
Why it exists
Uniform random choices are everywhere: a random pivot, a random break point, a random number in an interval.
How it works
- Discrete uniform on 1..n: P(k) = 1/n, mean (n + 1)/2, variance (n² − 1)/12.
- Continuous uniform on [a, b]: density 1/(b − a).
- P(c ≤ X ≤ d) = (d − c)/(b − a), the length ratio.
- Mean (a + b)/2 and variance (b − a)²/12.
- Break a unit stick: the break point is uniform on (0, 1).
Worked example: GATE 2019: Y uniform on (1, 6); polynomial 3x² + 6xY + 3Y + 6 has real roots
The discriminant 36Y² − 36Y − 72 ≥ 0 gives Y ≥ 2. So P = (6 − 2)/(6 − 1) = 0.8. In the lab, set a = 1 and b = 6 and ask for the range 2 to 6.
Now play with it
- →Set the uniform on [1, 6] and type the range 2 to 6: read 0.8.
- →Switch the distribution to the discrete uniform with n = 6 and read the mean 3.5.
Dashed line = mean. Shaded/green part = the range below.
Density is the constant 1/(b − a). P(c ≤ X ≤ d) is just the length (d − c)/(b − a).
| Distribution | Models | Mean | Variance |
|---|---|---|---|
| Uniform discrete 1..n | a fair die | (n + 1)/2 | (n² − 1)/12 |
| Uniform continuous [a, b] | a random point | (a + b)/2 | (b − a)²/12 |
| Binomial(n, p) | successes in n trials | np | np(1 − p) |
| Geometric(p) | trials to first success | 1/p | (1 − p)/p² |
| Poisson(λ) | rare events per interval | λ | λ |
| Exponential(λ) | waiting time | 1/λ | 1/λ² |
| Normal(μ, σ²) | sums, measurement noise | μ | σ² |
Memorise this table: most distribution questions are one line once you recognise which row you are in.
Check yourself
X is uniform on [0, 10]. What is P(3 ≤ X ≤ 8)?
Exam notes (the dense version)
Discrete uniform on {1..n}: every value 1/n, mean (n + 1)/2, variance (n² − 1)/12. Continuous uniform on [a, b]: density 1/(b − a), mean (a + b)/2, variance (b − a)²/12. P(c ≤ X ≤ d) = (d − c)/(b − a): just a ratio of lengths.
Previous year questions: Standard Distributions (8)
PYQs are grouped by topic, so this is the full set for Standard Distributions; try the ones that match this subtopic. Open all 8 on the topic page.