Search topics and sections

In everyday use, an error is a mistake. It is an action, thought, or judgment that is wrong.[1]

In science, engineering, and statistics, the word has a narrower meaning. It is the difference between a value someone measured or calculated and the true or correct value.[1] A careful scientist using the best available method still gets results with some error, because every measurement has limits. A mistake, such as misreading a dial, is a separate thing.[2]

Kinds of error

The word "error" is used in several fields, and each gives it a precise sense.

  • Measurement error is the measured value minus a reference value, such as the true value.[2]
  • Statistical error is how far one observation falls from the true value it is meant to reflect, such as a population average.[3]
  • Calculation error is the gap between an approximate answer and the exact answer, for example from rounding.[4]
  • Human error is a planned action that does not go as intended, or the use of a wrong plan.[5]
  • Statistics names two kinds of wrong decision in a hypothesis test and gives each a probability.[6]

Error in measurement

Definition

Metrology is the science of measurement. Its standard vocabulary is the International Vocabulary of Metrology (VIM).[2]

Measurement error is the difference between a measured value and a reference value. The VIM defines it as the measured value minus the reference value.[2]

E=xmeas−xrefE = x_{\text{meas}} - x_{\text{ref}}

Here EE is the error, xmeasx_{\text{meas}} is the measured value, and xrefx_{\text{ref}} is the reference value. A positive EE means the reading is too high, and a negative EE means it is too low.

Error on a number lineError E = measured − trueTrue valueMeasured value
On a number line, the error EE is the measured value minus the true value. Here the measured value lies to the right of the true value, so EE is positive.

Whether the error can be known depends on the reference value used.[2]

Reference value Is the error known?
A measurement standard whose own uncertainty is so small it can be ignored Yes
The true value of the quantity No

Measurement error is not the same as a mistake. The VIM states that the two should not be confused.[2]

Absolute and relative error

Error can be stated in two ways.[4]

  • The true error, also called the absolute error, is the approximate value minus the true value.
  • The relative error is that error divided by the true value, given as a fraction or a percentage.
Et=x^−xεt=x^−xx×100%E_t = \hat{x} - x \qquad \varepsilon_t = \frac{\hat{x} - x}{x} \times 100\%

Here x^\hat{x} is the measured or approximate value and xx is the true value, which must not be zero for the relative error to exist. Relative error lets you compare errors in quantities of very different size.

Flow meter error shows why the difference matters. A flow meter rated at ±0.5 percent of a 50 ft/s full range can be off by ±0.25 ft/s at any flow. At a flow of 6 ft/s, that is about 4.17 percent of the reading.[7]

A meter rated at ±0.5 percent of the reading behaves differently. Its error stays at 0.5 percent of whatever it reads.[7]

Systematic and random error

Measurement error is traditionally split into two parts.[8] They behave differently when you repeat a measurement.

  • Systematic error stays the same or changes in a predictable way across repeated measurements.[9] It is often called bias.[8]
  • Random error changes in an unpredictable way across repeated measurements.[10] Its average over many repeats is generally assumed to be zero.[10]

The two parts add up to the total error, so each one equals the total error minus the other.[9][10] The broader topic is covered in observational error.

Systematic and random error shown as shots on targetsSmall random errorLarge random errorSmallsystematic errorLargesystematic error
Four targets show repeated measurements. Systematic error shifts the center of the cluster away from the bullseye, and random error spreads the dots apart. A cross marks the average of each set.

Each part is reduced in a different way. Random error cannot be corrected for, but it can usually be reduced by taking more observations and averaging them.[8]

A known systematic error can be offset by applying a correction, often found through calibration against a standard.[9][8] Even so, neither kind of error can be removed completely.[8]

Accuracy and precision

Accuracy and precision describe the results of measurement in terms of error.

Term Meaning in the VIM Link to error
Accuracy How closely a measured value agrees with the true value[2] A measurement with a smaller error is more accurate[2]
Precision How closely repeated measured values agree with each other, under stated conditions[2] Usually given as a standard deviation, variance, or coefficient of variation[2]

The measures of spread in the table have simple meanings. The variance is the average of the squared differences between the values and their mean. The coefficient of variation is the standard deviation divided by the mean.

A related term, trueness, falls as systematic error grows and does not depend on random error.[2] The VIM says the term "measurement accuracy" should not be used for trueness, and "measurement precision" should not be used for accuracy.[2]

Error versus uncertainty

Error and measurement uncertainty are different ideas. The Guide to the Expression of Uncertainty in Measurement (GUM) says they are not words with the same meaning and should not be confused.[8]

Idea What it describes Can it be known?
Error The gap between a result and the true value No, because the true value is unknowable; the GUM calls error a simplified idea[8]
Uncertainty The doubt that remains about a result after all known errors are corrected[8] Yes, it is estimated and reported with the result[8]

The VIM also describes two views of the true value itself.[2]

Approach What it assumes about true values
Error approach There is one true value, but it cannot be known in practice
Uncertainty approach A quantity's definition is never complete, so there is a set of true values consistent with it, not a single one

Error in statistics

Errors and residuals

