Exercises

ex-fsp-ch02-01

Easy

A fair six-sided die is rolled. Let A={2,4,6}A = \{2, 4, 6\} (even) and B={3,4,5,6}B = \{3, 4, 5, 6\} (greater than 2). Compute P(A∣B)\mathbb{P}(A \mid B) and P(B∣A)\mathbb{P}(B \mid A).

ex-fsp-ch02-02

Easy

An urn contains 4 red balls and 6 blue balls. Two balls are drawn without replacement. Compute the probability that the second ball is red, using the law of total probability (condition on the first draw).

ex-fsp-ch02-03

Easy

Verify that the conditional probability mapping A↦P(A∣B)A \mapsto \mathbb{P}(A \mid B) for a fixed BB with P(B)>0\mathbb{P}(B) > 0 satisfies the three Kolmogorov axioms.

ex-fsp-ch02-04

Easy

A fair coin is tossed 4 times. Compute the probability of exactly 3 heads using the binomial formula. Then verify by listing all outcomes.

ex-fsp-ch02-05

Easy

In a Bernoulli sequence with success probability p=0.2p = 0.2, compute the probability that the first success occurs on trial 5. Also compute the mean waiting time.

ex-fsp-ch02-06

Easy

Prove that if AA and BB are independent, then AA and BcB^c are also independent.

ex-fsp-ch02-07

Medium

A binary symmetric channel (BSC) with crossover probability ϡ∈(0,1/2)\epsilon \in (0, 1/2) is used to transmit X∈{0,1}X \in \{0, 1\} with prior probabilities P(X=0)=Ο€0\mathbb{P}(X=0) = \pi_0 and P(X=1)=1βˆ’Ο€0\mathbb{P}(X=1) = 1 - \pi_0. (a) Derive the MAP decision rule. (b) Show that for equal priors (Ο€0=1/2\pi_0 = 1/2), MAP coincides with ML. (c) Compute the posterior P(X=0∣Y=0)\mathbb{P}(X=0 \mid Y=0) for general Ο€0\pi_0.

ex-fsp-ch02-08

Medium

Let AA, BB, CC be events with P(C)>0\mathbb{P}(C) > 0. Show that if AβŠ₯B∣CA \perp B \mid C, then AcβŠ₯B∣CA^c \perp B \mid C.

ex-fsp-ch02-09

Medium

A manufacturing plant has two machines, A and B. Machine A runs on 40% of production days; machine B runs on all production days. Machine A produces a defective item with probability 0.01; machine B produces a defective item with probability 0.05. On a day when machine A is running, both machines produce items.

(a) Compute the probability that a randomly selected item is defective. (b) Given that an item is defective, compute the probability it came from machine A.

ex-fsp-ch02-10

Medium

In a Bernoulli sequence with parameter pp, let TT be the waiting time until the first success. Prove the memoryless property: P(T>m+n∣T>m)=P(T>n)\mathbb{P}(T > m+n \mid T > m) = \mathbb{P}(T > n) using the definition of conditional probability and the product rule.

ex-fsp-ch02-11

Medium

Construct three events AA, BB, CC on a finite sample space such that (a) AA and BB are independent, (b) AA and CC are independent, (c) BB and CC are independent, but (d) AA, BB, CC are NOT mutually independent. (This is a concrete example showing pairwise β‡’ΜΈ\not\Rightarrow mutual.)

ex-fsp-ch02-12

Medium

Let A⊸B⊸CA \multimap B \multimap C be a Markov chain. Prove that the chain is reversible: C⊸B⊸AC \multimap B \multimap A also holds.

ex-fsp-ch02-13

Medium

In a BPSK system, transmit symbols x∈{βˆ’1,+1}x \in \{-1,+1\} with equal priors. The received signal is Y=x+WY = x + W where W∼N(0,Οƒ2)W \sim \mathcal{N}(0, \sigma^2). Using Bayes' theorem, derive the MAP decision rule and show it equals the minimum distance decoder x^=sign(Y)\hat{x} = \text{sign}(Y).

ex-fsp-ch02-14

Medium

