∑GATE DA Atlas

Sample Spaces, Axioms, Conditional and Joint Probability

Sample spaces and events, the Kolmogorov axioms and everything that follows from them, joint, marginal and conditional probability, the multiplication rule, independence (pairwise vs mutual), and why "mutually exclusive" and "independent" are almost opposites.

Section 110 practice questions

Experiments, sample spaces and events

A random experiment has an outcome that cannot be predicted with certainty. Its sample space SS (or Ω\Omega) is the set of all possible outcomes; an event is a subset of SS.

ExperimentSample space
Toss a coin twice{HH,HT,TH,TT}\{HH, HT, TH, TT\}
Roll a die until a 6 appears; record the number of rolls{1,2,3,… }\{1, 2, 3, \dots\} (countably infinite)
Lifetime of a bulb in hours[0,∞)[0, \infty) (uncountable)

Events combine with set operations: A∪BA \cup B (A or B), A∩BA \cap B (A and B), AcA^c (not A), A∖B=A∩BcA \setminus B = A \cap B^c. De Morgan's laws: (A∪B)c=Ac∩Bc(A\cup B)^c = A^c \cap B^c and (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c.

Events are mutually exclusive (disjoint) if A∩B=∅A \cap B = \emptyset, and exhaustive if A1∪⋯∪An=SA_1 \cup \dots \cup A_n = S. A collection that is both is a partition of SS.

The axioms of probability (Kolmogorov)

A probability measure assigns a number P(A)P(A) to each event so that

  1. P(A)≥0P(A) \ge 0 for every event AA;
  2. P(S)=1P(S) = 1;
  3. for any countable sequence of pairwise disjoint events, P(⋃iAi)=∑iP(Ai)P\left(\bigcup_i A_i\right) = \sum_i P(A_i).

Everything else is a theorem:

ConsequenceStatement
Complement ruleP(Ac)=1−P(A)P(A^c) = 1 - P(A)
Empty setP(∅)=0P(\emptyset) = 0
MonotonicityA⊆B⇒P(A)≤P(B)A \subseteq B \Rightarrow P(A) \le P(B)
Bounded0≤P(A)≤10 \le P(A) \le 1
DifferenceP(A∩Bc)=P(A)−P(A∩B)P(A \cap B^c) = P(A) - P(A\cap B)
Addition ruleP(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B) = P(A) + P(B) - P(A \cap B)
Three eventsP(A∪B∪C)=∑P(A)−∑P(A∩B)+P(A∩B∩C)P(A\cup B\cup C) = \sum P(A) - \sum P(A\cap B) + P(A\cap B\cap C)
Boole's inequalityP(⋃Ai)≤∑P(Ai)P(\bigcup A_i) \le \sum P(A_i)
BonferroniP(A∩B)≥P(A)+P(B)−1P(A \cap B) \ge P(A) + P(B) - 1

Assigning probabilities

  • Classical (equally likely outcomes): P(A)=∣A∣/∣S∣P(A) = |A| / |S| — counting, see Counting.
  • Relative frequency: P(A)=lim⁡n→∞nA/nP(A) = \lim_{n\to\infty} n_A / n.
  • Geometric: for a point chosen uniformly in a region, P(A)=area(A)/area(S)P(A) = \text{area}(A) / \text{area}(S).

Conditional probability

The probability of AA given that BB has occurred (with P(B)>0P(B) > 0):

P(A∣B)=P(A∩B)P(B).P(A \mid B) = \frac{P(A \cap B)}{P(B)}.

Conditioning shrinks the sample space to BB and rescales. P(⋅∣B)P(\cdot \mid B) is itself a valid probability measure, so all the rules above hold conditionally, e.g. P(Ac∣B)=1−P(A∣B)P(A^c \mid B) = 1 - P(A\mid B).

Multiplication (chain) rule

P(A∩B)=P(B) P(A∣B)=P(A) P(B∣A)P(A \cap B) = P(B)\,P(A\mid B) = P(A)\,P(B \mid A) P(A1∩A2∩⋯∩An)=P(A1) P(A2∣A1) P(A3∣A1∩A2)⋯P(An∣A1∩⋯∩An−1).P(A_1 \cap A_2 \cap \dots \cap A_n) = P(A_1)\,P(A_2 \mid A_1)\,P(A_3 \mid A_1\cap A_2) \cdots P(A_n \mid A_1 \cap\dots\cap A_{n-1}).

Total probability

If B1,…,BnB_1, \dots, B_n partition SS:

P(A)=∑i=1nP(A∣Bi) P(Bi).P(A) = \sum_{i=1}^n P(A \mid B_i)\,P(B_i).

This is the denominator of Bayes' theorem — see Bayes' theorem.

Joint, marginal and conditional probability

For two discrete variables the joint distribution is a table; marginals are row/column sums; conditionals are a row (or column) divided by its sum.

