Exercise 13.3 · Q3: Hostel or day scholar: the A-grade student lives in the hostel,
Of the students in a college, it is known that 60% reside in hostel and 40% are day scholars (not residing in hostel). Previous year results report that 30% of all students who reside in hostel attain A grade and 20% of day scholars attain A grade in their annual examination. At the end of the year, one student is chosen at random from the college and he has an A grade, what is the probability that the student is a hostlier?
(The book prints "hostlier", a misprint for "hosteller": a student who resides in the hostel.)
Let : the student resides in the hostel, : the student is a day scholar, and : the student attains A grade.
and form a partition of the sample space (each student is one or the other).
and
and
By the theorem of total probability,
By Bayes' theorem,
The probability that the student is a hosteller is .
Want the reason behind every step, the basics and the checks?
The A grade is the result we see; living in the hostel or not is the hidden cause. Bayes' theorem compares the two routes to an A grade: hostellers are more numerous and more likely to get an A, so most A grades come through the hostel. The share of the hostel route in all A grades is the answer.
- Given
- 60% of students live in the hostel and 40% are day scholars; 30% of hostellers and 20% of day scholars get an A grade. A student chosen at random has an A grade.
- To find
- The probability that this student lives in the hostel: .
- Plan
- (1) Name the events; check the partition. (2) Turn every percentage into a fraction. (3) Total probability for . (4) Bayes' theorem for .
Basics you need
"60% of the students" chosen at random gives probability ; simplify the fraction. Basics: classical probability
It describes only the students who live in the hostel, so it is , not . Lesson: conditional probability
For a partition : is the sum of the paths , and is the path divided by . Lesson: Bayes' theorem
Branch first by the cause, then by the result; multiply along a path. Basics: tree diagrams
Solution
Name the events
Let
- : the student chosen resides in the hostel;
- : the student chosen is a day scholar;
- : the student chosen attains A grade.
and form a partition of the sample space (all students of the college): every student is either a hosteller or a day scholar, not both, and both groups are nonempty.
The two groups do not overlap because the book defines day scholars as students "not residing in hostel"; for the same reason every student is in one of them, and indeed . Both shares are nonzero. That is exactly the partition Bayes' theorem needs.Partition: pairwise disjoint, exhaustive, nonzero probabilities (Section 13.5.1). Lesson: Bayes' theoremPercentages into fractions
The student is chosen at random, so the share of a group is the probability of belonging to it. "30% of all students who reside in hostel attain A grade" speaks only of hostellers, so it is the chance of an A grade given . Fractions keep the arithmetic exact.The chance of an A grade overall
Since and form a partition, by the theorem of total probability
The tree for Question 3. The rose path (hostel, then A grade) has product ; the green path (day scholar, then A grade) has . Together, . An A-grade student is either a hosteller with an A or a day scholar with an A. Each route is a path on the tree; multiply along it, then add. Writing as gives a common denominator.Multiply along a path, add the paths. Basics: tree diagramsFrom the A grade back to the hostel: Bayes' theorem
By Bayes' theorem,
The top is the hostel path alone, ; the bottom is all A-grade paths, . Their ratio is the share of A-grade students who live in the hostel. The 50s cancel.Dividing by a fraction is multiplying by its flip. Basics: dividing by a fractionA quick sense check
For a day scholar, , and . An A grade raises the chance of "hosteller" from (about 0.6) to (about 0.69), because hostellers get A grades more often.
Given the A grade, the student is certainly one of the two kinds, so the two updated probabilities must add to 1.for a partition. Lesson: Bayes' theorem
The probability that the A-grade student is a hosteller is . (Textbook answer: .)
Picture 100 students. 60 live in the hostel and of them, 18, get an A; 40 are day scholars and of them, 8, get an A. So students have an A grade, and 18 of them are hostellers: , the same as .
- Answering . That is , the chance of an A for a hosteller. The question asks for , the chance of being a hosteller for an A-grade student.
- Using 30% as . 30% is a share of the hostellers only; the joint probability is .
- Mixing percentages and fractions in one line. Convert everything first, then compute with fractions.
- Stopping at . That is only the bottom of Bayes' formula.
- " of group have property " means : a conditional probability.
- Imagining 100 (or 1000) people turns a Bayes question into counting, and it is a quick check of the answer.
- The two-bag version of the same steps is Question 2; the next one, Question 4, has a cause that makes the result certain.
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) |
| Shares as probabilities, | Step 2 | Classical probability, Class XI (Basics: classical probability) |
| 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; Example 19 uses it with percentages (Examples 15 to 21) |
| Dividing by a fraction | Step 4 | 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 →