ArticleslgStudy

mathematics

Mean absolute error

Mean absolute error is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Mean absolute error rather than just read about it. In short: In statistics, mean absolute error (MAE) is a measure of errors between paired observations expressing the same phenomenon. Examples of Y versus X include comparisons of predicted versus observed, subsequent time versus initial time, and one technique of measurement versus an alternative technique of measurement.

Mean absolute error — main illustration
Mean absolute error — illustration

Key takeaways

  • Mean absolute error belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Mean absolute error to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Mean absolute error from memory before moving on to harder problems.

Reference excerpt

In statistics, mean absolute error (MAE) is a measure of errors between paired observations expressing the same phenomenon. Examples of Y versus X include comparisons of predicted versus observed, subsequent time versus initial time, and one technique of measurement versus an alternative technique of measurement. MAE is calculated as the sum of absolute errors (i.e., the Manhattan distance) divided by the sample size: M A E = ∑ i = 1 n | y i − x i | n = ∑ i = 1 n | e i | n . {\displaystyle \mathrm {MAE} ={\frac {\sum _{i=1}^{n}\left|y_{i}-x_{i}\right|}{n}}={\frac {\sum _{i=1}^{n}\left|e_{i}\right|}{n}}.} It is thus the arithmetic mean of the absolute errors | e i | = | y i − x i | {\displaystyle |e_{i}|=|y_{i}-x_{i}|} , where y i {\displaystyle y_{i}} is the prediction and x i {\displaystyle x_{i}} the true value. Alternative formulations may include relative frequencies as weight factors. The mean absolute error uses the same scale as the data being measured. This is known as a scale-dependent accuracy measure and therefore cannot be used to make comparisons between predicted values that use different scales. The mean absolute error is a common measure of forecast error in time series analysis, sometimes used in confusion with the more standard definition of mean absolute deviation. The same confusion exists more generally in technical literature.

Quantity disagreement and allocation disagreement

In remote sensing the MAE is sometimes expressed as the sum of two components: quantity disagreement and allocation disagreement. Quantity disagreement is the absolute value of the mean error: | ∑ i = 1 n y i − x i n | . {\displaystyle \left|{\frac {\sum _{i=1}^{n}y_{i}-x_{i}}{n}}\right|.} Allocation disagreement is MAE minus quantity disagreement. It is also possible to identify the types of difference by looking at an ( x , y ) {\displaystyle (x,y)} plot. Quantity difference exists when the average of the X values does not equal the average of the Y values. Allocation difference exists if and only if points reside on both sides of the identity (Y=X) line.

Related measures The mean absolute error is one of a number of ways of comparing forecasts with their eventual outcomes. Well-established alternatives are the mean absolute scaled error (MASE), mean absolute log error (MALE), and the mean squared error. These all summarize performance in ways that disregard the direction of over- or under- prediction; a measure that does place emphasis on this is the mean signed difference. Where a prediction model is to be fitted using a selected performance measure, in the sense that the least squares approach is related to the mean squared error, the equivalent for mean absolute error is least absolute deviations. MAE is not identical to root-mean square error (RMSE), although some researchers report and interpret it that way. The MAE is conceptually simpler and also easier to interpret than RMSE: it is simply the average absolute vertical or horizontal distance between each point in a scatter plot and the Y=X line. In other words, MAE is the average absolute difference between X and Y. Furthermore, each error contributes to MAE in proportion to the absolute value of the error. This is in contrast to RMSE which involves squaring the differences, so that a few large differences will increase the RMSE to a greater degree than the MAE.

… excerpt ends here. Continue reading the full article.

Illustrations

Mean absolute error: Two data points for which quantity disagreement is 0 and allocation disagreement is 2 for both MAE and RMSE.
Two data points for which quantity disagreement is 0 and allocation disagreement is 2 for both MAE and RMSE.

Worked examples

Example 1 — a first encounter with Mean absolute error

Start with the simplest possible case. Write down what Mean absolute error claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Mean absolute error before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Mean absolute error ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Mean absolute error

In research
Mean absolute error appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Mean absolute error in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Mean absolute error is common in secondary-school and first-year university syllabi. It links to neighbouring topics Errors and residuals, Point estimation performance, Statistical deviation and dispersion, so understanding it makes those chapters shorter.
In everyday life
Look for Mean absolute error outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Mean absolute error in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Mean absolute error means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Mean absolute error out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Mean absolute error in simple terms?

In statistics, mean absolute error (MAE) is a measure of errors between paired observations expressing the same phenomenon. Examples of Y versus X include comparisons of predicted versus observed, subsequent time versus initial time, and one technique of measurement versus an alternative technique…

Why does Mean absolute error matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Mean absolute error?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Mean absolute error.

Tags

  • Errors and residuals
  • Point estimation performance
  • Statistical deviation and dispersion
  • Time series

Keep exploring