Your Equation

Library / Probability distributions / PRD-03

Probability distributions

Uniform tolerance: expected value

Average of many values drawn uniformly between a and b: exactly halfway between the limits.

Ref
PRD-03
Rev
v1
Field
Probability distributions
Result
E[X] [mm]

The mean of a flat distribution is the midpoint of the band. It does not depend on how the probability is spread within the band, only on where the band sits. Use it as the nominal value of something known only to lie between two limits.

Average of many values drawn uniformly between a and b: exactly halfway between the limits.

Calculator

Solve for
mm
mm
−57.5
mm
2.515
  • Half-width, (b − a)/23 mm
  • Median (equal to the mean)5 mm
  • Standard deviation, (b − a)/√121.732 mm

What drives the result

Each variable is moved across its typical range while the others stay at the values above. The longest bar is the key driver.

Expected value (mm) current value 5 mm
aLower limit aKey driver
1.57.75
bUpper limit b
2.258.5
  • For limits of 2 and 8 mm the average is 5 mm, with the same value for the median.
  • Moving either limit by 1 mm shifts the mean by only 0.5 mm.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (mm)Local stepChange in result
a Lower limit a−5 to 7.5 mm1.57.756.25+0.25 mm+2.5 %
b Upper limit b2.5 to 15 mm2.258.56.25+10%+8 %

Sweep of Upper limit b

Upper limit b (mm)Expected value (mm)
2.52.25
4.0633.031
5.6253.813
7.1884.594
8.755.375
10.316.156
11.886.938
13.447.719
158.5

Sweep one variable

Expected value (mm)Hover, touch, or use the arrow keys on the chart
23456789 468101214 Upper limit b (mm) now 5

Variables and how each one contributes

E[X]

Expected value

Result · mm

What the equation gives you. Everything else feeds it.

a

Lower limit a

mm · typical −5 to 7.5

The lower limit of the band, in mm. Every value below it has zero probability. Moves the whole band; the width b − a is what sets the spread. Raising it by 10 % (to 2.2) moves the result by +2 %, from 5 to 5.1 mm.

b

Upper limit b

mm · typical 2.5 to 15

The upper limit of the band, in mm. It must be larger than a. Widening the band lowers the density and raises the variance. Raising it by 10 % (to 8.8) moves the result by +8 %, from 5 to 5.4 mm.

Worked example with the values above

  1. Add the limits: a + b = 2 + 8 = 10.
  2. Halve it.
  3. E[X] = 5 mm.

Assumptions and limits

  • Every value between a and b is equally likely, and nothing outside the band can occur.
  • The limits are known exactly and a < b.

Common mistakes

  • Using a uniform model when the values really bunch near the centre, which understates how often they are near nominal and overstates the extremes.
  • Treating the density as a probability: a density of 0.17 per mm does not mean a 17 % chance.
  • Forgetting that the variance has squared units, so (b − a)²/12 is in mm², not mm.

Statistics and uncertainty

A mean, variance or percentile is calculated from fitted parameters, and the uncertainty in those parameters passes straight through. A distribution fitted to a small sample can have parameters that are far from the truth, especially in the tails and for the variance, so quote the result together with the sample size it rests on.

Where it is used

  • Standard uncertainty of a tolerance or resolution limit: u = (b − a)/(2√3) for a band of half-width (b − a)/2.
  • Rounding and quantisation errors, which are close to uniform over one step.

Maths you need

  • Probability density: area under the curve gives probability
  • Cumulative probability: chance of being at or below a value

Related formulas

Practise this formula