Chapter 2 Exercises
Coin tossing
1. Write your own BUGS code for calculating the probability of obtaining at least 15 heads in 20 tosses of a fair coin.
2. Adapt your code to calculate the probability that no more than 6 patients in a group of 30 will fail to respond to a drug with a success probability of 0.7.