Exercises

ex-ch05-01

Easy

Let XX be a discrete random variable with P(1)=0.2P(1) = 0.2, P(2)=0.5P(2) = 0.5, P(3)=0.3P(3) = 0.3. Compute E[X]\mathbb{E}[X] and Var(X)\text{Var}(X).

ex-ch05-02

Easy

Show that E[1A]=P(A)\mathbb{E}[\mathbf{1}_A] = \mathbb{P}(A) for any event AA.

ex-ch05-03

Easy

A fair die is rolled once. Compute the entropy H(X)H(X) in bits.

ex-ch05-04

Easy

If X∼Geometric(p=0.25)X \sim \text{Geometric}(p = 0.25), what is P(X>4∣X>2)\mathbb{P}(X > 4 \mid X > 2)?

ex-ch05-05

Medium

Let X∼Binomial(n,p)X \sim \text{Binomial}(n, p). Derive the MGF MX(t)=[(1βˆ’p)+pet]nM_X(t) = [(1-p) + pe^t]^n directly from the definition.

ex-ch05-06

Medium

Prove that Var(X)β‰₯0\text{Var}(X) \geq 0, with equality iff XX is a.s. constant.

ex-ch05-07

Medium

Let X∼Poisson(Ξ»)X \sim \text{Poisson}(\lambda). Verify directly that βˆ‘k=0∞P(k)=1\sum_{k=0}^{\infty} P(k) = 1.

ex-ch05-08

Medium

A packet is retransmitted until it is received correctly. Each transmission succeeds independently with probability p=0.8p = 0.8. Let XX be the total number of transmissions. Find E[X]\mathbb{E}[X] and Var(X)\text{Var}(X).

ex-ch05-09

Medium

Show that the geometric distribution is the only discrete memoryless distribution. That is, if XX takes values in {1,2,…}\{1, 2, \ldots\} and satisfies P(X>m+n∣X>m)=P(X>n)\mathbb{P}(X > m + n \mid X > m) = \mathbb{P}(X > n) for all m,nβ‰₯1m, n \geq 1, then X∼Geometric(p)X \sim \text{Geometric}(p) for some p∈(0,1)p \in (0, 1).

ex-ch05-10

Medium

Compute the entropy of the geometric distribution X∼Geometric(p)X \sim \text{Geometric}(p) in bits.

ex-ch05-11

Hard

Prove the Poisson limit theorem: if Xn∼Binomial(n,Ξ»/n)X_n \sim \text{Binomial}(n, \lambda/n) for a fixed Ξ»>0\lambda > 0, then P(Xn=k)β†’eβˆ’Ξ»Ξ»k/k!\mathbb{P}(X_n = k) \to e^{-\lambda}\lambda^k/k! as nβ†’βˆžn \to \infty.

ex-ch05-12

Hard

Let XX and YY be independent with X∼Poisson(λ)X \sim \text{Poisson}(\lambda) and Y∼Poisson(μ)Y \sim \text{Poisson}(\mu). Show that X+Y∼Poisson(λ+μ)X + Y \sim \text{Poisson}(\lambda + \mu).

ex-ch05-13

Hard

Show that entropy is concave: if pp and qq are two PMFs on X\mathcal{X} and α∈[0,1]\alpha \in [0, 1], then

H(Ξ±p+(1βˆ’Ξ±)q)β‰₯Ξ±H(p)+(1βˆ’Ξ±)H(q).H(\alpha p + (1-\alpha)q) \geq \alpha H(p) + (1-\alpha) H(q).

ex-ch05-14

Hard

Derive the mean and variance of the hypergeometric distribution using the indicator method. Specifically, draw rr items without replacement from a population of nn (n1n_1 good, nβˆ’n1n - n_1 bad). Show E[X]=rn1/n\mathbb{E}[X] = rn_1/n and Var(X)=rβ‹…n1nβ‹…nβˆ’n1nβ‹…nβˆ’rnβˆ’1\text{Var}(X) = r \cdot \frac{n_1}{n} \cdot \frac{n - n_1}{n} \cdot \frac{n - r}{n - 1}.

ex-ch05-15

Challenge

Let XX be a random variable taking values in {1,2,…}\{1, 2, \ldots\} with E[X]=ΞΌ\mathbb{E}[X] = \mu. Among all such distributions, find the one that maximizes the entropy H(X)H(X).

ex-ch05-16

Medium

A sensor network has 100 nodes. Each node independently fails with probability 0.02. Approximate the probability that at least 5 nodes fail, using the Poisson approximation.

ex-ch05-17

Medium

Compute the MGF of the Poisson(Ξ»)(\lambda) distribution and use it to verify that E[X]=Ξ»\mathbb{E}[X] = \lambda and Var(X)=Ξ»\text{Var}(X) = \lambda.

ex-ch05-18

Challenge

(Coupon collector) There are nn types of coupons. Each purchase gives a uniformly random coupon. Let TT be the number of purchases needed to collect all nn types. Show that E[T]=nβˆ‘k=1n1/k=nHn\mathbb{E}[T] = n \sum_{k=1}^{n} 1/k = n H_n, where HnH_n is the nn-th harmonic number.

ex-ch05-19

Easy

If X∼Binomial(20,0.3)X \sim \text{Binomial}(20, 0.3), compute E[X]\mathbb{E}[X] and Var(X)\text{Var}(X).

ex-ch05-20

Hard

Show that the entropy of the Poisson(Ξ»)(\lambda) distribution grows as H(X)β‰ˆ12log⁑2(2Ο€eΞ»)H(X) \approx \frac{1}{2}\log_2(2\pi e \lambda) for large Ξ»\lambda.