Section 3.7

Conditional distributions and conditional expectation

[14/100%]
Show
LaTeX
Problem 3.7.1

Show the following:

?
(a)

E[aY+bZ∣X]=aE[Y∣X]+bE[Z∣X]\mathbb {E}\left[a Y+b Z \mid X\right] = a \mathbb {E}\left[Y \mid X\right]+b \mathbb {E}\left[Z \mid X\right] for a,b∈Ra, b \in \mathbb {R},

(b)

E[Y∣X]≥0\mathbb {E}\left[Y \mid X\right] \geq 0 if Y≥0Y \geq 0,

(c)

E[1∣X]=1\mathbb {E}\left[1 \mid X\right] = 1,

(d)

if XX and YY are independent then E[Y∣X]=E[Y]\mathbb {E}\left[Y \mid X\right] = \mathbb {E}\left[Y\right],

(e)

('pull-through property') E[Yg(X)∣X]=g(X)E[Y∣X]\mathbb {E}\left[Y g(X) \mid X\right] = g(X) \mathbb {E}\left[Y \mid X\right] for any suitable function gg,

(f)

('tower property') E[E[Y∣X,Z]∣X]=E[Y∣X]=E[E[Y∣X]∣X,Z]\mathbb {E}\left[\mathbb {E}\left[Y \mid X, Z\right] \mid X\right] = \mathbb {E}\left[Y \mid X\right] = \mathbb {E}\left[\mathbb {E}\left[Y \mid X\right] \mid X, Z\right].

Problem 3.7.2

Suppose that XX and YY are discrete random variables, and that ϕ(X)\phi (X) and ψ(X)\psi (X) are two functions of XX satisfying

E[ϕ(X)g(X)]=E[ψ(X)g(X)]=E[Yg(X)] \mathbb {E}\left[\phi (X) g(X)\right] = \mathbb {E}\left[\psi (X) g(X)\right] = \mathbb {E}\left[Y g(X)\right]

for any function gg for which all the expectations exist. Show that ϕ(X)\phi (X) and ψ(X)\psi (X) are almost surely equal, in that P(ϕ(X)=ψ(X))=1\mathbb {P}\left(\phi (X) = \psi (X)\right) = 1.

?
Problem 3.7.3

Suppose that the conditional expectation of YY given XX is defined as the (almost surely) unique function ψ(X)\psi (X) such that E[ψ(X)g(X)]=E[Yg(X)]\mathbb {E}\left[\psi (X) g(X)\right] = \mathbb {E}\left[Y g(X)\right] for all functions gg for which the expectations exist. Show (a)-(f) of Exercise (3.7.1) above (with the occasional addition of the expression 'with probability 11').

?
Problem 3.7.4

How should we define Var⁡[Y∣X]\operatorname {Var}\left[Y \mid X\right], the conditional variance of YY given XX? Show that Var⁡[Y]=E[Var⁡[Y∣X]]+Var⁡[E[Y∣X]]\operatorname {Var}\left[Y\right] = \mathbb {E}\left[\operatorname {Var}\left[Y \mid X\right]\right]+\operatorname {Var}\left[\mathbb {E}\left[Y \mid X\right]\right].

?
Problem 3.7.5

The lifetime of a machine (in days) is a random variable TT with mass function ff. Given that the machine is working after tt days, what is the mean subsequent lifetime of the machine when:

?
(a)

f(x)=(N+1)−1f(x) = (N+1)^{-1} for x∈{0,1,…,N}x \in \left\{ 0,1, \ldots , N\right\},

(b)

f(x)=2−xf(x) = 2^{-x} for x=1,2,…x = 1,2, \ldots (The first part of Problem (3.11.13) may be useful.)

Problem 3.7.6

Let X1,X2,…X_{1}, X_{2}, \ldots be identically distributed random variables with mean μ\mu and variance σ2\sigma^{2}, and let NN be a random variable taking values in the non-negative integers and independent of the XiX_{i}. Let S=X1+X2+⋯+XNS = X_{1}+X_{2}+\cdots +X_{N}. Show that E[S∣N]=μN\mathbb {E}\left[S \mid N\right] = \mu N, and deduce that E[S]=μE[N]\mathbb {E}\left[S\right] = \mu \mathbb {E}\left[N\right]. Find Var⁡[S]\operatorname {Var}\left[S\right] in terms of the first two moments of NN, using the conditional variance formula of Exercise (3.7.4).

