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?
1
Recompute the mean
The total rises by 21, from 48 to 69, and the mean is the total over the same 8 values.
869=8.625
2
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.
3
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.375and −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.
√8−1539.875≈8.78
4
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.
Use the 1.5×IQR screen on 3,5,6,6,7,8,9and 25. Is 25 flagged? Is 3?
Show the answer and explanation
Q1=5.5,Q3=8.5 and IQR=3, so the fences are 1and 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 8and 9. The fences are 5.5−4.5=1 and 8.5+4.5=13. Only 25 lies outside them.
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.