Appendix A. Appendix: Combining Probabilities

Start with one flip of a coin. If you flip the coin once, you know the answer. Call the probability of getting heads P, so the probability of getting tails is (1-P). The symbol kPn represents the probability of getting k heads in n flips.

image with no caption

image with no caption

Flip the coin a second time. Now there are several possibilities. You could have two tails, two heads, a head and a tail, or a tail and a head. I wrote down the probabilities for one flip. The probabilities for the second flip are the same, but I have to multiply the first flip by the second. The probability of getting two heads in a row is the probability of getting heads on the first toss times the probability of getting heads on the second toss:

image with no caption

image with no caption

image with no caption

The most interesting example is the 1 P 2. It says that the probability of getting one head in two tosses is the probability of getting a head then a tail, plus a tail then a head. Substituting in the values for 0 P 1 and 1 P 1 from the previous example ...

Get Designing Large Scale Lans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.