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
SDE LinkedIn & Naukri Hacks to Get More Recruiter Calls
by Pranav Malik
18 Apr, 2025
01:30 PM
Microsoft SDE Roadmap: Use AI Tools to Succeed
by Pranav Malik
14 Apr, 2025
01:30 PM
Amazon's expert tips on Non-tech to Data Analytics transition
by Abhishek Soni
15 Apr, 2025
01:30 PM
Crack Big4 Data Analytics interview: Dos & Don'ts
by Alka Pandey
17 Apr, 2025
01:30 PM
High-Paying SDE Role: How to job hunt effectively
by Shantanu Shubham
16 Apr, 2025
01:30 PM
SDE LinkedIn & Naukri Hacks to Get More Recruiter Calls