Miscellaneous · Q3: Grey hair: the person selected is male,
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.
Let : the person selected is male, : the person selected is female, and : the person has grey hair.
and form a partition of the sample space (each person is either male or female).
As there are equal numbers of males and females, .
By the theorem of total probability,
By Bayes' theorem,
The probability that the grey haired person is male is .
Want the reason behind every step, the basics and the checks?
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 . Bayes' theorem turns this reasoning into a calculation.
- 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: .
- Plan
- (1) Name the events; check the partition. (2) Turn the percentages into fractions. (3) Total probability for . (4) Bayes' theorem. (5) Sense check.
Basics you need
means : and . Basics: working with fractions
"5% of men have grey hair" is a statement about men only: . Lesson: conditional probability
For a partition : and . Lesson: Bayes' theorem
Multiply along each path; add the paths that end in grey hair. Basics: tree diagrams
Solution
Name the events
Let
- : the person selected is male;
- : the person selected is female;
- : the person selected has grey hair.
and 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' theoremThe four probabilities, as fractions
Equal numbers of males and females give
The percentages are conditional probabilities:
"5% of men" is 5 out of every 100 men, so it is a probability given , not . For 0.25%, multiply the top and bottom of by 100 to clear the decimal: , and then divide both by 25.The chance of grey hair: total probability
Since and form a partition, by the theorem of total probability
The tree for Question 3. A grey haired person comes from the man path (rose, ) or from the woman path (green, ). 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 diagramsMale, given grey hair: Bayes' theorem
By Bayes' theorem,
The top is the man path, ; the bottom is every path to grey hair, . 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 fractionA quick sense check
The woman route gets the rest: , and . Before we saw the grey hair, the chance of a man was ; grey hair raises it to .
With equal numbers of men and women, the factors cancel, so the answer depends only on the ratio . That gives .for a partition. Lesson: Bayes' theorem
The probability that the grey haired person is male is . (Textbook answer: .)
Picture 8000 people: 4000 men and 4000 women. Grey haired men: . Grey haired women: . So people have grey hair, and 200 of them are men: , the same as .
- Answering 5%. That is , the chance that a man has grey hair. The question asks the reverse: the chance that a grey haired person is a man.
- Misreading 0.25%. It is , not and not .
- Leaving out and . Here they are equal and cancel, but in general they change the answer; write them in.
- " of a group have a property" is a conditional probability, given that group.
- When the causes are equally likely, Bayes' theorem reduces to comparing with : here 20 to 1, so .
- Write every percentage as an exact fraction first; decimals inside fractions invite slips.
Every fact used, and where it comes from
| Fact | Used in | Source |
|---|---|---|
| Partition of a sample space | Step 1 | Section 13.5.1 (Lesson: Bayes' theorem) |
| Step 2 | Arithmetic (Basics: working with fractions) | |
| Conditional probability | Step 2 | Section 13.2 (Lesson: conditional probability) |
| Theorem of total probability | Step 3 | Section 13.5.2 (Lesson: Bayes' theorem) |
| Bayes' theorem | Steps 4, 5 | Section 13.5 (Examples 15 to 21) |
| Dividing by a fraction | Steps 4, 5 | Arithmetic (Basics: dividing by a fraction) |
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 →