Explanation

Language of probability

An experiment is a planned activity carried out under controlled conditions. An outcome is one particular result. The sample space S is the set of all possible outcomes. An event is any subset of S (it can contain one outcome, several, none, or all). Capital letters A, B, C denote events.

The foundation of probability is three axioms (Kolmogorov, 1930s):

  1. 0 ≤ P(A) ≤ 1.
  2. P(S) = 1.
  3. If A and B are mutually exclusive, P(A or B) = P(A) + P(B).

When outcomes are equally likely, P(A) = (number of outcomes in A)/(number of outcomes in S). Otherwise probabilities may come from long-run relative frequencies; the law of large numbers says the relative frequency settles near the theoretical probability as the number of repetitions grows.

Describing combinations of events

  • A AND B (intersection): outcomes in both events at once.
  • A OR B (union): outcomes in A, in B, or in both (the "inclusive or").
  • Complement A′: outcomes not in A.
  • Venn diagram: a box for S with circles for events; overlaps show AND, the union shows OR, outside the circle shows the complement.

Complement rule

P(A′) = 1 − P(A). It is the shortcut for "at least one" problems: P(at least one) = 1 − P(none).

Addition rule (OR)

P(A or B) = P(A) + P(B) − P(A and B). We subtract the overlap because outcomes in both events were counted twice. If A and B are mutually exclusive (they cannot occur together, P(A and B) = 0), the subtraction disappears.

Conditional probability

P(A | B) = P(A and B)/P(B): the probability of A given that B has occurred. B becomes the new, smaller sample space. Reading the direction carefully matters: P(A | B) is generally not P(B | A).

Multiplication rule (joint probability, AND)

P(A and B) = P(A | B)·P(B) = P(B | A)·P(A). For independent events this simplifies to P(A and B) = P(A)·P(B).

Independence versus mutual exclusivity

Events A and B are independent if knowing one occurred does not change the probability of the other. Any one of these conditions is equivalent: P(A | B) = P(A), or P(B | A) = P(B), or P(A and B) = P(A)P(B). Otherwise they are dependent. Do not confuse the two ideas: if A and B are mutually exclusive and both have positive probability, they are dependent (if A happens, B certainly cannot). To test independence, compare P(A and B) with P(A)P(B).

Sampling with replacement (the member is returned before the next draw) produces independent events. Sampling without replacement produces dependent events, so the second probability must be adjusted for what was removed.

Contingency tables

A contingency table shows counts (or probabilities) for two variables, with rows for one and columns for the other, plus row totals, column totals, and the grand total.

  • Marginal (single-event) probabilities: a row or column total ÷ grand total.
  • Joint (AND) probabilities: a cell count ÷ grand total.
  • Conditional probabilities: the cell count ÷ the total of the given row or column.

Check independence by seeing whether the conditional probabilities equal the marginal ones.

Tree diagrams

A tree diagram displays a multi-step experiment. Each branch carries a probability; multiply along a path to get the joint probability of that sequence, and add the probabilities of all paths that make up the event you want. The branches leaving any node must sum to 1. In a without-replacement tree, the second-stage branch probabilities change depending on the first draw.

Common mistakes

Adding probabilities of independent events when you should multiply (AND is multiplication, OR is addition); forgetting to subtract the overlap in the OR rule; using the original total instead of the reduced total in a conditional probability; treating "independent" and "mutually exclusive" as synonyms.

Practice tasks

  1. A fair die is rolled. Find P(even) and P(not a 6).
  2. A, B are events with P(A) = 0.5, P(B) = 0.4, P(A or B) = 0.7. Find P(A and B), and decide whether A and B are independent.
  3. Two cards are drawn without replacement from a 52-card deck. Find P(both aces).
  4. An urn holds 5 red and 3 blue balls; two are drawn without replacement. Find P(both red) and P(exactly one of each colour).
  5. Table of 100 people: Male–Like coffee 30, Male–Dislike 20, Female–Like 35, Female–Dislike 15. Find P(Male), P(Like), P(Male and Like), P(Male or Like).
  6. Using the table in task 5, find P(Like | Male) and P(Male | Like). Are "Male" and "Like" independent?
  7. Explain, with an example, why two events with nonzero probabilities that are mutually exclusive cannot be independent.