Skip to main content

Pramana Learning

Short trick: conditional probability and Bayes’ theorem with a table

By Abhishek Jaiswal, Mathematics faculty at Pramana Institute (IIT Roorkee, 18 years teaching JEE)

Conditional probability is where intuition and mathematics disagree most, and that is exactly why exams like it. Take a medical test that is correct 95% of the time. If you test positive, what is the chance you are ill? Most people say 95%. The honest answer can be as low as 16%, and the example below shows why. In JEE Main and in boards, the questions are less dramatic but follow the same pattern, and students lose marks mostly because they swap P(A|B) with P(B|A), or forget to divide by the total. A tabular method removes both errors.

Formulas

IdeaFormula
Conditional probabilityP(A|B) = P(A ∩ B) / P(B), with P(B) > 0
Multiplication ruleP(A ∩ B) = P(A) P(B|A) = P(B) P(A|B)
Independent eventsP(A ∩ B) = P(A) P(B), and then P(A|B) = P(A)
Complement given BP(A′|B) = 1 − P(A|B)
Addition ruleP(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Total probabilityP(B) = Σ P(Eᵢ) P(B|Eᵢ), where E₁, …, Eₙ are mutually exclusive and exhaustive
Bayes’ theoremP(Eᵢ|B) = P(Eᵢ) P(B|Eᵢ) / Σ P(Eⱼ) P(B|Eⱼ)
BinomialP(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ, with q = 1 − p

The table method for Bayes

Do not memorise the long Bayes formula. Draw a table with one row for each cause E and three columns:

  1. Prior P(E): how likely the cause is before you see the result.
  2. Likelihood P(B|E): how likely the observed result is under that cause.
  3. Joint = prior × likelihood.

The total of the joint column is P(B). Each answer P(E|B) is that row’s joint divided by the total. You have just done Bayes’ theorem, and the denominator can never be forgotten because you are looking at it.

Worked examples

1. Which machine? Machines A, B, C make 50%, 30% and 20% of items, with 1%, 2% and 3% defective. An item is found defective.

MachinePriorLikelihoodJoint
A0.50.010.005
B0.30.020.006
C0.20.030.006
Total0.017

P(A | defective) = 0.005/0.017 = 5/17 ≈ 0.29. Machine A makes half of all items but only about 29% of the defective ones.

2. The 95% test. 1% of people have a disease. The test is positive for 95% of ill people and, wrongly, for 5% of healthy people. Take 10,000 people: 100 are ill and 95 of them test positive. Of the 9,900 healthy, 495 test positive. So 590 test positive and only 95 are ill: P(ill | positive) = 95/590 ≈ 16%. The disease is rare, so false alarms outnumber true cases.

3. Shrinking the sample space. Two dice are thrown and the sum is 8. What is the chance that at least one shows a 2? The outcomes with sum 8 are (2,6), (3,5), (4,4), (5,3), (6,2): five of them. Two contain a 2. The answer is 2/5.

4. Without replacement. Two cards from a pack of 52. P(both aces) = (4/52) × (3/51) = 1/221.

Five traps that cost marks

  1. Swapping P(A|B) and P(B|A). "The chance a positive test means disease" and "the chance a diseased person tests positive" are different numbers. Read the word "given" carefully.
  2. Stopping at the joint. The likelihood times the prior is not the answer. Divide by the total.
  3. Confusing mutually exclusive with independent. If two events with non-zero probability cannot both happen, they are not independent, because P(A ∩ B) = 0 while P(A)P(B) is not.
  4. Treating draws without replacement as independent. The denominator changes after every draw.
  5. Causes that overlap or leave gaps. The priors must add up to 1, and no outcome may belong to two causes.

FAQs

How do I know when to use Bayes’ theorem? When the question gives the result and asks about the cause: "a defective item is found, which machine made it?" If it asks about a result from a cause, that is plain total probability.

Does a tree diagram work? Yes. Each branch carries its probability, and a path’s probability is the product along it. The Bayes answer is the path you want divided by the sum of all paths ending in the observed result.

Is this in Class 12 boards as well? Yes. Conditional probability, the multiplication theorem, independent events, total probability and Bayes’ theorem are part of the Probability chapter in Class 12.

Practise probability with weekly tests in a batch of at most 40 at Pramana, Geeta Bhawan Square, Indore. See our IIT JEE program or book free counselling.

What next: A formula sheet only helps if you test yourself on it under exam timing, and a small batch with weekly feedback is where that happens. See how we teach IIT JEE coaching in Indore, and take the free scholarship test to see where you stand before you decide.

Read next

Also available in Hindi: शॉर्ट ट्रिक: सप्रतिबंध प्रायिकता और बेज़ प्रमेय तालिका से

POST TAGS :

Talk to us

Free counselling for JEE & NEET

Meet a Pramana counsellor at Geeta Bhawan Square, or talk on a phone or video call.

Book free counselling Call 91091 04431 Prashast scholarship test
Recommended for you
Exam strategy
Browse by subject

Send us a Message

+91 9109104431
+91 9109104432

pramanainstitute.office
@gmail.com