Skip to content
Lesson 3 of 10 · Introductory Statistics

Probability

Compute probabilities with the addition, multiplication and complement rules, use conditional probability, and avoid the base-rate trap.

24 min

Probability is a number from 0 to 1 that says how likely an event is. With equally likely outcomes, P(A) = (outcomes in A) / (all outcomes). Over many repetitions it is also the long-run relative frequency.

  • Complement: P(not A) = 1 − P(A).
  • Addition: P(A or B) = P(A) + P(B) − P(A and B). If A and B cannot both happen (mutually exclusive), the last term is 0.
  • Multiplication: P(A and B) = P(A) · P(B | A). If A and B are independent, P(B | A) = P(B), so P(A and B) = P(A)P(B).
  • Conditional: P(B | A) = P(A and B) / P(A): the probability of B once you know A happened.

Independent and mutually exclusive are different. Exclusive events are strongly dependent: if one happens the other cannot.

A two-way table of counts is the clearest way to see conditional probability: restrict to the row or column you are conditioning on and divide.

Suppose a disease affects 1% of people. A test detects it 90% of the time when present (sensitivity 90%) and gives a false alarm 5% of the time when absent (specificity 95%). You test positive. Out of 10,000 people, 100 are sick and 90 of them test positive; 9,900 are healthy and 495 of them test positive. So among 585 positives, only 90 are truly sick: about 15%. The test sounds accurate, yet most positives are false because the disease is rare.

Try it

Start with 1%, 0.90 and 0.95 and read about 0.154. Now raise the prevalence to 0.3: the same test is far more convincing. Then fix prevalence at 1% and push specificity to 0.99. Which matters more for a rare disease, sensitivity or specificity?

0.010
0.90
0.95

P(has the condition | positive test)

—

In a class of 30, 18 play football, 12 play chess and 5 play both. A student is picked at random. Find P(football or chess) and P(chess | football).

  1. 1

    P(F) = 18/30, P(C) = 12/30, P(F and C) = 5/30

    Counts over 30.

1/3

Two cards are dealt from a standard 52-card deck. Find P(both are aces).

  1. 1

    P(first ace) = 4/52

    Four aces.

1/3
  • P(not A) = 1 − P(A); P(A or B) = P(A) + P(B) − P(A and B).
  • P(A and B) = P(A)P(B | A); independence means P(B | A) = P(B).
  • Conditional probability restricts attention to the cases where the condition holds.
  • Mutually exclusive does not mean independent.
  • With a rare condition, most positive tests can be false positives.
Check yourself

Practice.

1Numeric answer

A fair die is rolled. P(an even number or a number greater than 4)? Give a decimal to 3 places.

2Numeric answer

Two fair coins. P(at least one head)?

3Numeric answer

A bag has 5 red, 3 blue marbles. Two drawn without replacement. P(both red) as a decimal to 3 places.

4Multiple choice

Events A and B are mutually exclusive with P(A) = 0.3, P(B) = 0.4. P(A or B) is:

  • A0.12
  • B0.7
  • C0.1
  • D0.58
5Multiple choice

A rare disease test with a few false alarms gives you a positive. The chance you really have it depends most on:

  • Athe colour of the test
  • Bhow common the disease is
  • Chow long the test took
  • Dnothing

Practise this lesson, not just read it

In BiliMind the questions above are marked when you answer, the flashcards come back on a schedule, and the rest of Introductory Statistics is planned around your week. Free.