The continuous uniform distribution
Studying this course? Keep your progress in one place.
Key facts
- has constant pdf on .
- on : a straight line from 0 to 1.
- Probabilities are ratios of lengths: .
- Mean and variance .
The pdf
Every sub-interval of the same length is equally likely, so the pdf is a rectangle of area 1.
A continuous uniform (rectangular) distribution on gives every sub-interval of the same length the same probability. Write . The pdf is constant, for and otherwise.
Its graph is a rectangle of width and height , so the area is 1. Use it for rounding errors or random waiting times.
For , what is the height of the pdf?
The cumulative distribution function
Integrating the constant density gives a straight line from 0 to 1.
Integrating from to gives for , with for and for .
For any interval, , the fraction of the range covered. For , .
. Find .
Mean and variance
The mean is the midpoint of the interval and the variance is .
By symmetry the mean is the midpoint: .
For the variance, , and subtracting gives . In "show that" questions, factorise and to cancel .
- Mean
- Variance
Worked example
Find the mean and variance of .
- 1
Mean: .
- 2
Width: .
- 3
Variance: .
What is the variance of ?
Using the distribution
From a given mean and variance, form and .
Take the positive root for because . State the model assumption when you use it: "assuming the rod length is equally likely to be anywhere in the interval".
Draw the interval on a number line and shade the part you want. The probability is the shaded length divided by .
Worked example
has and . Find , and .
- 1
.
- 2
, so (positive, as ).
- 3
Adding: , so and .
- 4
.
. Find .
Try an exam question
The continuous random variable is uniformly distributed over the interval . Find , and .
[4 marks]
- [1].
- [1].
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find the value of the probability density function for .
1 mark, marked against the mark scheme
Find the value of the probability density function for .
1 mark, marked against the mark scheme