Class 12 Maths, Worked in Full Past papersGet updates
Chapter 13 · Probability

Miscellaneous · Q3: Grey hair: the person selected is male, P=2021P = \frac{20}{21}

Miscellaneous ExerciseBayes' theorem · Section 13.5
The question

Suppose that 5% of men and 0.25% of women have grey hair. A grey haired person is selected at random. What is the probability of this person being male? Assume that there are equal number of males and females.

Exam answer

Let E1E_1⁠: the person selected is male, E2E_2⁠: the person selected is female, and GG⁠: the person has grey hair.

E1E_1 and E2E_2 form a partition of the sample space (each person is either male or female).

As there are equal numbers of males and females, P(E1)=P(E2)=12P(E_1) = P(E_2) = \frac12⁠.

P(G∣E1)=5%=120P(G|E_1) = 5\% = \frac{1}{20}

P(G∣E2)=0.25%=1400P(G|E_2) = 0.25\% = \frac{1}{400}

By the theorem of total probability,

P(G)=P(E1)P(G∣E1)+P(E2)P(G∣E2)=12⋅120+12⋅1400=20800+1800=21800\begin{aligned} P(G) &= P(E_1)P(G|E_1) \\ &\quad + P(E_2)P(G|E_2) \\ &= \frac12\cdot\frac{1}{20} + \frac12\cdot\frac{1}{400} \\ &= \frac{20}{800} + \frac{1}{800} = \frac{21}{800} \end{aligned}

By Bayes' theorem,

P(E1∣G)=P(E1)P(G∣E1)P(G)=20800÷21800=20800×80021\begin{aligned} P(E_1|G) &= \frac{P(E_1)P(G|E_1)}{P(G)} \\ &= \frac{20}{800} \div \frac{21}{800} \\ &= \frac{20}{800} \times \frac{800}{21} \end{aligned}

∴\therefore The probability that the grey haired person is male is 2021\dfrac{20}{21}⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Grey hair is twenty times as common among men (5%) as among women (0.25%), and there are as many men as women. So among grey haired people, men outnumber women by 20 to 1, and a grey haired person picked at random is male with probability 2021\frac{20}{21}⁠. Bayes' theorem turns this reasoning into a calculation.

Given, to find, and the plan
Given
5% of men and 0.25% of women have grey hair; there are equal numbers of males and females; the person selected has grey hair.
To find
The probability that the person is male, given grey hair: P(E1∣G)P(E_1|G)⁠.
Plan
(1) Name the events; check the partition. (2) Turn the percentages into fractions. (3) Total probability for P(G)P(G)⁠. (4) Bayes' theorem. (5) Sense check.

Basics you need

1Percentages as fractions

k%k\% means k100\frac{k}{100}⁠: 5%=5100=1205\% = \frac{5}{100} = \frac{1}{20} and 0.25%=0.25100=14000.25\% = \frac{0.25}{100} = \frac{1}{400}⁠. Basics: working with fractions

2Conditional probability (Section 13.2)

"5% of men have grey hair" is a statement about men only: P(G∣E1)=120P(G|E_1) = \frac{1}{20}⁠. Lesson: conditional probability

3Total probability and Bayes' theorem (Section 13.5)

For a partition E1,E2E_1, E_2⁠: P(G)=∑P(Ei)P(G∣Ei)P(G) = \sum P(E_i)P(G|E_i) and P(E1∣G)=P(E1)P(G∣E1)P(G)P(E_1|G) = \frac{P(E_1)P(G|E_1)}{P(G)}⁠. Lesson: Bayes' theorem

4Tree diagrams

Multiply along each path; add the paths that end in grey hair. Basics: tree diagrams