?
Problem 3.7.7

A factory has produced nn robots, each of which is faulty with probability ϕ\phi. To each robot a test is applied which detects the fault (if present) with probability δ\delta. Let XX be the number of faulty robots, and YY the number detected as faulty. Assuming the usual independence, show that

E[X∣Y]={nϕ(1−δ)+(1−ϕ)Y}/(1−ϕδ) \mathbb {E}\left[X \mid Y\right] = \left\{ n \phi (1-\delta )+(1-\phi ) Y\right\} /(1-\phi \delta )
?
Problem 3.7.8

Each child is equally likely to be male or female, independently of all other children.

?
(a)

Show that, in a family of predetermined size, the expected number of boys equals the expected number of girls. Was the assumption of independence necessary?

(b)

A randomly selected child is male; does the expected number of his brothers equal the expected number of his sisters? What happens if you do not require independence?

Problem 3.7.9

Let XX and YY be independent with mean μ\mu. Explain the error in the following equation:

′E[X∣X+Y=z]=E[X∣X=z−Y]=E[z−Y]=z−μ′ { }^{\prime } \mathbb {E}\left[X \mid X+Y = z\right] = \mathbb {E}\left[X \mid X = z-Y\right] = \mathbb {E}\left[z-Y\right] = z-\mu ^{\prime }
?
Problem 3.7.10

A coin shows heads with probability pp. Let XnX_{n} be the number of flips required to obtain a run of nn consecutive heads. Show that E[Xn]=∑k=1np−k\mathbb {E}\left[X_{n}\right] = \sum_{k = 1}^{n} p^{-k}.

?
Problem 3.7.11

Give a definition of the conditional covariance Cov⁡[X,Y∣Z]\operatorname {Cov}\left[X, Y \mid Z\right]. Show that

Cov⁡[X,Y]=E[cov⁡(X,Y∣Z)]+Cov⁡[E[X∣Z],E[Y∣Z]] \operatorname {Cov}\left[X, Y\right] = \mathbb {E}\left[\operatorname {cov}(X, Y \mid Z)\right]+\operatorname {Cov}\left[\mathbb {E}\left[X \mid Z\right], \mathbb {E}\left[Y \mid Z\right]\right]
?
Problem 3.7.12

An urn contains initially bb blue balls and rr red balls, where b,r≥2b, r \geq 2. Balls are drawn one by one without replacement. Show that the mean number of draws until the first colour drawn is first repeated equals 3.

?
Problem 3.7.13
?
(a)

Let XX be uniformly distributed on {0,1,…,n}\left\{ 0,1, \ldots , n\right\}. Show that Var⁡[X]=112n(n+2)\operatorname {Var}\left[X\right] = \frac{1}{12} n(n+2).

(b)

A student sits two examinations, gaining XX and YY marks, respectively. In the interests of economy and fairness, the examiner determines that XX shall be uniformly distributed on {0,1,…,n}\left\{ 0,1, \ldots , n\right\}, and that, conditional on X=k,YX = k, Y shall have the binomial bin⁡(n,k/n)\operatorname {bin}(n, k / n) distribution.

(i) Show that E[Y]=12n\mathbb {E}\left[Y\right] = \frac{1}{2} n, and Var⁡[Y]=112(n2+4n−2)\operatorname {Var}\left[Y\right] = \frac{1}{12}\left(n^{2}+4 n-2\right).

(ii) Find E[X+Y]\mathbb {E}\left[X+Y\right] and Var⁡[X+Y]\operatorname {Var}\left[X+Y\right].

Problem 3.7.14

Let X,YX, Y be discrete integer-valued random variables with the joint mass function

f(x,y)=λye−2λx!(y−x)!,0≤x≤y<∞ f(x, y) = \frac{\lambda ^{y} e^{-2 \lambda }}{x!(y-x)!}, \quad 0 \leq x \leq y < \infty

Show that XX and YY are each Poisson-distributed, and that the conditional distribution of XX given YY is binomial.

?