Worked examples · Sheet 3
Variances and quantiles of uniform distributions
Theory used:Uniform distribution on an intervalQuantiles and moments of the uniform distribution
Go to: Exercise 1Exercise 2
Exercise 1
Let . Calculate the variance and the threshold leaving of the probability to its right.
By the theorem on quantiles and moments of the uniform distribution, with and the variance is . The support has length , so the variance is and the standard deviation is .
A threshold leaving one quarter of the area on the right leaves three quarters on the left, so . The required threshold is therefore the quantile . Between and , the cumulative distribution function is because the density is constant and the accumulated area grows in proportion to the distance from .
The equation gives . Starting at the lower endpoint and adding units gives the threshold . The formula with gives the same result.
As a check, the segment from to has length , one quarter of the six available units.
Exercise 2
A uniform variable has mean and variance . Find the support endpoints and the quantile of order .
The mean and variance formulas for the uniform distribution give two equations in the unknowns and , subject to . The mean identifies the midpoint, so the sum of the endpoints is .
The variance gives the squared length, . The equation has solutions and . Since , take the positive root. Adding the two linear equations gives , hence . Subtracting them gives , hence . The support is therefore . Equivalently, half the length gives the distance on either side of the center .
Use for the quantile. Add to one sixth of the width , namely . The quantile of order is .
At the cumulative distribution function equals , as required. The original data are also satisfied because and .