Tutorials › Calculus I › Uncertainty In Sensor Calibration

Linearization and Differentials · Tutorial 634 of 1495

Uncertainty In Sensor Calibration

Use the slope of a sensor’s calibration curve at its measured input to estimate the resulting uncertainty in the calibrated reading.

Intermediate 10 min read

What You'll Learn

  • Represent a sensor calibration as a function from raw input readings to calibrated quantities
  • Use the derivative at the measured input to estimate output uncertainty
  • Distinguish a signed input error from the magnitude of an uncertainty estimate
  • Track units through the sensitivity calculation
  • Apply the method to linear and nonlinear calibration curves
  • Check a first-order estimate against exact changes in example calibration models

From Sensor Reading to Calibrated Quantity

A sensor usually produces a raw reading, such as a voltage, resistance, or digital count. A calibration model converts that reading into the quantity of interest. For example, a voltage may be converted into temperature, or a resistance into concentration.

Even after calibration, the input reading is not perfectly exact. If the raw reading has a small measurement error, the calibrated output changes as well. The derivative of the calibration model describes how strongly the output responds to a small change in its input. It therefore gives a direct way to estimate how input uncertainty affects the calibrated result.

In this tutorial, the calibration model itself is treated as known. We estimate the output uncertainty caused by error in the measured input; uncertainty in the calibration coefficients is not included.

Definition: Let \(y=f(x)\) be a differentiable calibration model, where \(x\) is the sensor’s raw input and \(y\) is the calibrated quantity. If the reported input is \(x_0\) and its measurement error is \(h\), then the first-order estimate of the resulting output change is \(f'(x_0)h\). If the input error has magnitude at most \(\delta\), the corresponding first-order estimate of output uncertainty is \(|f'(x_0)|\delta\).

What the Derivative Means in a Calibration

The value \(f'(x_0)\) is the local sensitivity of the calibrated output to changes in the raw reading near \(x_0\). Its units are output units divided by input units. For example, if \(x\) is measured in volts and \(y\) in degrees Celsius, then \(f'(x_0)\) is measured in degrees Celsius per volt.

The signed estimate \(f'(x_0)h\) preserves the direction of change. If it is positive, the small input error is estimated to raise the calibrated output; if it is negative, the output is estimated to fall. An uncertainty magnitude is nonnegative, so its first-order estimate uses the absolute value \(|f'(x_0)|\delta\).

The central calculation is short, but its interpretation matters: use the derivative at the nominal measured input \(x_0\), multiply by the input error or its uncertainty magnitude, and keep the units visible.

$$ \Delta y \approx f'(x_0)\Delta x, \qquad \text{estimated output uncertainty} \approx |f'(x_0)|\delta. $$

Why the Linear Estimate Works

The derivative is defined by the limiting ratio of output change to input change. That definition says that, for sufficiently small input changes, the output change is well approximated by the derivative times the input change.

Derivation: Suppose \(f\) is differentiable at \(x_0\). By the definition of the derivative, for nonzero \(h\),
$$ \frac{f(x_0+h)-f(x_0)}{h}\longrightarrow f'(x_0) \quad\text{as }h\longrightarrow 0. $$

