Your Equation

Library / Probability distributions / PRD-01

Probability distributions

Uniform tolerance: probability density

Height of the flat probability density when every value between a lower limit a and an upper limit b is equally likely.

Ref
PRD-01
Rev
v1
Field
Probability distributions
Result
f [1/mm]

The density is the constant 1/(b − a) between the limits, so that height times width equals one. It is a probability per unit of x (here per mm), not a probability: multiply it by a small interval to get one. Outside the band the density is zero.

Height of the flat probability density when every value between a lower limit a and an upper limit b is equally likely. The density is zero outside the band, and the area under it is one.

Calculator

Solve for
1/mm
mm
−57.5
mm
2.515
  • Band width, b − a6 mm
  • Standard deviation, (b − a)/√121.732 mm
  • Probability of a value within a 1 mm slice inside the band0.1667

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.

Probability density inside the band (1/mm) current value 0.1667 1/mm
aLower limit aKey driver
0.07692
bUpper limit b
0.07692
  • A band from 2 to 8 mm has a flat density of 0.1667 per mm, so any 1 mm slice inside it holds 16.7 % of the probability.
  • Halving the band width doubles the density: the same unit of probability is squeezed into a narrower band.
Chart data as tables

Ranked variables

VariableTypical rangeLowest resultHighest resultSwing (1/mm)Local stepChange in result
a Lower limit a−5 to 7.5 mm0.0769221.923+0.25 mm+4.35 %
b Upper limit b2.5 to 15 mm0.0769221.923+10%−11.8 %

Sweep of Upper limit b

Upper limit b (mm)Probability density inside the band (1/mm)
2.52
4.0630.4848
5.6250.2759
7.1880.1928
8.750.1481
10.310.1203
11.880.1013
13.440.08743
150.07692

Sweep one variable

Probability density inside the band (1/mm)Hover, touch, or use the arrow keys on the chart
00.511.52 468101214 Upper limit b (mm) now 0.1667

Variables and how each one contributes

f

Probability density inside the band

Result · 1/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 +3.45 %, from 0.1667 to 0.1724 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 −11.8 %, from 0.1667 to 0.1471 1/mm.

Worked example with the values above

  1. Band width: b − a = 8 − 2 = 6 mm.
  2. Take the reciprocal: 1/6.
  3. f = 0.16667 per mm everywhere inside the band.

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

The inputs are parameters, usually fitted to data, and their estimation error carries into the result. The probability or density is a smooth function of the parameters, so the sweep chart shows how sensitive it is: where the curve is steep, a small error in a parameter makes a large difference. The formula treats the parameters as exact, so it gives no confidence interval on its own.

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