{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "tags": [ "remove_input" ] }, "outputs": [], "source": [ "path_data = '../../data/'\n", "\n", "import numpy as np\n", "import pandas as pd\n", "import pylab as pl\n", "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "plt.style.use('fivethirtyeight')\n", "\n", "import warnings\n", "warnings.filterwarnings('ignore')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Properties of the Mean\n", "\n", "In this course, we have used the words \"average\" and \"mean\" interchangeably, and will continue to do so. The definition of the mean will be familiar to you from your school days or even earlier.\n", "\n", "**Definition.** The *average* or *mean* of a collection of numbers is the sum of all the elements of the collection, divided by the number of elements in the collection.\n", "\n", "The methods `np.average` and `np.mean` return the mean of an array.\n", "\n", "[Numpy average](https://numpy.org/doc/stable/reference/generated/numpy.average.html)\n", "\n", "[Numpy mean](https://numpy.org/doc/stable/reference/generated/numpy.mean.html)" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "not_symmetric = np.array([2, 3, 3, 9])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "4.25" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.average(not_symmetric)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "4.25" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(not_symmetric)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Basic Properties\n", "\n", "The definition and the example above point to some properties of the mean.\n", "\n", "- It need not be an element of the collection.\n", "- It need not be an integer even if all the elements of the collection are integers.\n", "- It is somewhere between the smallest and largest values in the collection.\n", "- It need not be halfway between the two extremes; it is not in general true that half the elements in a collection are above the mean.\n", "- If the collection consists of values of a variable measured in specified units, then the mean has the same units too.\n", "\n", "We will now study some other properties that are helpful in understanding the mean and its relation to other statistics." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The Mean is a \"Smoother\"\n", "\n", "You can think of taking the mean as an \"equalizing\" or \"smoothing\" operation. For example, imagine the entries in `not_symmetric` above as the dollars in the pockets of four different people. To get the mean, you first put all of the money into one big pot and then divide it evenly among the four people. They had started out with different amounts of money in their pockets (\\$2, \\$3, \\$3, and \\$9), but now each person has \\$4.25, the mean amount." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Proportions are Means\n", "If a collection consists only of ones and zeroes, then the sum of the collection is the number of ones in it, and the mean of the collection is the proportion of ones." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "zero_one = np.array([1, 1, 1, 0])\n", "sum(zero_one)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.75" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(zero_one)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can replace 1 by the Boolean `True` and 0 by `False`:" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "0.75" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(np.array([True, True, True, False]))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Because proportions are a special case of means, results about random sample means apply to random sample proportions as well." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The Mean and the Histogram\n", "The mean of the collection {2, 3, 3, 9} is 4.25, which is not the \"halfway point\" of the data. So then what does the mean measure?\n", "\n", "To see this, notice that the mean can be calculated in different ways.\n", "\n", "$$\\begin{align*}\n", "\\mbox{mean} ~ &=~ 4.25 \\\\ \\\\\n", "&=~ \\frac{2 + 3 + 3 + 9}{4} \\\\ \\\\\n", "&=~ 2 \\cdot \\frac{1}{4} ~~ + ~~ 3 \\cdot \\frac{1}{4} ~~ + ~~ 3 \\cdot \\frac{1}{4} ~~ + ~~ 9 \\cdot \\frac{1}{4} \\\\ \\\\\n", "&=~ 2 \\cdot \\frac{1}{4} ~~ + ~~ 3 \\cdot \\frac{2}{4} ~~ + ~~ 9 \\cdot \\frac{1}{4} \\\\ \\\\\n", "&=~ 2 \\cdot 0.25 ~~ + ~~ 3 \\cdot 0.5 ~~ + ~~ 9 \\cdot 0.25\n", "\\end{align*}$$\n", "\n", "The last expression is an example of a general fact: when we calculate the mean, each distinct value in the collection is *weighted* by the proportion of times it appears in the collection.\n", "\n", "This has an important consequence. The mean of a collection depends only on the distinct values and their proportions, not on the number of elements in the collection. In other words, the mean of a collection depends only on the distribution of values in the collection.\n", "\n", "Therefore, **if two collections have the same distribution, then they have the same mean.**\n", "\n", "For example, here is another collection that has the same distribution as `not_symmetric` and hence the same mean." ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "array([2, 3, 3, 9])" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "not_symmetric" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "4.25" ] }, "execution_count": 9, "metadata": {}, "output_type": "execute_result" } ], "source": [ "same_distribution = np.array([2, 2, 3, 3, 3, 3, 9, 9])\n", "np.mean(same_distribution)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The mean is a physical attribute of the histogram of the distribution. Here is the histogram of the distribution of `not_symmetric` or equivalently the distribution of `same_distribution`." ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "tags": [ "remove_input" ] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAi4AAAFZCAYAAAC/haQ7AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAAzYElEQVR4nO3de1jUZd7H8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586dq7wPgoODNXbsWKNL85mKigo99thjzhuidunSRY899pguXLhgdGk+debMGc2ePVu//OUv1apVKw0cOFB79+712fy1/oyLJE2ePFmTJ0/26Zzbt2/X/fffrx49esjhcOhvf/ubRowYodzcXDVr1syntRildevWmj9/viIjI1VZWal//OMfmjBhgt5991398pe/NLo8n9uzZ49Wr16tTp06GV2Kz1mtVm3YsMH52M/Pz8BqfK+4uFiDBg1Snz59lJmZqebNmys/P79O7bXLyclRRUWF8/GpU6d02223acSIEcYV5WNPPfWUVq1apYyMDMXExOjAgQNKSEhQw4YN9ec//9no8nzmD3/4gw4cOKCMjAy1adNGr7zyikaMGKHdu3erdevWXp/fFMHFCNnZ2S6PV6xYobZt22r37t266667DKrKt4YOHeryeO7cufr73/+uPXv21LngUlJSoilTpuiZZ57R4sWLjS7H5+rXr6/Q0FCjyzDM008/rVatWmnFihXOtoiICOMKMkCLFi1cHr/44osKCgqqU8Hlgw8+0ODBg51/A9q1a6e77rpLH374ocGV+U5ZWZnWr1+vNWvW6Oabb5YkpaSkaPPmzXrhhRc0Z84cr9dQ6y8V1RZnz55VZWWlgoODjS7FEBUVFVq3bp3OnTunXr16GV2OzyUlJSkuLk633nqr0aUYIi8vTx07dlSXLl103333KS8vz+iSfGrjxo2KjY3VpEmTFBUVpZtuukkrV66Uw+EwujRDOBwOvfjiixo3bpwaN25sdDk+06dPH23fvl2ff/65JOnQoUPatm2bBgwYYHBlvnPhwgVVVFSoUaNGLu0BAQHatWuXT2rgjIubZs+erc6dO9e5P9oHDhzQwIEDVV5ersDAQL300kt17lLJ6tWrdeTIEZd/bdclPXv21PLly2W1WlVYWKglS5Zo4MCB2r17t6677jqjy/OJvLw8/f3vf1diYqKSkpK0f/9+zZo1S5I0depUg6vzvZycHOXn5+vee+81uhSfSkpK0tmzZ9W7d2/5+fnpwoULmjlzps+3MhgpKChIvXr1Ulpamjp27KjQ0FBlZWXpgw8+0A033OCTGggubnj44Ye1e/dubd68uc5d27dardq2bZtKSkq0fv16JSQkaMOGDYqJiTG6NJ+w2WxasGCB3nzzTTVs2NDocgzx439N9uzZU926ddPatWs1ffp0g6ryrcrKSnXv3l3z5s2TJHXt2lVHjhzRqlWr6mRwWb16tXr06KEuXboYXYpPZWdn65///KdWrVql6Oho7d+/X7Nnz1bbtm31u9/9zujyfGbFihX6/e9/r5iYGPn5+alr166Kj4/XRx995JP5CS5XkJKSouzsbL3xxht17pq2dPFeOpdSdPfu3bV3714tX75czz77rMGV+cYHH3ygoqIi/frXv3a2VVRUaOfOnXrhhRd04sSJOvc9Tk2aNFF0dLSOHDlidCk+ExoaqhtvvNGlrUOHDjp27JhBFRnn66+/1qZNm5SWlmZ0KT736KOPavr06Ro9erQkqVOnTjp69KiefPLJOhVc2rdvr02bNuncuXM6c+aMWrVqpUmTJqldu3Y+mZ/gUoNZs2YpOztbGzZsqJMf/7ycyspKnT9/3ugyfGbo0KHq3r27S9vvf/97RUZG6o9//GOdPAtTXl4um83m3JhXF/Tp00eHDx92aTt8+LDCw8MNqsg4a9eulb+/v0aNGmV0KT733XffVTnr7ufnp8rKSoMqMlZgYKACAwNVXFysd955RwsWLPDJvASXasycOVOvvPKKXnrpJQUHB6ugoEDSxV9UkyZNDK7ON/7yl79o4MCBatOmjc6ePausrCxt375dmZmZRpfmM5fuVfFDjRs3VrNmzerM5bI5c+Zo8ODBCgsLc+5x+e677zR+/HijS/OZxMREDRw4UGlpaRo1apQ+/vhjrVy5UnPnzjW6NJ9yOBxas2aNRo0apaAg338rsNEGDx6sp556Su3atVN0dLQ+/vhjpaen6+677za6NJ965513VFlZKavVqi+//FJz586V1WrVhAkTfDI/waUaq1atkiTFxcW5tM+aNUspKSlGlORzBQUFmjp1qk6fPq2mTZuqU6dOysrK0h133GF0afChEydOaPLkySoqKlKLFi3Us2dPbdmyxes3gaxNevTooZdfflkLFizQkiVLFBYWpocffrhObcqUpG3btumLL77QypUrjS7FEIsXL9bjjz+uP/3pTyosLFRoaKgmTpxYp+7hIkmlpaWaP3++Tp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X5+fho+fLg2bNigffv2VekvKSlxfiT7al5jTbp27aqIiAhlZGRU+fg5m3OBq8cZFwCSpObNm2v27NmaP3++4uLiNGzYMB0/flwrV65U27ZtNX36dOex3bt3lyQlJyfrzjvvVP369TV48GAFBgZWGffw4cMaPny4RowYoejoaPn7++t//ud/9Nlnn+mvf/2ry7HNmjXT4MGD9dprrykgIEDDhw/3+Ov8y1/+oh07dmjw4MG69957FRMTozNnzujgwYN64403tHfvXoWGhqpJkyayWq3Kzs5WVFSUrrvuOrVr1865Edhd9erV05NPPqmxY8fq5ptv1oQJE9S6dWsdOXJEubm517zpGairCC4AnB566CE1b95czz33nObOnasmTZooLi5O8+bNc27mlaQRI0bogw8+0GuvvaasrCw5HA599NFHlw0uYWFhGjNmjN5//31lZWXJYrEoMjJSzzzzjO69994qx48fP17r16/X0KFDFRQU5PHX2KJFC73zzjtasmSJNm7cqP/+7//WL37xC0VFRWn27Nlq1qyZ89j09HSlpKRozpw5stvtGj9+/FUHF0m6/fbbtXHjRi1atEgZGRmqqKhQRESExo4d68mXBtQJluLiYs5VAqg13nnnHY0ePVqvvvqqBgwYYHQ5AGoZ9rgAqFVWr16tVq1aqX///kaXAqAW4lIRgFph3bp1OnTokN544w3Nmzev2o82A6jbuFQEoFYIDg5WYGCghg0bpqeffloNGzY0uiQAtRBnXADUCj/1Y8cA6gb2uAAAANMguAAAANMguAAAANMguAAAANMguAAAANMguAAAANP4X+1/iINBjAwNAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "t1 = pd.DataFrame({'not symmetric':not_symmetric})\n", "\n", "unit = ''\n", "\n", "fig, ax = plt.subplots(figsize=(8,5))\n", "\n", "ax.hist(t1, density=True, color='blue', alpha=0.8, ec='white', zorder=5)\n", "\n", "y_vals = ax.get_yticks()\n", "\n", "y_label = 'Percent per ' + (unit if unit else 'unit')\n", "\n", "x_label = 'not symetric'\n", "\n", "ax.set_yticklabels(['{:g}'.format(x * 100) for x in y_vals])\n", "\n", "plt.ylabel(y_label)\n", "\n", "plt.xlabel(x_label)\n", "\n", "plt.title('');\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Imagine the histogram as a figure made out of cardboard attached to a wire that runs along the horizontal axis, and imagine the bars as weights attached at the values 2, 3, and 9. Suppose you try to balance this figure on a point on the wire. If the point is near 2, the figure will tip over to the right. If the point is near 9, the figure will tip over to the left. Somewhere in between is the point where the figure will balance; that point is the 4.25, the mean.\n", "\n", "**The mean is the *center of gravity* or balance point of the histogram.**\n", "\n", "To understand why that is, it helps to know some physics. The center of gravity is calculated exactly as we calculated the mean, by using the distinct values weighted by their proportions.\n", "\n", "Because the mean is a balance point, it is sometimes displayed as a *fulcrum* or triangle at the base of the histogram." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "tags": [ "remove_input" ] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAi4AAAFfCAYAAABp3EcmAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA3VklEQVR4nO3deVxU9eL/8feIgogYpoiagAa44C6aXs0Wu+KWuWtm3XLPpaLSFJdKW1BTyxK5ek2va4mKpubVLLHc9WaWlRqmuKRioIAYoML8/ujHfB1ZHG4zDAdfz8eDx71zzmE+749DzJuzjSk5OdksAAAAAyjl7AAAAAC2orgAAADDoLgAAADDoLgAAADDoLgAAADDoLgAAADDoLgAAADDcFpxiYiIkJeXl9VX7dq1LevNZrMiIiJUt25dVa1aVV26dNHRo0edFRcAABQDTt3jEhQUpOPHj1u+9uzZY1k3Z84cRUZGavr06dq+fbu8vb3Vo0cPXb161YmJAQCAMzm1uJQuXVo+Pj6Wr8qVK0v6c29LVFSUwsLC1K1bNwUHBysqKkppaWlas2aNMyMDAAAncmpxiY+PV7169dSoUSMNGjRI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cOCFfX18nJXKclStXys3NTT179nR2FLv7448/cu21dnFxUXZ2tpMSOZaHh4c8PDyUnJysr776SlOnTnV2JIeguBQTY8aM0apVq7R8+XJ5eXkpISFB0p8/iOXLl3dyOvt48803FRoaqvvuu09paWlas2aNdu3apejoaGdHs5uce2Hcqly5cqpYsWKJORw2adIkdezYUTVq1LCc4/LHH3+of//+zo5mNyNHjlRoaKhmzpypnj176ocfftCCBQs0efJkZ0ezK7PZrKVLl6pnz57y9PR0dhy769ixoz744AP5+/urbt26+uGHHxQZGaknn3zS2dHs6quvvlJ2draCgoJ06tQpTZ48WUFBQRowYICzozkExaWYWLhwoSSpW7duVsvHjRun8PBwZ0Syu4SEBA0bNkyXLl1ShQoVVL9+fa1Zs0aPPfaYs6OhEM6fP68hQ4YoKSlJlStXVvPmzbVt2zb5+fk5O5rdNGvWTCtWrNDUqVP13nvvqUaNGpowYUKJOqlTknbu3Klff/1VCxYscHYUh5gxY4beeecdvfrqq0pMTJSPj4+effbZEnUPF0lKTU3VlClTdP78eVWsWFFPPPGEJk2apDJlyjg7mkOYkpOTS+b1fQAAoMThPi4AAMAwKC4AAMAwKC4AAMAwKC4AAMAwKC4AAMAwKC4AAMAwKC4AUICdO3fKy8tLO3fudHYUu2jYsKFGjBhheVzS5oeSj+ICSFqxYoXlrrc5XwEBAerUqZM+++wzh4+/d+9eRUREKDk5udDfm5aWpoiIiGL9xpOYmKjw8HC1aNFC1apV0/3336+HHnpI48aN04ULF5wdr8h16dJFXl5eatSokczm3LfSOn78uOXn8P3333dCQqD44s65wC3Gjx+vWrVqyWw26/fff9eqVav07LPPauHCherdu7fDxt23b5+mT5+up556KtdHBtzJtWvXNH36dEkqlp8XdOXKFT3yyCNKSUlR//79FRwcrNTUVP34449asWKFHn/8cVWrVs3ZMYtc2bJldebMGe3bt8/qQzklKTo6WmXLllVGRobDc7Rp00YXL14skZ+jhZKJ4gLc4rHHHlOLFi0sj5977jnVqVNHa9ascWhxKUp//PGHypUrV2TjLVu2T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d2ttg8PD1flypU1btw4HT58WCtWrFC5cuUUHx8vd3d3TZw4Ud98840WLlyo+++/XyNHjrT6/v3792vdunUaPny4ypcvryVLlmjAgAH67LPP8ixaOY4fP64OHTqoUqVKGjVqlO655x598cUXGj16tFJTU3ONk5/evXvrrbfe0rZt29S5c2dJ0urVq1W3bl01bNgw1/bp6el6/PHHdfr0aT333HOqVauWjhw5orlz5+qXX37RypUrLduGhYVp5cqV6tatm9q2batDhw6pR48eNh1+KuzrMGHCBLm7u+vll19WUlKS5s6dq2HDhumLL76w6d8BKAyKC3CLXr16WT0uU6aM3n//fXXp0sWy7Oeff9bixYvVt29fq0/VDQoKUnh4uD755BP94x//0I0bNzRx4kQFBgZqy5Yt8vDwkPTniZmPPvqo3n33XS1YsEANGjRQw4YNFRMToy5dusjf39/ynJ9//rmuXLmimJgYNW3a1LJ8woQJlv//xBNPaOzYsapfv7769euX57wCAwO1bNkyq2Xt27fP9Wnk/fr109/+9jctW7ZMY8aMsVr3+++/6+DBg5ZzcNq2batu3bpp7ty5ev311/P9N33mmWcUGRmpF198UXPmzNGDDz6oVq1aKTQ01FLScgwePFgvvPCC1bKOHTuqU6dO2rhxo/r27Wu1rlKlSoqJiZHJZJL0516khQsXqk+fPpbXZvDgwWrZsqWWL1+eq1D8/PPP2rp1q1q2bClJGjBggJo1a6YpU6YU+KY7fvx4+fj4KDY21nLYbfDgwRo4cKAiIiL07LPPWl7vgvj5+alVq1aKjo5W586ddePGDa1fv16jRo3Kc/t58+YpLi5OO3bssOxpk6R69eppzJgx2rNnj1q3bq2ffvpJK1eu1NNPP625c+datps6dapmz559x1yFfR3KlSunTZs2qVSpP3fiV6xYURMmTNDRo0dVr169O44HFAaHioBbTJ8+XevXr9f69eu1YMECPfroo3r11VetzjXIOZTw4osvWn3voEGDVKFCBcv6w4cPKyEhQYMHD7Z6E2vcuLEeeeQRffHFF3leUXIrT09PSdKWLVusDicU1uDBg3Mtu/U8lz/++EOXL1/WPffco4CAAB0+fDjX9k8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QXIBb3HrYpGzZsgoKCtLs2bM1cOBAq+1mzZolf39/LV26VF988YUqVaqkwYMHa9KkSVY3q+vdu7fc3d01a9YsvfXWW3J1ddWDDz6oN99806ogtGjRQpMmTdK///1vjRo1StnZ2dq4caPatGmj7777TuvWrdOlS5fk6empRo0aacaMGVYnEUdGRio8PFyTJk1SZmam+vfvf8fiMm3aNJUpU0br1q3T8uXL1aRJE61du1aTJ0/Oc/uwsDDFxcVp7ty5Sk5OVsuWLTVjxow7vhE+99xzKleunL7++mt98cUXSklJUcWKFdW8eXONHj3a6n4pCxcu1Pjx47V48WLdvHlTrVu31oYNG3Jdtm0vLVu2VNu2bTVt2jTFx8crICBAy5cvv+NHJwQGBmrHjh2aMWOGVq9ercTERFWqVEl16tTRW2+95ZCs0p8FZ8OGDZozZ45iYmK0du1aeXh4qGbNmhoxYoTVCeMfffSRqlSpok8++UTbtm1TixYttH79+lyX/OelqF8HoDBMycnJnD0FIF87d+5U165d9fHHH9v0pmcUXl5eGjhwIB9iCBgM57gAAADDoLgAAADDoLgAAADD4BwXAABgGOxxAQAAhkFxAQAAhkFxAQAAhkFxAQAAhkFxAQAAhkFxAQAAhvH/ADJ8m/XwJ3fjAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "mean_ns = np.mean(not_symmetric)\n", "\n", "unit = ''\n", "\n", "fig, ax = plt.subplots(figsize=(8,5))\n", "\n", "ax.hist(t1, bins=np.arange(1.5, 9.6, 1), density=True, color='blue', alpha=0.8, ec='white', zorder=5)\n", "\n", "ax.plot([1.5, 9.5], [0, 0], color='grey', lw=8, zorder=10)\n", "\n", "ax.scatter(mean_ns, -0.009, marker='^', color='darkblue', s=60, zorder=15).set_clip_on(False)\n", "\n", "y_vals = ax.get_yticks()\n", "\n", "y_label = 'Percent per ' + (unit if unit else 'unit')\n", "\n", "x_label = 'Bootstrap Sample Median'\n", "\n", "ax.set_yticklabels(['{:g}'.format(x * 100) for x in y_vals])\n", "\n", "plt.ylim(-0.05, 0.5)\n", "\n", "plt.ylabel(y_label)\n", "\n", "plt.xlabel(x_label)\n", "\n", "plt.title('');\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### The Mean and the Median\n", "If a student's score on a test is below average, does that imply that the student is in the bottom half of the class on that test?\n", "\n", "Happily for the student, the answer is, \"Not necessarily.\" The reason has to do with the relation between the average, which is the balance point of the histogram, and the median, which is the \"half-way point\" of the data.\n", "\n", "The relationship is easy to see in a simple example. Here is a histogram of the collection {2, 3, 3, 4} which is in the array `symmetric`. The distribution is symmetric about 3. The mean and the median are both equal to 3." ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "symmetric = np.array([2, 3, 3, 4])" ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "tags": [ "remove_input" ] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfkAAAFfCAYAAABN87UXAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAAuDUlEQVR4nO3dfVgVdeL//9cRAxE1TBFvwJvgFOJ94M3q7tfWPpLJen8XuX1a71LMyjVNKcs0W7zBNksky+1KtyxJsTWz/FhS4W2Wa7qphSnepGGogBgcVzi/P7o8vwjRAc5xONPzcV38cWaG97zmILycmzNjy83NdQoAAFhODbMDAAAAz6DkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAizKt5BMTExUYGFjq67bbbnPNdzqdSkxMVEREhBo3bqzY2FgdPHjQrLgAAHgdU/fk7Xa7vvnmG9fX9u3bXfMWL16s5ORkzZ8/X1u2bFFQUJAGDRqkCxcumJgYAADvYWrJ16xZU8HBwa6vhg0bSvp5Lz4lJUWTJ0/WgAEDFBkZqZSUFBUUFGjNmjVmRgYAwGuYWvJZWVlq3bq12rdvr9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du3bd6JgAAHidmmaufMWKFTpy5IiWLVtWZl52drYkKSgoqNT0oKAgnT59+obkAwDAm5lW8pmZmZozZ44++OAD+fr6lruczWYr9drpdJaZ9utxvZmn8+fnt5TD4e/RdTgcDo+NnZ9fqMzMLI+NfwX/jszHNpjP2/NL3r0Ndru9ymOYVvKff/65zp49q9/97neuacXFxdq+fbtee+017dy5U5J05swZhYSEuJbJyckps3f/S+54U8ySmZnp8fx5ebXk5+fjsfEdDof8/Pw8Nn69ejU9/h7diJ+DJ3l7foltqA68Pb9kjW2oKtNKPjY2Vp06dSo17aGHHlJYWJimTJmi8PBwBQcHKz09XXfccYckqaioSDt27NCcOXPMiAwAgFcxreQDAwNLXU0vSbVr11b9+vUVGRkpSYqPj9eiRYtkt9sVHh6upKQkBQQEaOjQoSYkBgDAu5h64d31PProoyosLNS0adOUm5urqKgopaWlqW7dumZHAwCg2qtWJf/++++Xem2z2ZSQkKCEhASTEgEA4L1M/5w8AADwDEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLMlzy27ZtU05OTrnzz549q23btrklFAAAqDrDJd+vXz+lp6eXO//TTz9Vv3793BIKAABUneGSdzqd15x/6dIl1ajB0X8AAKqLmteamZ+fr7y8PNfrc+fO6cSJE2WWy83N1dq1a9WkSRP3JwQAAJVyzZJfunSpFixYIEmy2WxKSEhQQkLCVZd1Op166qmn3J8QAABUyjVL/s4771StWrXkdDo1Z84cDR48WO3atSu1jM1mU+3atdWpUydFR0d7NCwAADDumiXfrVs3devWTZLkcDjUr18/tWnT5oYEAwAAVXPNkv+lGTNmeDIHAABws3JL/q233pIk3XvvvbLZbK7X1xMXF+eeZAAAoErKLfmJEyfKZrNpyJAh8vX11cSJE687mM1mo+QBAKgmyi35r776SpLk6+tb6jUAAPAO5ZZ88+bNr/kaAABUb9yiDgAAiz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AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi6LkAQCwKEoeAACLouQBALAoSh4AAIui5AEAsChKHgAAi/KKkl++fLnat2+v4OBg9ezZU9u3bzc7EgAA1V61L/m0tDTNmDFDjz32mD777DN16dJFw4YN04kTJ8yOBgBAtVbtSz45OVn33XefHnjgAd1+++1auHChgoOD9dprr5kdDQCAaq1al/ylS5e0d+9e9erVq9T0Xr16adeuXSalAgDAO1Trkj979qyKi4sVFBRUanpQUJDOnDljUioAALxDTbMDGGGz2Uq9djqdZaZdkZmZ6bEctWo10dNP+3ls/J8VenT0Bg189fTTlzy6Dk9uw43JL3lyG2rVcigz87THxpc8+3two7AN5vP2/JJ3b4Pdbq/yGNW65Bs0aCAfH58ye+05OTll9u6vcMebYpbMzMwbkN8p6SaPjZ6Y+IkSEu702Piezi/diJ/DTZI8N/6N+XfkWWyD+bw9v2SNbaiqan243tfXVx07dlR6enqp6enp6eratatJqVCejIxTWrr0iLZtO2V2FACAqnnJS9JDDz2kVatWaeXKlfrmm280ffp0/fDDDxo1apTZ0fAr8+fv0YULxUpM3GN2FACAqvnhekkaPHiwzp07p4ULFyo7O1utW7dWamqqmjdvbnY0/EJGxint358jSdq//6y2bTulHj2ampwKAH7bqn3JS9LYsWM1duxYs2PgGubP36O8vP9KkvLyLikxcY82bKDkAcBM1f5wPaq/X+7FX3Flbx4AYB5KHlX2y734K67szQMAzEPJo0quthd/BXvzAGAurzgnj+rr229z1b17E9fNiS5eLFBAQB1JP9+06NChXC7AAwCTUPKokjFjIjVmTKTrNTefAIDqg8P1AABYFCUPAIBFUfIAAFgUJQ8AgEVR8gAAWBQlDwCARVHyAABYFCUPAIBFUfIAAFgUJQ8AgEVR8gAAWBQlDwCARV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229S0aVNJ5Z+TP3z4sMaMGaPw8HAFBwfrjjvu0IwZM9zz5gIW5fVPoQN+K6ZMmaJ3331XY8eOVUREhPLy8vTFF19o//79iouL06JFi7R27VpNmDDB9T0lJSVau3atevfurVtuucU1PT8/X0OHDtXAgQPVv39/vf7665owYYJ8fHz0xBNP6P7779fAgQO1bNkyjR49Wvv27XM9trawsFB/+tOfdOzYMf3lL39Rq1attH//fi1ZskTffvutVq1aJUlatmyZJk2apOjoaP3lL3+RJDVq1KjUNk2fPl0333yzpkyZovz8/HK3/eDBg7r77rslSaNGjVKrVq10/PhxpaWlad68eW55fwErouQBL7Fp0yY98MAD+tvf/nbV+V26dFFqamqpks/IyNCpU6fKFGF2drZefvll1yNEY2Ji1LFjR40dO1bvvvuuevbsKUnq3Lmz7rrrLqWmpurhhx+WJC1dulSZmZn65JNPdPvtt7vGbN26taZOnart27ere/fuGjFihB555BG1bNlSI0aMuGrm2rVra8OGDapZ89p/iqZOnar//ve/2rp1q8LCwlzTZ86cec3vA37rOFwPeIm6devqyy+/1KlTp646Py4uTnv27FFmZqZr2ttvv63AwEDXXvAV/v7+Gj58uOt1ixYt1KhRI4WEhLgKXpI6deokHx8fZWVluaatW7dOXbt2VcOGDXX27FnX15133inp58etGvXAAw9ct+BzcnK0bds23XfffaUKXhLn7YHr4DcE8BKzZ8/WgQMH1LZtW915552aO3euvvnmG9f8QYMGyc/PT6tXr5b082H1DRs2uKb/UpMmTcoUZL169RQSElJqWo0aNRQQEKDc3FzXtO+++06ffPKJwsLCSn1FR0dL+rmUjWrZsuV1l7nyHwwjz84GUBqH6wEvMWTIEPXo0UMffPCBtmzZomXLlumFF15QcnKyRowYocDAQPXt21fvvPOOnnzySW3cuFEXLly46qFyHx+fq66jvD1jp/P//6RtSUmJ/t//+3+aMmXKVZe9cgGdEf7+/tdd5sq6bTab4XEB/IySB7xI48aNNWrUKI0aNUq5ubnq3bu35s+f7yryuLg4rVu3Tjt37tTq1avVsmVLdevWza0ZWrVqpYKCAtfh+WtxRzHfeuutkqQDBw5UeSzgt4bD9YAXKC4uVl5eXqlpgYGBatGiRalD6XfddZeCg4O1dOlSbdmypdwL3qpi8ODB2rNnjzZu3FhmXmFhoQoKClyva9euXSpfZTRo0EA9evTQqlWrdPTo0VLzfnmEAUBZ7MkDXuDChQuKjIxUv3791LZtW9WrV087d+7URx99pHHjxrmW8/Hx0bBhw7RkyRJJ8kjJP/zww/q///s/3X///Ro+fLiioqLkcDh0+PBhrVu3Tu+88446d+4s6ecL9z799FO99NJLatq0qRo2bFjqwj6jFixYoHvuuUd33nmn6yN0J06cUFpamvbs2ePuTQQsg5IHvEDt2rU1duxYpaen64MPPtDly5fVokULPfvss4qPjy+1bFxcnJYsWaIuXbq4DnW7k7+/v9avX6/FixcrLS1Na9euVUBAgFq2bKn4+HjZ7XbXsvPmzdOUKVM0b948Xbx4UT169KhUybdp00abN2/Wc889p9dff11FRUVq1qyZ+vTp485NAyyHe9cDFpOZmanOnTtr0aJFGjNmjNlxAJiIc/KAxaxYsUJ+fn4aPHiw2VEAmIzD9YBFfPDBBzp8+LBeffVVjRw5UvXr1zc7EgCTcbgesIh27drpxx9/VM+ePbVs2TIFBgaaHQmAySh5AAAsinPyAABYFCUPAIBFUfIAAFgUJQ8AgEVR8gAAWBQlDwCARf1/FdsDbYwpxR0AAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "t2 = pd.DataFrame({'symmetric':symmetric})\n", "\n", "mean_s = np.mean(symmetric)\n", "\n", "unit = ''\n", "\n", "fig, ax = plt.subplots(figsize=(7,5))\n", "\n", "ax.hist(t2, bins=np.arange(1.5, 4.6, 1), density=True, color='blue', alpha=0.8, ec='white', zorder=5)\n", "\n", "ax.scatter(mean_s, -0.009, marker='^', color='darkblue', s=60, zorder=15).set_clip_on(False)\n", "\n", "y_vals = ax.get_yticks()\n", "\n", "y_label = 'Percent per ' + (unit if unit else 'unit')\n", "\n", "x_label = 'symetric'\n", "\n", "ax.set_yticklabels(['{:g}'.format(x * 100) for x in y_vals])\n", "\n", "plt.xlim(1, 10)\n", "\n", "plt.ylim(-0.05, 0.5)\n", "\n", "plt.ylabel(y_label)\n", "\n", "plt.xlabel(x_label)\n", "\n", "plt.title('');\n", "\n", "plt.show()" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3.0" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(symmetric)" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3" ] }, "execution_count": 15, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.percentile(symmetric, 50, interpolation='nearest')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In general, **for symmetric distributions, the mean and the median are equal.**\n", "\n", "What if the distribution is not symmetric? Let's compare `symmetric` and `not_symmetric`." ] }, { "cell_type": "code", "execution_count": 16, "metadata": { "tags": [ "remove_input" ] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAApUAAAFJCAYAAADKRdZuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAAA1TElEQVR4nO3de1xUdeL/8fcAchHRcRXxhjeYVFzvrhrWt1aLvHyLvKdu+fUuaRulqJRWai6p2GaJrK32XUxtvdFmdlsrMrxmuRZbariK9yBUUFBAmPn90df5hYgOzgzD4Ov5ePDIOedwPu8PF313zpxzDDk5ORYBAAAAdvBwdQAAAAC4P0olAAAA7EapBAAAgN0olQAAALAbpRIAAAB2o1QCAADAbpRKAAAA2M1lpTIuLk5Go7HUx1133WVdb7FYFBcXpzZt2qhhw4YaMGCADh486Kq4AAAAuAmXHqk0mUw6fPiw9WPXrl3WdUuXLlVCQoIWLlyozz//XIGBgRo4cKAuXbrkwsQAAA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ggE6ePKk5c+bIaDTKaDRKktauXasmTZron//8p+6++24FBgbq8OHDNzz9vW7dOoWHh6tBgwYymUyKiopy2tfPGSiVAADArRQXF2vkyJHq2bOnduzYoU8//VSTJ0+Wt7e3Bg8erDVr1pTafs2aNXrooYfUoEED67K4uDhFR0fryy+/VJ06dTRhwgTNmDFDs2fP1meffaaCggLNnDnTuv1nn32miRMnasKECdqzZ4+WLVum9957T/PmzbOO0aRJE82YMUOHDx/W4cOHrZ9bUFCg+Ph4/fnPf9bevXsVHBxcZk7/+7//q2eeeUYjR47Uzp07tXHjRrVt29bRXzqn4vQ3AABwK5cuXVJubq769u2rli1bSpLuuusuSdLo0aP1wAMP6MyZM2rcuLFycnL0wQcf6G9/+1upfUyZMkURERGSpKlTp+qxxx7T6tWr9V//9V+SZC2Z18THx+upp57SH/7wB0lSy5Yt9dJLL2nSpEmaP3++6tatKw8PDwUEBCgoKKjUWCUlJVq0aJE6depU7pwWL16sqKgoTZ061brsZttXRRypBAAAbqVu3boaOXKkBg8erGHDhmnZsmU6deqUJKlz584KCwvTO++8I0nauHGjjEajHnzwwVL7aNeunfXP145gXr8sPz9fly9fliR9++23WrJkiZo0aWL9mDBhgvLz85WZmXnTvF5eXmrfvn2563/++WedOXNG9913XwW+ClUPpRIAALid5cuX69NPP1V4eLg++ugjdevWTZ999pkk6YknntDatWsl/XJaeuTIkfL09Cz1+TVq1LD++dpNvb28vMosM5vN1v/OnDlTqamp1o+dO3dq//79ql+//k2z+vj4lBn/1ywWi63TrtIolQAAwC21b99e0dHR+uCDD3TPPfdYj04OGzZMZ8+e1Ztvvqlvv/1Wo0aNsnusjh076scff1SrVq3KfFwro97e3iopKanwvhs0aKDGjRtr+/btdud0Jd5TCQAA3EpGRob+9re/qV+/fmrUqJEyMjL0/fffa+zYsZKkOnXqKDIyUrNnz1Z4eLhCQkLsHnPGjBkaPny4goODNXDgQHl5eengwYP65ptvrBfrNGvWTLt379awYcPk4+OjevXq2bz/adOm6bnnnlNgYKAee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JSUFHXo0EF+fn6qWbNmufvct2+fvvjiC/Xp00eBgYH67rvvdPr0aWtJlX55X2fPnj31wgsvaNCgQapdu7bdc5k1a5ZmzJihOnXqKCIiQlevXtW3336rs2fP6tlnn7XOZfv27erVq5d8fHxkNBpt2ndAQIAmT56suXPnytvbW7169dL58+d14MABjRs3rsJZOVIJAACqneXLl6tLly4aMWKE+vTpoytXrmjTpk3y8/OTJPXo0UNjx47VuHHjFBISUuaCmuvVrl1be/fu1fDhw9W1a1fNnj1bMTExZZ5O8/jjj6uoqOiGp75vxxNPPKFly5Zp/fr1uueee9SvXz8lJSWpefPm1m1efvllpaamql27drr33nsrtP8XX3xR0dHRWrx4sbp3764nnnhCZ86cua2shpycHOfcVh23lJ6eLpPJ5NQxLmfv1IXDU5w6htlsloeHc///pG7rBNWs38upY1TG96MyMI+qozrMQWIe1Vlubu4Nb4Z9JzxRx1lee+01vf322/rmm29cHcUpyvuZkTj9DQAArlNkblS5T7gxV95QzpKXl6f09HT95S9/0bRp01wdxyUolQAA4I63a9cu6/stb+RWzwiPiYnR5s2b1a9fP40ZM8bR8dwCpRIAANzxOnfurNTU1Nv+/MTERCUmJjowkfupMhfqLFmyREajUTExMdZlFotFcXFxatOmjRo2bKgBAwZYn9sJAADgKH5+fje8bc/1t+9B+apEqdy3b5+SkpLK3Bl/6dKlSkhI0MKFC/X5558rMDBQAwcO1KVLl1yUFAAAADfi8lKZm5urCRMm6I033ih1XyWLxaLExERFR0crMjJSYWFhSkxMVF5enjZt2uS6wAAAACjD5aXyWmm8/rmTx48fV2Zmpnr37m1d5ufnp/DwcO3du7eyYwIAUC05+lF9qL5u9bPi0gt1kpKSdPToUa1YsaLMuszMTElSYGBgqeWBgYE6e/ZspeQDAKA68/f3V05OjoxG420/Ext3jsuXL8vX17fc9S4rlenp6Zo3b54++ugjeXt7l7vd9T/kFovlpj/46enpDstYGZydt0Gtq9YH0juTs8e4evVqpXxv3e3npzzMo+qoDnOQmIcrVMaN2r28vBQQEKCLF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Q/v37XR0LqHa8XB3gTrNjxw6NGzdOXbp0kcVi0Z/+9Cc9+uij2rt3r+rWrevqeDZr3Lix5s6dq5CQEJnNZr3zzjsaNWqUvvjiC/32t791dbwK27dvn5KSktSuXTtXR7ktJpNJW7dutb729PR0YZrbk5OTo4ceekg9e/bUhg0bVK9ePR0/flyBgYGujlYhKSkpKikpsb7+6aefdP/99+vRRx91Xajb8Nprr2nlypVKTExUWFiYvv/+e0VFRcnb21szZsxwdbwK+eMf/6jvv/9eiYmJatKkidavX69HH31Ue/bsUePGjV0dD6g2KJWVLDk5udTrFStWqFmzZtqzZ4/69evnolQVN2DAgFKv58yZo1WrVmnfvn1uVypzc3M1YcIEvfHGG1q0aJGr49wWLy8vBQUFuTqGXV5//XU1bNhQK1assC5r0aKF6wLdpvr165d6/fbbbysgIMDtSuVXX32lvn37Wv9eat68ufr166dvvvnGxckq5sqVK9qyZYtWr16te++9V5IUGxurjz/+WG+99ZZmz57t4oRA9cHpbxfLy8uT2WyW0Wh0dZTbVlJSos2bNys/P1/du3d3dZwKi46OVmRkpO677z5XR7ltGRkZatu2rTp06KCxY8cqIyPD1ZEq7IMPPlDXrl01ZswYhYaG6p577tGbb74pi8V9n89gsVj09ttva/jw4apZs6ar41RIz549tWPHDv3444+SpEOHDik1NVUPPvigi5NVTHFxsUpKSuTr61tquZ+fn3bv3u2iVED1xJFKF5s1a5bat2/vlmXs+++/V0REhAoKCuTv7681a9a43enjpKQkHT16tNTRMXfTrVs3LV++XCaTSdnZ2Vq8eLEiIiK0Z88e/eY3v3F1PJtlZGRo1apVevLJJxUdHa20tDTNnDlTkjRx4kQXp7s9KSkpOn78uB5//HFXR6mw6Oho5eXlqUePHvL09FRxcbGmT5+u8ePHuzpahQQEBKh79+6Kj49X27ZtFRQUpE2bNumrr75Sq1atXB0PqFYolS703HPPac+ePfr444/d8j1wJpNJqampys3N1ZYtWxQVFaWtW7cqLCzM1dFskp6ernnz5umjjz6St7e3q+PctuuPHHXr1k2dOnXSun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oVgw5OTnue78OAAAAVAncpxIAAAB2o1QCAADAbpRKAAAA2I1SCQAAALtRKgEAAGA3SiUAAADsRqkEAACA3SiVAAAAsBulEgAAAHb7f+sAFi6tvfq3AAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "t3 = pd.DataFrame({'not_symemtric':not_symmetric})\n", "\n", "mean_s = np.mean(symmetric)\n", "\n", "unit = ''\n", "\n", "fig, ax = plt.subplots(figsize=(7,5))\n", "\n", "ax.hist(t2, bins=np.arange(1.5, 9.6, 1), density=True, \n", " color=('darkblue'), \n", " label='symetric', \n", " alpha=0.8, \n", " ec='white', \n", " zorder=5)\n", "\n", "ax.hist(t3, bins=np.arange(1.5, 9.6, 1), density=True, \n", " color=('gold'), \n", " label='not_symetric', \n", " alpha=0.8, ec='white', \n", " zorder=5)\n", "\n", "ax.legend()\n", "\n", "ax.scatter(mean_s, -0.009, marker='^', color='darkblue', \n", " s=60, \n", " zorder=15).set_clip_on(False)\n", "\n", "ax.scatter(mean_ns, -0.009, marker='^', color='gold', \n", " s=60, \n", " zorder=15).set_clip_on(False)\n", "\n", "y_vals = ax.get_yticks()\n", "\n", "y_label = 'Percent per ' + (unit if unit else 'unit')\n", "\n", "x_label = ''\n", "\n", "ax.set_yticklabels(['{:g}'.format(x * 100) for x in y_vals])\n", "\n", "plt.ylim(-0.05, 0.5)\n", "\n", "plt.ylabel(y_label)\n", "\n", "ax.legend(bbox_to_anchor=(1.04,1), loc=\"upper left\")\n", "\n", "plt.xlabel(x_label)\n", "\n", "plt.title('');\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The blue histogram represents the original `symmetric` distribution. The gold histogram of `not_symmetric` starts out the same as the blue at the left end, but its rightmost bar has slid over to the value 9. The darker-gold part is where the two histograms overlap.\n", "\n", "The median and mean of the blue distribution are both equal to 3. The median of the gold distribution is also equal to 3, though the right half is distributed differently from the left. \n", "\n", "But the mean of the gold distribution is not 3: the gold histogram would not balance at 3. The balance point has shifted to the right, to 4.25." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In the gold distribution, 3 out of 4 entries (75%) are below average. The student with a below average score can therefore take heart. He or she might be in the majority of the class." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In general, **if the histogram has a tail on one side (the formal term is \"skewed\"), then the mean is pulled away from the median in the direction of the tail.**" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Example\n", "The table `sf2015` contains salary and benefits data for San Francisco City employees in 2015. As before, we will restrict our analysis to those who had the equivalent of at least half-time employment for the year." ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "sf2015 = pd.read_csv(path_data + 'san_francisco_2015.csv')\n", "\n", "sf2015 = sf2015[sf2015['Salaries'] > 10000]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "As we saw earlier, the highest compensation was above \\\\$600,000 but the vast majority of employees had compensations below \\\\$300,000." ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAg8AAAGACAYAAAAqK4EyAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjMuMiwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8vihELAAAACXBIWXMAAAsTAAALEwEAmpwYAABQDElEQVR4nO3de1zM+f4H8NdIKddoq8klubSJRS0aLKJ2XQ8RsTi/TbR0c3aXltiLtcsm7VqHarCMo7Obs1nZwtob2bLoYjkcVuWSe3WaVFhd1Pz+8DDHmCnzzUyTmdfz8fDYx3y/7+/3+/7Mu+/27nsVlZaWKkBERESkpWaGToCIiIieL2weiIiISBA2D0RERCQImwciIiIShM0DERERCcLmgYiIiARh80BERESCsHkwsLy8PEOn0Gg4VuPEsRonjtU46WqsbB6IiIhIEDYPREREJAibByIiIhKEzQMREREJwuaBiIiIBGHzQERERIKweSAiIiJB2DwQERGRIGweiIiISBA2D0RERCQImwciI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U/tovLi5WOyrwiJ2dncZ44H9HIOqKad68OTp06AAAsLe313q7//3vf/H9998rr8sgIiIydQZrHiwsLODm5obU1FSV6ampqZBIJBqX8fDwwLFjx1BRUaES7+DggK5duypjDh8+rLZOd3d3mJubAwAGDRqk9XYTEhLQokUL+Pr6Ch4jERGRMTLorZqhoaFISEhAfHw8cnJysHTpUhQUFCAgIAAAsHLlSkyaNEkZP23aNFhZWSEkJATnzp1DSkoK1q9fj5CQEOUph4CAANy8eRMRERHIyclBfHw8EhISEBYWplxPUFAQ0tLSsG7dOuTm5mLdunVIT09HcHCwSn4KhQLx8fHw9fVFmzZtGuEbISIiavoMes2Dr68vSkpKEB0djcLCQri6uiIxMRGOjo4AgIKCAly+fFkZ365dO+zZswfh4eEYNWoUrK2tERoaqtIYODk5ITExEcuXL4dMJoNYLEZUVJTyNk0AkEgkkMlkWLVqFSIjI9GtWzfIZDIMHDhQJb/09HRcvHgRW7Zs0fM3QURE9Pww+AWTgYGBCAwM1DhPKpWqTevTpw8OHDhQ7zqHDRuGtLS0emN8fHxUGgpNRowYgdLS0npjiIiITI3BH09NREREzxc2D0RERCQImwciIiIShM0DERERCWLwCyaJRKJmyM6WC16uU6dWcHCo/6mWRESke2weyOCKi+8jMlLzS8nq89lnI9g8EBEZAE9bEBERkSBsHoiIiEgQNg9EREQkCJsHIiIiEoTNAxEREQnC5oGIiIgEYfNAREREgrB5ICIiIkHYPBAREZEgbB6IiIhIEDYPREREJAibByIiIhKEzQMREREJwuaBiIiIBGHzQERERIKweSAiIiJB2DwQERGRIGweiIiISBA2D0RERCQImwciIiISxODNw9atW9GvXz/Y29vD09MTR48erTf+7NmzGD9+PMRiMVxdXREVFQWFQqESc+TIEXh6esLe3h79+/eHTCZTW09ycjIkEgns7OwgkUiwd+9etZiCggIEBQWhR48esLe3h0QiwZEjR55twERERM85gzYPSUlJiIiIwOLFi5GWlgYPDw/4+fnh2rVrGuPLy8sxZcoU2NnZ4dChQ1izZg02btyImJgYZUx+fj6m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jkZCQgLCwMOV6goKCkJaWhnXr1iE3Nxfr1q1Deno6goODAQDW1tbo3bu3yr+WLVuiffv26N27Nx/FTUREJq1B77bQFV9fX5SUlCA6OhqFhYVwdXVFYmIiHB0dAQAFBQW4fPmyMr5du3bYs2cPwsPDMWrUKFhbWyM0NFSlMXByckJiYiKWL18OmUwGsViMqKgo+Pj4KGMkEglkMhlWrVqFyMhIdOvWDTKZDAMHDmy8wRMRET2nDNo8AEBgYCACAwM1znvyuQsA0KdPHxw4cKDedQ4bNgxpaWn1xvj4+Kg0FE+zf/9+rWOJiIiMmUFPWxAREdHzh80DERERCaJ189C/f398//33dc7/4Ycf0L9/f50kRURERE2X1tc8XL16Fffu3atz/r179+p8oRU1HpGoGbKz5Q1a9v79Gh1nQ0RExkjQBZP13aJ44cIFtGnT5pkTomdTXHwfkZGa3w3yNMuWaX6+BhER0ePqbR4SEhKwc+dO5efPPvsMO3bsUIsrLS3FuXPnMGbMGN1nSERERE1Kvc3DvXv3UFhYqPxcVlaG2tpalRiRSISWLVvC398fERER+smSiIiImox6m4c333wTb775JgCgX79+WLNmDcaPH98oiRHp07NcG9KpUys4ODTshVxERMZA62seTp8+rc88iBrVs1wb8tlnI9g8EJFJE/yEyTt37uD69eu4ffu28lXXj3vllVd0khgRERE1TVo3D7dv38bSpUuxZ88e1NSo39KnUCggEolQUlKi0wSJiIioadG6eXjnnXewb98+vPnmm3jllVdgbW2tx7SIiIioqdK6efjll1+wYMECrF69Wp/5EBERUROn9eOpLSws0KNHD33mQkRERM8BrZsHHx8f/Pzzz/rMhYiIiJ4DWjcPCxcuREFBAYKCgpCVlYWCggL897//VftHRERExk3rax4GDBgAkUiEU6dOITExsc443m1BRERk3LRuHpYsWVLvi7GIiIjINGjdPCxbtkyfeRAREdFzQutrHh5XU1ODkpISPHjwQNf5EBERURMnqHn4/fffMXnyZHTs2BE9e/bEb7/9BgCQy+WYPn06fv31V70kSURERE2H1s1DZmYmxo8fj8uXL+P1119Xea+FjY0N7t69i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gUKhwNSpUzF8+HBIpVJ88cUXWLZsGTp27Ij58+fD2toaYWFhDc7rjTfewMsvv4yYmBgkJSWhqKgIlpaW6NOnDz799FOV2y+1HYOurFmzBikpKYiKikJlZSXGjBmD6OholTswhgwZgoMHD2Lt2rX4xz/+gfLyctja2uKll17CsmXLBG/zpZdewquvvoqff/4Z8fHxaNGiBVxdXfH1118rXzbWs2dPfP311/j444+xYsUK2NjY4PXXX8ewYcMwZcoUlfXVVU9NbGxs8OOPP2LlypXYvn07/vzzT/Ts2RNSqVRvzRmRJqLS0lJeOUNEz5Wvv/4aoaGh+PnnnzFo0CBDp0NkcnjNAxEREQnC5oGIiIgEYfNAREREgvCaByIiIhKERx6IiIhIEDYPREREJAibByIiIhKEzQMREREJwuaBiIiIBPl/O7b3+A9fsloAAAAASUVORK5CYII=\n", "text/plain": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "unit = ''\n", "\n", "fig, ax = plt.subplots(figsize=(7,5))\n", "\n", "ax.hist(sf2015['Total Compensation'], bins=np.arange(10000, 700000, 25000), density=True, color=('darkblue'),\n", " alpha=0.8, ec='white', zorder=5)\n", "\n", "y_vals = ax.get_yticks()\n", "\n", "y_label = 'Percent per ' + (unit if unit else 'unit')\n", "\n", "x_label = 'Total Compensation'\n", "\n", "ax.set_yticklabels(['{:g}'.format(x * 100) for x in y_vals])\n", "\n", "plt.ylabel(y_label)\n", "\n", "plt.xlabel(x_label)\n", "\n", "plt.xticks(rotation=90)\n", "\n", "plt.title('');\n", "\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This histogram is skewed to the right; it has a right-hand tail. \n", "\n", "The mean gets pulled away from the median in the direction of the tail. So we expect the mean compensation to be larger than the median, and that is indeed the case." ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "110305.79" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "compensation = sf2015['Total Compensation']\n", "np.percentile(compensation, 50)" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "114725.98411824208" ] }, "execution_count": 20, "metadata": {}, "output_type": "execute_result" } ], "source": [ "np.mean(compensation)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Distributions of incomes of large populations tend to be right skewed. When the bulk of a population has middle to low incomes, but a very small proportion has very high incomes, the histogram has a long, thin tail to the right. \n", "\n", "The mean income is affected by this tail: the farther the tail stretches to the right, the larger the mean becomes. But the median is not affected by values at the extremes of the distribution. That is why economists often summarize income distributions by the median instead of the mean." ] } ], "metadata": { "anaconda-cloud": {}, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.5" } }, "nbformat": 4, "nbformat_minor": 1 }