Using the Complement to Find a Probability

Finding the probability that an event never happens can be easier than directly counting every way it happens at least once.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Compute one example
  2. Check assumptions about repeated trials
  3. Count the absence of a success across independent trials
  4. Separate the complement identity from an independence assumption

Compute one example

On three independent fair coin tosses, the probability of all tails is \(1/8\). The probability of at least one head is \(1-1/8=7/8\). The complement rule for sets gives the relevant pair of events.

Check assumptions about repeated trials

If each result copies the first toss, three tails occurs with probability one half. The complement still works, while the product from the independent model fails. See independence.[1]

Count the absence of a success across independent trials

Suppose each of three independent tests has probability one quarter of flagging a record under the stated model. The event of at least one flag has a simple complement: no flags in any of the three. Each failure probability is three quarters. See independent and disjoint events.

No flag: (3/4)^3 = 27/64
At least one flag: 1 - 27/64 = 37/64
Simply adding 3×(1/4) would count multiple flags repeatedly

Separate the complement identity from an independence assumption

The complement rule always holds for an event and its complement. The product used to evaluate the complement requires independence here. If tests share the same underlying fault, no-flag probability may be larger.

References

  1. Eric Lehman, F. Thomson Leighton and Albert R. Meyer, Mathematics for Computer Science ↩