Conditional probability, the multiplication rule, independence versus mutually exclusive events, the law of total probability and Bayes' theorem, with tree diagrams for multi-stage problems.
1. Conditional probability and the multiplication rule
The conditional probability of given (with ) is
Knowing happened shrinks the sample space to . With equally likely outcomes this is just counting: .
Multiplication rule: . For a chain of events,
This handles draws without replacement: the probability that the first two cards are aces is .
Useful facts:
is itself a probability: .
In general . Confusing the two is the most common error.
Complement rule: .
Addition rule: .
The condition matters word by word. "At least one child is a boy" and "the elder child is a boy" are different conditions: given two children, the chance both are boys is in the first case and in the second.
2. Independent and mutually exclusive events
and are independent if , equivalently : knowing tells nothing about .
and are mutually exclusive (disjoint) if , so and .
Independent
Mutually exclusive
Definition
Union
Knowing
does not change
makes
Key fact: if and , mutually exclusive events are never independent, since .
If and are independent, so are and , and , and and .
For three events, mutual independence needs all of
Pairwise independence (the first three) does not imply the fourth. Example: toss two fair coins; = first is heads, = second is heads, = both show the same face. Each pair is independent, but .
3. Total probability and Bayes' theorem
Events form a partition if they are mutually exclusive and together cover the sample space (exactly one of them happens).
Law of total probability:
Split by the cause, then add.
Bayes' theorem reverses the condition:
is the prior (before seeing ).
is the likelihood.
is the posterior (after seeing ).
Method with a tree diagram:
First level: the causes with their prior probabilities.
Second level: the outcome (and not ) with conditional probabilities.
Multiply along each path to get joint probabilities.
is the sum of the paths ending in ; the posterior of a cause is its path divided by that sum.
The denominator is exactly the total probability of , so most Bayes questions are "total probability, then one division".
Tree for two machines A (60% of output, 2% defective) and B (40%, 5% defective): multiply along branches, add the D paths, then divide.
4. Base rates and common patterns
Base-rate effect. When the prior of a cause is small, even an accurate test gives a modest posterior. A disease with prevalence , a test that detects it of the time and gives a false positive of the time:
Most positives come from the large healthy group.
Patterns that recur:
Which source? Several machines, boxes or senders produce an item; given a property of the item, find the source. Use Bayes.
Sequential draws without replacement: use the multiplication rule. By symmetry, the probability that the -th ball drawn is red equals the probability the first is red.
Conditioning on a later draw: is found by Bayes or by symmetry; it equals .
Repeated independent trials: "at least one success in trials" is .
Coin or die chosen at random, then tossed: a two-level tree.
Checks: posteriors over all causes add to ; every probability lies in ; when .
Write fractions as long as possible and divide once at the end; it keeps rounding errors out of NAT answers.
Formulas to remember
Conditional probability
Multiplication rule
Addition rule
Independence
Total probability
Bayes' theorem
At least one success independent trials, success probability
Common mistakes
Confusing P(A | B) with P(B | A); Bayes' theorem is the bridge between them.
Treating mutually exclusive events as independent; with non-zero probabilities they never are.
Ignoring the base rate (prior) in test and detection questions.
Multiplying probabilities of draws without replacement as if they were independent.
Assuming pairwise independence of three events gives mutual independence.
Misreading the condition: 'at least one is a boy' is not the same as 'the elder is a boy'.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Conditioning by counting
numerical
Two fair dice are rolled. Find the probability that the sum is 8, given that the first die shows an even number.
Step 1: Count the reduced sample space.
Try it on paper first.
Example 2: Which machine made the defective item?
numerical
Machine A makes 60% of the items and 2% of its items are defective. Machine B makes 40% and 5% of its items are defective. An item is found defective. Find the probability it came from A.
Step 1: Find the total probability of a defective item.
Try it on paper first.
Example 3: A positive test for a rare condition
numerical
1% of a population has a condition. A test is positive for 99% of those with it and for 5% of those without it. A person tests positive. Find the probability they have the condition.
Step 1: Write the two paths that end in a positive test.
Try it on paper first.
Example 4: Can disjoint events be independent?
conceptual
and are mutually exclusive with and . Are they independent?
Step 1: Compute P(A ∩ B) from the definition of disjoint.
Try it on paper first.
Previous year questions
12 official GATE CSE questions on this topic, newest first.
10 questions: up to 4 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.