Understanding probability
Probability is a number between 0 and 1 that measures how likely something is, and the whole subject is built from a handful of rules for combining such numbers. The most useful of them is the rule for two independent events — two things that do not affect each other, like two separate coin flips, or rain today and a traffic jam tomorrow when the two have nothing to do with each other. If the first event has probability 0.5 and the second has probability 0.3, the chance that both happen is not 0.8 and not 0.4: it is 0.5 × 0.3 = 0.15.
Formula and method
P(A or B) = P(A) + P(B) − P(A) × P(B)
P(neither) = (1 − P(A)) × (1 − P(B))
Both events (A and B happen): At least one event (A or B happens): Neither event (neither A nor B happens): P(A) — the probability of the first event, a decimal from 0 to 1; 0 means impossible, 1 means certain. P(B) — the probability of the second event, a decimal from 0 to 1, on the same scale. 1 − P(A) — the complement of A, the probability that A does not happen. 1 − P(B) — the complement of B, the probability that B does not happen. Why "both" means multiply. For independent events, the second event is just as likely whether or not the first happened, so the fraction of cases where both happen is the fraction where the first happens times the fraction where the second happens. If A happens half the time and B happens three times in ten, then among the cases where A happens, B still happens three times in ten — so both happen in 0.5 × 0.3 = 0.15 of all cases. Why "at least one" subtracts the overlap. Adding P(A) and P(B) counts the cases where both happen twice — once inside P(A) and once inside P(B) — so the overlap must be subtracted once to count every case exactly once. For the live example, 0.5 + 0.3 − 0.15 = 0.65. The same number can be reached from the other side: at least one happens unless neither does, so P(A or B) = 1 − P(neither) = 1 − 0.35 = 0.65, and the two routes agreeing is a built-in check.
Worked example
Example 1 — P(A) = 0.5, P(B) = 0.3 (the live-page example) Probabilities of 0.5 for event A and 0.3 for event B. Both events: 0.5 × 0.3 = 0.15 At least one event: 0.5 + 0.3 − 0.15 = 0.65 Neither event: (1 − 0.5) × (1 − 0.3) = 0.5 × 0.7 = 0.35 Check: at least one plus neither = 0.65 + 0.35 = 1 Result: 0.15 (both events) This is the stored example on the live page, and the arithmetic above reproduces it. The headline result is the "both" figure, 0.15, but the other two complete the picture: there is a 65% chance at least one of the events happens and a 35% chance neither does. The check is the point — at least one and neither are complements, so they must add to exactly 1, and 0.65 + 0.35 does.