Page 53
Step 2 in the Alias Algorithm should read 2. If Z < Q(Y) return X = Y, else return X = A(Y).Page 246
The second to the last line of code should read j=16 instead of i=16Page 251
Since the number of TH outcomes is 3, the first line of the displayed equation should have (3 - 0.25x20) instead of (4 - 0.25x20). This causes several other changes: V should be 7.6 instead of 7, in the 4th line from the top the probability should be 0.938 instead of 0.906. In the 5th line the complement probability will be 0.062 instead of 0.094 and in the 6th line the probability as a percent is 6.2 instead of 9.4. The meaning of the table is that, given the coin is fair, the statistic V will be 7.815 or less with 95% chance. By interpolation, the table value for p = 0.90 is 6.89. This means that 10% of the time, a fair coin will give V a value exceeding 6.89. Thus, if we say our coin is not fair on the basis of this experiment, there is a 10% chance we are wrong.