Equivalently, the difference between the quotient and \(f'(x_0)\) tends to zero. Write that difference as \(r(h)\), so \(r(h)\to 0\) as \(h\to 0\). Multiplying the quotient equation by \(h\) gives

$$ f(x_0+h)-f(x_0) = f'(x_0)h+h\,r(h). $$

The term \(f'(x_0)h\) is the linear part of the output change. The remaining term \(h\,r(h)\), divided by \(h\), tends to zero as \(h\) tends to zero. Thus the linear part provides the first-order estimate for small input errors. This reasoning is local: it does not claim that the estimate is an exact bound for every possible input error.

A Practical Calculation Procedure

For a sensor reading with a stated input uncertainty, organize the calculation so the nominal calibrated result and its estimated uncertainty remain distinct.

1
Identify the calibration direction.
Write \(y=f(x)\), with raw sensor input \(x\) and calibrated output \(y\).
2
Record the nominal reading and its uncertainty.
Use \(x_0\) for the reported input and \(\delta\) for the magnitude of its uncertainty.
3
Evaluate the nominal output and local sensitivity.
Compute \(f(x_0)\) and \(f'(x_0)\).
4
Propagate the input uncertainty.
Estimate the output uncertainty as \(|f'(x_0)|\delta\), and state the output units.
5
Check the interpretation.
Confirm that the derivative uses output units per input unit, and that the reported uncertainty is a magnitude.

Worked Examples

Worked Example: Linear Voltage-to-Temperature Calibration

A temperature sensor is calibrated by \(T(V)=100(V-0.50)\), where voltage \(V\) is measured in volts and calibrated temperature \(T\) is in degrees Celsius. The measured voltage is \(V_0=1.20\ \text{V}\), with uncertainty \(\delta V=0.01\ \text{V}\). Find the nominal temperature and estimate its uncertainty.

First evaluate the calibration curve at the measured voltage:

$$ T(1.20)=100(1.20-0.50) =100(0.70) =70\ ^\circ\text{C}. $$

Differentiate the calibration model with respect to voltage:

$$ \frac{dT}{dV}=100\ ^\circ\text{C}/\text{V}. $$

The estimated temperature uncertainty is the sensitivity magnitude times the voltage uncertainty:

$$ \delta T\approx \left|100\ ^\circ\text{C}/\text{V}\right| (0.01\ \text{V}) =1\ ^\circ\text{C}. $$

Thus the calibrated reading is \(70\ ^\circ\text{C}\), with a first-order estimated uncertainty of \(1\ ^\circ\text{C}\). Because this calibration curve is linear, the output change is exactly \(100\) times the voltage change: input changes of \(+0.01\ \text{V}\) and \(-0.01\ \text{V}\) produce temperature changes of \(+1\ ^\circ\text{C}\) and \(-1\ ^\circ\text{C}\). This checks the estimate.

Worked Example: Quadratic Pressure Calibration

A pressure sensor has calibration model \(P(V)=2V+0.5V^2\), where \(V\) is in volts and \(P\) is in kilopascals. The measured voltage is \(V_0=2.00\ \text{V}\), with uncertainty \(\delta V=0.02\ \text{V}\). Estimate the calibrated pressure and its uncertainty.

Evaluate the nominal pressure:

$$ P(2.00)=2(2.00)+0.5(2.00)^2 =4.00+0.5(4.00) =4.00+2.00 =6.00\ \text{kPa}. $$

Differentiate the model and evaluate its derivative at the measured voltage:

$$ P'(V)=2+V, \qquad P'(2.00)=2+2.00=4.00\ \text{kPa}/\text{V}. $$

Therefore the first-order output uncertainty estimate is

$$ \delta P\approx (4.00\ \text{kPa}/\text{V})(0.02\ \text{V}) =0.08\ \text{kPa}. $$

The result is \(6.00\ \text{kPa}\), with estimated uncertainty \(0.08\ \text{kPa}\). To check the calculation against this particular model, evaluate the calibration curve at the two ends of the input uncertainty interval. At \(V=1.98\ \text{V}\),

$$ P(1.98)=2(1.98)+0.5(1.98)^2 =3.96+0.5(3.9204) =3.96+1.9602 =5.9202\ \text{kPa}. $$

This is \(5.9202-6.00=-0.0798\ \text{kPa}\) from the nominal output. At \(V=2.02\ \text{V}\),

$$ P(2.02)=2(2.02)+0.5(2.02)^2 =4.04+0.5(4.0804) =4.04+2.0402 =6.0802\ \text{kPa}. $$

This is \(6.0802-6.00=0.0802\ \text{kPa}\). These changes are close to the first-order estimates \(-0.08\ \text{kPa}\) and \(+0.08\ \text{kPa}\); the small differences arise because the calibration curve is curved.

Worked Example: Calibration with Negative Local Sensitivity

A sensor’s calibrated temperature is modeled by \(T(I)=30-4I+0.2I^2\), where current \(I\) is in milliamperes and \(T\) is in degrees Celsius. At \(I_0=5.00\ \text{mA}\), the input uncertainty is \(\delta I=0.05\ \text{mA}\). Find the nominal output and estimate its uncertainty.

The nominal output is

$$ T(5.00)=30-4(5.00)+0.2(5.00)^2 =30-20+0.2(25) =30-20+5 =15\ ^\circ\text{C}. $$

The derivative and its value at the nominal input are

$$ T'(I)=-4+0.4I, \qquad T'(5.00)=-4+0.4(5.00) =-4+2 =-2\ ^\circ\text{C}/\text{mA}. $$

The signed first-order output change corresponding to an input change \(h\) is approximately \((-2\ ^\circ\text{C}/\text{mA})h\). For the uncertainty magnitude, use the absolute value:

$$ \delta T\approx \left|-2\ ^\circ\text{C}/\text{mA}\right| (0.05\ \text{mA}) =0.10\ ^\circ\text{C}. $$

The calibrated output is \(15\ ^\circ\text{C}\), with estimated uncertainty \(0.10\ ^\circ\text{C}\). The negative derivative indicates that a small increase in current corresponds locally to a decrease in calibrated temperature. As a check, the two endpoint inputs give

$$ T(4.95)=30-4(4.95)+0.2(4.95)^2 =30-19.8+0.2(24.5025) =30-19.8+4.9005 =15.1005\ ^\circ\text{C}, $$

and

$$ T(5.05)=30-4(5.05)+0.2(5.05)^2 =30-20.2+0.2(25.5025) =30-20.2+5.1005 =14.9005\ ^\circ\text{C}. $$

The changes from \(15\ ^\circ\text{C}\) are \(+0.1005\ ^\circ\text{C}\) and \(-0.0995\ ^\circ\text{C}\), close to the estimated magnitude \(0.10\ ^\circ\text{C}\), with the expected direction reversed as current increases.

Common Pitfall: Mixing Up the Units or the Direction

A calibration model specifies which quantity is a function of which. If \(T=f(V)\), then the relevant sensitivity is \(dT/dV\), not \(dV/dT\). These derivatives have reciprocal units and generally different numerical values. Also, the uncertainty calculation uses a magnitude: a negative derivative conveys direction, but does not make an uncertainty negative.

Common mistake: For \(T(I)=30-4I+0.2I^2\) at \(I=5.00\ \text{mA}\), one might write \(T'(5)=-2\) and report the uncertainty as \((-2)(0.05)=-0.10\ ^\circ\text{C}\). This is a signed change for a positive input change, not an uncertainty magnitude. The corrected estimate is \(|-2\ ^\circ\text{C}/\text{mA}|(0.05\ \text{mA})=0.10\ ^\circ\text{C}\).

It is also important to retain the units during the multiplication. In the corrected calculation, milliamperes cancel, leaving degrees Celsius, as required for an output uncertainty.

Interpreting the Estimate

The derivative-based estimate is useful because a calibration curve can have different sensitivities at different readings. A fixed input uncertainty may correspond to a small output uncertainty in one region and a larger one in another. Evaluating the derivative at the actual nominal reading captures this local variation.

The result is a first-order estimate, not automatically a guaranteed worst-case bound for a nonlinear calibration. It describes the output change predicted by the local linear approximation. Keep the nominal calibrated value \(f(x_0)\) separate from the uncertainty estimate \(|f'(x_0)|\delta\), and report both with their units. When the derivative is negative, report the uncertainty as a positive magnitude and use the derivative’s sign only when describing the direction of a particular input change.

Check Your Understanding

For each question, identify the raw input, calibrated output, and relevant derivative before calculating.

  1. A calibration model is \(y=5x\), with \(x_0=3.0\) and input uncertainty \(0.02\). What are the nominal output and first-order output uncertainty?
  2. If \(y=f(x)\) is measured in grams and \(x\) in volts, what are the units of \(f'(x)\)?
  3. Why does an uncertainty estimate use \(|f'(x_0)|\delta\) rather than \(f'(x_0)\delta\)?
  4. For \(y=x^2\) at \(x_0=4\), with input uncertainty \(0.1\), calculate the first-order output uncertainty.
  5. In one sentence, explain why the derivative-based estimate is local rather than necessarily an exact bound.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon