Civil Engineering (CE) Exam  >  Civil Engineering (CE) Notes  >  Engineering Mathematics  >  Bayes’s Theorem for Conditional Probability

Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE) PDF Download

Bayes’s formula

Below is Bayes’s formula.
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)
The formula provides the relationship between P(A|B) and P(B|A). It is mainly derived from conditional probability formula
Consider the below formulas for conditional probabilities P(A | B) and P(B | A)
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)—(1)
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)—(2)
Since P(B ∩ A) = P(A ∩ B), we can replace P(A ∩ B) in the first formula with P(B | A)P(A)
After replacing, we get the given formula.

Product Rule

Product rule states that
P(X ∩ Y) = P(X | Y) * P(Y)
So the joint probability that both X and Y will occur is equal to the product of two terms:
From the product rule:
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)implies P(X | Y) = P(X) / P(Y)
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)implies P(X | Y) = 1

Chain rule

When the above product rule is generalized we lead to chain rule. Let there are E1, E2, E3, .....En n events . Then, the joint probability is given by
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE) ..........(2)

Bayes’ Theorem


From the product rule, P(X ∩ Y) = P(X | Y)P(Y) and P(Y ∩ X) = P(X | Y)P(X). As P(X ∩ Y) and P(Y ∩ X) are same .
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE).............(3)
where P(X) = P(X ∩ Y) + P(X ∩ Yc)

Example: Box P has 2 red balls and 3 blue balls and box Q has 3 red balls and 1 blue ball. A ball is selected as follows:
(i)  Select a box
(ii) Choose a ball from the selected box such that each ball in the box is equally likely to be chosen. The probabilities of selecting boxes P and Q are (1/3) and (2/3), respectively.
Given that a ball selected in the above process is a red ball, the probability that it came from the box P is (GATE CS 2005)
(a) 4 / 19
(b) 5 / 19
(c) 2 / 9
(d) 19/30
Solution:

R → Event that red ball is selected
B → Event that blue ball is selected
P → Event that box P is selected
Q → Event that box Q is selected
We need to calculate P(P | R)?
Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)
P(R | P) = A red ball selected from box P
= 2 / 5
P(P) = 1 / 3
P(R) = P(P) * P(R | P) + P(Q) * P(R|Q)
= (1 / 3) * (2 / 5) + (2 / 3) * (3 / 4)
= 2 / 15 + 1 / 2
= 19 / 30
Putting above values in the Bayes's Formula
P(P | R) = (2 / 5) * (1 / 3) / (19 / 30)
= 4 / 19.

The document Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE) is a part of the Civil Engineering (CE) Course Engineering Mathematics.
All you need of Civil Engineering (CE) at this link: Civil Engineering (CE)
65 videos|120 docs|94 tests

Top Courses for Civil Engineering (CE)

FAQs on Bayes’s Theorem for Conditional Probability - Engineering Mathematics - Civil Engineering (CE)

1. What is Bayes's formula?
Ans. Bayes's formula, also known as Bayes' theorem, is a mathematical formula that calculates the conditional probability of an event occurring, given that another event has already occurred. It is expressed as P(A|B) = (P(B|A) * P(A)) / P(B), where P(A|B) represents the probability of event A occurring given event B, P(B|A) is the probability of event B occurring given event A, P(A) is the probability of event A occurring, and P(B) is the probability of event B occurring.
2. What is the Product Rule in probability theory?
Ans. The Product Rule is a fundamental rule in probability theory that allows us to calculate the probability of two independent events occurring together. It states that the probability of the intersection of two events, A and B, is equal to the product of their individual probabilities. Mathematically, it can be expressed as P(A ∩ B) = P(A) * P(B), where P(A ∩ B) represents the probability of both A and B occurring together, and P(A) and P(B) are the probabilities of events A and B, respectively.
3. What is the Chain Rule in probability theory?
Ans. The Chain Rule is a rule in probability theory used to calculate the joint probability of multiple events occurring together. It allows us to express the joint probability of n events as the product of conditional probabilities. Mathematically, it can be written as P(A₁, A₂, ..., Aₙ) = P(A₁) * P(A₂|A₁) * P(A₃|A₁, A₂) * ... * P(Aₙ|A₁, A₂, ..., Aₙ₋₁), where P(A₁, A₂, ..., Aₙ) represents the joint probability of events A₁, A₂, ..., Aₙ occurring together, and P(Aᵢ|A₁, A₂, ..., Aᵢ₋₁) denotes the conditional probability of event Aᵢ occurring given the previous events A₁, A₂, ..., Aᵢ₋₁.
4. What is Bayes' Theorem used for in conditional probability?
Ans. Bayes' Theorem is a powerful tool used to update or revise the probability of an event based on new information or evidence. It is particularly useful in conditional probability problems, where we have prior knowledge about the probability of certain events and want to calculate the probability of other events given this prior information. Bayes' Theorem allows us to update the probabilities using new evidence and adjust our beliefs accordingly.
5. How can Bayes' Theorem be applied in real-world scenarios?
Ans. Bayes' Theorem finds applications in various real-world scenarios. It is widely used in medical diagnosis, spam filtering, weather forecasting, and machine learning, among other fields. For example, in medical diagnosis, Bayes' Theorem can help calculate the probability of a patient having a certain disease, given the patient's symptoms and prior probabilities. In spam filtering, it can be used to classify emails as spam or non-spam based on the occurrence of certain words or phrases. Overall, Bayes' Theorem provides a framework for reasoning under uncertainty and updating beliefs based on new evidence.
65 videos|120 docs|94 tests
Download as PDF
Explore Courses for Civil Engineering (CE) exam

Top Courses for Civil Engineering (CE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

video lectures

,

Semester Notes

,

Viva Questions

,

practice quizzes

,

Free

,

Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)

,

MCQs

,

Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)

,

Extra Questions

,

Previous Year Questions with Solutions

,

Objective type Questions

,

pdf

,

past year papers

,

Important questions

,

Exam

,

Summary

,

study material

,

Sample Paper

,

ppt

,

Bayes’s Theorem for Conditional Probability | Engineering Mathematics - Civil Engineering (CE)

,

shortcuts and tricks

,

mock tests for examination

;