Conditional Probabilities and Weighted Trees
Pharmaceutical Study: Introductory Example
A pharmaceutical laboratory tested two treatments, Medication A () and Medication B (), on a study sample of patients suffering from a specific disease.
Results of the study are summarized in the following contingency table:
| Status | Medication A | Medication B | Total |
|---|---|---|---|
| Cured () | |||
| Not cured () | |||
| Total |
Probabilities calculated across the entire patient sample ( patients):
- Event : "The patient received Medication A."
- Event : "The patient is cured."
- Probability that a patient received Medication A:
- Probability that a patient is cured:
- Probability that a patient is cured AND was treated with Medication A:
- Probability that a patient is NOT cured AND was treated with Medication A:
Conditional probabilities calculated within specific sub-groups:
- Choosing a cured patient at random ( patients total):
- Probability that the patient took Medication A given that they are cured:
- Choosing a patient treated with Medication B at random ( patients total):
- Probability that the patient is cured given that they took Medication B:
Definition of Conditional Probability
Verbatim Definition: The conditional probability of given is the probability that event occurs given that event has occurred.
Notation:
General Formula: where .
Weighted Trees and Rules of Calculation
- Experimental Setup (Ball Extraction Model):
- A bag contains total balls:
- red balls ()
- black balls ()
- Each ball is inscribed with either "Gagné" (Won, ) or "Perdu" (Lost, ).
- Distribution of inscriptions:
- Among the red balls, are marked "Gagné".
- Among the black balls, are marked "Gagné".
- Events:
- : "Draw a red ball"
- : "Draw a black ball"
- : "Draw a ball marked Gagné"
- : "Draw a red ball marked Gagné"


Rule 1 (Sum of Probabilities at a Node):
- Statement: From a single node, the sum of the probabilities of all outgoing branches is equal to .
- Application to initial ball selection node:
Rule 2 (Probability of a Path):
- Statement: To calculate the probability of a path, multiply the probabilities of the individual branches along that path.
- Application for path leading to :
- Conditional probability of winning given a red ball:
- Path probability calculation:
- Application for path leading to :
- Conditional probability of winning given a black ball:
- Path probability calculation:
Rule 3 (Law of Total Probability / Formule des probabilités totales):
- Statement: The probability of an event associated with multiple paths in a probability tree is equal to the sum of the probabilities of each of those individual paths.
- Calculation for the event "Drawing a winning ball" ():
- Event is composed of the disjoint paths and
Practical Application: Medical Testing in Cattle
Problem Context (BAC S, Antilles-Guyane 2010):
- An epidemic affects cattle. If diagnosed early, the animal can be cured; otherwise, the disease is fatal.
- A diagnostic test is evaluated on a sample population where of animals carry the disease.
- Test diagnostic performance metrics:
- Given an animal carries the disease, the test is positive in of cases ().
- Given an animal is healthy (non-carrier), the test is negative in of cases ().
- Event definitions:
- : "Be a carrier of the disease"
- : "Have a positive test result"
Question 1: Constructing the Weighted Probability Tree
- Initial event probabilities:
- Conditional probabilities given disease carrier status :
- Conditional probabilities given healthy status :

Question 2: Overall Probability of a Positive Test Result
- An animal chosen at random tests positive via two distinct path intersections: and
- Calculating branch path probabilities using Rule 2:
- Applying Rule 3 (Law of Total Probability):
- Conclusion: The probability that a randomly selected animal tests positive is
Question 3: Probability of Being Diseased Given a Positive Test
- Formula for conditional probability:
- Substituting calculated numerical values:
- Diagnostic Evaluation: The probability that a cattle beast is actually diseased given that its test returned positive is approximately . Despite relatively high test sensitivity () and high specificity (), the low disease prevalence () leads to a high frequency of false positives relative to true positives. Consequently, a positive test result alone is not definitive proof of illness.