Checking a center against absolute and squared deviations
The mean and the median are both called centers, and each wins under a different way of scoring misses. This guide scores two candidate centers for the data 0, 0, 9 and shows them disagreeing.
Two centers for one short list
The list 0, 0, 9 has a median of 0, because the middle value of the sorted list is the second zero. Its mean is 9 divided by 3, which is 3. Both are fair answers to the question of where the center is, and the data make them far apart because one value sits well away from the other two. The question this guide asks is which of the two candidates, 0 or 3, is a better stand-in for all three observations. The answer depends on how you penalize the distance between the stand-in and each observation, and there are two classic penalties: the absolute distance and the squared distance.
Scoring with absolute deviations
Take a candidate center c and measure how far each value is from it, ignoring direction. At c = 0 the distances are 0, 0 and 9, which average to 3. At c = 3 they are 3, 3 and 6, which average to 4. The average absolute deviation is smaller at the median. The page confirms the arithmetic with the average calculator, using the list 0, 0, 9 for the first case and 3, 3, 6 for the second. In general, the median minimizes the sum of absolute deviations. Moving the center away from the median by a small step improves the distance to some points and worsens it to others, and the median is the position where those gains and losses balance.
Scoring with squared deviations
Squaring each distance before averaging weights large misses more heavily. At c = 0 the squared distances are 0, 0 and 81, which average to 27. At c = 3 they are 9, 9 and 36, which average to 18. This time the mean wins. The root-mean-square calculator shows the same facts in different units: the deviations 0, 0, 9 give an RMS of about 5.1962, the square root of 27, and the deviations -3, -3, 6 give about 4.2426, the square root of 18. The mean minimizes the sum of squared deviations for any list, and the minimum value of that average is the population variance, here 18.
Why they pull in different directions
The absolute penalty grows in a straight line with distance, so one far value counts for exactly its distance and no more. The squared penalty grows faster, so the value 9 counts for 81 at c = 0, and a center that moves toward it saves a lot. That is why the mean sits at 3, pulled toward the large value, while the median stays at 0. The two centers agree when the data are symmetric, as in 1, 2, 3, where both are 2. They split when the data are skewed or contain an extreme value. A test of this is to move the 9 to 90: the median stays at 0, and the mean jumps to 30.
A third candidate for comparison
Try a center of 1, which is neither the mean nor the median. The distances are 1, 1 and 8, with an average of 10/3, about 3.3333, which is worse than 3 at the median. The squared distances are 1, 1 and 64, which average to 22, worse than 18 at the mean. Candidates between 0 and 3 do worse than the better of the two on each score, but they are not worse on both at once, which is the reason a single universal center does not exist. Plotting the average absolute deviation as a function of c gives a V-shaped curve with its low point at the median. The squared version is a parabola with its low point at the mean.
Real-world choices of loss
Which penalty fits depends on what a miss costs. If a delivery that is 9 days late is exactly three times as bad as one that is 3 days late, absolute loss reflects that and the median is the natural summary. If large misses are disproportionately harmful, such as a structural load that is far over a limit, squared loss describes the cost better and the mean follows. Statistical methods inherit the choice: ordinary least squares fits minimize squared error and relate to means, while median regression and least absolute deviations relate to medians. Reports on incomes and house prices often use medians because a few very large values would drag the mean away from what is typical.
The mean is a balance point
The mean has a second description that is easy to check. The deviations from the mean add up to zero: with a mean of 3, the deviations of 0, 0 and 9 are -3, -3 and 6, and their sum is 0. This is what makes it the balance point of the data, as if the values were weights on a ruler. The median has a different property, that at least half the values are on each side of it. The two properties are unrelated, and a mean can lie in a region with no observations at all, as 3 does here, where the nearest values are 0 and 9.
Larger lists and the typical choice
With more values the same split shows up in everyday figures. Consider five salaries of 40, 42, 45, 48 and 250 thousand. The median is 45 and the mean is 85, so describing the typical employee by the mean would overstate what four of the five earn by a wide margin. For an organization planning its total payroll, though, the mean is the right quantity, because the mean times the head count gives the total exactly, and the median has no such property. This is the practical meaning of the squared-error result: the mean is tied to totals, and the median is tied to the typical case. Statisticians also use the trimmed mean, which drops a share of the extreme values from each end, as a compromise between the two behaviors.
What the numbers allow you to say
The calculations show that no single center is best for every loss, and that for this list the median wins under absolute error and the mean wins under squared error. They do not prescribe a loss function for your task, nor do they say whether the extreme value 9 is an error or a real observation. Choose the center after deciding how misses should be penalized, then report the choice. If you are unsure, show both numbers, as the tools on this page make easy, and note how far apart they are.
Reproduce the checks
Absolute deviations at zero
Open the Average calculator and enter:
- Values
0,0,9
Expected output:
Arithmetic mean
3The deviations are already nonnegative.
Absolute deviations at three
Open the Average calculator and enter:
- Values
3,3,6
Expected output:
Arithmetic mean
4The absolute-error mean is larger.
RMS deviations at zero
Open the Root Mean Square Calculator and enter:
- Numbers
0,0,9
Expected output:
Rms
5.196152422706632The mean square is twenty-seven.
RMS deviations at three
Open the Root Mean Square Calculator and enter:
- Numbers
-3,-3,6
Expected output:
Rms
4.242640687119285The mean square falls to eighteen.
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
- Primary definition and convention reference ↗ · 2026-10-08