In statistics, an error is the gap between an observation and the true value it reflects.[3] A common setting is regression, which fits a line that predicts one variable from another. In a regression model, the error for observation ii is

εi=Yi−E(Yi)\varepsilon_i = Y_i - E(Y_i)

where YiY_i is the observed value and E(Yi)E(Y_i) is its mean value on the true line.[3] Here E(⋅)E(\cdot) means a mean, not the measurement error EE used above. The true line is usually unknown, so the errors are unknown too.

A residual is the observable stand-in for an error. It is the vertical distance from a data point to the line fitted from the sample, not to the true line.[3]

ei=yi−y^ie_i = y_i - \hat{y}_i

Here eie_i is the residual, yiy_i is the observed value, and y^i\hat{y}_i is the value the fitted line predicts for that point.[3] Analysts study residuals to check whether the assumptions made about the errors hold.[3] See errors and residuals.

Error versus residual in linear regressionyxtrue line (unknown)fitted line (from sample)error εᵢresidual eᵢ
A scatter of sample points around an unknown true regression line (solid) and a line fitted from the sample (dashed). For the highlighted point, the error εi\varepsilon_i is its vertical distance to the true line, and the residual eie_i is its vertical distance to the fitted line.

Errors in hypothesis tests

A statistical hypothesis test can reach a wrong conclusion in two ways, called type I and type II errors. Each depends on whether the null hypothesis (the default claim of no effect) is really true.[6]

Decision Null hypothesis is true Null hypothesis is false
Reject it Type I error (false positive) Correct
Do not reject it Correct Type II error (false negative)

Each kind of error has a probability, and these set the quality of a test.[6]

  • α\alpha, the significance level, is the chance of a type I error.
  • β\beta is the chance of a type II error.
  • The power, 1−β1 - \beta, is the chance that the test detects an effect of a given size that really exists.
  • Many studies set α=0.05\alpha = 0.05 and β=0.20\beta = 0.20, though these values are chosen without a strong reason.

Type III error

A type III error means giving the right answer to the wrong problem.[11]

The statistician A. W. Kimball gave this definition of an "error of the third kind" in 1957. He traced it mainly to poor communication between a statistical consultant and the researcher.[11]

Error in calculation

Round-off and truncation error

Calculations done on computers or by approximation have their own errors, studied in numerical analysis. There are two main kinds.[4]

  • Round-off error arises because a computer stores numbers with limited precision, so not every number can be held exactly.[4]
  • Truncation error comes from using an approximation in place of an exact mathematical procedure, such as estimating a derivative from nearby points.[4]

Truncation error is often studied with the Taylor series. A derivative is the rate at which a function changes. A Taylor series writes a function near a point as a sum of terms built from its derivatives at that point.[12]

Stopping the sum after the hnh^n term leaves a remainder RnR_n, which is the truncation error.[4]

f(xi+1)=f(xi)+f′(xi)h+f′′(xi)2!h2+⋯+f(n)(xi)n!hn+Rnf(x_{i+1}) = f(x_i) + f'(x_i)h + \frac{f''(x_i)}{2!}h^2 + \cdots + \frac{f^{(n)}(x_i)}{n!}h^n + R_n

Here hh is the step size, the distance from xix_i to xi+1x_{i+1}. Taylor's theorem gives the remainder a definite form when ff can be differentiated n+1n+1 times on an interval containing both points.[12] See also approximation error.

The step size trade-off

The two kinds of error pull in opposite directions.[4]

  • Truncation error grows as the step size grows.
  • Round-off error shrinks as the step size grows.
  • So a step size that is either too small or too large gives poor results.
Step size trade-off between truncation and round-off error total error truncation error round-off error best step size step size h (log scale) error (log scale)
Both axes use logarithmic scales, where equal steps mean multiplying by the same factor. Truncation error grows with step size hh and round-off error shrinks with it, so their sum, the total error, is lowest at a best step size near where the two lines cross.

Propagation of error

When a result is calculated from several measured inputs, the errors in the inputs carry into the result. Propagation of error estimates how much.[13] Inputs are uncorrelated when their errors do not tend to vary together. For Y=f(X,Z,…)Y = f(X, Z, \ldots) with uncorrelated inputs, the standard deviation of YY is estimated as

sY=(∂Y∂X)2sX2+(∂Y∂Z)2sZ2+⋯s_Y = \sqrt{\left(\frac{\partial Y}{\partial X}\right)^2 s_X^2 + \left(\frac{\partial Y}{\partial Z}\right)^2 s_Z^2 + \cdots}

Here sXs_X and sZs_Z are the standard deviations of the input measurements.[13] The partial derivative ∂Y/∂X\partial Y / \partial X is how much YY changes per unit change in XX when the other inputs are held fixed.

When the inputs are correlated, the full formula adds covariance terms.[13] These terms account for how pairs of inputs vary together.

Human error

Definition

Human error is error in the everyday sense. The Institute of Medicine defines an error as the failure of a planned action to be completed as intended, or the use of a wrong plan to achieve an aim.[5] Following James Reason, it calls these errors of execution and errors of planning.[5]

