Original source of graphics is the website of Dr. Jody Muelaner https://
Uncertainty¶

Not this kind of “uncertainty”¶

Measurement uncertainty¶
Engineers are interested in the uncertainty of measurement simply because we wish to make good quality measurements and to understand the results.
Uncertainty is a quantification of the doubt about the measurement result.
It is important not to confuse the terms “error” and “uncertainty”
Error uncertainty
Assume a rod of true value of 25 mm and a measured value of 24 mm, here error is 1 mm.
Error is a property of this particular measurement and value.

Let’s repeat: error is not uncertainty¶

Source: https://
Definitions¶
Measurement is: estimate of the size, amount or degree of a desired quantity/parameter by using a set of instruments or devices.
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://
We use only SI¶
International system of units (SI)
The International System of Units has the abbreviation SI (French).
The SI is at the centre of all modern science and technology and is used worldwide to ensure measurements can be standardized everywhere.
There are tremendous benefits to using SI units and countries routinely compare their SI measurement standards.
This keeps measurements made in different countries compatible with one another.
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://
Categories of experiments:¶
Different categories require different uncertainty analysis approach:
basic science - to learn something new about nature
applied science - to verify a theoretical model
design - to make sure two parts will fit
production - to determine the correct price
regulation - to check that that an item is within specification: pass/fail

We report: what is measured , 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://
Uncertainty analysis¶
identify all the possible sources of uncertainty,
evaluate the standard uncertainty from each source,
combine the individual standard uncertainties
Some known sources of uncertainty¶
Measuring instrument: they suffer from errors.
Environmental conditions: some measurements are affected by varying in ambient conditions. e.g. calibration of slip gauge depends upon the coefficient of thermal expansion.
The instrument or gauge’ being measured may change over time.
The measurement procedure may be difficult to perform.
Operator’s skill: some calibration procedure requires experience and/or judgment skill.
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
Reduce the random effect by repeating the measurement process
Use the most suitable measuring instruments
Use the calibrated instrument for measurement
Apply correction if you know any systematic effect
Record all the uncertainty components
Avoid mistakes by double-checking calculations
Check your measurement by different operator or method.
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¶
Because the numbers are laid out neatly, it makes it easy to spot that Measurement 3 is out of line with the others. Having confirmed with the partners this is a mistake, you can cross it out without making it illegible.
In statistical terms, this reading is considered an outlier and is clearly not part of the natural variability of measurement. It is therefore ignored in any further calculations and you simply take the average of the other 24.
This gives your best estimate of the length as:
(21.53 + 21.51 + 21.47 + 21.43 + ...)/24 = 21.493 mm
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¶
Type A uncertainty evaluations are carried out by statistical methods, usually from repeated measurement readings. In this case, you have 24 readings and have used these to gain an average of 21.493 mm.
3. continued ...¶
Type B uncertainty evaluations are carried out using any other information such as past experiences, calibration certificates, manufacturers specifications, from calculation, from published information and from common sense. In this example you can consider the calibration of the calipers.
Both of these uncertainties need to be expressed in similar terms so that you can compare and combine them. So you need to associate a number – called a “standard uncertainty” – with each term.
Type A uncertainty evaluation¶
For Type A: characterize the variability of readings by their standard deviation, given by the formula below:
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 /
The standard uncertainty associated with the average is thus:
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¶
Type B uncertainty evaluation is needed to assess uncertainties where statistics are not applicable, for example where there are biases – errors which always affect the reading in the same way.
In order to compare the uncertainty from Type A and Type B evaluation you need to convert the range of the rectangular distribution into a standard deviation to be used as the standard uncertainty.
Typical sources of Type B

Calibration - we do not know what how the calibration was performed
Use of different instruments (old/new, different resolutions, etc.)
Different operators, human factor
Environmental factors, external parameters (electromagnetic noise, temperature in the room)
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:
Uniform, all equally probable within the range, zero probability outside
Triangular, central more probable within the range
Student’s , random, all probable, for small
Gaussian or normal, random, all probable,
Probability and distributions
https://
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
Mean: and standard deviation:
When we work with then we get
Triangular distribution
Less conservative estimate of uncertainty
Smaller standard deviation
We assume the range and take it symmetric for simplicity:
For :
Back to Type B in our example¶
standard uncertainty = half range/
In this example, the calibration certificate simply states that the device will read within ±0.02 mm of the correct value, if it is used correctly and the temperature is within the range 0∘C to 40∘C.
The standard uncertainty associated with the calibration of the device is thus
Summary of uncertainty types¶

