http://www-math.bgsu.edu/~albert/m115/probability/add_probs.html The complement rule (for computing probabilities of "not" events) Let's return to our lottery example. What if you're interested in the probability that the winning number does not have the same two digits. The rule for "not" events is called the complement rule:
Probability("not" an event) = 1 - Probability(event)
In this case, we can write
Probability(not same digits) = 1 - Probability(same digits)
We have already found the probability that the winning number has the same two digits, so the probability of interest is
Probability(not same digits) = 1 - 10/100 = 90/100
https://d3js.org/d3.v4.min.js