The law in Alameda County, California states that a Jury Panel for a particular trial should be selected by chance (randomly) from the list of eligible residents. In this case, there are 1453 eligible residents from which a Jury Panel of 100 should be randomly selected. Then, the lawyers and judges follow a legal process to non-randomly select a jury of 12.JuryPanels.png

We are going to look at the distribution of the eligible residents and compare that to the distribution of the selected Jury Panel. We will attempt to determine how likely it is that the jury panel was selected by random chance. You have already learned enough about writing Python code to make this determination.

Please run all code cells in order starint with the import cell below.

In [1]:

Comparing Distributions

In [2]:
Out[2]:
Ethnicity Eligible Panels
Asian 0.15 0.26
Black 0.18 0.08
Latino 0.12 0.08
White 0.54 0.54
Other 0.01 0.04
In [3]:
In [4]:
Out[4]:
Ethnicity Eligible Panels Difference
Asian 0.15 0.26 0.11
Black 0.18 0.08 -0.1
Latino 0.12 0.08 -0.04
White 0.54 0.54 0
Other 0.01 0.04 0.03
In [ ]:
In [5]:
Out[5]:
Ethnicity Eligible Panels Difference Absolute Difference
Asian 0.15 0.26 0.11 0.11
Black 0.18 0.08 -0.1 0.1
Latino 0.12 0.08 -0.04 0.04
White 0.54 0.54 0 0
Other 0.01 0.04 0.03 0.03
In [ ]:
In [6]:
Out[6]:
0.28000000000000003
In [7]:
Out[7]:
0.14000000000000001
In [8]:
In [9]:
Out[9]:
0.14000000000000001

So far, we have a useful table and a way to calculate how far one distribution is from another. Let's use what we have done to explore whether the Jury Panel that was selected was likely to have been selected by random chance.

In [10]:
In [11]:
Out[11]:
Ethnicity Eligible Panels Random Sample
Asian 0.15 0.26 0.131452
Black 0.18 0.08 0.175499
Latino 0.12 0.08 0.105988
White 0.54 0.54 0.576738
Other 0.01 0.04 0.0103235
In [ ]:
In [12]:

Qualitatively, we see that there is a noticeable difference in what was actually selected for the Jury Panel and what we would expect if the Jury Panel were selected by chance. Let's put some number to this.

In [13]:
Out[13]:
0.037061252580867163
In [14]:
Out[14]:
0.14000000000000001

It looks like the random sample produces results close the the ethnicity of the eligible population. But, the Jury Panel that was actually selected is not that close. Maybe we just had bad luck with the one random sample that we took. Let's take 10,000 random samples and see if any of them come close to the actual Jury Panel that was selected.

In [15]:
In [16]:

All of the random samples show a very small total_variation_distance from the eligible population. The Jury Panel that was actually selected showed a total_variation_distance of .14 which would be way tothe right on the chart above.

In [ ]:

Based on the charts and numbers you have seen, do you think our Jury Panel selected by random chance or was something else involved?

In [ ]: