{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# HIDDEN\n", "from datascience import *\n", "%matplotlib inline\n", "\n", "import matplotlib.pyplot as plots\n", "from mpl_toolkits.mplot3d import Axes3D\n", "plots.style.use('fivethirtyeight')\n", "import pylab as pl\n", "import math\n", "from scipy import stats\n", "from scipy import misc\n", "import pandas as pd\n", "import statsmodels.api as sm\n", "import numpy as np" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "##Binomial and Multinomial Models\n", "In the past few sections we have spent some time on inference in the setting of the classical regression model. But in fact we have used chance models all along. An important class of models appeared, albeit informally, when we studied the randomness in the selection of jury panels, back in Chapter 3. Let us examine those a little more carefully, to exactly how the chances come in.\n", "\n", "For ease of reference, here is one of the examples from Chapter 3." ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "###U.S. Supreme Court, 1965: Swain vs. Alabama\n", "\n", "In the early 1960's, in Talladega County in Alabama, a black man called Robert Swain was convicted of raping a white woman and was sentenced to death. He appealed his sentence, citing among other factors the all-white jury. At the time, only men aged 21 or older were allowed to serve on juries in Talladega County. In the county, 26% of the eligible jurors were black, but there were only 8 black men among the 100 selected for the jury panel in Swain's trial. No black man was selected for the trial jury.\n", "\n", "In 1965, the Supreme Court of the United States denied Swain's appeal. In its ruling, the Court wrote \"... the overall percentage disparity has been small and reflects no studied attempt to include or exclude a specified number of Negroes.\"\n", "\n", "Let us use the methods we have developed to examine the disparity between 8 out of 100 and 26 out of 100 black men in a panel drawn at random from among the eligible jurors." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "
Race | Eligible | \n", "
---|---|
Black | 0.26 | \n", "
Other | 0.74 | \n", "