HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Mathematics
  2. /Statistics and Probability
  3. /Conditional Probability and Bayes' Theorem

Conditional Probability and Bayes' Theorem

Mathematics · High School (11–12) · 2 courses, 20 worked problems, 51 practice questions

Conditional probability is the chance of an event when we already know another event has happened. It is written P(A∣B)P(A \mid B)P(A∣B) and found by P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​. Two events are independent when knowing one does not change the chance of the other. The law of total probability splits an event into cases. Bayes' theorem turns the condition around: it finds P(B∣A)P(B \mid A)P(B∣A) from P(A∣B)P(A \mid B)P(A∣B). This is how a doctor reads a medical test result, and how a spam filter decides if an email is junk.

With practice you will be able to

  • Find conditional probabilities from a table or tree diagram
  • Test whether two events are independent
  • Use Bayes' theorem to find the probability of a cause

On the syllabus of

  • JEE Main
  • JEE Advanced
  • CBSE / State Class 12
  • ISC
  • CUET UG
  • BITSAT
  • MHT-CET
  • KCET
  • and 21 more

Lessons

  • Conditional Probability and Independent EventsA friend peeks at a hidden card and says it is a face card. Is it a king?High School (11–12)
  • Total Probability and Bayes' TheoremWhich machine most likely made a faulty part? Why can a good medical test still mislead?High School (11–12)

Practice questions

Choose an answer, then check it. Each one shows a full explanation.

A fair six-sided die is rolled twice, and you are told that at least one of the two rolls was a 555. What is the probability that the total of the two rolls is greater than 888?

In a survey of 200200200 students, 120120120 play a sport, 909090 play a musical instrument and 404040 do neither. One student who plays a musical instrument is chosen at random. What is the probability that this student also plays a sport?

A factory has two machines. Machine AAA makes 60%60\%60% of the items, and 2%2\%2% of its items are defective. Machine BBB makes the other 40%40\%40%, and 5%5\%5% of its items are defective. One item is chosen at random from all the items and is found to be defective. What is the probability that machine BBB made it?

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • A card is drawn at random from a standard pack of 52 cards and hidden behind a screen…Easy
  • A transport office surveys 200 commuters…Medium
  • In a school, 55% of the students learn French and 40% learn Spanish…Hard
  • A pencil case holds 7 blue pens and 5 black pens…Easy
  • Maya answers three quiz questions in a row…

Python labs

  • Probabilities by counting and by chaining
  • Independent or not
  • Total probability and Bayes by code
  • The game with many doors, by counting

Related topics

  • Statistics and Probability
  • Statistics
  • Probability
  • Random Variables and Probability Distributions

An urn holds one red ball and one blue ball. A ball is drawn at random, and it is put back together with one more ball of the same colour. This is done four times in all. Given that the fourth ball drawn is red, the probability that the first ball drawn was red is

Bag I contains 444 red and 555 white balls. Bag II contains 333 red and 444 white balls. One ball is drawn at random from bag I and placed in bag II without its colour being seen. A ball is then drawn at random from bag II, and it is red. Every ball in a bag is equally likely to be drawn. What is the probability that the ball transferred from bag I was white?

Bag I contains 444 red and 333 black balls. Bag II contains 333 red and 555 black balls. Two balls are drawn together at random from bag I and placed in bag II without anyone looking at them. A ball is then drawn at random from bag II, and it is red. Find the probability that both balls moved from bag I were red.

Zara has two fair coins in a closed box. She shakes the box, and her brother sees through a small window that the first coin lies tails up. What is the chance that both coins lie tails up?

In a village of 600600600 adults, 360360360 own a phone, 240240240 own a bicycle and 150150150 own both. An adult is chosen at random and is found to own a bicycle. What is the probability that this adult also owns a phone?

At a café, 60%60\%60% of the customers order a drink, and 35%35\%35% of the customers who order a drink also order a cake. What percentage of all customers order both a drink and a cake?

A drawer holds 999 black socks and 666 white socks, all loose. Without looking, Chen pulls out two socks one after the other. What is the probability that the two socks match in colour?

All 51 practice questions on Conditional Probability and Bayes' Theorem →

Medium
  • An urn holds 5 red balls and 3 white balls…Hard
  • In a class of 80 students, 32 play chess, 20 play football and 8 play both…Easy
  • A storeroom has two smoke detectors that work independently of each other…Medium
  • Three fair coins are tossed. Let A be the event that the first and second coins show the same face…Hard
  • Anil and Bela play a game with one fair die…Advanced
  • Karan travels to work by bus with probability 0.6 and by tram with probability 0.4…Easy
  • A hospital store buys syringes from three suppliers…Medium
  • All 20 worked problems on Conditional Probability and Bayes' Theorem →