Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Bayes Theorem in Probability Explained Clearly

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon

Bayes Theorem formula derivation and how to solve questions



The concept of Bayes’ Theorem plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. It helps us update the probability of an event based on new information, making it extremely useful in fields like medicine, computer science, and statistics.


What Is Bayes’ Theorem?

A Bayes’ Theorem is a rule that shows how to revise the probability of a hypothesis or event when new evidence is available. It works by combining prior probability (what you believed before) with the likelihood of seeing the new data. You’ll find this concept applied in areas such as Probability, Statistics, and Conditional Probability.


Key Formula for Bayes’ Theorem

Here’s the standard formula: \( P(A|B) = \frac{P(B|A) \times P(A)}{P(B)} \)


Symbol Meaning
P(A|B) Probability of A, given B has occurred (posterior probability)
P(B|A) Probability of B given A is true (likelihood)
P(A) Probability of A (prior probability)
P(B) Probability of B (total probability of evidence)

Cross-Disciplinary Usage

Bayes’ Theorem is not only useful in Maths but also plays an important role in Physics, Computer Science, and daily logical reasoning. Students preparing for JEE or NEET will see its relevance in various questions, including in probability-based MCQs and real-life application scenarios.


Step-by-Step Illustration

Let’s solve a typical Bayes’ Theorem question to see how it works:

Example: Two boxes contain balls. Box 1 has 2 red and 3 blue balls. Box 2 has 4 red and 1 blue ball. A box is chosen at random and then a ball is picked, which turns out to be red. What is the probability that it came from Box 2?

1. Define events:
- A: Ball chosen is from Box 2
- B: Ball chosen is red

2. Find prior probability:
- P(A) = probability of choosing Box 2 = 1/2

3. Find conditional probability (likelihood):
- P(B|A) = P(red|Box 2) = 4 reds out of 5 balls = 4/5
- P(B|Box 1) = 2/5

4. Use law of total probability for denominator:
- P(B) = P(B|Box 1)×P(Box 1) + P(B|Box 2)×P(Box 2) = (2/5)×(1/2) + (4/5)×(1/2) = (1/5) + (2/5) = 3/5

5. Use Bayes’ formula:
- P(A|B) = [P(B|A) × P(A)] / P(B) = (4/5 × 1/2) / (3/5) = (4/10) / (3/5) = (2/5)/(3/5) = 2/3

6. Final answer: The probability is 2/3 that the red ball came from Box 2.

Speed Trick or Vedic Shortcut

Here’s a quick shortcut: If you have multiple events (like boxes, bags, etc.), always set up the probability table, plug values into the formula, and check if the denominator is the sum of all possible ways the evidence could occur, using the Law of Total Probability. This avoids common mistakes in competitive exams.


Example Tip: Draw a simple tree diagram or table to visualize the flow and always double-check numerator and denominator terms.


Try These Yourself

  • A coin is tossed. If it shows heads, a die is rolled. What is the probability that "1" is seen, given that the die was rolled?
  • If a test for a disease is 95% accurate and 1% of people have the disease, what is the probability someone actually has it if they test positive?
  • Write Bayes’ Theorem for three mutually exclusive events E1, E2, E3 leading to an event A.
  • Find P(B|A) = ? Given: P(A|B) = 0.8, P(B) = 0.4, P(A) = 0.5.

Frequent Errors and Misunderstandings

  • Mixing up P(A|B) with P(B|A); always check the direction in the formula.
  • Forgetting to use the Law of Total Probability for the denominator P(B) when multiple causes exist.
  • Assuming events are independent when the problem states otherwise.

Relation to Other Concepts

The idea of Bayes’ Theorem connects closely with concepts like Conditional Probability and the Law of Total Probability. Mastering this makes it easier to solve real-life problems and advanced questions in Probability and Statistics.


Classroom Tip

A quick way to remember Bayes’ Theorem is, "Reverse the given condition." If the question gives P(B|A), but you need P(A|B), use Bayes’ Theorem to “flip” the condition. Vedantu’s teachers often use visual aids and practice tables to make this easier during live classes.


