Conditional Probabilities and Weighted Trees

Pharmaceutical Study: Introductory Example

  • A pharmaceutical laboratory tested two treatments, Medication A (AA) and Medication B (BB), on a study sample of 800800 patients suffering from a specific disease.

  • Results of the study are summarized in the following contingency table:

StatusMedication AMedication BTotal
Cured (GG)383383291291674674
Not cured (G‾\overline{G})72725454126126
Total455455345345800800
  • Probabilities calculated across the entire patient sample (800800 patients):

    • Event AA: "The patient received Medication A."
    • Event GG: "The patient is cured."
    • Probability that a patient received Medication A:     P(A)=455800≈0,57=57%P(A) = \frac{455}{800} \approx 0,57 = 57\%
    • Probability that a patient is cured:     P(G)=674800≈0,84=84%P(G) = \frac{674}{800} \approx 0,84 = 84\%
    • Probability that a patient is cured AND was treated with Medication A:     P(G∩A)=383800≈0,48=48%P(G \cap A) = \frac{383}{800} \approx 0,48 = 48\%
    • Probability that a patient is NOT cured AND was treated with Medication A:     P(G‾∩A)=72800=0,09=9%P(\overline{G} \cap A) = \frac{72}{800} = 0,09 = 9\%
  • Conditional probabilities calculated within specific sub-groups:

    • Choosing a cured patient at random (674674 patients total):
    • Probability that the patient took Medication A given that they are cured:       PG(A)=383674≈0,57=57%P_G(A) = \frac{383}{674} \approx 0,57 = 57\%
    • Choosing a patient treated with Medication B at random (345345 patients total):
    • Probability that the patient is cured given that they took Medication B:       PB(G)=291345≈0,84=84%P_B(G) = \frac{291}{345} \approx 0,84 = 84\%

Definition of Conditional Probability

  • Verbatim Definition: The conditional probability of BB given AA is the probability that event BB occurs given that event AA has occurred.

  • Notation: PA(B)P_A(B)

  • General Formula:   PA(B)=P(A∩B)P(A)P_A(B) = \frac{P(A \cap B)}{P(A)}   where P(A)≠0P(A) \neq 0.

Weighted Trees and Rules of Calculation

  • Experimental Setup (Ball Extraction Model):
    • A bag contains 5050 total balls:
    • 2020 red balls (RR)
    • 3030 black balls (R‾\overline{R})
    • Each ball is inscribed with either "Gagné" (Won, GG) or "Perdu" (Lost, G‾\overline{G}).
    • Distribution of inscriptions:
    • Among the 2020 red balls, 1515 are marked "Gagné".
    • Among the 3030 black balls, 99 are marked "Gagné".
    • Events:
    • RR: "Draw a red ball"
    • R‾\overline{R}: "Draw a black ball"
    • GG: "Draw a ball marked Gagné"
    • R∩GR \cap G: "Draw a red ball marked Gagné"

Visual representation of 50 balls with red and black groupings and Gagné labels

Weighted probability tree for drawing red or black balls and winning or losing

  • 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 11.
    • Application to initial ball selection node:     P(R)=2050=25=0,4P(R) = \frac{20}{50} = \frac{2}{5} = 0,40,4+P(R‾)=10,4 + P(\overline{R}) = 1P(R‾)=1−0,4=0,6P(\overline{R}) = 1 - 0,4 = 0,6
  • 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 R∩GR \cap G:
    • Conditional probability of winning given a red ball:       PR(G)=1520=0,75P_R(G) = \frac{15}{20} = 0,75
    • Path probability calculation:       P(R∩G)=P(R)×PR(G)=0,4×0,75=0,3P(R \cap G) = P(R) \times P_R(G) = 0,4 \times 0,75 = 0,3
    • Application for path leading to R‾∩G\overline{R} \cap G:
    • Conditional probability of winning given a black ball:       PR‾(G)=930=0,3P_{\overline{R}}(G) = \frac{9}{30} = 0,3
    • Path probability calculation:       P(R‾∩G)=P(R‾)×PR‾(G)=0,6×0,3=0,18P(\overline{R} \cap G) = P(\overline{R}) \times P_{\overline{R}}(G) = 0,6 \times 0,3 = 0,18
  • 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" (GG):
    • Event GG is composed of the disjoint paths R∩GR \cap G and R‾∩G\overline{R} \cap GP(G)=P(R∩G)+P(R‾∩G)P(G) = P(R \cap G) + P(\overline{R} \cap G)P(G)=0,3+0,18=0,48P(G) = 0,3 + 0,18 = 0,48

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 2%2\% of animals carry the disease.
    • Test diagnostic performance metrics:
    • Given an animal carries the disease, the test is positive in 85%85\% of cases (PM(T)=0,85P_M(T) = 0,85).
    • Given an animal is healthy (non-carrier), the test is negative in 95%95\% of cases (PM‾(T‾)=0,95P_{\overline{M}}(\overline{T}) = 0,95).
    • Event definitions:
    • MM: "Be a carrier of the disease"
    • TT: "Have a positive test result"
  • Question 1: Constructing the Weighted Probability Tree

    • Initial event probabilities:     P(M)=0,02P(M) = 0,02P(M‾)=1−0,02=0,98P(\overline{M}) = 1 - 0,02 = 0,98
    • Conditional probabilities given disease carrier status MM:     PM(T)=0,85P_M(T) = 0,85PM(T‾)=1−0,85=0,15P_M(\overline{T}) = 1 - 0,85 = 0,15
    • Conditional probabilities given healthy status M‾\overline{M}:     PM‾(T‾)=0,95P_{\overline{M}}(\overline{T}) = 0,95PM‾(T)=1−0,95=0,05P_{\overline{M}}(T) = 1 - 0,95 = 0,05

Weighted probability tree for bovine disease testing

  • Question 2: Overall Probability of a Positive Test Result

    • An animal chosen at random tests positive via two distinct path intersections: M∩TM \cap T and M‾∩T\overline{M} \cap T
    • Calculating branch path probabilities using Rule 2:     P(M∩T)=P(M)×PM(T)=0,02×0,85=0,017P(M \cap T) = P(M) \times P_M(T) = 0,02 \times 0,85 = 0,017P(M‾∩T)=P(M‾)×PM‾(T)=0,98×0,05=0,049P(\overline{M} \cap T) = P(\overline{M}) \times P_{\overline{M}}(T) = 0,98 \times 0,05 = 0,049
    • Applying Rule 3 (Law of Total Probability):     P(T)=P(M∩T)+P(M‾∩T)P(T) = P(M \cap T) + P(\overline{M} \cap T)P(T)=0,017+0,049=0,066P(T) = 0,017 + 0,049 = 0,066
    • Conclusion: The probability that a randomly selected animal tests positive is 6,6%6,6\%
  • Question 3: Probability of Being Diseased Given a Positive Test

    • Formula for conditional probability:     PT(M)=P(T∩M)P(T)P_T(M) = \frac{P(T \cap M)}{P(T)}
    • Substituting calculated numerical values:     PT(M)=0,02×0,850,066=0,0170,066≈0,26P_T(M) = \frac{0,02 \times 0,85}{0,066} = \frac{0,017}{0,066} \approx 0,26
    • Diagnostic Evaluation:     The probability that a cattle beast is actually diseased given that its test returned positive is approximately 26%26\%.     Despite relatively high test sensitivity (85%85\%) and high specificity (95%95\%), the low disease prevalence (2%2\%) leads to a high frequency of false positives relative to true positives. Consequently, a positive test result alone is not definitive proof of illness.