Fortunately we don’t have to perform these calculations since the probability distribution for the observed difference in proportions under the null hypothesis can be worked out in theory, and is shown in Figure 10.2(b) – it is based on what is known as the hypergeometric distribution, which gives the probability for a particular cell in the table taking on each possible value under random permutations.