4. Decide whether the errors of the input quantities are independent of each other¶
Could a large error in one input cause a large error in another?
Could an outside influence such as temperature have a similar effect on several aspects of uncertainty at once?
If the errors are independent, which is typical and assumed in this example, you can use the formula in step 6 to calculate combined standard uncertainty. If not, extra calculations are needed, come to the next lecture.
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)¶
You get your result from the mean reading and by making all necessary corrections to it, such as calibration corrections listed on a calibration certificate or manufacturer’s specifications to correct temperature drift, etc.
In this example you do not have any certificate corrections to include. But if you did, they would be added to the original mean reading of 21.493 mm.
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”.
Type A - from the variability of the data, probability p
Type B - from the calibration certificate, bias, b
And our combined uncertainty is ...¶
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¶
The combined standard uncertainty is equivalent to one standard deviation, the covers about 68% of the normal distribution.
Increase the level of confidence that the true answer lies within a given a range, by multiplying the standard uncertainty by a coverage factor to give an expanded uncertainty:
Expanded uncertainty: increase the confidence level to 95% or even 99% by combining with the appropriate coverage factor (assuming a normal distribution).

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:
The measurement result, together with the uncertainty
The statement of the coverage factor and the level of confidence:
The reported uncertainty is based on a standard uncertainty multiplied by coverage factor , providing a level of confidence of approximately 95%, assuming normality.
An example of uncertainty budget, 1/2¶
Uncertainty Budget Table¶
| Source of Uncertainty | Value | Units | Probability Distribution | Divisor | Sensitivity Coefficient | Standard Uncertainty (mm) |
|---|---|---|---|---|---|---|
| Calibration Uncertainty | 0.01 | mm | Normal () | 2 | 1 | 0.005 |
| Resolution | 0.005 | mm | Triangular | 1 | 0.002 | |
| Cosine error* | 3 | deg | Rectangular | 0.046 | 0.080 | |
| Temperature** | 2 | C | Rectangular | 0.0023 | 0.003 | |
| Repeatability | 0.02 | mm | Normal () | 1 | 1 | 0.020 |
| Combined Standard Uncertainty | 0.082 | |||||
| Expanded Uncertainty (, 95% confidence) | 0.165 |
Explanation of Key Terms and Formula¶
The image illustrates the fundamental formula for calculating each component’s Standard Uncertainty from its initial estimated value:
1. Standard Uncertainty (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 ¶
This is the estimated half-width of the probability distribution for a given source of uncertainty.
For a rectangular distribution (like Resolution), is half the range ().
For a normal distribution (like Calibration Uncertainty), is often an already expanded uncertainty.
3. Probability Distribution and Divisor¶
The Divisor is used to convert the estimated range into a Standard Uncertainty (standard deviation). The choice of Divisor depends on the assumed probability distribution:
| Probability Distribution | Divisor | Rationale (Conversion to Standard Deviation) |
|---|---|---|
| Normal () | 2 | The stated is an Expanded Uncertainty with a coverage factor . Dividing by yields the Standard Uncertainty. |
| Rectangular | This applies when the true value is equally likely to be anywhere within a range . The standard deviation is . | |
| Triangular | This applies when the probability peaks at the center and tails off linearly to zero at the limits . The standard deviation is . | |
| Normal () | 1 | The stated is already considered a standard uncertainty (coverage factor ), typically derived from statistical analysis (Type A evaluation). |
4. Sensitivity Coefficient ¶
The Sensitivity Coefficient is the partial derivative of the measurement function with respect to the input quantity. It serves two purposes:
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 .
For Cosine error (in deg) and Temperature (in C), is the value that converts the effect of the input change into an output change in mm.
5. Combined and Expanded Uncertainty¶
Combined Standard Uncertainty : Calculated by the Root Sum of Squares (RSS) of all individual Standard Uncertainty components (assuming they are uncorrelated):
Expanded Uncertainty : Calculated by multiplying the Combined Standard Uncertainty by a coverage factor .
The value is commonly used, which corresponds to an approximate 95% confidence level for a normally distributed result.
Source: https://
An example, 2/2¶
| Source of Uncertainty | Value | Units | Probability Distribution | Divisor | Sensitivity Coefficient | Standard Uncertainty (mm) |
|---|---|---|---|---|---|---|
| Calibration Uncertainty | 0.01 | mm | Normal () | 2 | 1 | 0.005 |
| Resolution | 0.005 | mm | Triangular | 1 | 0.002 | |
| Cosine error* | 3 | deg | Rectangular | 0.046 | 0.080 | |
| Temperature** | 2 | C | Rectangular | 0.0023 | 0.003 | |
| Repeatability | 0.02 | mm | Normal () | 1 | 1 | 0.020 |
| Combined Standard Uncertainty | 0.082 | |||||
| Expanded Uncertainty (, 95% confidence) | 0.165 |
Notes: * The sensitivity coefficient for Cosine error would convert the uncertainty from degrees to . ** The sensitivity coefficient for Temperature would convert the uncertainty from to .
The equations for calculating the combined standard uncertainty are:
Source: https://
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:
Small number of repeated readings - "Student’s distribution
If one aspect of uncertainty dominates the calculation
If the inputs to the calculation are correlated
Combination of uncertainties¶
We measured N physical quantities (variables), (voltage, resistance, power, torque, length), each has its own uncertainty, (component uncertainty):
We want to estimate uncertainty of the result that depends on the measured ones:
We need to estimate , using to obtain:
Two types: maximum (worst case) or expected (probabilistic)
Theory of uncertainty analysis Taylor expansion¶
Maximum uncertainty¶
We assume that all the errors in the component measurements will ADD to the uncertainty of , i.e. will be always of the same sign.
This is worst case scenario, unlikely for large number of variables (large N), but happens when we have a direct effect or a bias error (broken ruler, wrong diameter of spheres in cone measurements, lab A)
Expected uncertainty¶
Root of the sum of squared uncertainty, RSS:
More realistic for large number of variables or for very different variables (using different instruments, randomization)
ISO standard if not stated otherwise: uR = uR , RSS
We known that at the same confidence level as the components, typically 95% confidence level
Use dimensionless uR/R
Detailed example Measure volume flow rate, Q using the “bucket” method, measure the time it takes to fill some volume ∀ Q = ∀/t
Measured: ∀ = 1.15 ± 0.05 liter, t = 33.0 ± 0.1 sec, both with 95% confidence
Q = ∀/t = 1.15/33.0(60 s/min) = 2.0909 ⇒ 2.09 liter/min (lpm) (note 3 sig. dig.)
Partial derivatives: ∂Q/∂∀ = 1/t, ∂Q/∂t = − ∀/t2
R = Q, u∀ = 0.05 liter, ut = 0.1 sec.
The maximum, worst case method
= 0.00162 × 60 = 0.0972 lpm
The expectation method¶
= 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:
u∀/∀ = 0.05/1.15 = 4.35%
ut/t = 0.1/33.0 = 0.303%
uQ/Q = 0.0911/2.09 = 4.35%
If we want to improve the result, which measurement shall we improve first?
Continued ...
For instance, improving the time accuracy and reducing it uncertainty by the factor of two will not affect the result at all.
Instead, improving volume by the factor of two ∀ = 1.150 + 0.025 liters will cause Q = 2.09 ± 0.046 lpm - significant improvement.
Last example, how to save money for your startup
Shaft rotation speed measured by stroboscope with many repetitions. rpm, SN = 1.45 rpm.
Strobe accuracy by manufacturer ± 1.00 rpm
umeasurement = ± 2σ = ± 2.90 rpm (95%) uinstrument = ± 1.00 rpm
rpm
The final result is: N = 1734.2 ± 3.07 rpm(95%c.l.)
The uncertainty is due to the measurement uncertainty, thus a more expensive tool will not help.