Mean of the uniform distribution
μ
The expected value of a quantity equally likely to fall anywhere between a and b: the midpoint of the interval.
μ=5
μ equals (0 plus 10) divided by 2, equals 10 divided by 2, equals 5
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
The expected value of a quantity equally likely to fall anywhere between a and b.
In Swedish: Väntevärde för den likformiga fördelningen
μ
The expected value of a quantity equally likely to fall anywhere between a and b: the midpoint of the interval.
μ=5
μ equals (0 plus 10) divided by 2, equals 10 divided by 2, equals 5
You are given
μ = (a + b) / 2
Holds for the continuous uniform distribution on [a, b] with a < b, where every subinterval of the same length is equally likely. Some courses call it the rectangular distribution, because its density is a rectangle of height 1/(b − a).
a and b are the ends of the interval. The mean is the midpoint, since the density is symmetric about it.
A bus that arrives at a random moment in a 20-minute window, 0 to 20: μ = (0 + 20)/2 = 10 minutes.
X is uniform on [−4, 8]:
| Working | μ | |
|---|---|---|
| Wrong | (4 + 8)/2 | 6 |
| Right | (−4 + 8)/2 | 2 |
The lower end keeps its sign.
The spread is on the page for the variance of the uniform distribution; the general definition is the expected value.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| μ | a | 0 | 5 |
| a | 2μ | 2·5 | 0 |
| b | 2μ | 2·5 | 10 |
Last reviewed October 11, 2026 ·How pages are reviewed
Statistics and probabilityAll formulas
Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.