Error
A positive error means the instrument reads high. The true value is never known exactly, so in practice it is replaced by a reference value from a better instrument.
Two meters on one pipe show different numbers, and nobody on site knows which to believe. One person trusts the meter with more digits, another trusts the newer one, and the pump setting is changed on a guess. The cost comes later: a report that a client rejects, a pump that is replaced when only its gauge was wrong, an energy saving that cannot be shown. This lesson gives the exact words for what a reading is worth, and the arithmetic: turn a maker’s figure into a pressure, choose a range for a real line, and find from ten readings which part of an error can be removed. #Instrumentation #Measurement #Accuracy
By the end of this lesson, you will be able to:
A booster pump supplies a building, and its controller must hold 4.0 bar in the discharge line. Two instruments are fitted to that line. An old dial gauge with a range of 0 to 16 bar shows 4.1 bar. A pressure transmitter with a range of 0 to 10 bar sends its signal to the controller, which shows 3.90 bar. One instrument says the pressure is above the setpoint and the other says it is below.
The argument about which is “more accurate” is usually settled by the number of digits on the display. That is the wrong test. The dial gauge is of class 1.6: its error may be as large as 1.6 percent of its 16 bar span, 0.26 bar. The maker of the transmitter states ±0.5 percent of its 10 bar span, 0.05 bar. So the gauge says only that the pressure is between 3.84 and 4.36 bar, and the transmitter that it is between 3.85 and 3.95 bar. They do not contradict each other: both put the pressure near 3.9 bar, and one says it much more closely.
The terms in this course have the meanings given in the International Vocabulary of Metrology, known as the VIM (JCGM 200:2012). Everyday speech on site is looser, and the difference causes real disputes, so the places where the two differ are pointed out.
The measurand is the quantity that is intended to be measured: here, the gauge pressure of the water at the tapping point. The indication is what the instrument shows. The two are never exactly equal.
Error
A positive error means the instrument reads high. The true value is never known exactly, so in practice it is replaced by a reference value from a better instrument.
If the error were known, you would subtract it and the problem would end. It is not known. What a maker can state is a limit that the error should not pass.
Measure the same pressure ten times. The indications differ a little from each other, and their average differs a little from the true value: two separate faults, with separate names.
The target board is the usual picture. The cross is the true value and each dot is one reading.
The top right board matters most in practice: the instrument repeats so well that its user trusts it, and every reading is wrong by the same amount. Repeating a measurement cannot find a bias; only a comparison with a reference can.
Precision depends on how much is allowed to change between the readings.
Repeatability is the precision when nothing is changed: the same instrument, the same person, the same place and method, readings taken one after another in a short time. Reproducibility is the precision when conditions do change: another day, another person, another ambient temperature, another instrument of the same model. Reproducibility is always the worse of the two. When a datasheet or a report gives a spread, ask which one it is.
Resolution is the smallest change of the measurand that gives a noticeable change of the indication. On a digital display it is one step of the last digit. On an analogue to digital converter (ADC) it is one count.
Resolution says how finely an instrument divides its range, not where the divisions are: a ruler with fine millimetre marks, glued a few millimetres from its end, still reads wrong. The transmitter of this lesson is read through a 12-bit ADC with a 3.3 V reference, across a 150 Ω resistor. One count is
The range of an instrument is stated by its two end values: 0 to 10 bar. The span is the difference between them: 10 bar. For a range of 2 to 10 bar the span is 8 bar.
Makers state a limit of error in one of two ways, and the two behave very differently.
From percent of span to percent of reading
Here
So an instrument with a wide range is poor at the bottom of it: the fixed band does not shrink when the reading does. A person who buys a 0 to 25 bar transmitter “to be safe” for a line that runs at 3 bar has bought a limit of error more than four times larger than a 0 to 6 bar transmitter of the same class gives.
An ideal transmitter gives an indication equal to the true value at every point of its range: a straight line through the origin with a slope of one. A real transmitter departs from that line in four recognisable ways. They are called static characteristics because they are found with the measurand held steady at each test point.
Zero error is a shift of the whole line. The instrument reads, for example, 0.02 bar high at every point, including at zero pressure. Span error is a wrong slope. The error is zero at the bottom of the range and grows in proportion to the reading.
Non-linearity is what remains after zero and span are correct: the line is curved, so the error is zero at both ends and largest somewhere between them. Hysteresis is a difference between the indication reached with the pressure rising and the indication reached at the same pressure with it falling. Friction in a mechanism and slow recovery of a diaphragm both cause it.
Zero and span errors are biases with a simple form, so they can be adjusted or corrected in software. Non-linearity needs a correction curve. Hysteresis cannot be corrected, because the instrument does not know from which direction the pressure arrived. A maker’s limit such as ±0.5 percent of span normally covers non-linearity, hysteresis and repeatability together, at the reference temperature and on the day of calibration. Temperature effects and drift over the years are stated separately and are added to it.
Hold the measurand steady, connect a reference instrument to the same point, and take
Mean, bias and standard deviation
The mean of
Span. The range is 0 to 10 bar, so the span is 10 bar. ✅
Limit in bar.
The error should not pass ±0.05 bar at any pressure in the range. ✅
Limit as a current. The output span is
A loop current that is within 0.08 mA of the ideal value is within the maker’s limit. ✅
Ideal currents. The current for a pressure
These are the currents a perfect transmitter would give. ✅
At 2.0 bar.
The true pressure is between 1.95 and 2.05 bar. ✅
At 8.0 bar.
The true pressure is between 7.95 and 8.05 bar. Rounded, this is 0.63 percent. ✅
Compare. The band of ±0.05 bar is the same in both cases. As a fraction of the reading it is four times worse at 2.0 bar, because the reading is four times smaller. ✅
The worst point of the working band is its bottom, 3 bar, because the percentage of reading is largest there.
Limit of each range in bar.
The limit grows in proportion to the span. ✅
Percent of reading at 3 bar and at 5 bar.
| Range | Limit | At 3 bar | At 5 bar | 5.6 bar as a share of span |
|---|---|---|---|---|
| 0 to 6 bar | ±0.03 bar | 1.00 % | 0.60 % | 93 % |
| 0 to 10 bar | ±0.05 bar | 1.67 % | 1.00 % | 56 % |
| 0 to 16 bar | ±0.08 bar | 2.67 % | 1.60 % | 35 % |
Only the 0 to 6 bar range stays at or below 1.5 percent of reading through the whole band. ✅
Check the top of the range. The highest pressure, 5.6 bar, is inside the 0 to 6 bar range, at 93 percent of its span. The transmitter is not driven past its range. ✅
Choice. The 0 to 6 bar transmitter meets both conditions. The 0 to 10 bar transmitter fails at the bottom of the band, and the 0 to 16 bar transmitter fails through the whole band. ✅
Check a second way. Reverse the question and ask at what pressure each range reaches 1.5 percent of reading.
The 0 to 6 bar range is good from 2.00 bar upwards, which covers the band. The 0 to 10 bar range fails from 3 to 3.33 bar. The 0 to 16 bar range is good only above 5.33 bar, outside the band. The Python script prints the same three pressures. ✅
Sum and mean. The ten readings add to 40.30 bar.
The mean indication is 4.030 bar. ✅
Bias.
On average the transmitter reads 0.030 bar high at this pressure. ✅
Deviations from the mean. In units of 0.01 bar the ten deviations are
Sum of squares.
Standard deviation. Divide by
One reading of this transmitter scatters with a standard deviation of about 0.012 bar. This is its repeatability at 4 bar. ✅
Standard deviation of the mean.
The mean of ten readings is known about three times better than one reading. ✅
Compare the bias with the uncertainty of the mean.
The bias is about eight times larger than the scatter of the mean can explain. It is real and not a matter of chance. ✅
Compare each error with the maker’s limit. The single errors run from
What a correction gains. Subtract the bias, 0.030 bar, from every reading. The corrected readings run from 3.98 to 4.02 bar, so the errors that remain are within ±0.02 bar. ✅
Check a second way. The mean of the squared errors can be split into a part from bias and a part from spread:
The left side, from the ten errors in units of 0.01 bar, is
The script repeats both applications: the limit of error at 2.0 bar and at 8.0 bar, the three ranges tested against 1.5 percent of reading, and the bias and repeatability of the ten readings. It saves two plots in one image: the percent of reading along the range for the three transmitters, and the ten readings against the reference.
"""Percent of span against percent of reading, and bias against repeatability."""import numpy as npimport matplotlib.pyplot as plt
# ---------- Part 1: one limit of error, seen at different pressures ----------ACC = 0.5 # maker's limit of error, percent of spanSPAN_A = 10.0 # bar, the transmitter of the problem
def limit_bar(span, acc=ACC): """Limit of error in bar for a transmitter of the given span.""" return acc / 100.0 * span
def percent_of_reading(span, pressure, acc=ACC): """The same limit written as a percentage of the reading.""" return 100.0 * limit_bar(span, acc) / pressure
print("Transmitter 0 to 10 bar, limit 0.5 percent of span")print(f" limit of error: {limit_bar(SPAN_A):.3f} bar at every pressure")for p in (2.0, 8.0): current = 4.0 + 16.0 * p / SPAN_A print(f" at {p:.1f} bar: {current:.1f} mA, limit " f"{percent_of_reading(SPAN_A, p):.3f} percent of reading, " f"true value between {p - limit_bar(SPAN_A):.2f} and " f"{p + limit_bar(SPAN_A):.2f} bar")print(f" limit as current: {16.0 * ACC / 100.0:.3f} mA")
P_LOW, P_HIGH, P_MAX = 3.0, 5.0, 5.6 # bar: working band and highest pressureTARGET = 1.5 # percent of reading allowedprint("Choice of range for a line at 3 to 5 bar")for span in (6.0, 10.0, 16.0): worst = percent_of_reading(span, P_LOW) ok = "meets" if worst <= TARGET and P_MAX <= span else "fails" print(f" 0 to {span:>4.1f} bar: limit {limit_bar(span):.3f} bar, " f"{worst:.2f} % at 3 bar, {percent_of_reading(span, P_HIGH):.2f} % at 5 bar, " f"5.6 bar is {100.0 * P_MAX / span:.0f} % of span, {ok}")for span in (6.0, 10.0, 16.0): print(f" 0 to {span:>4.1f} bar reaches {TARGET} % of reading at " f"{limit_bar(span) / (TARGET / 100.0):.2f} bar and above")
better = percent_of_reading(10.0, P_LOW, acc=0.25)print(f" 0 to 10 bar at 0.25 % of span: limit {limit_bar(10.0, 0.25):.3f} bar, " f"{better:.2f} % at 3 bar")
# Resolution of the 12-bit converter that reads the 0 to 10 bar transmittercount_volt = 3.3 / 4096.0count_bar = count_volt / 150.0 * 1000.0 / 16.0 * SPAN_Aprint(f" one ADC count: {1000.0 * count_volt:.3f} mV = {count_bar:.5f} bar, " f"the limit of error is {limit_bar(SPAN_A) / count_bar:.1f} counts")
# ---------- Part 2: ten readings against a reference ----------REFERENCE = 4.000 # bar, from the reference gaugeMAKER_LIMIT = 0.05 # barreadings = np.array([4.03, 4.02, 4.04, 4.03, 4.01, 4.03, 4.05, 4.02, 4.03, 4.04])
n = readings.sizemean = readings.mean()bias = mean - REFERENCEs = readings.std(ddof=1) # experimental standard deviationu_mean = s / np.sqrt(n) # standard uncertainty of the meanerrors = readings - REFERENCEcorrected = readings - bias
print("Ten readings against a reference of 4.000 bar")print(f" mean {mean:.4f} bar, bias {bias:+.4f} bar")print(f" standard deviation s = {s:.4f} bar (repeatability)")print(f" standard uncertainty of the mean s/sqrt(n) = {u_mean:.4f} bar")print(f" bias is {bias / u_mean:.1f} times the uncertainty of the mean")print(f" errors from {errors.min():+.2f} to {errors.max():+.2f} bar, " f"maker's limit {MAKER_LIMIT:.2f} bar")print(f" share of the mean square error from bias: " f"{100.0 * bias**2 / np.mean(errors**2):.0f} %")print(f" after the correction of {-bias:+.3f} bar: errors from " f"{(corrected - REFERENCE).min():+.2f} to {(corrected - REFERENCE).max():+.2f} bar")
# ---------- Plot ----------fig, ax = plt.subplots(2, 1, figsize=(8, 7))p = np.linspace(0.5, 16.0, 400)for span in (6.0, 10.0, 16.0): inside = p <= span ax[0].plot(p[inside], percent_of_reading(span, p[inside]), label=f"0 to {span:.0f} bar")ax[0].axhline(TARGET, color="gray", linewidth=0.8)ax[0].axvspan(P_LOW, P_HIGH, color="gray", alpha=0.15)ax[0].set_ylim(0, 6)ax[0].set_xlabel("pressure (bar)")ax[0].set_ylabel("limit of error (% of reading)")ax[0].set_title("The same 0.5 % of span, as a percentage of the reading")ax[0].legend()ax[1].plot(np.arange(1, n + 1), readings, "o", label="readings")ax[1].axhline(REFERENCE, color="black", label="reference")ax[1].axhline(mean, color="tab:red", linestyle="--", label="mean of readings")ax[1].axhline(REFERENCE + MAKER_LIMIT, color="gray", linewidth=0.8)ax[1].axhline(REFERENCE - MAKER_LIMIT, color="gray", linewidth=0.8)ax[1].set_xlabel("reading number")ax[1].set_ylabel("indication (bar)")ax[1].set_title("Bias (mean against reference) and repeatability (spread)")ax[1].legend()fig.tight_layout()fig.savefig("reading_worth.png", dpi=120)print("Saved reading_worth.png")Expected output
Transmitter 0 to 10 bar, limit 0.5 percent of span limit of error: 0.050 bar at every pressure at 2.0 bar: 7.2 mA, limit 2.500 percent of reading, true value between 1.95 and 2.05 bar at 8.0 bar: 16.8 mA, limit 0.625 percent of reading, true value between 7.95 and 8.05 bar limit as current: 0.080 mAChoice of range for a line at 3 to 5 bar 0 to 6.0 bar: limit 0.030 bar, 1.00 % at 3 bar, 0.60 % at 5 bar, 5.6 bar is 93 % of span, meets 0 to 10.0 bar: limit 0.050 bar, 1.67 % at 3 bar, 1.00 % at 5 bar, 5.6 bar is 56 % of span, fails 0 to 16.0 bar: limit 0.080 bar, 2.67 % at 3 bar, 1.60 % at 5 bar, 5.6 bar is 35 % of span, fails 0 to 6.0 bar reaches 1.5 % of reading at 2.00 bar and above 0 to 10.0 bar reaches 1.5 % of reading at 3.33 bar and above 0 to 16.0 bar reaches 1.5 % of reading at 5.33 bar and above 0 to 10 bar at 0.25 % of span: limit 0.025 bar, 0.83 % at 3 bar one ADC count: 0.806 mV = 0.00336 bar, the limit of error is 14.9 countsTen readings against a reference of 4.000 bar mean 4.0300 bar, bias +0.0300 bar standard deviation s = 0.0115 bar (repeatability) standard uncertainty of the mean s/sqrt(n) = 0.0037 bar bias is 8.2 times the uncertainty of the mean errors from +0.01 to +0.05 bar, maker's limit 0.05 bar share of the mean square error from bias: 88 % after the correction of -0.030 bar: errors from -0.02 to +0.02 barSaved reading_worth.pngIn the upper plot only the 0 to 6 bar curve is under the 1.5 percent line through the whole shaded band. In the lower plot the dashed mean line is above the reference line by the bias, and the dots scatter round the mean by the repeatability.
1. A pressure transmitter has a range of 0 to 25 bar and a maker’s accuracy of ±0.25 percent of span. Find the limit of error in bar, and as a percent of the reading at 5 bar.
The limit is
2. Flow meter X has a limit of ±0.5 percent of its span of 0 to 100 m³/h. Flow meter Y has a limit of ±1 percent of reading. Below what flow does meter Y have the smaller limit? Give the limit of each at 20 m³/h.
Meter X has a fixed limit of 0.5 m³/h. Meter Y has a limit of
3. A transmitter is compared with a reference that shows 6.050 bar. Eight indications are recorded: 6.12, 6.10, 6.13, 6.11, 6.12, 6.14, 6.11, 6.13 bar. Find the bias, the repeatability and the standard deviation of the mean.
The mean is
4. A line runs between 6 bar and 9 bar and can reach 11 bar. Transmitters of ±0.5 percent of span are available in ranges of 0 to 10 bar, 0 to 16 bar and 0 to 25 bar. The limit must not pass 1.5 percent of reading in the working band. Choose the range.
The 0 to 10 bar range does not contain 11 bar. The 0 to 16 bar range has a limit of 0.08 bar, which is
5. A 0 to 10 bar transmitter with a limit of ±0.05 bar is tested against a reference at five points, first with the pressure rising and then with it falling.
| Reference (bar) | 0 | 2.5 | 5.0 | 7.5 | 10.0 |
|---|---|---|---|---|---|
| Rising (bar) | 0.02 | 2.53 | 5.04 | 7.55 | 10.06 |
| Falling (bar) | 0.03 | 2.56 | 5.08 | 7.58 | 10.06 |
From the rising readings find the zero error and the span error. Find the largest hysteresis. Does the transmitter pass?
Zero error:
A transmitter gives ten readings of one steady pressure. All ten agree within 0.02 bar. What does this tell you?
The board: the cross is the true value. The position of a dot to the left or right of the cross is the error of that reading. The height of a dot is drawn only to make a board. The dashed lines are the maker's limit of error of the lesson's transmitter, ±0.05 bar. The solid line is the mean of the 30 readings. It is not exactly at the bias you set, because 30 readings are a sample: take 30 new ones and it moves a little. The plot: all three transmitters are ±0.5 percent of span. The band in bar is fixed, so as a percent of the reading it grows when the reading falls. The shaded band is the working band of 3 to 5 bar in Application 1, and the dashed line is its requirement of 1.5 percent of reading.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A transmitter has a range of 0 to 16 bar and a maker's accuracy of ±0.5 percent of span. It is used at 3 bar. What is the limit of error as a percent of the reading?
2. Ten readings against a reference give a bias of +0.030 bar and a standard deviation of 0.0115 bar. You take 100 readings and use their mean. What happens to the bias and to the standard deviation of the mean?
3. The 0 to 10 bar transmitter (±0.5 percent of span) is read by a 12-bit converter. One count is 0.0034 bar, and the display shows 3.903 bar. How closely is the true pressure known from this one reading?
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.