All solutions
MathsJEE Main

Bayes' Theorem: Conditional Probability with Priors and Likelihood

Master Bayes' Theorem for conditional probability. Learn how to update beliefs using prior probabilities and likelihoods with this JEE Main level explanation.

4 min readPublished 4 June 2026
Probabilitypartition of sample space

Concept Overview

This question tests the application of Bayes' Theorem, a fundamental concept in probability theory that allows us to update the probability of a hypothesis based on new evidence. It's particularly useful when we have prior beliefs about an event and want to calculate the posterior probability after observing some data. The theorem elegantly relates conditional probabilities and is crucial for understanding how to incorporate likelihoods and prior distributions.

Step 1: Understand Bayes' Theorem Bayes' Theorem provides a way to calculate a conditional probability P(AB)P(A|B) given the probabilities P(BA)P(B|A), P(A)P(A), and P(B)P(B). The formula is:

P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}

Here, P(A)P(A) is the prior probability of event A, P(BA)P(B|A) is the likelihood of observing event B given that A has occurred, P(BAc)P(B|A^c) is the likelihood of observing event B given that A has not occurred, and P(B)P(B) is the total probability of event B. P(AB)P(A|B) is the posterior probability of A given B.

Step 2: Express the denominator P(B)P(B) using the Law of Total Probability The probability of event B, P(B)P(B), can be expanded using the law of total probability. If we have a partition of the sample space (e.g., events A and AcA^c, where AcA^c is the complement of A), then P(B)P(B) can be written as:

P(B)=P(BA)P(A)+P(BAc)P(Ac)P(B) = P(B|A) \cdot P(A) + P(B|A^c) \cdot P(A^c)

This step is crucial because often P(B)P(B) is not directly given and must be calculated from the conditional probabilities and prior probabilities of the events in the partition.

Step 3: Substitute the expression for P(B)P(B) into Bayes' Theorem By substituting the expanded form of P(B)P(B) from Step 2 into the Bayes' Theorem formula from Step 1, we get the most commonly used form for problems involving a binary partition (like A and AcA^c):

P(AB)=P(BA)P(A)P(BA)P(A)+P(BAc)P(Ac)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B|A) \cdot P(A) + P(B|A^c) \cdot P(A^c)}

This form directly uses the prior probabilities P(A)P(A) and P(Ac)P(A^c) and the likelihoods P(BA)P(B|A) and P(BAc)P(B|A^c) to find the posterior probability P(AB)P(A|B).

Step 4: Identify the given probabilities in a problem When solving a problem, carefully identify what each given probability represents:

  • Prior Probability (P(A)P(A)): The initial belief in event A before any new evidence is considered.
  • Likelihood (P(BA)P(B|A)): The probability of observing the evidence (event B) given that the hypothesis (event A) is true.
  • Complementary Prior (P(Ac)P(A^c)): The probability that event A does not occur, which is 1P(A)1 - P(A).
  • Complementary Likelihood (P(BAc)P(B|A^c)): The probability of observing the evidence (event B) given that the hypothesis (event A) is false.

Step 5: Calculate the posterior probability Plug the identified values into the formula derived in Step 3 and perform the arithmetic calculation to find the posterior probability P(AB)P(A|B). This value represents the updated belief in event A after considering the evidence B.

Let's consider a hypothetical example: Suppose a factory produces items, and 1% are defective (event A). A new testing machine (event B) correctly identifies 95% of defective items (likelihood P(BA)=0.95P(B|A) = 0.95) but also incorrectly flags 2% of non-defective items as defective (likelihood P(BAc)=0.02P(B|A^c) = 0.02). If an item is flagged as defective by the machine, what is the probability it is actually defective?

Here, P(A)=0.01P(A) = 0.01 (prior probability of being defective). P(Ac)=1P(A)=10.01=0.99P(A^c) = 1 - P(A) = 1 - 0.01 = 0.99 (prior probability of not being defective). P(BA)=0.95P(B|A) = 0.95 (likelihood of machine flagging a defective item). P(BAc)=0.02P(B|A^c) = 0.02 (likelihood of machine flagging a non-defective item).

Using the formula from Step 3:

P(AB)=0.950.01(0.950.01)+(0.020.99)P(A|B) = \frac{0.95 \cdot 0.01}{(0.95 \cdot 0.01) + (0.02 \cdot 0.99)} P(AB)=0.00950.0095+0.0198P(A|B) = \frac{0.0095}{0.0095 + 0.0198} P(AB)=0.00950.02930.3242P(A|B) = \frac{0.0095}{0.0293} \approx 0.3242

So, even though the machine flags an item, there's only about a 32.42% chance it's actually defective, due to the low prior probability of defects and the machine's false positive rate.

Key Takeaways:

  • Bayes' Theorem updates prior probabilities into posterior probabilities using new evidence (likelihoods).
  • The Law of Total Probability is essential for calculating the probability of the evidence, P(B)P(B), when it's not directly given.
  • Carefully identify prior probabilities (P(A)P(A)) and likelihoods (P(BA)P(B|A), P(BAc)P(B|A^c)) from the problem statement.
  • The formula P(AB)=P(BA)P(A)P(BA)P(A)+P(BAc)P(Ac)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B|A) \cdot P(A) + P(B|A^c) \cdot P(A^c)} is a practical form for binary hypotheses.

Answer: The application of Bayes' Theorem involves updating prior beliefs with observed evidence using the formula P(AB)=P(BA)P(A)P(B)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}, where P(B)P(B) is often expanded using the Law of Total Probability.

More Maths solutions

Still stuck after reading this?

Ask JEE Genius — the AI tutor walks through every step and cites the exact past-paper source.

Open the chat →