Chalk−1

Math · Introductory statistics · Worked example

How an outlier moves the mean, not the median

In the sleep data 4, 8, 6, 5, 3, 7, 9 and 6, suppose the 9 were mistyped as 30. How do the mean, the median and the standard deviation change?

Recompute the mean

The total rises by 21, from 48 to 69, and the mean is the total over the same 8 values.

698=8.625

The median stays put

Sorted, the data are 3, 4, 5, 6, 6, 7, 8, 30. The two middle values are still 6 and 6, so the median is 6. Only the order matters to the median, and 30 is still the largest value, as 9 was.

Recompute the spread

The deviations from the new mean, 8.625, are −4.625, −0.625, −2.625, −3.625, −5.625, −1.625, 21.375 and −2.625. Their squares add to 539.875. The value 30 alone contributes (30−8.625)2≈456.9 of that, about 85⁢%. Divide by n−1=7 and take the root. The standard deviation is more than four times its old value of 2.

539.8758−1≈8.78

Check the outlier screen

The quartiles do not change. Q1=4.5 and Q3=7.5, so IQR=3 and the upper fence is 7.5+1.5×3=12. The value 30 is far beyond it, and the screen flags it.

7.5+1.5⋅3=12

Result

The mean rises to 8.625 and s to about 8.78, but the median stays 6.

Your turn

1. One like the example

In 10, 12, 14, 16 and 18, the 18 is mistyped as 81. Find the new mean, median and sample standard deviation, and say which of them moved.

Show the answer and explanation

Mean 26.6, median 14 and s≈30.49. The mean and s moved, and the median did not.

The total rises by 63, to 133, so the mean rises by 63⁢/5=12.6. The middle value is still 14. The squared deviations from 26.6 add to 3719.2, and 81 alone contributes 54.42≈2959.4 of it. Before the typo, s was about 3.16.

10,12,14,16,8110+12+14+16+815=26.63719.25−1≈30.49

2. A variation

Use the 1.5×IQR screen on 3, 5, 6, 6, 7, 8, 9 and 25. Is 25 flagged? Is 3?

Show the answer and explanation

Q1=5.5, Q3=8.5 and IQR=3, so the fences are 1 and 13. The value 25 is flagged, and 3 is not.

The lower half is 3, 5, 6, 6, with middle values 5 and 6, and the upper half is 7, 8, 9, 25, with middle values 8 and 9. The fences are 5.5−4.5=1 and 8.5+4.5=13. Only 25 lies outside them.

3,5,6,6,7,8,9,255+62=5.58+92=8.58.5−5.5=35.5−1.5⋅3=18.5+1.5⋅3=13

3. Somewhere new

On one street, homes sold for 210, 225, 230, 240, 255 and 1,100 thousand dollars. An ad says homes there sell for about $377,000 on average. Is that a fair picture of a typical home?

Show the answer and explanation

No. The mean is about 376.7 thousand dollars, but the median is 235 thousand, and five of the six homes sold for 255 thousand or less.

The one sale at 1,100 pulls the mean far above the other five. The median uses only the two middle prices, 230 and 240, and ignores how large the largest one is. The ad’s figure is true and still misleading.

210,225,230,240,255,1100210+225+230+240+255+11006≈376.67230+2402=235
210,225,230,240,255,110022606≈376.67230+2402=235

Keep exploring

In Statistics, change the 30 back to 9. The Summary returns to mean 6 and standard deviation 2, while the median and quartiles never moved.

Return to the concept →
Sources and scope

Authored study material. Tool results depend on the stated inputs and model assumptions.

After reading

Try it, then study it

Open the example in its tool to check steps or change values, then review the key terms as flashcards.

Summarize the data in Statistics Check the new mean and spread in Math Study the 8 key terms Open worked example on a board Sample standard deviation in Math Reference

Your existing work stays on this device. Examples open as editable copies.