Miscellaneous · Q7: Heart attack: the patient followed meditation and yoga,
Assume that the chances of a patient having a heart attack is 40%. It is also assumed that a meditation and yoga course reduce the risk of heart attack by 30% and prescription of certain drug reduces its chances by 25%. At a time a patient can choose any one of the two options with equal probabilities. It is given that after going through one of the two options the patient selected at random suffers a heart attack. Find the probability that the patient followed a course of meditation and yoga?
Let : the patient followed the course of meditation and yoga, : the patient took the drug, and : the patient suffers a heart attack.
and form a partition of the sample space (each patient chooses exactly one of the two options).
The risk of a heart attack is . The course reduces it by 30%, so
The drug reduces it by 25%, so
By the theorem of total probability,
By Bayes' theorem,
The probability that the patient followed the course of meditation and yoga is .
Want the reason behind every step, the basics and the checks?
First turn "reduces the risk by 30%" into a probability: 30% of the 40% risk is removed, leaving 28%; the drug leaves 30%. A heart attack after the yoga course is therefore a little less likely than after the drug, so seeing a heart attack makes "yoga" a little less likely than . Bayes' theorem gives the exact value, .
- Given
- The risk of a heart attack is 40%. Meditation and yoga cut the risk by 30%; the drug cuts it by 25%. Each patient chooses one option, each with probability . The patient selected had a heart attack.
- To find
- P(the patient followed meditation and yoga | heart attack) .
- Plan
- (1) Name the events; check the partition. (2) Work out the reduced risks and . (3) Total probability for . (4) Bayes' theorem. (5) Sense check.
Basics you need
Reducing an amount by 30% leaves of it. So a 40% risk reduced by 30% is . Basics: working with fractions
The reduced risk is a probability given the option: for yoga, for the drug. Lesson: conditional probability
and . Lesson: Bayes' theorem
Branch on the option, then on heart attack or not; multiply along each path. Basics: tree diagrams
Solution
Name the events
Let
- : the patient followed the course of meditation and yoga;
- : the patient took the prescribed drug;
- : the patient suffers a heart attack.
and form a partition of the sample space: the question says each patient goes through one of the two options, and they are chosen with equal probabilities, so
The option chosen is the cause; the heart attack is what we observe. Note that "no option" is not a case here: every patient goes through one of the two.Partition of a sample space (Section 13.5.1). Lesson: Bayes' theoremThe reduced risks
The risk without either option is . "Reduces the risk by 30%" means 30% of that risk is removed, so 70% of it remains:
In the same way the drug leaves 75% of the risk:
A reduction "by 30%" is 30% of the original amount: 30% of 40% is 12%, and . It is not 30 percentage points (that would leave ); the textbook's answer confirms the first reading.Taking a percentage of an amount. Basics: working with fractionsThe chance of a heart attack: total probability
Since and form a partition, by the theorem of total probability
The tree for Question 7. A heart attack comes from the yoga path (rose, ) or from the drug path (green, ); together . A patient who has a heart attack followed exactly one of the two options, so the two path probabilities add.Multiply along a path, add the paths. Basics: tree diagramsYoga, given a heart attack: Bayes' theorem
By Bayes' theorem,
The top is the yoga path; the bottom is both paths to a heart attack. 14 and 29 have no common factor (29 is prime), so is in lowest terms.Dividing by a fraction is multiplying by its flip. Basics: dividing by a fractionA quick sense check
The drug route gets the rest: , and . Since yoga lowers the risk more than the drug does, a heart attack points slightly away from yoga: , just under .
With equal chances for the two options, the answer is the ratio of the two risks, , so . The 40% base risk cancels, because both reduced risks are multiples of it: .for a partition. Lesson: Bayes' theorem
The probability that the patient followed the course of meditation and yoga, given the heart attack, is . (Textbook answer: .)
Picture 200 patients: 100 follow yoga and 100 take the drug. Heart attacks: after yoga and after the drug, so in all. Of these, 28 followed yoga: , the same as .
- Subtracting the percentages. and treat "by 30%" as 30 percentage points; that gives , not the book's answer.
- Using 30% and 25% as and . Those are the reductions, not the risks that remain.
- Answering . That is before we know about the heart attack.
- "Reduces by " multiplies by .
- An option that makes the outcome less likely becomes less likely once the outcome is seen.
- With equally likely causes, Bayes' theorem compares with directly.
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) |
| Reducing by multiplies by | 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) |
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 →