Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Uncertainty 101

Original source of graphics is the website of Dr. Jody Muelaner https://www.muelaner.com/uncertainty-budget/

Uncertainty

uncertainty

Not this kind of “uncertainty”

Measurement uncertainty

Error \neq uncertainty

![](fig/rod_length.png" alt=“image” height=300px/>

Uncertainty is a quantification of the doubt about the measurement result

Let’s repeat: error is not uncertainty

Source: https://www.engineering.com/story/an-introduction-to-metrology-and-quality-in-manufacturing

Definitions

  1. Measurement is: estimate of the size, amount or degree of a desired quantity/parameter by using a set of instruments or devices.

  2. The result is the best estimate with uncertainty, expressed in standard units.

based on “Good practice guide no. 131” of The Institute of Mechanical Engineers https://www.npl.co.uk/resources/gpgs

We use only SI

International system of units (SI)

Basic units

Derived units

Measurement science is important

Aero-engines are built to a very high accuracy and require about 200,000 separate measurements during production and maintenance


https://www.af.mil/News/Photos/igphoto/2000589434/

Categories of experiments:

Different categories require different uncertainty analysis approach:

  1. basic science - to learn something new about nature

  2. applied science - to verify a theoretical model

  3. design - to make sure two parts will fit

  4. production - to determine the correct price

  5. regulation - to check that that an item is within specification: pass/fail

Lord Kelvin
L=2.35±0.03  mm  (95%  confidence)L =2.35 \pm 0.03 \; \mathrm{mm\; (95\% \; confidence)}

We report: what is measured LL, its most probable value (2.35), its uncertainty range (0.03) and the best known confidence range (95%)

“If you cannot quantify the measurement uncertainty, don’t start make the measurement - it is useless”, source: https://blog.beamex.com/calibration-uncertainty-for-dummies-part-1>

Uncertainty analysis

  1. identify all the possible sources of uncertainty,

  2. evaluate the standard uncertainty from each source,

  3. combine the individual standard uncertainties

Some known sources of uncertainty

You should not make any measurements unless you are aware of the related uncertainty.

How to reduce uncertainty?

It is important to reduce uncertainty for an accurate measurement. Remember: you cannot eliminate uncertainty

8 points plan to quantify uncertainty

1. Decide what you need to find out from your measurement

Identify the type of measurement and how it is to be measured, as well as any calculations* required in the process such as effects that require a correction.

For this example, suppose you decide to use a set of electronic calipers to measure the length of an object.

* direct and indirect measurements in the Lab

2. Carry out and record the measurements needed

Follow a specified measurement procedure to ensure that your measurement is consistent with standards. Check: the zero reading on your electronic calipers, you know they are well maintained and calibrated, and then you took repeated readings.

Notebook should be clear

a date, name, the instruments, a note of the calibration sticker on the calipers, and a record of the temperature. This is good practice and pays off by 5% bonus for lab notebooks

Outliers and averaging

3. Evaluate the uncertainty of each input quantity that feeds in to the final result (Type A and Type B evaluations). Express all uncertainties in similar terms (standard uncertainties)

Type A uncertainty

3. continued ...

Type A uncertainty evaluation

For Type A: characterize the variability of nn readings by their standard deviation, given by the formula below:

STD=i=1n(xixˉ)2n1\mathrm{STD} = \sqrt{\frac{\sum\limits_{i=1}^{n} \left( x_i - \bar{x} \right)^2 }{n-1}}
=(21.5321.493)2+(21.5121.493)2+...241=0.1044= \sqrt{\frac{\left( 21.53 - 21.493 \right)^2 + \left( 21.51 - 21.493 \right)^2 + ... }{24 -1 }} = 0.1044

This is standard deviation of a single measurement, a so-called sample standard deviation.

Write it clear in your notebook

Of course one could glue (white glue, no marking) a print from a Python notebook

Type A standard uncertainty of average

Average (mean) is the random variable by itself.

For n readings the standard uncertainty associated with the average:

standard uncertainty = STD / n\sqrt{n}

The standard uncertainty associated with the average is thus:

0.1044mm/24=0.021mm0.1044\, \mathrm{mm}/\sqrt{24} = 0.021 \mathrm{mm}

Type A standard uncertainty

This uncertainty is based upon the idea that the readings were drawn from a normal probability distribution. Using 24 readings we estimate the characteristics of this distribution – and then worked out the standard uncertainty – how well one can estimate the position of the centre of the distribution.

Type B uncertainty evaluation

Typical sources of Type B

ISO guidelines

ISO guidelines: assume that any error or bias is a random draw from a known statistical distribution.

Then we use the standard deviation from that assumed distribution. Our basic options are:

  1. Uniform, all equally probable within the range, zero probability outside

  2. Triangular, central more probable within the range

  3. Student’s tt, random, all probable, for small n<20n \lt 20

  4. Gaussian or normal, random, all probable, n>20n \gt 20

Probability and distributions https://www.muelaner.com/uncertainty-of-measurement/

Uniform distribution

Most conservative estimate of uncertainty, largest standard deviation

We assume that we know the end points

All the effects within the range are equaly likely

f(x)=1BA  for  AxBf(x)= \frac{1}{B-A} \; \mathrm{for} \; A \leq x \leq B

Mean: A+B2\frac{A+B}{2} and standard deviation: (BA)212\sqrt{\frac{(B-A)^{2}}{12}}

When we work with axa-a \leq x \leq a then we get

s=13as = \frac{1}{\sqrt{3}} a

Triangular distribution

Back to Type B in our example

standard uncertainty = half range/3\sqrt{3}

Summary of uncertainty types

4. Decide whether the errors of the input quantities are independent of each other

Assuming that there is no correlation can lead to an unreliable uncertainty evaluation.

5. Calculate the result of your measurement (including any known corrections, such as calibrations)

6. Find the combined standard uncertainty from all the individual uncertainty contributions

So in order to evaluate the uncertainty we add the components “in quadrature” (also known as “the root sum of the squares”). The result of this is called the “combined standard uncertainty”.

u=(p2+b2)u = \sqrt{ \left( p^2 + b^2 \right)}

And our combined uncertainty is ...

u=(0.021)2+(0.012)2=0.024mmu = \sqrt{ (0.021)^2 + (0.012)^2} = 0.024 \, \mathrm{mm}

The best estimate of the length is the average of the 24 readings. The associated standard uncertainty is evaluated by combining (in quadrature) the standard uncertainties relating to the main factors that could cause the calipers to read incorrectly.

7. Calculate expanded uncertainty for a particular level of confidence

8. Write down the measurement result and the uncertainty, and state how you got both of these

It is important to express the result in your report so that a reader/boss/user/client can use the information

The main things to mention are:

An example of uncertainty budget, 1/2

Uncertainty Budget Table

Source of UncertaintyValue aia_iUnitsProbability DistributionDivisorSensitivity Coefficient cic_iStandard Uncertainty Ui(y)U_i(y) (mm)
Calibration Uncertainty0.01mmNormal (k=2k=2)210.005
Resolution0.005mmTriangular6\sqrt{6}10.002
Cosine error*3degRectangular3\sqrt{3}0.0460.080
Temperature**2CRectangular3\sqrt{3}0.00230.003
Repeatability0.02mmNormal (k=1k=1)110.020
Combined Standard Uncertainty uc(y)u_c(y)0.082
Expanded Uncertainty (k=2k=2, 95% confidence) UU0.165

Explanation of Key Terms and Formula

The image illustrates the fundamental formula for calculating each component’s Standard Uncertainty Ui(y)U_i(y) from its initial estimated value:

Standard Uncertainty Ui(y)=(Value aiDivisor)×Sensitivity Coefficient ci\text{Standard Uncertainty } U_i(y) = \left( \frac{\text{Value } a_i}{\text{Divisor}} \right) \times \text{Sensitivity Coefficient } c_i

1. Standard Uncertainty Ui(y)U_i(y) (mm)

This is the standard deviation (or 1-sigma value) of the estimated uncertainty from a specific source, expressed in the final measured unit (millimeters, mm).

2. Value aia_i

This is the estimated half-width of the probability distribution for a given source of uncertainty.

3. Probability Distribution and Divisor

The Divisor is used to convert the estimated range aia_i into a Standard Uncertainty (standard deviation). The choice of Divisor depends on the assumed probability distribution:

Probability DistributionDivisorRationale (Conversion to Standard Deviation)
Normal (k=2k=2)2The stated aia_i is an Expanded Uncertainty with a coverage factor k=2k=2. Dividing by k=2k=2 yields the Standard Uncertainty.
Rectangular3\sqrt{3}This applies when the true value is equally likely to be anywhere within a range ±ai\pm a_i. The standard deviation is ai/3a_i / \sqrt{3}.
Triangular6\sqrt{6}This applies when the probability peaks at the center and tails off linearly to zero at the limits ±ai\pm a_i. The standard deviation is ai/6a_i / \sqrt{6}.
Normal (k=1k=1)1The stated aia_i is already considered a standard uncertainty (coverage factor k=1k=1), typically derived from statistical analysis (Type A evaluation).

4. Sensitivity Coefficient cic_i

The Sensitivity Coefficient is the partial derivative of the measurement function with respect to the input quantity. It serves two purposes:

  1. Unit Conversion: It converts the unit of the individual uncertainty source (e.g., deg, C) into the final desired unit (mm).

    • For Calibration, Resolution, and Repeatability, the units are already in mm, so ci=1c_i=1.

    • For Cosine error (in deg) and Temperature (in C), cic_i is the value that converts the effect of the input change into an output change in mm.

5. Combined and Expanded Uncertainty

Source: https://www.muelaner.com/uncertainty-budget

An example, 2/2

Source of UncertaintyValue aia_iUnitsProbability DistributionDivisorSensitivity Coefficient cic_iStandard Uncertainty Ui(y)U_i(y) (mm)
Calibration Uncertainty0.01mmNormal (k=2k=2)210.005
Resolution0.005mmTriangular6\sqrt{6}10.002
Cosine error*3degRectangular3\sqrt{3}0.0460.080
Temperature**2CRectangular3\sqrt{3}0.00230.003
Repeatability0.02mmNormal (k=1k=1)110.020
Combined Standard Uncertainty uc(y)u_c(y)0.082
Expanded Uncertainty (k=2k=2, 95% confidence) UU0.165

Notes: * The sensitivity coefficient cic_i for Cosine error would convert the uncertainty from degrees to mm\text{mm}. ** The sensitivity coefficient cic_i for Temperature would convert the uncertainty from C{}^\circ\text{C} to mm\text{mm}.

The equations for calculating the combined standard uncertainty are:

uc2(y)i=1Nui2(y)uc(y)0.0052+0.0022+0.0802+0.0032+0.0202=0.082\begin{aligned} u_c^2(y) &\approx \sum_{i=1}^{N} u_i^2(y) \\ u_c(y) &\approx \sqrt{0.005^2 + 0.002^2 + 0.080^2 + 0.003^2 + 0.020^2} = 0.082 \end{aligned}

Source: https://www.muelaner.com/uncertainty-budget/

Eight steps to get the correct measurement

This is just the simplest case

This is a simple example, we do not deal with special cases where different rules apply such as:

Combination of uncertainties

Theory of uncertainty analysis Taylor expansion

y+uy=f(x1+ux1,x2+ux2+)=y + u_y = f(x_1+u_{x_1}, x_2 + u_{x_2} + \ldots) =
=f(x1,x2,...)+fx1ux1+fx2ux2+...+= f(x_1, x_2 , ...) + \frac{\partial f}{\partial x_1} u_{x_1} + \frac{\partial f}{\partial x_2} u_{x_2} + ... +
+12((ux1)22fx12+...)+ \frac{1}{2} \left( (u_{x_1})^2 \frac{\partial^2 f}{\partial x_1^2} + ... \right)

Maximum uncertainty

uy,max=i=1i=Nuxiyxiu_{y,\mathrm{max}}=\sum_{i=1}^{i=N}\left| u_{x_{i}}\frac{\partial y}{\partial x_{i}} \right|

Expected uncertainty

Root of the sum of squared uncertainty, RSS:

uR,RSS=i=1i=N(uxiRxi)2u_{R,\mathrm{RSS}}=\sqrt{\sum_{i=1}^{i=N}\left(u_{x_{i}}\frac{\partial R}{\partial x_{i}}\right)^{2}}

Detailed example Measure volume flow rate, Q using the “bucket” method, measure the time it takes to fill some volume ∀ Q = ∀/t

The maximum, worst case method

uR,max=uQ+utQt=u_{R,max}=\left|u_{\forall}\frac{\partial Q}{\partial \forall } \right|+\left|u_{t}\frac{\partial Q}{\partial t}\right| =
=u1t+utt2== u_{\forall}\frac{1}{t}+u_{t}\frac{\forall}{t^{2}}=
0.05×133.0+0.1×1.1533.02=0.05\times\frac{1}{33.0}+0.1\times\frac{1.15}{33.0^{2}}=

= 0.00162 × 60 = 0.0972 lpm

The expectation method

uR,RSS=(uQ)2+(utQt)2=u_{R,\textrm{RSS}}=\sqrt{\left(u_{\forall}\frac{\partial Q}{\partial\forall}\right)^{2}+\left(u_{t}\frac{\partial Q}{\partial t}\right)^{2}}=
=(u1t)2+(utt2)2== \sqrt{\left(u_{\forall}\frac{1}{t}\right)^{2}+\left(u_{t}\frac{\forall}{t^{2}}\right)^{2}}=
=(0.05×133.0)2+(0.1×1.1533.02)2==\sqrt{\left(0.05\times\frac{1}{33.0}\right)^{2}+\left(0.1\times\frac{-1.15}{33.0^{2}}\right)^{2}}=

= 0.00152 × 60 = 0.0911 lpm

The full and correct answer is Q = 2.09 ± 0.0911 lpm (with 95% confidence)

What do we learn from the analysis ?

The contribution of each variable to the overall uncertainty:

Continued ...

Last example, how to save money for your startup