Exercises
ex-fsp-ch01-01
EasyLet (a fair die). Define events (even), (greater than 2). Find: (a) , (b) , (c) , (d) . Use De Morgan's law to check (d).
List the elements of each event explicitly, then apply set operations.
For (d), apply De Morgan: .
(a) $A \cup B$
. (Everything that is even OR greater than 2.) .
(b) $A \cap B$
. (Even AND greater than 2.) .
(c) $A^c \cap B$
(odd outcomes). . (Odd AND greater than 2.) .
(d) $A^c \cup B^c$ via De Morgan
De Morgan: . .
Check via inclusion-exclusion: .
ex-fsp-ch01-02
EasyVerify that the geometric probability model is a valid probability measure. Specifically, let (the outcomes of tossing a biased coin with until the first Tail). Define for Check all three Kolmogorov axioms.
Axiom 3 for disjoint singletons: the probability of any event is the sum of the probabilities of the outcomes it contains.
For normalization, compute using the geometric series formula.
Axiom 1: Non-negativity
for all since implies . So for all .
Axiom 2: Normalization
|1-p| < 1p \in (0,1)\checkmark$
Axiom 3: Countable additivity
For any event (a subset of outcomes), countable additivity gives . This is consistent with the definition: the probability of any event is the sum of the probabilities of the outcomes it contains.
ex-fsp-ch01-03
MediumProve the following generalized inclusion-exclusion formula for : Then use it to find when , , , , , , .
Apply the two-set formula to and .
Expand using the two-set formula again.
Apply the two-set formula to $D \cup C$
Let . By the two-set inclusion-exclusion: . Also: .
Expand $\mathbb{P}(D \cap C)$
. By the two-set formula: .
Assemble the formula
Substituting: which is exactly the stated formula.
Numerical computation
.
ex-fsp-ch01-04
MediumLet be an increasing sequence of events () with . Find , justifying your answer rigorously using the continuity of probability.
What is the limit event ?
Apply the increasing-sequence case of the continuity of probability theorem.
Identify the limit
For an increasing sequence: .
Apply continuity of probability
By the continuity of for increasing sequences (TContinuity of Probability):
ex-fsp-ch01-05
MediumIn a binary symmetric channel (BSC) with crossover probability , each transmitted bit is independently flipped with probability . A block of bits is transmitted. Using the union bound, upper-bound the probability that at least one bit is in error. Then find the exact probability. When is the union bound tight?
Let = event that bit is flipped. Compute .
The exact probability of at least one error is .
Union bound
Let = "bit is flipped," for all . By the union bound: .
Exact probability
Since bits are flipped independently, . Therefore: .
Comparison
The union bound is an upper bound: (from Bernoulli's inequality: ).
The bound is tight when : in this regime, . The union bound is loose when or larger, because pairwise overlaps become non-negligible.
ex-fsp-ch01-06
MediumA sequence of events satisfies . Does the first Borel-Cantelli lemma apply? Does the second (which requires independence AND divergent sum)? What can you conclude about ?
Check whether converges or diverges.
The p-series converges iff .
Check convergence of $\sum \mathbb{P}(A_n)$
. This is a -series with , so it diverges. The first Borel-Cantelli lemma does NOT apply.
Conditions for the second Borel-Cantelli lemma
The second Borel-Cantelli lemma (not proved until Chapter 2) requires: (a) independence of the , AND (b) . Condition (b) is satisfied. If the are also independent, the second lemma gives .
Without independence
Without independence, the divergence of is insufficient: there exist dependent event sequences with and (e.g., all for a fixed event with ). So, with divergent sum but no independence: is unknown without additional information.
ex-fsp-ch01-07
MediumA deck of 52 cards is shuffled uniformly at random. Find: (a) The probability that the top card is an Ace. (b) The probability that the top two cards are both Aces. (c) The probability that at least one of the first 5 cards is an Ace. Use the complementary event for (c).
Ordered selection without replacement from 52 cards.
For (c): .
(a) Top card is an Ace
4 Aces in 52 cards. .
(b) Top two cards both Aces
. Using the counting formula: (ordered selection of 2 Aces from 4, over all ordered pairs from 52).
(c) At least one Ace in the first 5
. , . . .
ex-fsp-ch01-08
MediumA communications system transmits symbols from an alphabet of size . An error-correcting code has codewords of length . (a) What is the total number of possible received sequences? (b) The minimum Hamming distance between codewords is . Show that the number of codewords is upper-bounded by , where is the volume of a Hamming ball of radius .
For a code to correct errors, the Hamming balls of radius around codewords must be disjoint.
The total number of sequences in all disjoint balls is at most .
(a) Total received sequences
Each position takes a value in an alphabet of size , and there are positions: total = sequences.
(b) Hamming bound (sphere-packing bound)
A code with minimum distance can correct errors: if at most symbols are corrupted, the corrupted codeword is closer to the transmitted codeword than to any other.
The Hamming ball around codeword contains all sequences at Hamming distance at most from . Its size is: . (Choose positions to change: ways; each changed position has possible non-original values: ways.)
The Hamming balls around the codewords are disjoint (by the minimum-distance assumption). Since all balls are subsets of : , giving .
ex-fsp-ch01-09
HardThe second Borel-Cantelli lemma states: if are independent with , then . Prove this lemma. You may use the inequality for .
Show the complement has probability 0. The complement is .
By monotone continuity, it suffices to show as .
Use independence of the and the bound .
Work with the complement
It suffices to show . Let (finitely many occur, starting from ). is an increasing sequence with . By continuity: .
Show $\mathbb{P}(C_n) = 0$ for all $n$
(decreasing intersection). By continuity: .
Use independence and the exponential bound
By independence of (which follows from independence of ): Since , the partial sum as . Hence for all , so , giving .
ex-fsp-ch01-10
MediumThe Monty Hall problem. Three doors hide a car (behind one) and goats (behind two). You pick door 1. The host (who knows) opens door 3, revealing a goat. You may switch to door 2 or stay with door 1. (a) Define the sample space and relevant events carefully. (b) Compute and . (c) Should you switch?
The sample space is the set of all possible locations of the car. Define events for car behind door 1, 2, 3.
The host opens door 3 — this depends on where the car is. Use the law of total probability (preview of Chapter 2).
Sample space and events
(the door hiding the car). Under equal likelihood: for . You pick door 1; host opens door 3.
$\mathbb{P}(\text{win} \mid \text{stay})$
Staying with door 1 wins if and only if the car is behind door 1. .
$\mathbb{P}(\text{win} \mid \text{switch})$
Switching to door 2 wins if the car is NOT behind door 1, i.e., behind door 2 or 3. But the host opened door 3 (no car there), so switching wins exactly when the car is behind door 2. .
(More carefully: if car is at 2, host must open 3; if car is at 1, host can open 2 or 3 equally — but the problem conditions on door 3 being opened.)
Conclusion
Always switch. The switching strategy wins with probability , double the staying strategy's . The key insight: the host's action (opening a specific door with a goat) carries information about where the car is. When you picked door 1, the probability that the car is behind one of the OTHER doors was ; the host's action concentrates that probability onto door 2 alone.
ex-fsp-ch01-11
MediumIn a class of students, what is the probability that no two students share a birthday? What is the probability that exactly two students share a birthday? (Use 365 days, equally likely, birthdays independent.)
For 'no shared birthday': compute the probability of distinct birthdays using the ordered-without-replacement count.
For 'exactly one pair': use the inclusion-exclusion or direct counting of which pair matches.
Probability of no shared birthday
.
Probability that at least two share a birthday
. With 30 people, there is about a 70.6% chance of a shared birthday.
Probability that exactly one pair shares
This is a harder calculation (requires summing over which pair matches); the key result is that , which is dominated by the probability of exactly one collision for moderate . The reader should verify using the exact formula from the Poisson approximation: . For : , giving , consistent with the exact answer.
ex-fsp-ch01-12
HardLet be a probability space and events. The Boole-Bonferroni lower bound states: Prove this inequality (it is the inclusion-exclusion formula with the three-way and higher terms dropped and the inequality direction justified).
The inclusion-exclusion formula gives an exact expression. Show that adding the three-way terms can only increase the right-hand side.
All three-way intersection probabilities are non-negative.
Write the exact inclusion-exclusion formula
By TGeneral Inclusion-Exclusion Formula: where .
Apply non-negativity to truncate
Since all probabilities are non-negative, . Therefore: (dropping , which requires showing this alternating tail is non-negative — proved by the full Bonferroni inequalities theorem). The simpler argument: because , and by the upper bound . Combined, .
ex-fsp-ch01-13
EasyAn antenna selector picks antennas from a set of antennas for a MIMO transmission. How many distinct antenna pair selections exist? If the selection is made uniformly at random, what is the probability of selecting the pair ?
Antenna sets are unordered (the order of selection does not matter).
Count the distinct selections
Unordered selection without replacement: pairs.
Probability of selecting $\{1,3\}$
.
ex-fsp-ch01-14
MediumLet be any sequence of events. Prove that: This is sometimes called the Weierstrass inequality for probability.
Apply De Morgan to convert the intersection to a complement of a union.
Then apply the union bound to the union of the .
Convert to union via De Morgan
. By complementation: .
Apply the union bound
. Therefore: .
Application: If each holds with probability at least , and , then all events hold simultaneously with positive probability. This is used in coding theory to show the existence of codes achieving both rate and reliability simultaneously.
ex-fsp-ch01-15
ChallengeCatalan numbers and random walks. A random walk starts at 0 and at each step moves (with probability ) or (with probability ), independently. Let be the number of paths of length that return to 0 for the first time at step (a "first return"). (a) Show that (the -th Catalan number). (b) Use Stirling's approximation () to show that as . (c) Conclude that — the probability of ever returning to 0 equals 1 for a 1D symmetric random walk.
A path of length from 0 that first returns at step must stay positive (or negative) for all intermediate steps.
Use the reflection principle: the number of paths from 0 to 0 in steps that first return at step equals the total number of paths from 0 to 0 in steps minus those that visit 0 earlier.
For (c), check that .
(a) Count first-return paths
A path of length from 0 back to 0 takes steps of and steps of . Total such paths: . Of these, the "first return at step " paths are those that do NOT touch 0 at any intermediate even step. By the cycle lemma, the number of paths from to in steps that remain positive is (the -th Catalan number). Combined with the first step being or : .
(b) Asymptotic growth via Stirling
. By Stirling: and . So . Hence .
(c) Probability of ever returning to 0
. Summing over all : . From (a): . Substituting and using the generating function of Catalan numbers: .
So the 1D symmetric random walk returns to 0 with probability , meaning it is NOT recurrent in the strict sense (probability 1 of return). Actually, the full analysis shows that the walk IS recurrent (probability 1 of eventual return), since the sum over ALL returns diverges — this is the Pólya recurrence theorem (Chapter 17).