Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
The probability of event 'A' occurring assuming event 'B' has already occurred is known as conditional probability P(A | B).
Theorem
Assuming A and B are two independent occurrences, then P(A/B) is the probability of A occurring, given that B has already occurred. This probability is given by:
= P(A) × P(B ⁄ A) —----------------------- Equation 1
Therefore when A nad B in equation-1 are interchanged,
We get,
P(B) × P(A ⁄ B).
Example Question: When two dies are thrown simultaneously, the sum of the numbers obtained is found to be 7. Find out the probability that the number 3 has appeared at least once?
Solution: The sample space S would be made up of all the numbers that might be generated by combining two dies. As a result, S will consist of 66 events or 36 total events.
Event A = Combination in which 3 has appeared at least once.
Event B = Combination of the numbers which sum up to 7.
Applying the conditional probability formula we get,
P(A|B) = P(A⋂B)P(B) = 236636 = 13 .
FAQs
Explain conditional probability with the help of a diagram. From the figure shown below, S specifies the sample space, while A and B are two events. In the case when event B has already occurred, our sample space S is limited to B since the probability of an event occurring is now contained within B.
Key Takeaways
In this article, we have discussed ‘Conditional Probability, Problem Solving with the help of an example. Check out the playlist Mathematical Induction for the following topics. Check out this problem - Subarray Sum Divisible By K
We hope that this blog has helped you enhance your knowledge regarding Conditional Probability, and if you would like to learn more, check out our articles on Coding Ninjas Site and visit ourLibrary for more. Do upvote our blog to help other ninjas grow. Happy Coding!
Live masterclass
Crack GenAI Skills to ace 30 LPA+ roles at Amazon & Google
by Sumit Shukla
16 Feb, 2026
03:00 PM
Zero to Google Data Analyst: Roadmap for 30L+ CTC
by Prashant
15 Feb, 2026
06:30 AM
Beginner to GenAI Engineer Roadmap for 30L+ CTC at Amazon
by Shantanu Shubham
15 Feb, 2026
08:30 AM
Data Analysis for 20L+ CTC@Flipkart: End-Season Sales dataset
by Sumit Shukla
16 Feb, 2026
01:30 PM
Crack GenAI Skills to ace 30 LPA+ roles at Amazon & Google