These mean, median and mode are according to the different definitions the single values that are the 'most representative' of the distribution. There are, however, other ways of defining what is meant by 'most representative.' We will look at the harmonic mean, the geometric mean, the quadratic mean, trimmed mean, and the winsorized mean.
Consider the sample: [1 3 4 6 7 8 9 10 10 15 20] trimmed sample: [3 4 6 7 8 9 10 10 15] winsorized sample: [3 3 4 6 7 8 9 10 10 15 15] mean = 8.455 median = 8.000 mode = 10.000 harmonic mean = 4.498 geometric mean = 6.630 quadratic mean = 9.913 trimmed mean (.1) = 8.000 winsorized mean (.1) = 8.182
input y 1 3 4 6 7 8 9 10 10 15 20 end summarize y, detail y ------------------------------------------------------------- Percentiles Smallest 1% 1 1 5% 1 3 10% 3 4 Obs 11 25% 4 6 Sum of Wgt. 11 50% 8 Mean 8.454545 Largest Std. Dev. 5.428879 75% 10 10 90% 15 10 Variance 29.47273 95% 20 15 Skewness .7499235 99% 20 20 Kurtosis 3.042146 means y Variable | Type Obs Mean [95% Conf. Interval] ---------+---------------------------------------------------------- y | Arithmetic 11 8.454545 4.807375 12.10172 | Geometric 11 6.630327 3.805889 11.55085 | Harmonic 11 4.49781 2.473946 24.72288 ---------+---------------------------------------------------------- emeans y /* Available from ATS via the Internet */ Variable | Type Obs Mean [95% Conf. Interval] ---------+---------------------------------------------------------- y | Arithmetic 11 8.454545 4.807375 12.10172 | Geometric 11 6.630327 3.805889 11.55085 | Harmonic 11 4.49781 2.473946 24.72288 | Quadratic 11 9.91326 4.363899 13.32298 ---------+---------------------------------------------------------- robmean y, trim(.1) /* Available from ATS via the Internet */ .1 highest and lowest cases trimmed or winsorized y | Obs Estimate Std. Dev. Min Max ----------------------------------------------------------------- mean | 11 8.4545 5.4289 1 20 median | 11 8.0000 trimmed | 9 8.0000 3.6056 3 15 winsorized | 11 8.1818 4.2147 3 15 huber 1-step | 6 7.7008 6 10 multi-step | 11 7.1979 1 20 -----------------------------------------------------------------
use http://www.philender.com/courses/data/crime, clear graph7 murder, one box kdensity murder, normal legend(off) graph box murder, fxsize(25) robmean murder .2 highest and lowest cases trimmed or winsorized murder | Obs Estimate Std. Dev. Min Max ----------------------------------------------------------------- mean | 51 8.7275 10.7176 1.6 78.5 median | 51 6.8000 trimmed | 31 7.1161 2.4439 3.5999999 11.3 winsorized | 51 7.2471 3.0886 3.5999999 11.3 huber 1-step | 47 7.3470 1.6 13.1 multi-step | 50 7.1789 1.6 20.3 -----------------------------------------------------------------
Intro Home Page
Phil Ender, 30Jun98