Examples Of Conditional Probability With Solution

Author sampleletters
7 min read

Conditional probability is a fundamental concept in statistics and probability theory that quantifies the likelihood of an event occurring given that another event has already happened. It moves beyond simple probability by incorporating prior knowledge, allowing us to update our predictions in real-world scenarios where events are interconnected. Mastering conditional probability is essential for fields ranging from data science and medical diagnostics to finance and everyday decision-making. This article provides a clear definition, the core formula, and walks through several detailed, practical examples with complete solutions to solidify your understanding.

Understanding the Core Formula

The conditional probability of event A occurring given that event B has occurred is denoted as P(A|B), read as "the probability of A given B." The formula is:

P(A|B) = P(A ∩ B) / P(B)

Where:

  • P(A ∩ B) is the probability of both events A and B happening together (the intersection).
  • P(B) is the probability of event B happening, and it must be greater than zero (P(B) > 0).

This formula essentially restricts our sample space to only those outcomes where B is true. We then ask: within this new, smaller space, how likely is A?


Example 1: Medical Testing (False Positives/Negatives)

Scenario: A certain disease affects 1% of a population. A test for this disease is 99% accurate: it correctly identifies 99% of people who have the disease (sensitivity) and correctly identifies 99% of people who do not have the disease (specificity). If a randomly selected person tests positive, what is the probability they actually have the disease?

Solution: This classic problem highlights the difference between the probability of a positive test given you have the disease and the probability you have the disease given a positive test.

  1. Define Events:
    • D = Person has the disease.
    • T+ = Person tests positive.
  2. Assign Probabilities:
    • P(D) = 0.01 (1% prevalence)
    • P(Not D) = 0.99
    • P(T+|D) = 0.99 (True positive rate)
    • P(T-|Not D) = 0.99 (True negative rate) → Therefore, P(T+|Not D) = 0.01 (False positive rate)
  3. Find P(D|T+). We need P(D ∩ T+) and P(T+).
    • P(D ∩ T+): This is the probability of having the disease AND testing positive. P(D ∩ T+) = P(D) * P(T+|D) = 0.01 * 0.99 = 0.0099.
    • P(T+): This can happen in two ways: a true positive (D and T+) or a false positive (Not D and T+).
      • P(Not D ∩ T+) = P(Not D) * P(T+|Not D) = 0.99 * 0.01 = 0.0099.
      • So, P(T+) = P(D ∩ T+) + P(Not D ∩ T+) = 0.0099 + 0.0099 = 0.0198.
  4. Apply the Formula: P(D|T+) = P(D ∩ T+) / P(T+) = 0.0099 / 0.0198 ≈ 0.5 or 50%.

Interpretation: Despite the test being 99% accurate, if you test positive, there's only a 50% chance you actually have the disease. This counterintuitive result occurs because the disease is rare (1% prevalence), so the number of false positives from the large healthy population (99% of people) can rival the number of true positives from the small diseased group.


Example 2: Drawing Cards Without Replacement

Scenario: You draw two cards successively without replacement from a standard deck of 52 cards. What is the probability that the second card drawn is an Ace, given that the first card drawn was a King?

Solution: The key phrase is "without replacement," meaning the first draw changes the composition of the deck for the second draw, making the events dependent.

  1. Define Events:
    • A2 = Second card is an Ace.
    • K1 = First card is a King.
  2. We need P(A2|K1). Using the formula: P(A2|K1) = P(A2 ∩ K1) / P(K1).
    • P(K1): Probability first card is a King = 4/52 = 1/13.
    • P(A2 ∩ K1): Probability first is a King AND second is an Ace.
      • For the first draw (King): 4 favorable outcomes out of 52.
      • For the second draw (Ace): After a King is removed, 51 cards remain, all 4 Aces are still in the deck. So 4 favorable outcomes out of 51.
      • P(A2 ∩ K1) = (4/52) * (4/51) = 16 / 2652.
  3. Apply the Formula: P(A2|K1) = (16 / 2652) / (4 / 52) = (16 / 2652) * (52 / 4) = (16 * 52) / (2652 * 4) = 832 / 10608. Simplify: Divide numerator and denominator by 16 → 52 / 663. This is approximately 0.0784.
  4. Simpler Logical Approach: Given the first card was a King, we know one King is gone. The deck now has 51 cards. How many Aces are left? Still 4. So, P(A2|K1) = 4/51. This matches our calculated fraction (4/51 = 52/663). The formula confirms the intuitive result.

Key Insight: The condition "first card was a King" provides specific information that directly alters the sample space for the second event.


Example 3: Weather and Commute

Scenario: The probability it rains on a given day is 0.3. If it rains, the probability you are late for work is 0.8. If

Continuing from the weather scenario:

Solution:

  1. Define Events:
    • R = It rains.
    • L = You are late for work.
  2. Given Probabilities:
    • P(R) = 0.3 (so P(Not R) = 0.7).
    • P(L|R) = 0.8.
    • P(L|Not R) = 0.1 (assumed for this example; a typical value for "late due to other reasons").
  3. We need P(R|L): The probability it rained given you are late.
    • First, find the total probability of being late, P(L), using the Law of Total Probability: P(L) = P(L|R) * P(R) + P(L|Not R) * P(Not R) P(L) = (0.8 * 0.3) + (0.1 * 0.7) = 0.24 + 0.07 = 0.31.
    • Now apply Bayes' theorem / the conditional formula: P(R|L) = [P(L|R) * P(R)] / P(L) = 0.24 / 0.31 ≈ 0.774 or 77.4%.
  4. Interpretation: Although rain is only moderately likely (30%), being late dramatically increases the chance of rain to over 75%. This is because rain is a much more powerful cause of lateness than other factors (80% vs. 10% chance). The evidence ("I am late") strongly updates our belief about the weather.

Conclusion

These three examples illustrate the core power and subtlety of conditional probability. It is not merely an abstract formula but a fundamental tool for updating rational beliefs in light of new evidence. In Example 1, we saw how a highly accurate test can still yield a surprising posterior probability when the base rate (prevalence) is low—a critical insight for medical diagnostics and screening programs that warns against base rate neglect. Example 2 demonstrated how a condition directly alters the sample space, revealing dependence between sequential events, a principle essential for card games, reliability engineering, and any process without replacement. Finally, Example 3 showed how conditional reasoning quantifies the strength of evidence, allowing us to weigh competing causes (rain vs. other delays) to determine the most likely explanation for an observation.

Mastering conditional probability, therefore, equips us to navigate an uncertain world more effectively. It underpins Bayesian inference, machine learning algorithms, risk

assessment, and everyday decision-making. It forces us to ask the right question: not "How probable is the evidence?" but "How probable is the hypothesis given the evidence?" This inversion of perspective is the engine of learning from data.

In an era saturated with information—from diagnostic tests and predictive algorithms to weather forecasts and economic indicators—the disciplined application of conditional probability is what separates superstition from evidence-based reasoning. It reminds us that intuition often misjudges the impact of new data, and that rigorous calculation can correct these biases. Whether evaluating the credibility of a positive test result, strategizing in a game of cards, or inferring the cause of an observed event, the principles demonstrated in these examples provide a universal framework for rational updating.

Ultimately, conditional probability is more than a mathematical technique; it is a cornerstone of probabilistic intelligence. By mastering it, we cultivate the ability to think clearly under uncertainty, to weigh evidence judiciously, and to make better decisions in a world where absolute certainty is rare, but informed belief is indispensable.

More to Read

Latest Posts

You Might Like

Related Posts

Thank you for reading about Examples Of Conditional Probability With Solution. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home