Mathematical Induction, Discrete Probability and Bayes' Theorem
The Axioms of Probability and Conditional Probability
- Kolmogorov's axioms: for a sample space S, P(A) ≥ 0 for every event A; P(S) = 1; and for mutually exclusive A, B, P(A ∪ B) = P(A) + P(B). Everything else — P(∅) = 0, P(Aᶜ) = 1 − P(A), P(A ∪ B) = P(A) + P(B) − P(A ∩ B) for events that may overlap — follows from these three.
- Conditional probability: P(A|B) = P(A ∩ B)/P(B), defined only when P(B) > 0 — the probability of A given that B is already known to have occurred, restricting the sample space to B.
- Independence: A and B are independent exactly when P(A ∩ B) = P(A)·P(B), equivalently P(A|B) = P(A) — knowing B occurred changes nothing about A's likelihood. Independence must be checked, never assumed from the events sounding unrelated.
Bayes' Theorem, and the Base-Rate Fallacy It Corrects
Bayes' theorem inverts a conditional: P(Bᵢ|A) = [P(A|Bᵢ)·P(Bᵢ)] / [Σⱼ P(A|Bⱼ)·P(Bⱼ)]. Read in words, it updates a prior belief P(Bᵢ) into a posterior P(Bᵢ|A) once evidence A is observed, weighted by how well Bᵢ predicts A (the likelihood P(A|Bᵢ)) against how well every other hypothesis predicts it. The single most commonly mis-set NET/GATE-style question is a medical test: a disease with prevalence (prior) 1%, a test with 99% sensitivity (true positive rate) and 95% specificity (true negative rate, so a 5% false positive rate). The probability that a person who tests positive actually has the disease is NOT 99% — applying Bayes with P(disease)=0.01, P(+|disease)=0.99, P(+|no disease)=0.05, P(no disease)=0.99 gives P(disease|+) = (0.99×0.01)/(0.99×0.01 + 0.05×0.99) ≈ 0.167, about 17%. The test is accurate, but the disease is rare, so false positives from the large healthy population outnumber true positives from the small sick population — this is the base-rate fallacy, and it is exactly what ignoring the prior P(Bᵢ) produces.
Random Variables, Expectation and Common Distributions
- Expectation E[X] = Σₓ x·P(X = x) for a discrete random variable; it is linear — E[X + Y] = E[X] + E[Y] — always, whether or not X and Y are independent, which is a fact worth applying directly rather than re-deriving.
- Binomial B(n, p): the number of successes in n independent trials each with success probability p. Mean np, variance np(1−p). The classic GATE/NET-style setup is n coin tosses or n bits of a channel.
- Bernoulli is the single-trial special case of Binomial with n = 1. Poisson approximates Binomial when n is large and p small with np held moderate (rare events over a fixed interval); its mean equals its variance, both λ.
- Uniform, discrete on {1, …, n}: each outcome equally likely, mean (n+1)/2 — the standard model for an unbiased die or a random array index.
Key takeaways
- Induction needs BOTH a correct base case and a correct inductive step; either alone proves nothing. Strong induction may assume every prior case, not just the immediately preceding one.
- Kolmogorov's three axioms generate every other probability identity. Conditional probability P(A|B) = P(A∩B)/P(B) restricts the sample space to B.
- Bayes' theorem inverts P(A|B) into P(B|A) weighted by the prior. Ignoring a low prior (base-rate fallacy) is the single most common Bayes error — build a 2x2 count table to avoid it.
- Expectation is always linear, independence or not: E[X+Y] = E[X] + E[Y].
- Binomial, Bernoulli (its n=1 case) and Poisson (its large-n, small-p, moderate-np limit) are the three discrete distributions NET tests most, each with its own mean/variance formula.
Practice questions (9)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
A proof by mathematical induction on P(n) for n ≥ 1 is INCOMPLETE if it:
Show answer
Answer: A — Verifies P(1) but never proves P(k) → P(k+1) for arbitrary k
A proof needs both the base case AND a generally-quantified inductive step; verifying only the base case, or only a specific instance rather than an arbitrary k, leaves the chain of implications unestablished.Strong induction differs from weak (ordinary) induction in that:
Show answer
Answer: A — It assumes P holds for all values from the base case up to k, not just at k, to derive P(k+1)
Strong induction's hypothesis is P(n₀) ∧ P(n₀+1) ∧ ... ∧ P(k), which is needed whenever the step to k+1 genuinely depends on some earlier case besides k itself.Events A and B are independent if and only if:
Show answer
Answer: A — P(A ∩ B) = P(A)·P(B)
Independence is P(A∩B) = P(A)P(B). Mutual exclusivity is a different (and, for events of positive probability, opposite) condition — two mutually exclusive events with positive probability are never independent, since one occurring makes the other's probability zero.A disease has 1% prevalence. A test is 99% sensitive and 95% specific. A random person tests positive. The probability they actually have the disease is closest to:
Show answer
Answer: A — 17%
Per 10,000 people: 100 sick (99 true positives), 9,900 healthy (495 false positives at a 5% false-positive rate). Of 594 total positives, 99 are truly sick: 99/594 ≈ 17%. The 99% figure is the test's sensitivity, P(+|disease) — not the quantity asked, P(disease|+); confusing the two is exactly the base-rate fallacy.The law of total probability requires the conditioning events B₁, ..., Bₙ to be:
Show answer
Answer: A — Mutually exclusive and exhaustive (a partition of the sample space)
P(A) = Σ P(A|Bᵢ)P(Bᵢ) is valid precisely because the Bᵢ partition S — every outcome falls in exactly one Bᵢ, so summing over them double-counts nothing and misses nothing.For any two random variables X and Y (not necessarily independent), E[X + Y] equals:
Show answer
Answer: A — E[X] + E[Y], always
Linearity of expectation holds unconditionally — no independence assumption is needed, unlike the product rule for variance or for E[XY], which do require it.The Poisson distribution is typically used as an approximation to the Binomial distribution when:
Show answer
Answer: A — n is large, p is small, and np stays moderate
The Poisson limit applies to rare events over many trials — large n, small p, with λ = np held fixed and moderate. In this limit both the mean and the variance of the Binomial converge to λ, matching the Poisson's own property that mean equals variance.Which of the following follow directly from Kolmogorov's three axioms? (More than one option may be correct.)
Show answer
Answer: A — P(∅) = 0; B — P(Aᶜ) = 1 − P(A); D — P(A ∪ B) = P(A) + P(B) − P(A ∩ B) for any A, B
P(∅)=0 and P(Aᶜ)=1−P(A) follow from additivity applied to A and Aᶜ (which partition S), and the general union formula corrects the double count in A∩B when A and B overlap. There is no axiom fixing every event's probability at 0.5.A fair coin is tossed 4 times. Using the Binomial distribution, the expected number of heads is _____.
Numerical answer — type the value.
Show answer
Answer: 2
For Binomial(n, p), mean = np. Here n = 4, p = 0.5, so mean = 4 × 0.5 = 2.