Solution

  1. Name the events

    Let

    • E1E_1⁠: the person selected is male;
    • E2E_2⁠: the person selected is female;
    • GG⁠: the person selected has grey hair.

    E1E_1 and E2E_2 form a partition of the sample space: every person is either male or female, not both.

    Being male or female is the "cause"; grey hair is what we observe. The question asks for the cause given what we observe, which is what Bayes' theorem finds.
    Partition: pairwise disjoint, exhaustive, nonzero probabilities (Section 13.5.1). Lesson: Bayes' theorem
  2. The four probabilities, as fractions

    Equal numbers of males and females give

    P(E1)=P(E2)=12.P(E_1) = P(E_2) = \frac12.

    The percentages are conditional probabilities:

    P(G∣E1)=5%=5100=120,P(G|E_1) = 5\% = \frac{5}{100} = \frac{1}{20}, P(G∣E2)=0.25%=2510000=1400.P(G|E_2) = 0.25\% = \frac{25}{10000} = \frac{1}{400}.
    "5% of men" is 5 out of every 100 men, so it is a probability given E1E_1⁠, not P(G)P(G)⁠. For 0.25%, multiply the top and bottom of 0.25100\frac{0.25}{100} by 100 to clear the decimal: 2510000\frac{25}{10000}⁠, and then divide both by 25.
    k%=k100k\% = \frac{k}{100}⁠. Basics: working with fractions
  3. The chance of grey hair: total probability

    Since E1E_1 and E2E_2 form a partition, by the theorem of total probability

    P(G)=P(E1)P(G∣E1)+P(E2)P(G∣E2)=12⋅120+12⋅1400=140+1800=20800+1800=21800.\begin{aligned} P(G) &= P(E_1)P(G|E_1) \\ &\quad + P(E_2)P(G|E_2) \\ &= \frac12\cdot\frac{1}{20} + \frac12\cdot\frac{1}{400} \\ &= \frac{1}{40} + \frac{1}{800} \\ &= \frac{20}{800} + \frac{1}{800} = \frac{21}{800}. \end{aligned}
    start man or woman hair multiply along the path person E₁: man G: grey 1/2 × 1/20 = 1/40 G′: not grey 1/2 × 19/20 E₂: woman G: grey 1/2 × 1/400 = 1/800 G′: not grey 1/2 × 399/400 1/2 1/20 19/20 1/2 1/400 399/400
    The tree for Question 3. A grey haired person comes from the man path (rose, 140\frac{1}{40}⁠) or from the woman path (green, 1800\frac{1}{800}⁠). The man path is 20 times as likely.
    A grey haired person is either a grey haired man or a grey haired woman, never both, so the two path probabilities add. The common denominator of 40 and 800 is 800.
    Multiply along a path, add the paths. Basics: tree diagrams
  4. Male, given grey hair: Bayes' theorem

    By Bayes' theorem,

    P(E1∣G)=P(E1)P(G∣E1)P(G)=20800÷21800=20800×80021=2021.\begin{aligned} P(E_1|G) &= \frac{P(E_1)P(G|E_1)}{P(G)} \\ &= \frac{20}{800} \div \frac{21}{800} \\ &= \frac{20}{800} \times \frac{800}{21} = \frac{20}{21}. \end{aligned}
    The top is the man path, 140=20800\frac{1}{40} = \frac{20}{800}⁠; the bottom is every path to grey hair, 21800\frac{21}{800}⁠. Out of every 21 grey haired people, on average 20 are men.
    Dividing by a fraction is multiplying by its flip. Basics: dividing by a fraction
  5. A quick sense check

    The woman route gets the rest: P(E2∣G)=1800÷21800=121P(E_2|G) = \frac{1}{800} \div \frac{21}{800} = \frac{1}{21}⁠, and 2021+121=1\frac{20}{21} + \frac{1}{21} = 1⁠. Before we saw the grey hair, the chance of a man was 12\frac12⁠; grey hair raises it to 2021≈0.952\frac{20}{21} \approx 0.952⁠.

    With equal numbers of men and women, the 12\frac12 factors cancel, so the answer depends only on the ratio 120:1400=20:1\frac{1}{20} : \frac{1}{400} = 20 : 1⁠. That gives 2020+1\frac{20}{20 + 1}⁠.
    P(E1∣G)+P(E2∣G)=1P(E_1|G) + P(E_2|G) = 1 for a partition. Lesson: Bayes' theorem
Result

The probability that the grey haired person is male is 2021\frac{20}{21}⁠. (Textbook answer: 2021\frac{20}{21}⁠.)

Check it with numbers

Picture 8000 people: 4000 men and 4000 women. Grey haired men: 0.05×4000=2000.05 \times 4000 = 200⁠. Grey haired women: 0.0025×4000=100.0025 \times 4000 = 10⁠. So 200+10=210200 + 10 = 210 people have grey hair, and 200 of them are men: 200210≈0.9524\frac{200}{210} \approx 0.9524⁠, the same as 2021≈0.9524\frac{20}{21} \approx 0.9524⁠.

Common mistakes
  1. Answering 5%. That is P(G∣E1)P(G|E_1)⁠, the chance that a man has grey hair. The question asks the reverse: the chance that a grey haired person is a man.
  2. Misreading 0.25%. It is 0.25100=1400\frac{0.25}{100} = \frac{1}{400}⁠, not 0.25=140.25 = \frac14 and not 25100\frac{25}{100}⁠.
  3. Leaving out P(E1)P(E_1) and P(E2)P(E_2)⁠. Here they are equal and cancel, but in general they change the answer; write them in.
What to take away
  1. "k%k\% of a group have a property" is a conditional probability, given that group.
  2. When the causes are equally likely, Bayes' theorem reduces to comparing P(G∣E1)P(G|E_1) with P(G∣E2)P(G|E_2)⁠: here 20 to 1, so 2021\frac{20}{21}⁠.
  3. Write every percentage as an exact fraction first; decimals inside fractions invite slips.

Every fact used, and where it comes from

FactUsed inSource
Partition of a sample spaceStep 1Section 13.5.1 (Lesson: Bayes' theorem)
k%=k100k\% = \frac{k}{100}Step 2Arithmetic (Basics: working with fractions)
Conditional probability P(G∣E)P(G|E)Step 2Section 13.2 (Lesson: conditional probability)
Theorem of total probabilityStep 3Section 13.5.2 (Lesson: Bayes' theorem)
Bayes' theoremSteps 4, 5Section 13.5 (Examples 15 to 21)
Dividing by a fractionSteps 4, 5Arithmetic (Basics: dividing by a fraction)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →