Chapter 3
Calibration, Errors, and Measurement Uncertainty
Bachelor Program in Mechatronics Engineering
Sensors and Actuators
•
Bachelor
Calibration, Errors, and Measurement Uncertainty
Introduction
Sensors and actuators are interfaces between physical systems and control, monitoring, and decision-making software. Their outputs are never perfectly equal to the quantities being measured or commanded. A temperature sensor may have an offset, a strain gauge may exhibit hysteresis, and an actuator may fail to reach its commanded position because of friction or saturation. Reliable mechatronic design therefore requires more than selecting a sensor with a suitable range. Engineers must establish what an instrument indicates, how far that indication may differ from the measurand, and whether the result is traceable to recognized standards.
This chapter presents the metrological foundations needed to characterize and validate sensors and actuators. It distinguishes systematic, random, and gross errors; explains calibration and traceability; develops statistical methods and uncertainty propagation; and applies curve fitting, error budgeting, and validation to engineering systems. The central principle is that a measurement result is incomplete unless it is accompanied by a defensible statement of uncertainty and the conditions under which it is valid.
Learning Objectives
After studying this chapter, you should be able to:
Distinguish systematic, random, and gross errors and select suitable remedies.
Explain calibration, traceability, verification, adjustment, and validation.
Estimate bias, repeatability, standard deviation, and confidence-related quantities.
Propagate input uncertainties through measurement models.
Fit and assess calibration curves using regression and residual analysis.
Construct an error budget for a sensor or actuator measurement chain.
Design a practical calibration and validation procedure.
Communicate measurement results with appropriate units, assumptions, and uncertainty.
1. Measurement, Error, and Uncertainty
The measurand is the quantity intended to be measured, including its relevant conditions. For example, “air temperature” is incomplete unless location, pressure, response time, and temperature scale are specified. A measurement model relates the measurand to observed inputs:
y = f(x₁, x₂, …, xₙ)
Here, y is the estimate of the measurand and xi are measured input quantities or correction terms. The model may include sensor output, reference values, environmental conditions, and known corrections.
Measurement error is the difference between a measured quantity value and a reference quantity value. In practice, the exact true value is generally unknowable; therefore, metrology emphasizes measurement uncertainty, a non-negative parameter characterizing the dispersion of values that could reasonably be attributed to the measurand.
Error and uncertainty are not interchangeable. A known zero offset is an error that can often be corrected. Uncertainty describes doubt about the correction or the remaining result. A corrected result can therefore have small bias but substantial uncertainty.
1.1 Error classifications
Error type
Main characteristic
Typical example
Usual response
Systematic
Repeatable or predictable component
Constant amplifier offset
Estimate and correct; include residual uncertainty
Systematic errors may be constant, proportional, nonlinear, hysteretic, or dependent on environment. A scale reading that is always 0.20 g high has an offset error. A sensor reading that is 1.5% high has a gain error. Systematic errors are not necessarily constant: thermal drift and aging can change with time.
Random errors arise from unresolved variations such as electronic noise, quantization, vibration, and short-term environmental fluctuations. Repetition can estimate their distribution, but averaging does not remove a systematic offset.
Gross errors are generally not modeled as ordinary random variation. Examples include entering millivolts as volts, using an incorrect calibration coefficient, reversing polarity, or reading a display during warm-up. Automated range checks, plausibility tests, redundant sensors, and documented procedures help control them.
1.2 Accuracy, precision, resolution, and sensitivity
Accuracy describes closeness to a reference value, whereas precision describes agreement among repeated results. A device can be precise but inaccurate if it has a stable bias. Resolution is the smallest discernible increment, while sensitivity is the change in output per unit change in input. For a locally linear sensor,
S = Δy ÷ Δx
where S is sensitivity, Δy is output change, and Δx is input change. The units must be stated, such as 10 mV/°C or 2 N/V. Resolution does not determine accuracy: a digital display may show many digits that are not meaningful.
2. Calibration and Traceability
Calibration establishes, under specified conditions, the relationship between values provided by a measurement standard and the indications of an instrument. It normally produces correction data, a calibration curve, or a statement of performance. Calibration is not automatically adjustment. Adjustment changes the instrument so that its indications more closely agree with reference values. After adjustment, the instrument must be recalibrated.
Verification provides objective evidence that specified requirements are fulfilled. Validation establishes that a measurement process is suitable for its intended use. A sensor can pass a manufacturer specification yet be unsuitable for a high-speed control loop because its response time is too slow.
2.1 Traceability
Metrological traceability is a documented, unbroken chain of calibrations linking a result to a reference, usually an SI unit, with each link contributing to measurement uncertainty. Traceability requires:
a stated measurand and measurement method;
suitable reference standards;
documented calibration records;
known environmental and operating conditions;
uncertainty estimates at each relevant stage;
competence and identification of equipment.
A certificate bearing a reference laboratory logo does not by itself guarantee that a result is fit for purpose. The calibration range, uncertainty, environmental conditions, and validity period must match the application.
2.2 A practical calibration sequence
A robust calibration procedure generally follows these steps:
Define the measurand, operating range, accuracy requirement, and acceptance criteria.
Select a reference whose uncertainty is suitably smaller than the required uncertainty.
Stabilize temperature, supply voltage, mounting, warm-up time, and loading.
Apply several reference points across the range, including increasing and decreasing sequences where hysteresis is possible.
Record raw indications, reference values, environmental variables, time, and instrument identification.
Estimate corrections, repeatability, hysteresis, nonlinearity, and drift.
Fit a model only when it is justified by the data and application.
State uncertainty, coverage convention, limitations, and next calibration date.
Verify performance independently before release for use.
A calibration report should preserve raw data, not only rounded corrected values. Rounding too early can create artificial agreement or conceal a meaningful trend.
3. Statistical Treatment of Repeated Measurements
Suppose n repeated observations are x1, x2, …, xn. The arithmetic mean is
x̄ = (1 ÷ n) ∑ᵢ₌₁ⁿ xᵢ
The mean estimates the expected value when observations are independent and drawn from a stable process. The sample standard deviation is
s = √[ (1 ÷ (n − 1)) ∑ᵢ₌₁ⁿ (xᵢ − x̄)² ]
The denominator n − 1 provides an unbiased estimate of population variance under the usual independent, identically distributed assumptions. The standard deviation describes individual-observation spread. The standard uncertainty of the mean is
uA(x̄) = s ÷ √n
This describes uncertainty due to repeatability of the mean, not all uncertainty sources.
Worked Example 1: Repeatability
A displacement sensor gives, in millimetres, 10.02, 10.05, 10.01, 10.04, and 10.03. The mean is
The deviations from the mean are −0.01, 0.02, −0.02, 0.01, and 0.00 mm. Their squared sum is 0.0010 mm², so
s = √(0.0010 ÷ 4) = 0.0158 mm.
The standard uncertainty of the mean is
uA = 0.0158 ÷ √5 = 0.0071 mm.
Thus, the repeatability contribution for the mean is approximately 0.007 mm. This does not imply that the sensor accuracy is ±0.007 mm; reference uncertainty, resolution, drift, and bias must also be considered.
Outliers should not be removed merely because they are inconvenient. An observation may be rejected only when a technical cause is established, such as a documented communication failure or an operator mistake. Otherwise, robust methods or a revised statistical model may be more appropriate.
4. Uncertainty Evaluation and Propagation
The widely used uncertainty framework separates evaluations into:
Type A, based on statistical analysis of repeated observations;
Type B, based on calibration certificates, specifications, resolution, previous data, drift information, or scientific judgment.
These labels describe how an uncertainty component is evaluated, not whether it is more or less reliable.
For a model y = f(x₁, …, xₙ), if input quantities are approximately independent and the model can be locally linearized, the combined standard uncertainty is
uc²(y) = ∑ᵢ₌₁ⁿ [ (∂f ÷ ∂xᵢ)² u²(xᵢ) ]
The derivative ∂f ÷ ∂xi is the sensitivity coefficient, and u(xi) is the standard uncertainty of input xi. For correlated inputs, covariance terms must be included:
uc²(y) = ∑ᵢ ∑ⱼ cᵢ cⱼ u(xᵢ, xⱼ)
where ci = ∂f ÷ ∂xi and u(xi, xj) is covariance. The compact independent formula is only valid when covariance is negligible.
For a sum or difference, independent standard uncertainties combine by root-sum-square. For example, if y = a − b, then uc(y) = √[u²(a) + u²(b). For a product or power, relative uncertainty methods can be convenient after appropriate linearization, but units and correlation must still be respected.
Distribution assumptions
A specification of ±a does not automatically mean a standard uncertainty of a. If all values within ±a are considered equally likely, a rectangular distribution gives u = a ÷ √3. If ±a represents an approximately 95% expanded uncertainty with coverage factor k = 2, the corresponding standard uncertainty is approximately a ÷ 2. The source and interpretation of every limit must be recorded.
An expanded uncertainty is commonly reported as
U = k uc
where k is a coverage factor selected according to the desired coverage convention and degrees-of-freedom considerations. Saying “approximately 95%” is preferable to implying an exact probability when distributional assumptions are uncertain.
Worked Example 2: Load measurement
A force is calculated from mass and gravitational acceleration:
F = mg.
Let m = 5.000 kg with standard uncertainty u(m) = 0.002 kg, and g = 9.80665 m/s² treated as exact for this example. Then F = 49.03325 N. Since ∂F ÷ ∂m = g,
u(F) = g u(m) = 9.80665 × 0.002 = 0.0196 N.
With k = 2, U ≈ 0.039 N. A suitable report is therefore F = (49.033 ± 0.039) N, with the coverage convention and assumptions stated. In a real system, gravitational variation, buoyancy, scale calibration, and mounting may also contribute.
5. Calibration Curves and Regression
A sensor model may be represented by a line,
y = a + bx
where x is the reference input, y is the sensor indication, a is intercept, and b is slope. Least-squares fitting selects a and b to minimize the sum of squared residuals:
S = ∑ᵢ₌₁ⁿ [yᵢ − (a + bxᵢ)]²
This method assumes that the model is appropriate and that residual behavior is consistent with the assumed error structure. Ordinary least squares is especially appropriate when uncertainty in x is negligible compared with uncertainty in y, and residuals are approximately independent with constant variance. If both axes have significant uncertainty, orthogonal regression or a measurement-error model may be needed.
The residual is
ri = yi − ŷi,
where ŷi is the fitted value. Residual plots can reveal curvature, changing variance, hysteresis, drift, or an omitted environmental variable. A high coefficient of determination does not prove that a calibration model is physically valid.
For many sensors, a physically motivated model is better than a high-order polynomial. Excessive polynomial order can interpolate calibration points while behaving unrealistically between or beyond them. Calibration models must never be extrapolated outside their validated range without evidence.
Nonlinearity and hysteresis
Nonlinearity is deviation from a specified reference relationship, such as a best-fit straight line or terminal straight line. The definition must be stated because different reference lines produce different values. Hysteresis is the difference in indication at the same input when approached from increasing and decreasing directions. It may result from friction, magnetic effects, elastic deformation, or material memory.
6. Error Budgets
An error budget lists all material contributors to the measurement result, their distributions, standard uncertainties, sensitivity coefficients, and contributions to the combined uncertainty. A simplified budget for a position measurement might include reference accuracy, repeatability, resolution, thermal expansion, alignment, and electronic drift.
Source
Estimate or limit
Distribution
Standard uncertainty
Sensitivity coefficient
Contribution
Reference calibration
±0.020 mm
Normal, k=2
0.010 mm
1
0.010 mm
Repeatability
s=0.012 mm
Normal
0.012 mm
1
0.012 mm
Resolution
±0.005 mm
Rectangular
0.0029 mm
1
0.0029 mm
Thermal effect
±0.010 mm
Rectangular
0.0058 mm
1
0.0058 mm
Assuming independence, the combined standard uncertainty is
With k = 2, the expanded uncertainty is approximately U = 0.034 mm. The largest contributors are not necessarily the largest limits; they are the largest standard contributions after distribution assumptions and sensitivity coefficients are applied. This makes an error budget a design tool: reducing a negligible contribution will not materially improve the result.
7. Validation of Sensors and Actuators
Calibration asks how an instrument behaves against a reference. Validation asks whether the complete measurement or actuation process satisfies its intended purpose. A validation plan should specify:
intended operating range and use case;
accuracy, precision, response-time, and stability requirements;
environmental conditions and loading;
reference equipment and acceptance criteria;
test points, repetitions, and statistical treatment;
failure handling and retest rules;
documentation and approval responsibilities.
For an actuator, validation may include position accuracy, repeatability, settling time, overshoot, force or torque capacity, deadband, backlash, saturation, thermal behavior, and response under realistic loads. A motor that reaches commanded speed without load may fail validation when coupled to a mechanism.
A useful distinction is between verification tests, which check specified properties, and performance validation, which demonstrates suitability in the actual application. Validation should include boundary conditions and representative disturbances, not only nominal laboratory conditions.
Figure: Measurement assurance chain
Chain from measurand to validated decision
Figure: Chain from measurand to validated decision
Figure: A measurement becomes useful only when the complete chain, including uncertainty and intended use, has been validated.
8. Illustrative Case: Calibrating a Robotic Joint Position Sensor
Background. A robotic assembly cell uses a rotary encoder to position a gripper. The required absolute position accuracy is ±0.20°. Repeatability must be better than 0.08°.
Problem. During assembly, occasional insertion failures occur. The controller reports that the joint has reached its target, but an independent angular reference suggests a small position discrepancy.
Analysis. Engineers collect five readings at each of seven angles from −90° to +90°, first increasing and then decreasing. The data show a nearly constant offset of 0.11°, a small slope error, and a 0.06° difference between approach directions near the gearbox reversal point. Residuals increase near the ends of travel, indicating that a single global linear correction is inadequate.
Approach. The team first verifies wiring, encoder resolution, timestamp synchronization, and warm-up. A calibrated rotary reference is used, with its certificate uncertainty converted to standard uncertainty. The encoder is modeled with a linear gain and offset in the central range, while a direction-dependent backlash correction is applied near reversal. Repeatability is estimated from repeated readings, and temperature is recorded because the gearbox warms during operation. An error budget combines reference uncertainty, repeatability, quantization, backlash, thermal drift, and model residuals.
The corrected central-range result has an expanded uncertainty of 0.13° at approximately 95% coverage, satisfying the ±0.20° requirement. However, the reversal region has 0.24° expanded uncertainty and fails. The control sequence is changed so that the joint approaches insertion targets from a consistent direction, and a mechanical preload is added during the next maintenance cycle.
Outcome. Insertion failures decline substantially. The improvement does not come from averaging encoder readings; it comes from identifying direction-dependent systematic behavior and validating the complete motion process.
Learning points. Calibration must cover actual operating conditions. Residuals and hysteresis can reveal mechanism-level faults. A sensor specification alone cannot establish system suitability. Acceptance criteria should be linked to the function being performed.
9. Limitations, Governance, and Professional Practice
Uncertainty analysis is model-dependent. If an important influence quantity is omitted, a mathematically precise result can still be misleading. Correlation is frequently overlooked when the same reference, supply, or environmental measurement affects multiple terms. Another common error is double counting a specification that already includes repeatability or calibration uncertainty.
Engineers should maintain controlled procedures, equipment identification, calibration status, environmental records, raw data, software versions, and change histories. Automated scripts should be tested with known data and protected against silent unit conversion errors. When AI or machine-learning models are used for sensor compensation, training data range, drift, explainability, uncertainty, and out-of-distribution behavior must be assessed. A prediction with no defensible uncertainty statement should not be treated as a calibrated measurement.
Safety-critical applications may require sector-specific standards, independent review, redundancy, fail-safe behavior, and formal configuration control. Measurement records can affect product release, worker safety, environmental compliance, and legal disputes; therefore, data integrity and honest reporting are ethical obligations. Engineers must not suppress unfavorable calibration points or report more digits than the uncertainty supports.
Best-Practice Checklist
Define the measurand before selecting the instrument.
Use SI units consistently and document conversions.
Separate correction from uncertainty.
Control warm-up, mounting, loading, temperature, and supply conditions.
Use increasing and decreasing sequences when hysteresis is plausible.
Preserve raw data and investigate, rather than casually deleting, outliers.
State distribution assumptions for Type B components.
Include covariance when inputs are correlated.
Inspect residuals; do not rely only on fit statistics.
Validate the complete sensor-actuator process under representative conditions.
Report a result with units, uncertainty, coverage convention, and limitations.
Chapter Summary
Calibration establishes the relationship between an instrument indication and a reference under stated conditions; traceability connects that result through documented calibrations to recognized standards. Systematic errors are modeled or corrected, random errors are characterized statistically, and gross errors require detection and procedural control. Mean, standard deviation, and standard uncertainty of the mean provide a foundation for analyzing repeated measurements.
Uncertainty evaluation combines Type A statistical information with Type B information from certificates, specifications, resolution, and engineering knowledge. Sensitivity coefficients and covariance determine how input uncertainties propagate through a measurement model. Expanded uncertainty communicates a chosen coverage convention but does not replace a clear model and assumptions.
Regression can produce calibration curves, but model choice must be supported by physics, residual analysis, and a defined operating range. Error budgets identify dominant contributors and guide improvement. Finally, validation determines whether the complete measurement or actuation system is fit for its intended purpose. Reliable mechatronic engineering depends on disciplined procedures, traceable references, honest reporting, and continual review of environmental and operational effects.
Key Terms
Measurand: Quantity intended to be measured.
Measurement error: Difference between a measured value and a reference value.
Measurement uncertainty: Parameter describing the dispersion of values reasonably attributable to the measurand.
Systematic error: Repeatable or predictable component of measurement error.
Random error: Unpredictable variation among repeated observations.
Gross error: Mistake caused by equipment, procedure, environment, or human action.
Calibration: Establishment of a relationship between a reference and an instrument indication.
Adjustment: Alteration of an instrument to improve agreement with a reference.
Verification: Confirmation that specified requirements have been fulfilled.
Validation: Demonstration that a process is suitable for its intended use.
Traceability: Documented chain linking a result to a reference through calibrations.
Accuracy: Closeness of agreement with a reference value.
Precision: Closeness of agreement among repeated results.
Sensitivity: Change in output per unit change in input.
Repeatability: Agreement under the same conditions over a short period.
Hysteresis: Difference in indication for the same input approached in opposite directions.
Type A evaluation: Uncertainty evaluation using statistical analysis.
Type B evaluation: Uncertainty evaluation using non-statistical information.
Error budget: Structured list and combination of uncertainty contributors.
Residual: Difference between an observed value and a model-predicted value.
Review Questions
Short Answer Questions
Distinguish measurement error from measurement uncertainty.
Why does averaging reduce random variation but not a constant offset?
Define calibration, adjustment, verification, and validation.
What information is required for metrological traceability?
Why are residual plots useful after fitting a calibration curve?
Long Answer Questions
Explain systematic, random, and gross errors, giving two examples and suitable controls for each.
Describe a complete calibration procedure for a temperature sensor used in an industrial controller.
Explain Type A and Type B uncertainty evaluation and discuss how their results are combined.
Discuss the assumptions and limitations of ordinary least-squares calibration.
Explain how an error budget can guide engineering improvement in a mechatronic measurement chain.
Analytical / Application Questions
A sensor has a specification of ±0.06 V, assumed rectangular, and repeatability standard uncertainty of 0.025 V. Assuming independence, calculate the combined standard uncertainty and expanded uncertainty for k = 2.
Design a validation plan for a motorized linear actuator requiring 0.10 mm positioning accuracy and 0.05 mm repeatability under variable load.
A calibration curve has small residuals in the middle of its range but large, systematic residuals at both ends. Propose at least three possible causes, tests to distinguish them, and an appropriate modeling or hardware response.
Multiple Choice Questions with Answers
Question 1
Which error is best described as a constant zero offset in a sensor?
A. Random error
B. Systematic error
C. Gross error
D. Quantization noise
Correct Answer: B. Systematic error
Question 2
For n independent repeated observations with sample standard deviation s, the standard uncertainty of the mean is:
A. s × √n
B. s ÷ n
C. s ÷ √n
D. n ÷ s
Correct Answer: C. s ÷ √n
Question 3
A calibration certificate primarily supports which concept when linked through documented standards?
A. Resolution
B. Traceability
C. Hysteresis
D. Saturation
Correct Answer: B. Traceability
Question 4
If a specification is ±a and a rectangular distribution is assumed, the standard uncertainty is:
A. a
B. a ÷ 2
C. a ÷ √3
D. 2a
Correct Answer: C. a ÷ √3
Question 5
Which condition is required for the simple root-sum-square uncertainty formula without covariance terms?
A. All inputs have zero units
B. Inputs are independent or covariance is negligible
C. The model must be quadratic
D. All uncertainties must be Type A
Correct Answer: B. Inputs are independent or covariance is negligible
Question 6
In a linear calibration model y = a + bx, what does b represent?
A. The intercept
B. The residual
C. The sensitivity or slope
D. The expanded uncertainty
Correct Answer: C. The sensitivity or slope
Question 7
Why should calibration data be collected in both increasing and decreasing directions when appropriate?
A. To increase display resolution
B. To detect hysteresis
C. To eliminate all systematic error
D. To avoid using a reference standard
Correct Answer: B. To detect hysteresis
Question 8
An expanded uncertainty is commonly calculated as:
A. U = k u_c
B. U = u_c ÷ k
C. U = k + u_c
D. U = u_c²
Correct Answer: A. U = k u_c
Question 9
A force is calculated as F = mg. If g is treated as exact, which sensitivity coefficient applies to mass uncertainty?
A. ∂F/∂m = 1/g
B. ∂F/∂m = m
C. ∂F/∂m = g
D. ∂F/∂m = Fg
Correct Answer: C. ∂F/∂m = g
Question 10
What is the primary purpose of validation beyond calibration?
A. To increase the number of displayed digits
B. To prove that the complete process is fit for its intended use
C. To remove the need for uncertainty analysis
D. To replace all reference standards
Correct Answer: B. To prove that the complete process is fit for its intended use