Derive the PMF of the negative binomial distribution NegBin(r,p)\text{NegBin}(r, p) from first principles: the waiting time TrT_r until the rr-th success in a Bernoulli(p)(p) sequence.

ex-fsp-ch02-15

Hard

Let A1,A2,…A_1, A_2, \ldots be independent events with P(An)=pn\mathbb{P}(A_n) = p_n. Show that: (a) βˆ‘pn<∞\sum p_n < \infty β‡’\Rightarrow P(AnΒ occurΒ infinitelyΒ often)=0\mathbb{P}(A_n \text{ occur infinitely often}) = 0. (b) βˆ‘pn=∞\sum p_n = \infty β‡’\Rightarrow P(AnΒ occurΒ infinitelyΒ often)=1\mathbb{P}(A_n \text{ occur infinitely often}) = 1. (This is the Borel-Cantelli lemma completed with the independence condition.)

ex-fsp-ch02-16

Hard

Three radar sensors independently detect a target, each with detection probability pp and false alarm probability q<pq < p. The target is present with prior Ο€\pi. A fusion center receives the binary decisions (D1,D2,D3)(D_1, D_2, D_3) from the three sensors.

(a) Using Bayes' theorem, derive the posterior P(target∣D1,D2,D3)\mathbb{P}(\text{target} \mid D_1, D_2, D_3) assuming sensors report independently given the target state.

(b) Show that the fusion rule reduces to: "decide target present if βˆ‘iDiβ‰₯k\sum_i D_i \geq k" for some threshold kk (a simple vote). What is kk?

ex-fsp-ch02-17

Hard

A memoryless binary source emits i.i.d. bits X1,X2,…X_1, X_2, \ldots with P(Xi=1)=p\mathbb{P}(X_i = 1) = p. (a) Compute P(X1n=x1n)\mathbb{P}(X_1^n = x_1^n) for any sequence x1n∈{0,1}nx_1^n \in \{0,1\}^n. (b) Show that for long sequences, almost all probability mass is concentrated on sequences with empirical frequency of 1's close to pp. (Hint: use the law of large numbers.) (c) How many such "typical" sequences are there, approximately?

ex-fsp-ch02-18

Hard

Let AA, BB, CC be events with P(C)>0\mathbb{P}(C) > 0. Prove: AβŠ₯B∣CA \perp B \mid C does NOT imply AβŠ₯BA \perp B (marginal independence). Give an explicit counterexample, then explain the "explaining away" phenomenon.

ex-fsp-ch02-19

Challenge

A sequence of events A1,A2,…A_1, A_2, \ldots satisfies βˆ‘nP(An)=∞\sum_n \mathbb{P}(A_n) = \infty. Without assuming independence, can we conclude P(lim sup⁑An)>0\mathbb{P}(\limsup A_n) > 0?

(a) Give a simple counterexample showing the answer is no without independence. (b) State the additional assumption (beyond βˆ‘pn=∞\sum p_n = \infty) under which a positive-probability conclusion CAN be drawn. (Hint: look up the Kochen-Stone lemma.)

ex-fsp-ch02-20

Challenge

A secret key generation protocol proceeds as follows. Alice and Bob each observe nn i.i.d. binary symbols: Alice observes X1nX_1^n, Bob observes Y1nY_1^n, where (Xi,Yi)(X_i, Y_i) are i.i.d. copies of (X,Y)(X, Y) with P(X=0)=P(X=1)=1/2\mathbb{P}(X=0) = \mathbb{P}(X=1) = 1/2 and P(Y=X)=1βˆ’Ο΅\mathbb{P}(Y=X) = 1-\epsilon (a BSC with crossover Ο΅\epsilon).

(a) Using the chain rule and independence, compute P(X1n=xn,Y1n=yn)\mathbb{P}(X_1^n = x^n, Y_1^n = y^n). (b) Compute P(X1n=Y1n)\mathbb{P}(X_1^n = Y_1^n) (probability of complete agreement). (c) Using the binomial distribution, show that the number of positions where Xi≠YiX_i \neq Y_i concentrates near nϡn\epsilon for large nn.