Checking error magnitude before or after averaging
Absolute value before averaging and absolute value after averaging are two different calculations. With errors of -2 and +2, one gives 2 and the other gives 0.
The same two errors, two answers
Imagine a forecast that missed by -2 on one day and +2 on the next. Averaging the signed errors gives (-2 + 2) / 2 = 0. Taking the absolute value of that average still gives 0. Taking absolute values first gives 2 and 2, and their average is 2. The first route is called the mean error or bias, and the second is the mean absolute error, usually abbreviated MAE. They answer different questions. Bias asks whether the forecasts lean high or low on balance. MAE asks how far off a typical forecast is, regardless of direction. The page shows the calculation with the average calculator: -2, 2 has mean 0, and 2, 2 has mean 2. The same pair of lists also shows why the list of absolute values has to be built first: entering -2, 2 and asking for the mean can never produce the 2 that MAE reports, because the minus sign is still attached to the first value.
Why order of operations matters
Absolute value is not a linear operation, so it does not commute with averaging. The absolute value of a sum is at most the sum of absolute values, an inequality known as the triangle inequality. Applied to averages, it means the absolute value of the mean error never exceeds the mean absolute error. Equality holds only when all errors have the same sign. Whenever errors point in both directions, the gap opens. Here the two quantities are 0 and 2. So reporting only the absolute value of the average can make a poor forecast look perfect, and it is the reason that the two names, which differ by a few words, should never be swapped.
A three-day example
Take errors of 3, -1 and -2. The sum is 0, so the mean error is 0. The absolute values are 3, 1 and 2, which add up to 6, so the mean absolute error is 2. A reader who saw only the mean error of 0 would assume the forecaster hit the target on average, and in a sense they did, but a typical day was off by 2 units. The root-mean-square error for the same errors is the square root of (9 + 1 + 4) / 3, about 2.1602, a little larger than the MAE because squaring gives more weight to the 3. Each of the three summaries is correct and tells a different part of the story.
Where each summary is used
Mean error, sometimes called mean bias error, is used to detect systematic over- or under-prediction, for example a weather model that runs warm by half a degree on average. MAE is used when the cost of an error grows in proportion to its size, and it is easy to explain because it is in the same units as the data. RMSE is common when large errors are disproportionately costly, and it is the quantity that least squares fitting minimizes. A full evaluation of a forecast often reports bias and MAE together, because a model can have zero bias and a large MAE, or the reverse situation with a small spread and a consistent offset.
Reading a report that names its metric
Check the exact wording. A table headed mean absolute error should be averaging magnitudes. A table headed absolute mean error, or average error shown without a sign, may be doing the other thing. Some papers define MAE and give the formula, which settles the question: the sum of the absolute values of errors, divided by the count. When a document gives only a number, ask whether it could be a bias. A tiny error figure next to a long list of visible misses is a hint that signs have been allowed to cancel. Writing the formula in a report costs one line and prevents the confusion.
Choosing the sign convention
Error can be defined as predicted minus actual or actual minus predicted, and the two conventions flip the sign of the mean error. MAE does not depend on this choice, because magnitudes ignore sign. For bias, however, the convention decides whether a positive number means over-prediction or under-prediction. State the definition next to the number. In the example, errors of -2 and +2 would become +2 and -2 under the opposite convention, and the mean is zero in both cases, so this particular example is symmetric, but in general the sign carries meaning.
A bias that hides in a long series
Cancellation matters most in long series. Imagine a thermometer that reads 1 degree high in the morning and 1 degree low in the afternoon over 100 days. The mean error is near zero, so a bias check passes, yet every single reading is wrong by a full degree, and the MAE of 1 reveals it. Reverse the situation and a consistent offset of 0.5 in one direction gives a mean error of 0.5 and an MAE of 0.5, and here the two agree because the errors never change sign. Comparing the two numbers is itself informative: when the MAE is much larger than the absolute bias, errors are scattered in both directions, and when they are about equal, the error is mostly a steady offset that a calibration could remove.
Percentage versions
Relative versions exist, such as mean absolute percentage error, which divides each absolute error by the actual value. They share the same order-of-operations concerns, and they add problems of their own: they are undefined when an actual value is zero and they weigh under-prediction and over-prediction differently. They also inherit the units issue in a new form. A percentage error of 5 on a value of 10 and on a value of 1,000 describe very different absolute misses. Use the plain MAE when the data include zeros or when the same absolute error matters regardless of scale.
What this example establishes
It establishes that mean of absolute errors and absolute value of the mean error differ, using the simplest case where they do. It does not choose an error metric for your task, set an acceptable threshold or say that cancellation is always bad. A pure bias check wants signs retained, and a typical-miss check wants them removed. State which one you computed, give the count of observations, and keep the individual errors available so a reader can compute the other.
Reproduce the checks
Signed error mean
Open the Average calculator and enter:
- Values
-2,2
Expected output:
Arithmetic mean
0Opposite errors cancel.
Absolute-error mean
Open the Average calculator and enter:
- Values
2,2
Expected output:
Arithmetic mean
2The magnitudes remain positive.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- NIST: Measures of location ↗ · 2026-10-08