Short summary Calibration methods and error analysis for sensors: linear & nonlinear regression, hysteresis, sensitivity, and full calibration workflow.
Learning objectives
Perform linear regression for sensor calibration and compute confidence intervals.
Analyze hysteresis and nonlinearity errors.
Design calibration experiments and propagate calibration uncertainty into measurements.
Key concepts (brief)
Regression residuals, standard error, and calibration curve interpretation.
Hysteresis and repeatability characterization.
Sensitivity analysis and combining calibration with measurement uncertainty.
Recommended notebooks to run
micrometer_calibration.ipynb
regression_analysis.ipynb
full_calibration_analysis_example.ipynb
hysteresis_error_analysis.ipynb
calibration_non_linear_relations.ipynb
Suggested exercises
Calibrate a sample dataset, report calibration equation and uncertainty.
Compare linear vs nonlinear fits and discuss choice and impact on measurements.
Prerequisites Basic regression, statistics, and familiarity with plotting in Python.
Detailed Explanation of the Static Calibration Process¶
Static calibration is a procedure used to characterize a measurement system by applying a known, constant input value to the system and observing the resulting output value.
The term “static” refers to the fact that the variables are held constant, meaning the input is not dependent on time.
1. Purpose¶
The primary purpose of static calibration is twofold:
Functional Relationship: To develop a functional relationship, or a correlation (), between the system’s known input () and its output (). This correlation is often determined using curve fitting techniques, such as regression analysis, on the calibration curve.
Systematic Error Identification: To identify and quantify systematic errors (biases) such as zero error, linearity error, and hysteresis.
2. Procedure Steps¶
To perform a static calibration, you generate a calibration curve by recording the output values () for a range of known input values ().
Reference Standard: A standard (known value) that is traceable to national standards must be used. This reference instrument should have significantly lower uncertainty than the instrument being tested.
Controlled Points: The chamber or environment is set to a series of stable, discrete input points across the operational range.
Hysteresis Check: Measurements should be taken by varying the input value in both the increasing (upscale) and decreasing (downscale) directions to assess hysteresis.
Data Collection: At each stable point, the system is allowed to reach thermal equilibrium, and multiple readings are taken to assess repeatability.
Data Analysis: The data is plotted to create the calibration curve. This curve is used to determine key parameters like static sensitivity (the slope of the curve), and to quantify errors like linearity and hysteresis.
Error Analysis and Uncertainty Categorization¶
In metrology, an error is the quantifiable difference between an estimate and the “true value,” which can sometimes be corrected. Uncertainty is the quantification of the doubt about that measurement result.
Systematic errors found during calibration, such as zero offset, can sometimes be corrected by adjustment. If the error cannot be corrected (e.g., hysteresis, remaining linearity deviation), the quantified range of that potential error must be included in the uncertainty budget as a Type B contribution.
The table below outlines common error types, how they are determined, and their subsequent role in uncertainty analysis:
| Error Type | Description & Measurement Method | Systematic Error Correction? | Uncertainty Type/Source |
|---|---|---|---|
| Repeatability Error () | The variability or scatter found when the same input is applied repeatedly. Accounts for random variations. Measured: Calculated as the standard deviation () from repeated readings taken during the static calibration procedure. | No. This is a source of random error. | Type A. Calculated as the standard deviation of the mean (). |
| Static Sensitivity () | The slope of the calibration curve at any given point. Measured: Defined as . | Used to define the functional relationship for converting output () back to input (). | Type B (The Sensitivity Error () is a statistical measure of random error in the estimate of the slope). |
| Zero Error () | A vertical shift or offset from the true zero point of the instrument. Measured: Determined by checking the output when a zero input condition is applied. | Yes. If possible, the error is reduced by physically adjusting the output under a zero input condition. | Type B (The remaining, uncorrected zero uncertainty, often related to resolution). |
| Linearity Error () | The deviation of the calibration curve from an expected straight line. Measured: Calculated as the maximum deviation between the actual output and the best-fit linear output . | If the deviation is large, the correction may involve using a higher-order polynomial fit, which models the error. | Type B (If a linear fit is required, the linearity error bounds define a semi-range limit for a Type B rectangular distribution). |
| Hysteresis Error () | The maximum difference in output value when the input is approached from increasing versus decreasing directions. Caused by friction or residual charge. Measured: Calculated as the maximum difference between upscale and downscale readings at the same input point across the full range. | No. Typically quantified, but not corrected. It is a systematic bias that must be factored into the uncertainty estimate. | Type B (The maximum hysteresis error defines the limit for a Type B uncertainty estimate, often expressed as a percentage of the full-scale output range). |
| Overall Instrument Error () | The total quantified uncertainty of the instrument due to known effects (e.g., combining , , ). Measured: Combined using the Root-Sum-Squared (RSS) method: . | If the calibration shows a consistent offset or non-linearity, a correction can be applied to future readings. | Combined Standard Uncertainty (). |
Does this detailed breakdown of the static calibration process and the associated errors clarify how systematic errors lead to Type B uncertainty contributions? If so, we can move on to discussing dynamic calibration or perhaps delve into how to apply sensitivity coefficients, which are often necessary after calibration!
Pages in this chapter¶
[Hysteresis example](calibration_error_analysis 2.ipynb)