{"id":273,"date":"2007-01-15T08:00:00","date_gmt":"2007-01-15T08:00:00","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2007\/01\/15\/basics-mean-median-and-mode\/"},"modified":"2007-01-15T08:00:00","modified_gmt":"2007-01-15T08:00:00","slug":"basics-mean-median-and-mode","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2007\/01\/15\/basics-mean-median-and-mode\/","title":{"rendered":"Basics: Mean, Median, and Mode"},"content":{"rendered":"<p> Statistics is something that surrounds us every day &#8211; we&#8217;re constantly<br \/>\nbombarded with statistics, in the form of polls, tests, ratings, etc. Understanding those statistics can be an important thing, but unfortunately, most people have never been taught just what statistics <em>really<\/em> mean, how they&#8217;re computed, or how to distinguish the different between<br \/>\nstatistics used properly, and statistics misused to deceive.<\/p>\n<p> The most basic concept in statistics in the idea of an <em>average<\/em>. An average is a single number which represents the idea of a <em>typical<\/em> value. There are three <em>different<\/em> numbers which can represent the idea of an average value, and it&#8217;s important to know <em>which one<\/em> is being used, and whether or not that is appropriate. The three values are the mean, the median, and the mode.<\/p>\n<p><!--more--><\/p>\n<p> The mean is what most people are taught as the average in middle school math. Given a set of values, the mean is what you get by adding up all of the values, and dividing that sum by the number of values.  Written in<br \/>\nmath notation, you have a set {x<sub>1<\/sub>, &#8230;, x<sub>n<\/sub>} of values called the <em>population<\/em>. The mean is:<\/p>\n<p>(&Sigma;<sub>i &isin; 1..n<\/sub> x<sub>i<\/sub>)\/n<\/p>\n<p> The mean is a very useful number &#8211; it summarizes the properties of the <em>group<\/em>. It&#8217;s important to understand that the mean does <em>not<\/em> represent an individual &#8211; in fact, there may be no individual whose value matches the mean; but the mean is a summary of <em>the entire population<\/em>. <\/p>\n<p> The median is often a better representative of a <em>typical<\/em> member<br \/>\nof a group. If you take all of the values in a list, and arrange them in<br \/>\nincreasing order the number at the center will be the median. The median<br \/>\nis an actual value belonging to some member of the group &#8211; depending on the distribution of values, the mean may not be particularly close to the value of any member of the group; and the mean is also subject to <em>skew<\/em> &#8211; as few as <em>one<\/em> value significantly different from the rest of the group can dramatically change the mean. The median gives you a central member of the<br \/>\ngroup without the skew factor introduced by outliers. If you have a <em>normal<\/em> distribution, then the median value will be a <em>typical<\/em> member of the population. (&#8220;Normal&#8221; here is a technical term that I&#8217;ll explain in a later post; for now, just take it to mean &#8220;not a totally weird distribution&#8221;.)<\/p>\n<p> The <em>mode<\/em> is the most common member of the group. It doesn&#8217;t matter whether it&#8217;s the biggest or smallest value in the group &#8211; whatever value is <em>most common<\/em> is the mode. The most is the least commonly used of these three average measures, and that&#8217;s because it&#8217;s generally the least meaningful. But once in a while, it&#8217;s useful. If your data is perfectly<br \/>\nregular, then the mean, median, and mode will all be the same value. This<br \/>\nalmost never happens in real life. In general, you&#8217;ll find that the median is in between the mode and the mean, closer to the mean.<\/p>\n<p> Let&#8217;s look at a couple of examples. Suppose we wanted to know something about the income of a population of people. (Just to be clear, the following numbers are completely made up to give me good examples of how these three measures differ, not because they are in any way representative of real income distribution!) We&#8217;ll imagine a group of 24 people. In order, they make<br \/>\n$20,000, $20,000, $22,000, $25,000,  <!--  87,000 --><br \/>\n$25,000, $25,000, $28,000, $30,000,  <!--  108,000 --><br \/>\n$31,000, $32,000, $34,000, $35,000,  <!-- 132,000   --><br \/>\n$37,000, $39,000, $39,000, $40,000,  <!-- 155,000--><br \/>\n$42,000, $42,000, $43,000, $80,000,  <!-- 207,000  --><br \/>\n$100,000, $300,000, $700,000, and $3,000,000.<\/p>\n<p> <!--4,100,000  --><\/p>\n<p> The <em>mean<\/em> income of this group is about $200,000 (The sum of the incomes is $4,789,000; there are 24 members; so the mean is 200,000). <\/p>\n<p> For the median, we arrange the values in order, with half the values on one side, and half on the<br \/>\nother.  To make it all fit, we&#8217;ll write the number of thousands, without the trailing &#8220;000&#8221;: <\/p>\n<p>20, 20, 22, 25, 25,<br \/>\n25, 28, 30, 31, 32,<br \/>\n34,  <br \/>\n35, 37, <br \/>\n39,<br \/>\n39, 40, 42, 42, 43,<br \/>\n80, 100, 300,  700, 3000<\/p>\n<p> The median is the value with the same number of things on either side of it. In this case, our population has an even number of members, which means we need to pick one of the two. The correct thing to do in a case like this depends on what you&#8217;re doing &#8211; in  general, you try to do the <em>conservative<\/em> thing, which means choosing the one that is <em>least<\/em> likely to skew the data in favor of a particular conclusion. In this case, since we&#8217;re looking at uneven salary distributions, skewing it <em>upwards<\/em> (picking the larger of the two) is going to reduce the imbalance, but certainly not eliminate it; skewing it downwards will make the difference even larger, which will exaggerate the results. So we&#8217;ll pick the higher of the middle values: 37,000.<\/p>\n<p> The mode is $25,000. <\/p>\n<p> This case demonstrates the skew effect of the mean quite clearly. The<br \/>\nvalue of the mean is larger than 80% of the actual members of the group! Even<br \/>\nwith our selecting a the larger of two possible values of the median, the mean<br \/>\nis more than five times larger than the median!) The median is a much better<br \/>\nmeasure of a <em>typical<\/em> member of a group. In this case (as is pretty<br \/>\ncommon) the mode is not particularly meaningful.<\/p>\n<p> Some common tricks that people use with statistics is using the median where the mean is more appropriate, or the mean where the median is more<br \/>\nappropriate. <\/p>\n<p> For example, it&#8217;s a pretty common trick when talking about<br \/>\nincomes to talk about how the <em>mean<\/em> income of a large group of people<br \/>\nhas increased &#8211; when in fact, the typical member of the group did <em>not<\/em><br \/>\nget any raise &#8211; instead one or two outliers got huge raises, and everyone else<br \/>\ngot nothing. Suppose that you had ten employees, and you gave them pay-changes of -2%, -2%, 0%, 0%, 0%, 0%, 1%, 1%, 3%, 20%. The <em>mean<\/em> salary change would be +2%. But half of the employees saw either no change or a decrease; and in fact, almost all of the increase went to just one person. Take that one person out, and the average raise drops by nearly a factor of <em>20<\/em> to 0.11%.<\/p>\n<p> Another example of misuse the other way: there&#8217;s a creationist who published a book under the pen-name of John Woodmorappe explaining how Noah&#8217;s ark could have actually held all of the animals. He did this by computing the <em>median<\/em> size of a species, and then multiplying that by the number of species. <a href=\"http:\/\/goodmath.blogspot.com\/2006\/06\/more-aig-lying-with-statistics-john.html\">This is wrong<\/a>, because the median is simple not an appropriate measure for talking about the population as a whole; it identifies a <em>typical<\/em> member of the population, but it doesn&#8217;t extrapolate well.&gt;\/p&gt;<\/p>\n<p> To see why, let&#8217;s look at a specific example. Imagine we had a group of<br \/>\nanimals, and their masses were: 10@0.02kg, 10@0.1kg, 20@0.2kg, 20%0.3kg, 5@1kg, 5@2kg, and 10@5kg. The <em>total<\/em> mass is 76.2kg. There are 80 individuals; their <em>mean<\/em> mass is about 0.95kg; their <em>median<\/em> mass is (leaning toward the high side) 0.3kg. If you use the mean to estimate the mass of the population, you&#8217;ll get 75 (because of rounding errors). If you use the median to estimate the mass of the population, you&#8217;ll get 24kg &#8211; less than 1\/3 the correct value. Woodmorappe used this trick to try to make it look like you could fit more animals on the ark than you actually could &#8211; as you can see from the example, using the median to reason about the population as<br \/>\na whole can give you ridiculously wrong answers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Statistics is something that surrounds us every day &#8211; we&#8217;re constantly bombarded with statistics, in the form of polls, tests, ratings, etc. Understanding those statistics can be an important thing, but unfortunately, most people have never been taught just what statistics really mean, how they&#8217;re computed, or how to distinguish the different between statistics used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[74,61],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-basics","category-statistics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-4p","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}