Types of human failure

The UK Health and Safety Executive sorts human failures into errors (slips, lapses, and mistakes) and violations.[14]

Type What happens Example
Slip (error) An unintended action during a familiar task Pressing the wrong button
Lapse (error) A step is forgotten during a familiar task Missing a step in a procedure
Mistake (error) The intended action is wrong, though the person believes it is right Using a remembered rule that does not fit a new situation
Violation A deliberate, usually well-meant, break from a rule Taking a shortcut to finish a job faster

Each type of error has a different fix.[14]

  • Training cannot remove slips and lapses, but better design can make them less likely.
  • Training based on good procedures is the main defense against mistakes.

Medical error

Medical error is human error in health care. It is a central concern of patient safety.

The Institute of Medicine report To Err Is Human, released on 29 November 1999, drew wide attention to it.[15] It estimated that medical errors kill at least 44,000 Americans in hospitals each year, and possibly as many as 98,000.[5]

Not every error causes harm.[5] The report argued that building safety into care processes reduces errors more than blaming individuals.[5]

Errors in perception and memory

The mind makes systematic errors too. In representational momentum, memory for the last position of a moving object is often shifted forward in the direction it was moving.[16]

Jennifer Freyd and Ronald Finke first showed this in 1984 with a simple task.[16]

  1. Observers saw three rectangles in a row whose orientations implied rotation.
  2. They then saw a fourth rectangle, the probe, and judged whether it matched the last one.
  3. They said "same" more often when the probe was rotated slightly forward than when it was rotated slightly backward.
One trial of the representational momentum experiment Implied rotation Probe 1 2 3 Backward Same Forward Remembered positionshifted forward More oftenjudged “same”
One trial of the Freyd and Finke (1984) experiment. A rectangle appears at three orientations that imply clockwise rotation, then a probe (a test shape that checks what observers remember) is shown; a probe set slightly forward is more often judged the same than one set slightly backward, which suggests the remembered position shifts forward.

Errors in science

Scientific claims can also be wrong, and the history of particle physics has many false discoveries.[17] A well-known case is Oops-Leon, a particle that seemed to appear in data at Fermilab.

The signal

By August 1975, Leon Lederman's E288 team saw a bump near 6 GeV. A GeV (giga-electronvolt) is a unit physicists use for particle mass. The team found 12 events where they expected 4 from background, meaning events from known processes that can look like a signal.[17]

The team proposed the name Upsilon for the new particle. Team member Walter Innes joked that if it proved a mirage, they could call it "Oops-Leon".[17]

Why it was false

A repeat experiment a few months later found no excess at 6 GeV, and a 1977 analysis ruled it out.[17] The false signal mixed chance with a mistake in the background model.

The team had assumed the background fell as the inverse cube of mass, that is, in proportion to one divided by the mass cubed. In fact it fell exponentially, dropping by the same fraction for each equal step up in mass. With the right model, the expected background was nearer 8 events than 4, so 12 events were much less significant.[17]

The real Upsilon

The same team later found a real particle near 9.5 GeV, the Upsilon meson.[17] It pointed to the existence of a fifth quark, the bottom quark.[17]

References

  1. Error, definition and meaning, Merriam-Webster.
  2. JCGM 200:2008 International Vocabulary of Metrology, Chapter 2: Measurement, Joint Committee for Guides in Metrology, 2008.
  3. 4.1 Residuals, STAT 462, Penn State Eberly College of Science.
  4. Section 1: Roundoff and Truncation Errors, Oregon State University, ESC 440 course notes.
  5. To Err Is Human: Building a Safer Health System, Executive Summary, Institute of Medicine, National Academies Press, 2000.
  6. Hypothesis testing, type I and type II errors, Banerjee A. et al., Industrial Psychiatry Journal, 2009.
  7. Instrumentation Lessons: Selecting and Sizing Flowmeters, InTech, International Society of Automation, 2022.
  8. JCGM 100:2008 Evaluation of measurement data: Guide to the expression of uncertainty in measurement, Joint Committee for Guides in Metrology, 2008.
  9. VIM3 2.17 systematic measurement error, BIPM, 2008.
  10. VIM3 2.19 random measurement error, BIPM, 2008.
  11. Errors of the Third Kind in Statistical Consulting, A. W. Kimball, Journal of the American Statistical Association 52(278):133 to 142, 1957.
  12. 6.3 Taylor and Maclaurin Series, Calculus Volume 2, OpenStax.
  13. 2.5.5 Propagation of error considerations, NIST/SEMATECH e-Handbook of Statistical Methods, NIST.
  14. Managing human failures: Overview, Health and Safety Executive (UK).
  15. An Overview of To Err is Human: Re-emphasizing the Message of Patient Safety, Donaldson M. S., in Patient Safety and Quality, Agency for Healthcare Research and Quality, 2008.
  16. Representational momentum and related displacements in spatial memory: A review of the findings, Hubbard T. L., Psychonomic Bulletin and Review, 2005.
  17. From Oops-Leon to the Upsilon particle, APS News, American Physical Society, 2022.

Figure