Y=0Y = 0Y=1Y = 1marginal P(X)P(X)
X=0X = 00.100.300.40
X=1X = 10.200.400.60
marginal P(Y)P(Y)0.300.701
  • Marginal: P(Y=1)=0.30+0.40=0.70P(Y=1) = 0.30 + 0.40 = 0.70 (sum over the other variable — marginalisation).
  • Conditional: P(Y=1∣X=0)=0.30/0.40=0.75P(Y = 1 \mid X = 0) = 0.30 / 0.40 = 0.75.
  • Independence check: P(X=0)P(Y=0)=0.12≠0.10P(X=0)P(Y=0) = 0.12 \ne 0.10, so XX and YY are dependent.

Independence

Events AA and BB are independent if

P(A∩B)=P(A) P(B)⟺P(A∣B)=P(A)  (when P(B)>0).P(A \cap B) = P(A)\,P(B) \quad\Longleftrightarrow\quad P(A\mid B) = P(A)\ \ (\text{when } P(B) > 0).

Knowing BB happened tells you nothing about AA. If A,BA, B are independent, so are AA and BcB^c, AcA^c and BB, and AcA^c and BcB^c.

Pairwise vs mutual independence

A,B,CA, B, C are mutually independent if all of these hold:

P(A∩B)=P(A)P(B), P(A∩C)=P(A)P(C), P(B∩C)=P(B)P(C), P(A∩B∩C)=P(A)P(B)P(C).P(A\cap B) = P(A)P(B),\ P(A\cap C) = P(A)P(C),\ P(B\cap C) = P(B)P(C),\ P(A\cap B\cap C) = P(A)P(B)P(C).

Pairwise independence (the first three) does not imply the fourth — the two-coin example in the practice questions is the standard counterexample. For nn events, mutual independence needs 2n−n−12^n - n - 1 conditions.

Mutually exclusive vs independent

Mutually exclusiveIndependent
DefinitionA∩B=∅A\cap B = \emptysetP(A∩B)=P(A)P(B)P(A\cap B) = P(A)P(B)
P(A∩B)P(A\cap B)00P(A)P(B)P(A)P(B)
P(A∪B)P(A\cup B)P(A)+P(B)P(A) + P(B)P(A)+P(B)−P(A)P(B)P(A) + P(B) - P(A)P(B)
Knowing BB occurredAA certainly did notchanges nothing about AA

Independent trials

For independent events, "at least one occurs" is easiest via the complement:

P(at least one of A1,…,An)=1−∏i=1n(1−P(Ai)).P(\text{at least one of } A_1,\dots,A_n) = 1 - \prod_{i=1}^n \bigl(1 - P(A_i)\bigr).

Conditional independence

AA and BB are conditionally independent given CC if P(A∩B∣C)=P(A∣C) P(B∣C)P(A\cap B \mid C) = P(A\mid C)\,P(B \mid C). Neither independence nor conditional independence implies the other. This idea underlies naive Bayes and Bayesian networks — see Bayesian networks.

Quick revision

Practice questions

GATE-style questions: 5 one-mark and 5 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1MCQ1 mark

AA and BB are independent events with P(A)=0.5P(A) = 0.5 and P(B)=0.4P(B) = 0.4. Then P(A∪B)P(A \cup B) is

Q2MSQ1 mark

AA and BB are mutually exclusive events with P(A)>0P(A) > 0 and P(B)>0P(B) > 0. Which of the following are true?

One or more options are correct.

Q3NAT2 marks

Two fair dice are rolled. Given that at least one die shows a 3, the probability that the sum is 7 is ______ (round to two decimals).

Q4NAT1 mark

Three fair coins are tossed. The probability of getting at least two heads is ______.

Q5NAT2 marks

The joint PMF of two binary random variables is P(X=0,Y=0)=0.1P(X{=}0,Y{=}0) = 0.1, P(X=0,Y=1)=0.3P(X{=}0,Y{=}1) = 0.3, P(X=1,Y=0)=0.2P(X{=}1,Y{=}0) = 0.2, P(X=1,Y=1)=0.4P(X{=}1,Y{=}1) = 0.4. Then P(Y=1∣X=1)P(Y = 1 \mid X = 1) is ______ (round to two decimals).

Q6MCQ1 mark

P(A)=0.6P(A) = 0.6, P(B)=0.5P(B) = 0.5 and P(A∪B)=0.8P(A \cup B) = 0.8. Which statement is correct?

Q7NAT2 marks

Four people are chosen at random. Assuming each person's birth month is equally likely to be any of the 12 months independently, the probability that at least two of them share a birth month is ______ (round to two decimals).

Q8MSQ2 marks

Two fair coins are tossed. Let AA = "first coin is heads", BB = "second coin is heads", and CC = "both coins show the same face". Which of the following are true?

One or more options are correct.

Q9NAT2 marks

An urn has 5 red and 3 blue balls. Two balls are drawn without replacement. The probability that both have the same colour is ______ (round to two decimals).

Q10MCQ1 mark

If P(A)=0.7P(A) = 0.7 and P(A∩B)=0.3P(A \cap B) = 0.3, then P(A∩Bc)P(A \cap B^c) equals