We explored Bayes’ Theorem—from definition, formula, examples, to common errors and links to other topics. Continue practicing with Vedantu to become confident in using this theorem for both exams and real-world problems!


Internal Links for Deeper Learning

FAQs on Bayes Theorem in Probability Explained Clearly

1. What is Bayes' Theorem?

Bayes' Theorem is a probability formula that calculates the probability of an event based on prior knowledge of related conditions. It updates an initial belief (prior probability) after observing new evidence.

  • It connects conditional probability with prior information.
  • It is widely used in statistics, machine learning, and decision-making.
  • It answers: "What is the probability of A given that B has occurred?"

2. What is the formula for Bayes' Theorem?

The formula for Bayes' Theorem is P(A|B) = [P(B|A) × P(A)] / P(B).

  • P(A|B) = posterior probability
  • P(B|A) = likelihood
  • P(A) = prior probability
  • P(B) = total probability of B
This formula updates prior beliefs using new evidence.

3. How do you solve a problem using Bayes' Theorem step by step?

To solve using Bayes' Theorem, substitute known probabilities into the formula and simplify.

  • Step 1: Identify P(A), P(B|A), and P(B).
  • Step 2: Use the formula P(A|B) = [P(B|A) × P(A)] / P(B).
  • Step 3: Compute the numerator.
  • Step 4: Divide by P(B).
This gives the updated probability after considering new evidence.

4. Can you give a simple example of Bayes' Theorem?

A common example of Bayes' Theorem involves medical testing probabilities. Suppose:

  • P(Disease) = 0.01
  • P(Positive|Disease) = 0.99
  • P(Positive) = 0.05
Then:
P(Disease|Positive) = (0.99 × 0.01) / 0.05 = 0.0099 / 0.05 = 0.198.
The probability of having the disease given a positive test is 19.8%.

5. What is the difference between prior and posterior probability in Bayes' Theorem?

The prior probability is the initial belief before new evidence, while the posterior probability is the updated probability after applying Bayes' Theorem.

  • Prior (P(A)): initial assumption.
  • Posterior (P(A|B)): revised probability after observing B.
Bayesian inference is the process of moving from prior to posterior.

6. What is conditional probability in Bayes' Theorem?

Conditional probability is the probability of an event occurring given that another event has already occurred. It is written as P(A|B).

  • It measures how B affects the likelihood of A.
  • Bayes' Theorem is built on conditional probability rules.
  • Formula: P(A|B) = P(A ∩ B) / P(B), where P(B) ≠ 0.

7. Why is Bayes' Theorem important in probability and statistics?

Bayes' Theorem is important because it allows probabilities to be updated when new data becomes available.

  • Used in Bayesian statistics and inference.
  • Forms the basis of machine learning algorithms like Naïve Bayes.
  • Helps in decision-making under uncertainty.
It provides a mathematical way to revise beliefs logically.

8. How do you find P(B) in Bayes' Theorem?

In Bayes' Theorem, P(B) is found using the Law of Total Probability.

  • If A and A' are complementary events:
  • P(B) = P(B|A)P(A) + P(B|A')P(A')
This ensures the denominator accounts for all possible ways event B can occur.

9. What are common mistakes when using Bayes' Theorem?

Common mistakes in Bayes' Theorem involve incorrect identification of probabilities or forgetting total probability.

  • Confusing P(A|B) with P(B|A).
  • Using the wrong denominator instead of P(B).
  • Not calculating P(B) using all cases.
Carefully define events before substituting into the formula.

10. What is Bayes' Theorem used for in real life?

Bayes' Theorem is used in real life to update probabilities in situations involving uncertainty and new evidence.

  • Medical diagnosis and disease testing.
  • Spam filtering in email systems.
  • Risk analysis and financial forecasting.
  • Artificial intelligence and predictive modeling.
It provides a structured way to revise predictions based on data.