Chapter 4 Exercises
Casella & Berger, Statistical Inference (2nd ed.)
How to use these solutions
- Textbook: George Casella & Roger L. Berger, Statistical Inference, Second Edition (CRC 2024 reprint; the body text matches the 2001 second edition).
- Range: Chapter 4, §4.8 Exercises 4.1–4.65.
- Pages: printed 157–166, PDF 188–197 (approximately PDF page = printed page + 31).
- Companion notes:
ch04-notes.qmd. Miscellanea §4.9 is used for Exercises 4.8, 4.57, and 4.60–4.61.
Exercise 4.1
Uniform on the square \([-1,1]^2\), \(f=1/4\).
(a) The unit disk lies inside the square. Area \(\pi\), probability \(\pi/4\).
(b) \(2X-Y>0\Leftrightarrow Y<2X\). \((X,Y)\) and \((-X,-Y)\) are equal in distribution, so \(2X-Y\) is symmetric about \(0\); the continuous law has no atom, hence \(P(2X-Y>0)=1/2\).
(Direct computation: the square has area \(4\), and the region \(Y>2X\) has area \(\int_{-1}^{-1/2}2\,dx+\int_{-1/2}^{1/2}(1-2x)\,dx=1+1=2\), so the probability is likewise \(1/2\).)
(c) \(|X+Y|<2\): on the square one always has \(|x|+|y|\le 2\) (the maximum \(|x|+|y|=2\) occurs only at the vertices, a set of area zero). Probability \(1\).
Exercise 4.2
Linearity and monotonicity of bivariate expectation.
Split \(Eg=\iint g f\,dx\,dy\) (or the corresponding sum). Constants factor out; a nonnegative integrand has a nonnegative integral; \(g_1\ge g_2\Rightarrow g_1-g_2\ge 0\). Same argument as Theorem 2.2.5.
Exercise 4.3
Use Definition 4.1.1 to check that the random vector at the end of Example 4.1.5 has the stated joint pmf.
Example 4.1.5 maps the \(36\) equally likely dice outcomes through a function \((X,Y)\) onto a collection of cells. For each cell \((x,y)\), count the preimages and divide by \(36\) to obtain the table \(f(x,y)\). That is precisely the induced probability of Definition 4.1.1.
Exercise 4.4
\(f=C(x+2y)\), \(0<y<1\), \(0<x<2\).
(a) \(\int_0^2\int_0^1(x+2y)\,dy\,dx=\int_0^2(x+1)\,dx=4\), so \(C=1/4\).
(b) \(f_X(x)=\frac14\int_0^1(x+2y)\,dy=\frac14(x+1)\), \(0<x<2\).
(c) Inside the rectangle, \(F(x,y)=\int_0^x\int_0^y\frac14(u+2v)\,dv\,du=\frac14(xy^2+x^2 y/2)\) (for \(0\le x\le 2\), \(0\le y\le 1\)). Outside the rectangle, truncate in the usual way.
(d) \(Z=9/(X+1)^2\). \(X\in(0,2)\Rightarrow Z\in(1,9)\). \(x=3/\sqrt{z}-1\), \(|dx/dz|=3/(2z^{3/2})\). \(f_Z(z)=\frac14(3z^{-1/2})\cdot 3/(2z^{3/2})=9/(8z^2)\), \(1<z<9\).
Exercise 4.5
Joint probabilities on two unit squares.
(a) \(P(X>\sqrt{Y})=\int_0^1\int_0^{x^2}(x+y)\,dy\,dx=\int_0^1\bigl(x^3+x^4/2\bigr)\,dx=1/4+1/10=0.35\).
(b) \(P(X^2<Y<X)=\int_0^1\int_{x^2}^x 2x\,dy\,dx=\int_0^1 2x(x-x^2)\,dx=2(1/3-1/4)=1/6\).
Exercise 4.6
Two people arrive independently as \(U(0,1)\). \(A\)’s waiting time for \(B\) (zero if \(B\) arrives first).
Let the arrival times be \(A,B\sim\mathrm{iid}\,U(0,1)\) and \(W=(B-A)_+\). \(P(W=0)=P(B\le A)=1/2\). For \(0<w<1\), \[ P(W>w)=P(B>A+w)=\int_0^{1-w}\int_{a+w}^1 dy\,da=\frac{(1-w)^2}{2}. \] Hence \(F_W(w)=0\) for \(w<0\); there is a jump of \(1/2\) at \(0\); for \(w\in(0,1)\), \(F_W(w)=1-(1-w)^2/2\); and \(F_W=1\) thereafter. The absolutely continuous part has density \(f_W(w)=1-w\), \(0<w<1\).
Exercise 4.7
Departure \(X\sim U(0,30)\) minutes, trip length \(Y\sim U(40,50)\), independent. \(P(X+Y<60)\).
The rectangle \([0,30]\times[40,50]\) has area \(300\). \(x+y<60\Leftrightarrow y<60-x\). \(Y\ge 40\), so \(60-x>40\) only for \(x<20\). For \(x\in[0,10]\) the entire \(y\)-range works (area \(100\)). For \(x\in[10,20]\), \(y\) runs from \(40\) to \(60-x\): \[ \int_{10}^{20}(20-x)\,dx=\bigl[20x-x^2/2\bigr]_{10}^{20}=50. \] For \(x\in[20,30]\) the slice is empty. Area \(150\), probability \(1/2\).
Exercise 4.8
The exchange paradox (Miscellanea 4.9.1).
(a) Given \(M=m\), an envelope is chosen at random, so \(P(X=m)=P(X=2m)=1/2\). Bayes: \(P(M=x\mid X=x)=\frac{\pi(x)/2}{\pi(x)/2+\pi(x/2)/2}=\frac{\pi(x)}{\pi(x)+\pi(x/2)}\), \(P(M=x/2\mid X=x)=\pi(x/2)/(\pi(x)+\pi(x/2))\).
(b) After switching, the conditional expectation is \(E(Y\mid X=x)=\frac12 x\cdot P(M=x\mid x)+2x\cdot P(M=x/2\mid x)\), more carefully: if \(M=x\) then the other envelope is \(2x\); if \(M=x/2\) then the other envelope is \(x/2\). \(E(\text{other}\mid x)=\frac{2x\pi(x)+ (x/2)\pi(x/2)}{\pi(x)+\pi(x/2)}\). This beats \(x\) if and only if \(2\pi(x)+(1/2)\pi(x/2)>\pi(x)+\pi(x/2)\), i.e. \(\pi(x/2)<2\pi(x)\). For the exponential density \(\pi(m)=\lambda e^{-\lambda m}\) (\(m>0\)): \(\lambda e^{-\lambda x/2}<2\lambda e^{-\lambda x}\Leftrightarrow e^{\lambda x/2}<2\Leftrightarrow x<2\log 2/\lambda\).
(c) Classical resolution: if you hold \(x=m\) (the smaller amount), the other envelope is necessarily \(2m\); if you hold \(2m\), the other is \(m\). Each occurs with probability \(1/2\), so the switched expectation is \(3m/2\), and staying also has \(E(X)=3m/2\). No paradox.
Exercise 4.9
A factorizing joint cdf implies factorizing rectangle probabilities.
\(P(a<X\le b,\,c<Y\le d)=F(b,d)-F(a,d)-F(b,c)+F(a,c)\) \(=F_X(b)F_Y(d)-F_X(a)F_Y(d)-F_X(b)F_Y(c)+F_X(a)F_Y(c)\) \(=(F_X(b)-F_X(a))(F_Y(d)-F_Y(c))\). Closed or open intervals are handled separately in the continuous and discrete cases; finitely many points do not matter, or for the discrete case one uses jumps directly.
Exercise 4.10
Given a joint table: dependence; construct an independent pair with the same margins.
(a) \(P(X=1,Y=4)=0\), but \(P(X=1)>0\) and \(P(Y=4)>0\), so the joint cannot factor.
(b) Margins: \(P(X=1)=1/12+1/6+0=1/4\), \(P(X=2)=1/6+0+1/3=1/2\), \(P(X=3)=1/4\); \(P(Y=2)=1/3\), \(P(Y=3)=1/3\), \(P(Y=4)=1/3\). The independent table is the product: e.g. cell \((1,2)\) is \(1/12\), cell \((2,4)\) is \(1/6\), and so on.
Exercise 4.11
Fair coin: \(U=\) trial number of the first head, \(V=\) trial number of the second head. Independent?
\(U\le V\) almost surely, so \(P(U=3,V=2)=0\ne P(U=3)P(V=2)\). Not independent.
Exercise 4.12
A stick is broken at random into three pieces. Probability that they form a triangle.
The two break points are \(U_{(1)}<U_{(2)}\), uniform order statistics. The three pieces are \(X=U_{(1)}\), \(Y=U_{(2)}-U_{(1)}\), \(Z=1-U_{(2)}\). Triangle: each side \(<1/2\). The law is uniform on the simplex \(x+y+z=1\), \(x,y,z>0\) (an equilateral triangle of area \(\sqrt{3}/2\); equivalently \((U_{(1)},U_{(2)})\) has density \(2\) on \(\{0<u<v<1\}\)). The constraints are \(u<1/2\), \(v-u<1/2\), \(1-v<1/2\). The favorable region has area \(1/8\) and the total area is \(1/2\), so the probability is \(1/4\).
Exercise 4.13
\(E(Y-g(X))^2\) is minimized at \(g(x)=E(Y\mid x)\).
(a) Write \(Y-g(X)=(Y-E(Y\mid X))+(E(Y\mid X)-g(X))\). The cross term is \(E\bigl[(Y-E(Y\mid X))(E(Y\mid X)-g(X))\bigr]=E\bigl[E(Y-E(Y\mid X)\mid X)\,(\cdots)\bigr]=0\). The second term is \(\ge 0\), and equals \(0\) when \(g(X)=E(Y\mid X)\) a.s.
(b) If \(X\) is degenerate (constant) then \(E(Y\mid X)=EY\), recovering (2.2.3).
Exercise 4.14
Independent \(n(0,1)\): \(P(X^2+Y^2<1)\); \(X^2\sim\chi^2_1\).
(a) The joint law of \((X,Y)\) is rotationally symmetric. \(R^2=X^2+Y^2\sim\mathrm{exp}(2)=\chi^2_2\), so \(P(R^2<1)=1-e^{-1/2}\).
(b) Example 2.1.9: \(X^2\sim\chi^2_1\). \(P(X^2<1)=P(|Z|<1)=2\Phi(1)-1\approx 0.6827\).
Exercise 4.15
Independent Poissons: the distribution of \(X\mid X+Y\).
\(P(X=k\mid X+Y=n)=\dfrac{e^{-\theta}\theta^k/k!\cdot e^{-\lambda}\lambda^{n-k}/(n-k)!}{e^{-(\theta+\lambda)}(\theta+\lambda)^n/n!} =\binom{n}{k}\bigl(\theta/(\theta+\lambda)\bigr)^k\bigl(\lambda/(\theta+\lambda)\bigr)^{n-k}\). Hence \(X\mid X+Y=n\sim\mathrm{binomial}(n,\theta/(\theta+\lambda))\) and \(Y\mid X+Y=n\sim\mathrm{binomial}(n,\lambda/(\theta+\lambda))\).
Exercise 4.16
iid geometrics: \(U=\min(X,Y)\), \(V=X-Y\).
Take \(P(X=k)=p(1-p)^k\), \(k=0,1,\ldots\).
(a) \(P(U=u,V=v)\): if \(v\ge 0\) then \(X=u+v\), \(Y=u\); if \(v<0\) then \(X=u\), \(Y=u-v\). \(P(U=u,V=v)=p^2(1-p)^{2u+|v|}\). This factors as \(\bigl[p(1-p)^{2u}\bigr]\cdot\bigl[p(1-p)^{|v|}\bigr]\) up to a constant correction: is \(P(U=u)=(2p-p^2)((1-p)^2)^u\)? \(P(U\ge u)=P(X\ge u)P(Y\ge u)=(1-p)^{2u}\), so \(P(U=u)=(1-p)^{2u}-(1-p)^{2u+2}=p(2-p)(1-p)^{2u}\). \(P(V=v)=c(1-p)^{|v|}\). The product recovers the joint, so \(U\) and \(V\) are independent.
(b) \(Z=X/(X+Y)\) (and \(Z=0\) if \(X=Y=0\)). \(P(X=Y=0)=p^2\). For \(k=0,\ldots,n\) with \(n\ge 1\), \(P(X=k,X+Y=n)\) has no binomial coefficient in the geometric case: \(P(X=k,Y=n-k)=p^2(1-p)^n\). Thus given \(X+Y=n\ge 1\), \(X\sim\mathrm{uniform}\{0,\ldots,n\}\), and \(Z\) takes the values \(k/n\) each with probability \(1/(n+1)\). Mix these discrete uniforms.
(c) \(P(X=k,X+Y=n)=p^2(1-p)^n\), \(n=k,k+1,\ldots\).
Exercise 4.17
\(X\sim\mathrm{exp}(1)\), \(Y=\lfloor X\rfloor+1\).
(a) \(P(Y=i+1)=P(i\le X<i+1)=e^{-i}-e^{-(i+1)}=(1-e^{-1})e^{-i}\), \(i=0,1,\ldots\). Thus \(Y\sim\mathrm{geometric}(1-e^{-1})\) (trial-count version, starting at \(1\)).
(b) Memorylessness of the exponential: \(X-4\mid X\ge 4\sim\mathrm{exp}(1)\). Also \(Y\ge 5\Leftrightarrow X\ge 4\), so \(X-4\mid Y\ge 5\sim\mathrm{exp}(1)\).
Exercise 4.18
\(g\ge 0\), \(\int_0^\infty g=1\). Show that \(f(x,y)=\frac{2}{\pi}g(\sqrt{x^2+y^2})/\sqrt{x^2+y^2}\), \(x,y>0\), is a pdf.
Polar coordinates in the first quadrant: \(x=r\cos\theta\), \(y=r\sin\theta\), \(dx\,dy=r\,dr\,d\theta\), \(\theta\in(0,\pi/2)\), \(r>0\). \[ \int_0^{\pi/2}\int_0^\infty\frac{2}{\pi}\frac{g(r)}{r}\cdot r\,dr\,d\theta=\frac{2}{\pi}\cdot\frac{\pi}{2}\int_0^\infty g(r)\,dr=1. \]
Exercise 4.19
\((X_1-X_2)^2/2\); the ratio of independent gammas.
(a) \(X_1-X_2\sim n(0,2)\), so \((X_1-X_2)/\sqrt{2}\sim n(0,1)\) and the square is \(\sim\chi^2_1\).
(b) By the same transformation as Example 4.3.3 (or 4.24): \(X_1/(X_1+X_2)\sim\mathrm{beta}(\alpha_1,\alpha_2)\) and \(X_2/(X_1+X_2)\sim\mathrm{beta}(\alpha_2,\alpha_1)\).
Exercise 4.20
Independent \(n(0,\sigma^2)\): \(Y_1=X_1^2+X_2^2\), \(Y_2=X_1/\sqrt{Y_1}\).
(a) Polar coordinates: \(Y_1=R^2\sim\sigma^2\chi^2_2=\mathrm{exp}(2\sigma^2)\), and \(Y_2\) is \(\cos\theta\) (up to sign). \(\theta\sim U(0,2\pi)\) is independent of \(R\). \(Y_2=\cos\theta\) has density \(1/(\pi\sqrt{1-y_2^2})\), \(|y_2|<1\) (arcsine).
(b) Independence of \(\theta\) and \(R\) implies independence of \(Y_1\) and \(Y_2\). Geometry: radius and polar angle are independent (two-dimensional isotropic normal).
Exercise 4.21
\(R^2\sim\chi^2_2\), \(\theta\sim U(0,2\pi)\) independent. \((X,Y)=(R\cos\theta,R\sin\theta)\).
\(R^2\sim\mathrm{exp}(2)\), so \(R\) has density \(re^{-r^2/2}\), \(r>0\). The joint density of \((R,\theta)\) is \((1/(2\pi))re^{-r^2/2}\). The Jacobian to \((X,Y)\) is \(1/r\), hence \(f_{X,Y}=\frac{1}{2\pi}e^{-(x^2+y^2)/2}\): independent standard normals.
Exercise 4.22
\(U=aX+b\), \(V=cY+d\), \(a>0,c>0\).
Inverse: \(x=(u-b)/a\), \(y=(v-d)/c\), \(J=1/(ac)\). This yields \(f_{U,V}(u,v)=\frac1{ac}f\bigl((u-b)/a,(v-d)/c\bigr)\).
Exercise 4.23
\(XY\) from Example 4.3.3, with two choices of complementary variable.
(a) \(U=XY\), \(V=Y\): inverse \(y=v\), \(x=u/v\), \(J=-1/v\). Parallel to the text; integrating out \(v\) gives \(\mathrm{beta}(\alpha,\beta+\gamma)\).
(b) \(U=XY\), \(V=X/Y\): inverse \(x=\sqrt{uv}\), \(y=\sqrt{u/v}\), \(J=1/(2v)\). The support must be redrawn; integrating out \(v\) yields the same margin.
Exercise 4.24
Independent \(\mathrm{gamma}(r,1)\) and \(\mathrm{gamma}(s,1)\). \(Z_1=X+Y\), \(Z_2=X/(X+Y)\).
Inverse \(x=z_1 z_2\), \(y=z_1(1-z_2)\), \(J=z_1\). The joint density is \[ \frac{z_1^{r-1}e^{-z_1 z_2}}{\Gamma(r)}\frac{z_1^{s-1}e^{-z_1(1-z_2)}}{\Gamma(s)}z_1 =\frac{z_1^{r+s-1}e^{-z_1}}{\Gamma(r+s)}\cdot\frac{\Gamma(r+s)}{\Gamma(r)\Gamma(s)}z_2^{r-1}(1-z_2)^{s-1}. \] This factors: \(Z_1\sim\mathrm{gamma}(r+s,1)\), \(Z_2\sim\mathrm{beta}(r,s)\), independent.
Exercise 4.25
Recover \((X,Y)\) from the \((X,Z)\) of Examples 4.5.8–4.5.9.
Example 4.5.8: \(Y=X+Z\), \(Z\sim U(0,1/10)\) independent of \(X\sim U(0,1)\) (as set in that example). \(U=X\), \(V=X+Z\). Inverse \(x=u\), \(z=v-u\), \(J=1\). The joint density equals \(10\) on \(0<u<1\), \(u<v<u+1/10\). Example 4.5.9: \(Y=X^2+Z\), similarly; \(0<z<h\) produces a band-shaped region.
Exercise 4.26
Independent exponentials, \(Z=\min(X,Y)\), \(W=I(Z=X)\).
(a) \(P(W=1,Z>z)=P(X>z,Y>X)=P(Y>X>z)\). Alternatively: \(P(Z>z)=e^{-z(1/\lambda+1/\mu)}\) (mean parameterization); the text’s \(\mathrm{exp}(\lambda)\) has density \(\lambda^{-1}e^{-x/\lambda}\). \(P(W=1)=P(X<Y)=\mu/(\lambda+\mu)\) (mean parameterization). \(Z\mid W=1\) is still exponential with rate \(1/\lambda+1/\mu\). Jointly: \(P(W=1,Z\in dz)=\frac1\lambda e^{-z(1/\lambda+1/\mu)}\,dz\).
(b) \(P(Z\le z\mid W=i)=1-e^{-z(1/\lambda+1/\mu)}=P(Z\le z)\). Independent. A classical competing-risks fact.
Exercise 4.27
The sum and difference of independent normals with equal variances are independent.
\(U=X+Y\), \(V=X-Y\). \(J=-1/2\). The joint exponent is \(-[(x-\mu)^2+(y-\gamma)^2]/(2\sigma^2)=-[((u+v)/2-\mu)^2+((u-v)/2-\gamma)^2]/(2\sigma^2)\), which expands with no \(uv\) cross term. Hence independence. \(U\sim n(\mu+\gamma,2\sigma^2)\), \(V\sim n(\mu-\gamma,2\sigma^2)\).
Exercise 4.28
Independent standard normals: \(X/(X+Y)\); \(X/|Y|\).
(a) \(X+Y\sim n(0,2)\) is not independent of \(X\). Directly: \(X/(X+Y)=1/(1+Y/X)\), \(Y/X\sim\mathrm{Cauchy}\), and a further transformation yields a Cauchy (location \(1/2\), scale \(1/2\)). Cleaner: \(X/(X+Y)=\frac12+\frac12\frac{X-Y}{X+Y}\), and \((X-Y)/(X+Y)\) is the ratio of independent equal-variance normals, hence standard Cauchy. Thus \(X/(X+Y)\) is Cauchy\((1/2,1/2)\).
(b) \(X/|Y|\): \(|Y|\) and \(Y\) differ only by a sign. \(X/Y\sim\mathrm{Cauchy}\) is symmetric about \(0\), so \(X/|Y|\) and \(X/Y\) are equal in distribution, still Cauchy.
(c) In general: if \(X\) is symmetric about \(0\) and independent of \(Y\), then \(X/|Y|\) and \(X/Y\) are equal in distribution.
Exercise 4.29
\(X=R\cos\theta\), \(Y=R\sin\theta\), \(\theta\sim U(0,2\pi)\) independent of \(R>0\).
(a) \(X/Y=\cot\theta\), which does not involve \(R\). The cotangent of \(\theta\sim U(0,2\pi)\) is standard Cauchy.
(b) The printed map is \(2XY/\sqrt{X^2+Y^2}=R\sin(2\theta)\), not \(2XY/(X^2+Y^2)=\sin(2\theta)\in[-1,1]\). Since \(2\theta\bmod 2\pi\sim U(0,2\pi)\) is independent of \(R\), \(R\sin(2\theta)\) has the same law as \(X=R\cos\theta\). If \(X,Y\) are iid \(n(0,\sigma^2)\) this is again \(n(0,\sigma^2)\).
Exercise 4.30
\(Y\mid x\sim n(x,x^2)\), \(X\sim U(0,1)\).
(a) \(E(Y\mid X)=X\), so \(EY=1/2\). \(\mathrm{Var}(Y\mid X)=X^2\), \(E(\mathrm{Var}(Y\mid X))=1/3\), \(\mathrm{Var}(E(Y\mid X))=\mathrm{Var}\,X=1/12\), hence \(\mathrm{Var}\,Y=5/12\). \(\mathrm{Cov}(X,Y)=\mathrm{Cov}(X,E(Y\mid X))=\mathrm{Var}\,X=1/12\).
(b) \(Y/X\mid X=x\sim n(1,1)\), which does not depend on \(x\). Hence \(Y/X\sim n(1,1)\) is independent of \(X\).
Exercise 4.31
\(Y\mid X\sim\mathrm{binomial}(n,X)\), \(X\sim U(0,1)\).
(a) \(EY=E(nX)=n/2\). \(\mathrm{Var}\,Y=E(nX(1-X))+\mathrm{Var}(nX)=n/6+n^2/12\).
(b) \(f(x,y)=\binom{n}{y}x^y(1-x)^{n-y}\), \(0<x<1\), \(y=0,\ldots,n\).
(c) \(P(Y=y)=\binom{n}{y}B(y+1,n-y+1)=1/(n+1)\). Discrete uniform.
Exercise 4.32
Poisson–gamma and a three-stage hierarchy.
(a) \(P(Y=y)=\int \frac{e^{-\lambda}\lambda^y}{y!}\frac{\lambda^{\alpha-1}e^{-\lambda/\beta}}{\Gamma(\alpha)\beta^\alpha}\,d\lambda =\frac{\Gamma(y+\alpha)}{y!\Gamma(\alpha)}\bigl(\frac{\beta}{1+\beta}\bigr)^y\bigl(\frac{1}{1+\beta}\bigr)^\alpha\). This is negative binomial (\(r=\alpha\), \(p=1/(1+\beta)\)), and when \(\alpha\) is an integer it is exactly (3.2.10). \(EY=E\Lambda=\alpha\beta\), \(\mathrm{Var}\,Y=E\Lambda+\mathrm{Var}\,\Lambda=\alpha\beta+\alpha\beta^2\).
(b) \(Y\mid N\sim\mathrm{binomial}(N,p)\) and \(N\mid\Lambda\sim\mathrm{Poisson}(\Lambda)\) imply \(Y\mid\Lambda\sim\mathrm{Poisson}(p\Lambda)\) (Example 4.4.2). Mixing \(\Lambda\sim\mathrm{gamma}(\alpha,\beta)\) then gives \(Y\sim\mathrm{NB}(\alpha,1/(1+p\beta))\), of the same type as (a) with \(\beta\) replaced by \(p\beta\). If the problem asks for the same margin, the parameters must be aligned: \(p\Lambda\) has the same law as the original \(\Lambda\) only if \(p=1\) or \(\beta\) is rescaled. The intended point is that one remains in the negative binomial family.
Exercise 4.33
Randomly stopped sum: a Poisson number of logarithmic-series variables \(\to\) negative binomial.
\(M_{X_i}(t)=\log(1-(1-p)e^t)/\log p\) (equivalently \(E s^{X}=\log(1-(1-p)s)/\log p\)). \(M_{H\mid N}(t)=(M_X(t))^N\), \(M_H(t)=E(M_X(t))^N=\exp(\lambda(M_X(t)-1))\). \(M_X(t)-1=\log(1-(1-p)e^t)/\log p-1=\log\bigl((1-(1-p)e^t)/p\bigr)/\log p\). Set \(r=-\lambda/\log p\): \(M_H(t)=\bigl(p/(1-(1-p)e^t)\bigr)^r\), negative binomial.
Exercise 4.34
Beta–binomial and beta–Pascal.
(a) \(P(X=x)=\int_0^1\binom{n}{x}p^x(1-p)^{n-x}\frac{p^{\alpha-1}(1-p)^{\beta-1}}{B(\alpha,\beta)}\,dp =\binom{n}{x}\frac{B(x+\alpha,n-x+\beta)}{B(\alpha,\beta)}\).
(b) \(P(X=x)=\binom{r+x-1}{x}\frac{B(r+\alpha,x+\beta)}{B(\alpha,\beta)}\) (mix \(p^r(1-p)^x\) against a beta). \(EX=E[r(1-P)/P]=r B(\alpha-1,\beta+1)/B(\alpha,\beta)=r\beta/(\alpha-1)\) (for \(\alpha>1\)). The variance uses 4.4.7: \(E(\mathrm{Var}(X\mid P))+\mathrm{Var}(E(X\mid P))\).
Exercise 4.35
Extra-binomial / extra-Poisson variation.
(a) \(\mathrm{Var}\,X=E[nP(1-P)]+\mathrm{Var}(nP)=nEP(1-EP)-n\mathrm{Var}\,P+n^2\mathrm{Var}\,P\) \(=nEP(1-EP)+n(n-1)\mathrm{Var}\,P\).
(b) \(\mathrm{Var}\,Y=E\Lambda+\mathrm{Var}\,\Lambda=\mu+\mu^2/\alpha\) (gamma: \(\mathrm{Var}\,\Lambda=\mu^2/\alpha\)).
Exercise 4.36
Different trials have different \(P_i\sim\mathrm{iid\ beta}\).
(a) \(EY=\sum EP_i=n\alpha/(\alpha+\beta)\).
(b) The \(X_i\) are independent (conditionally independent given the \(P\)’s, and the \(P_i\) are iid), so \(\mathrm{Var}\,Y=\sum\mathrm{Var}\,X_i\). \(\mathrm{Var}\,X_i=E[P_i(1-P_i)]+\mathrm{Var}\,P_i=\frac{\alpha\beta}{(\alpha+\beta)(\alpha+\beta+1)}+\frac{\alpha\beta}{(\alpha+\beta)^2(\alpha+\beta+1)}=\frac{\alpha\beta}{(\alpha+\beta)^2}\). Hence \(\mathrm{Var}\,Y=n\alpha\beta/(\alpha+\beta)^2\), the same as \(\mathrm{binomial}(n,\alpha/(\alpha+\beta))\). But is \(Y\) binomial? It is a sum of independent Bernoullis with random, independently realized success probabilities. The distribution of \(Y\) is a beta–Bernoulli convolution, which is not in general binomial (when \(n=1\) it is Bernoulli\((\alpha/(\alpha+\beta))\)). The question “what is the distribution of \(Y\)”: same mean and variance as a binomial, but the distribution is \(P(Y=k)=\binom{n}{k}\bigl[B(\alpha+1,\beta)/B(\alpha,\beta)\bigr]^k\bigl[B(\alpha,\beta+1)/B(\alpha,\beta)\bigr]^{n-k}\) only if… that is wrong, because the \(P_i\) differ. Correctly: \(P(Y=k)=\binom{n}{k}\bigl(\frac{\alpha}{\alpha+\beta}\bigr)^k\bigl(\frac{\beta}{\alpha+\beta}\bigr)^{n-k}\)—indeed, the \(X_i\) are marginally Bernoulli\((\alpha/(\alpha+\beta))\) and independent (the \(P_i\) are independent), so \(Y\) is binomial. Yes: \(X_i\mid P_i\) are independent and the \(P_i\) are independent \(\Rightarrow\) the \(X_i\) are independent with Bernoulli margins. Hence \(Y\sim\mathrm{binomial}(n,\alpha/(\alpha+\beta))\).
(c) The \(X_i\) no longer share a common \(n_i\). \(EY=\frac{\alpha}{\alpha+\beta}\sum n_i\). \(\mathrm{Var}\,X_i=n_i\frac{\alpha\beta(\alpha+\beta+n_i)}{(\alpha+\beta)^2(\alpha+\beta+1)}\) (beta–binomial formula). \(\mathrm{Var}\,Y=\sum\mathrm{Var}\,X_i\).
Exercise 4.37
Forced two-choice: \(\Sigma X_i\) is beta–binomial.
(a) \(c=(1+p)/2\); if \(P\sim\mathrm{beta}(a,b)\) then \(c\) is an affine function of \(P\) and the density can be written down. \(\Sigma X_i\mid c\sim\mathrm{binomial}(n,c)\), and after mixing one obtains a (transformed) beta–binomial.
(b) \(E(\Sigma X_i)=n E c=n(1+Ea)/2=n(1+a/(a+b))/2\). \(\mathrm{Var}=n E[c(1-c)]+n^2\mathrm{Var}\,c\), with \(\mathrm{Var}\,c=\mathrm{Var}\,P/4\).
Exercise 4.38
For \(r\le 1\) a gamma is a scale mixture of exponentials.
(a) Set \(u=x/\nu-x/\lambda\), so \(\nu=x/ (u+x/\lambda)\) and \(d\nu=-\,x du/(u+x/\lambda)^2\). After substitution the exponential kernel becomes \(e^{-x/\lambda}e^{-u}\), and the powers produce \(p_\lambda\).
(b) Set \(t=\nu/\lambda\), \(\int_0^\lambda p_\lambda(\nu)\,d\nu=\frac{1}{\Gamma(r)\Gamma(1-r)}\int_0^1 t^{r-1}(1-t)^{-r}\,dt=B(r,1-r)/(\Gamma(r)\Gamma(1-r))=1\).
(c) If \(r>1\) then \(\partial_x\log f(x)=(\,r-1)/x-1/\lambda\), which is positive for \(x<(r-1)\lambda\). But any exponential mixture \(\int(e^{-x/\nu}/\nu)q(\nu)\,d\nu\) has logarithmic derivative \(=-\frac{\int e^{-x/\nu}q\,d\nu}{\int e^{-x/\nu}q\,d\nu}<0\). Contradiction.
Exercise 4.39
Conditionals, margins, and covariances of the multinomial.
Margins: collapse the remaining cells to obtain a binomial. Conditionals: given \(X_j=x_j\), the remaining \(m-x_j\) trials fall outside cell \(j\), and cell \(i\) has conditional probability \(p_i/(1-p_j)\). \(\mathrm{Cov}(X_i,X_j)=E(X_i X_j)-E X_i E X_j\). For \(i\ne j\) the product of indicators gives \(X_i X_j\) of type \(m(m-1)p_i p_j\), so \(E X_i X_j=m(m-1)p_i p_j\) and \(\mathrm{Cov}=-mp_i p_j\).
Exercise 4.40
Dirichlet / bivariate Dirichlet.
(a) \(\iint x^{a-1}y^{b-1}(1-x-y)^{c-1}\,dx\,dy=B(a,b)B(a+b,c)=\Gamma(a)\Gamma(b)\Gamma(c)/\Gamma(a+b+c)\). Hence \(C=\Gamma(a+b+c)/(\Gamma(a)\Gamma(b)\Gamma(c))\).
(b) Integrate out \(y\): \(X\sim\mathrm{beta}(a,b+c)\). Likewise \(Y\sim\mathrm{beta}(b,a+c)\).
(c) \(f(y\mid x)\propto y^{b-1}(1-x-y)^{c-1}\), \(0<y<1-x\). Set \(U=Y/(1-x)\); then \(U\sim\mathrm{beta}(b,c)\).
(d) \(EXY=E\bigl(X E(Y\mid X)\bigr)=E\bigl(X(1-X)\frac{b}{b+c}\bigr)=\frac{b}{b+c}\bigl(EX-EX^2\bigr)\). \(EX=a/(a+b+c)\), \(EX^2=\frac{a(a+1)}{(a+b+c)(a+b+c+1)}\), so \(EXY=ab/[(a+b+c)(a+b+c+1)]\). \(\mathrm{Cov}(X,Y)=EXY-EX\,EY=-ab/[(a+b+c)^2(a+b+c+1)]\).
Exercise 4.41
Uncorrelated with a constant.
\(\mathrm{Cov}(X,c)=E(Xc)-EX\cdot c=c\,EX-c\,EX=0\).
Exercise 4.42
\(\mathrm{Corr}(XY,Y)\) under independence.
\(\mathrm{Cov}(XY,Y)=E(XY^2)-EXY\cdot EY=EX\cdot EY^2-EX\,EY\cdot EY=EX\,\mathrm{Var}\,Y\). \(\mathrm{Var}(XY)=E X^2 EY^2-(EX)^2(EY)^2=\sigma_X^2\sigma_Y^2+\sigma_X^2\mu_Y^2+\sigma_Y^2\mu_X^2\). \(\rho=\frac{\mu_X\sigma_Y}{\sqrt{\sigma_X^2\sigma_Y^2+\sigma_X^2\mu_Y^2+\sigma_Y^2\mu_X^2}}\).
Exercise 4.43
Covariances among uncorrelated identically distributed triples.
\(\mathrm{Cov}(X_1+X_2,X_2+X_3)=\mathrm{Var}\,X_2=\sigma^2\). \(\mathrm{Cov}(X_1+X_2,X_1-X_2)=\mathrm{Var}\,X_1-\mathrm{Var}\,X_2=0\).
Exercise 4.44
\(\mathrm{Var}(\sum X_i)=\sum\mathrm{Var}\,X_i+2\sum_{i<j}\mathrm{Cov}(X_i,X_j)\).
Expand \(E(\sum(X_i-\mu_i))^2=\sum E(X_i-\mu_i)^2+2\sum_{i<j}E(X_i-\mu_i)(X_j-\mu_j)\).
Exercise 4.45
Margins, conditionals, and linear combinations of the bivariate normal.
(a) Integrate out \(y\): complete the square; the conditional-variance factor yields \(n(\mu_X,\sigma_X^2)\).
(b) \(f(y\mid x)=f(x,y)/f_X(x)\); the exponent completes to \((y-\mu_Y-\rho\sigma_Y(x-\mu_X)/\sigma_X)^2/(\sigma_Y^2(1-\rho^2))\).
(c) The mgf \(E\exp(t(aX+bY))\) is the joint mgf of the bivariate normal evaluated at the corresponding point, or use the linear representation of 4.46.
Exercise 4.46
Derive the bivariate normal from linear combinations of independent standard normals.
(a) Expand means, variances, and covariances directly.
(b) With the given coefficients: \(a_X^2+b_X^2=\sigma_X^2\frac{1+\rho+1-\rho}{2}=\sigma_X^2\), \(a_X a_Y+b_X b_Y=\sigma_X\sigma_Y\bigl(\frac{1+\rho}{2}-\frac{1-\rho}{2}\bigr)=\rho\sigma_X\sigma_Y\).
(c) \((X,Y)\) is a nondegenerate linear image, hence jointly normal; the parameters already match.
(d) Rotation: \(a_X=\sigma_X\), \(b_X=0\), \(a_Y=\rho\sigma_Y\), \(b_Y=\sigma_Y\sqrt{1-\rho^2}\) also solves the same equations. There are infinitely many orthogonal transformations (a one-parameter family of plane rotations).
Exercise 4.47
Normal margins but not jointly normal.
(a) \(Z\) is either \(X\) or \(-X\), both of which are \(n(0,1)\). By symmetry, \(Z\sim n(0,1)\).
(b) \(ZY=|XY|\ge 0\) a.s., so all mass lies in the first and third quadrants. A nondegenerate bivariate normal puts positive probability in all four quadrants. Hence not bivariate normal.
Exercise 4.48
Normal conditionals but not bivariate normal; bimodality.
(a) For fixed \(y\), the exponent is quadratic in \(x\): \(-(A y^2+1)x^2/2+(By+C)x+\cdots\), i.e. \(n\bigl((By+C)/(Ay^2+1),\,1/(Ay^2+1)\bigr)\). The law of \(Y\mid x\) is symmetric.
(b) \(A=1,B=0,C=D=8\): \(\log f=-\frac12(x^2 y^2+x^2+y^2-16x-16y)+const\). Stationarity: \[ x(1+y^2)=8,\qquad y(1+x^2)=8. \] The symmetric root of \(x^3+x-8=0\) is \(\approx 1.80\) and is a saddle (Hessian determinant negative). The modes are \[ \bigl(4\pm\sqrt{15},\,4\mp\sqrt{15}\bigr)\approx(7.873,0.127)\text{ and }(0.127,7.873). \] The joint is bimodal.
Exercise 4.49
A mixture of independent pairs: uncorrelated but dependent.
(a) Integrate out \(y\): \(f_X=af_1+(1-a)f_2\).
(b) \(f(x,y)-f_X f_Y=a(1-a)(f_1-f_2)(g_1-g_2)\). This vanishes if and only if \(f_1=f_2\) or \(g_1=g_2\) a.e.
(c) \(EXY=a\mu_1\xi_1+(1-a)\mu_2\xi_2\); expanding \(EX\,EY\) yields \(\mathrm{Cov}=a(1-a)(\mu_1-\mu_2)(\xi_1-\xi_2)\). Taking \(\mu_1=\mu_2\) or \(\xi_1=\xi_2\) but \(f_1\ne f_2\), \(g_1\ne g_2\) gives uncorrelated dependence.
(d) Binomial: equal success probabilities give independence; unequal means give correlation; equal means with different \(n\) or different \(p\) that happen to match the means give uncorrelated dependence.
Exercise 4.50
Standard bivariate normal: \(\mathrm{Corr}(X,Y)=\rho\), \(\mathrm{Corr}(X^2,Y^2)=\rho^2\).
\(\mathrm{Corr}(X,Y)=\rho\) by Definition 4.5.10. \(E(X^2 Y^2)=E\bigl(E(Y^2\mid X)X^2\bigr)\). \(Y\mid x\sim n(\rho x,1-\rho^2)\), so \(E(Y^2\mid x)=(1-\rho^2)+\rho^2 x^2\). \(E(X^2 Y^2)=(1-\rho^2)EX^2+\rho^2 EX^4=1-\rho^2+3\rho^2=1+2\rho^2\). \(EX^2=EY^2=1\), \(\mathrm{Var}(X^2)=2\). \(\mathrm{Cov}(X^2,Y^2)=1+2\rho^2-1=2\rho^2\), \(\mathrm{Corr}=\rho^2\).
Exercise 4.51
Independent \(U(0,1)\): \(X/Y\), \(XY\), \(XY/Z\).
(a) \(t\le 0\): \(0\). For \(0<t<1\): \(P(X\le tY)=\int_0^1\min(1,ty)\,dy=t/2\). For \(t\ge 1\): \(P=1-1/(2t)\). \(P(XY\le t)\): \(1\) if \(t\ge 1\); \(t-t\log t\) if \(0<t<1\).
(b) \(W=XY\) has cdf \(P(W\le w)=w-w\log w\) on \((0,1)\). Then \(P(W/Z\le t)=\int_0^1 P(W\le tz)\,dz\). For \(0<t<1\), \(tz<1\) always, so \[ P=3t/4-(t\log t)/2. \] For \(t\ge 1\) split at \(z=1/t\): \[ P=1-1/(4t). \] Both pieces equal \(3/4\) at \(t=1\). (The formulas \(1-1/(2t)\) and \(t/2-t\log t\) are the law of \(X/Y\), not of \(XY/Z\).)
Exercise 4.52
Distance between two independent \(n(0,I_2)\) bullets.
The difference vector is \(\sim n(0,2I_2)\). The distance is \(R=\sqrt{2}\,\chi_2=\sqrt{2}\cdot\mathrm{Rayleigh}(1)\). \(R^2/2\sim\chi^2_2=\mathrm{exp}(2)\), so \(f_{R}(r)=\frac{r}{2}e^{-r^2/4}\), \(r>0\).
Exercise 4.53
\(A,B,C\) iid \(U(0,1)\), \(P(B^2\ge 4AC)\).
\(P(B^2\ge 4AC)=\int_0^1\int_0^1\bigl(1-2\sqrt{ac}\bigr)_+\,da\,dc\). For fixed \(a\), the inner integral runs up to \(c=\min\bigl(1,1/(4a)\bigr)\).
When \(0<a\le 1/4\), \(c\) goes to \(1\): \[ \int_0^1(1-2\sqrt{ac})\,dc=1-\frac43\sqrt{a},\qquad \int_0^{1/4}\Bigl(1-\frac43\sqrt{a}\Bigr)\,da=\frac14-\frac89\cdot\Bigl(\frac14\Bigr)^{3/2}=\frac{5}{36}. \]
When \(1/4<a\le 1\), \(c\) goes to \(1/(4a)\): \[ \int_0^{1/(4a)}(1-2\sqrt{ac})\,dc=\frac{1}{12a},\qquad \int_{1/4}^1\frac{da}{12a}=\frac{\log 2}{6}. \] Hence \[ P=\frac{5}{36}+\frac{\log 2}{6}=\frac{5+6\log 2}{36}\approx 0.2544. \]
Exercise 4.54
\(\prod_{i=1}^n U_i\), \(U_i\) iid \(U(0,1)\).
\(-\log U_i\sim\mathrm{exp}(1)\), so \(\sum(-\log U_i)\sim\mathrm{gamma}(n,1)\). \(Y=\prod U_i=e^{-S}\) with \(S\sim\mathrm{gamma}(n,1)\). \(f_Y(y)=\frac{(-\log y)^{n-1}}{(n-1)!}\), \(0<y<1\).
Exercise 4.55
Lifetime of a parallel system of three independent exponential components.
\(T=\max(X_1,X_2,X_3)\), \(F_T=(1-e^{-t/\lambda})^3\) (mean parameter \(\lambda\)). \(f_T=3(1-e^{-t/\lambda})^2\cdot\lambda^{-1}e^{-t/\lambda}\).
Exercise 4.56
Grouped blood testing.
(a) \(P(\text{pooled positive})=1-(1-p)^k\).
(b) \(N=mk\) people, \(m\) groups. Tests per group: \(1\) with probability \((1-p)^k\), otherwise \(k+1\). \(EX_{\text{one group}}=1\cdot(1-p)^k+(k+1)(1-(1-p)^k)=1+k(1-(1-p)^k)\). \(EX=m\bigl(1+k-k(1-p)^k\bigr)=\frac{N}{k}+N\bigl(1-(1-p)^k\bigr)\).
(c) As \(p\to 0\): \((1-p)^k\approx 1-kp\), so \(EX\approx N/k+Nkp\). Taking \(k\approx 1/\sqrt{p}\) yields \(EX\approx 2N\sqrt{p}\ll N\). Scheme (ii) is better.
Exercise 4.57
Power means \(A_r\) and the AGH inequality.
(a) \(A_1=\bar x\); \(A_{-1}=n/\sum x_i^{-1}\); \(A_0=\exp(\overline{\log x})\) (L’Hôpital, or the limit of \(\log A_r\) at \(0\)).
(b) (i) \(\log\) is increasing. (ii) Logarithmic differentiation yields the formula in the problem. (iii) \(a_i=x_i^r/\sum x_j^r\) is a probability vector. \(\sum a_i\log(1/a_i)\le\log n\), because entropy is maximized at the uniform distribution (Jensen: \(E\log(1/a)\le\log E(1/a)\) needs care; the standard proof uses Jensen on \(-\log\): \(\sum a_i\log a_i\ge\log(1/n)\) is the wrong direction. Maximum entropy: \(\sum a_i\log(1/a_i)\le\log n\), with equality at \(a_i=1/n\). By Jensen: \(-\sum a_i\log a_i\le\log n\Leftrightarrow \sum a_i\log a_i\ge -\log n\); \(\log\) is concave, so Karamata, or \(\sum a_i\log(na_i)\le 0\) via \(\log u\le u-1\): \(\sum a_i\log(na_i)\le\sum a_i(na_i-1)=n\sum a_i^2-1\) is not sharp enough. Standard: \(\sum a_i\log(1/a_i)-\log n=-\sum a_i\log(na_i)\ge -\sum a_i(na_i-1)\) is still loose. Use Gibbs: \(KL(a\| u)=\sum a_i\log(na_i)\ge 0\). Yes. Hence \(\sum a_i\log(1/a_i)\le\log n\), the brace is nonnegative, and \(A_r\) is nondecreasing in \(r\).
Exercise 4.58
\(\mathrm{Cov}(X,Y)=\mathrm{Cov}(X,E(Y\mid X))\), etc.
(a) \(\mathrm{Cov}(X,Y)=E(XY)-EX\,EY=E\bigl(X E(Y\mid X)\bigr)-EX\cdot E(E(Y\mid X))=\mathrm{Cov}(X,E(Y\mid X))\).
(b) \(\mathrm{Cov}(X,Y-E(Y\mid X))=\mathrm{Cov}(X,Y)-\mathrm{Cov}(X,E(Y\mid X))=0\).
(c) By 4.4.7, \(\mathrm{Var}(Y-E(Y\mid X))=E(\mathrm{Var}(Y\mid X))\) (because \(E(Y-E(Y\mid X)\mid X)=0\)).
Exercise 4.59
Conditional decomposition of covariance.
\(\mathrm{Cov}(X,Y)=E(XY)-EX\,EY\) \(=E\bigl(E(XY\mid Z)\bigr)-E(E(X\mid Z))E(E(Y\mid Z))\) \(=E\bigl(\mathrm{Cov}(X,Y\mid Z)+E(X\mid Z)E(Y\mid Z)\bigr)-E(E(X\mid Z))E(E(Y\mid Z))\) \(=E(\mathrm{Cov}(X,Y\mid Z))+\mathrm{Cov}(E(X\mid Z),E(Y\mid Z))\).
Exercise 4.60
Borel’s paradox: three interpretations of \(Y\mid Y=X\).
Let \(X,Y\) be iid \(n(0,1)\). The three interpretations in Miscellanea 4.9.3:
(1) Condition on \(Z_1=Y-X=0\). \(Y-X\sim n(0,2)\) is independent of \(X+Y\sim n(0,2)\). Given \(Y-X=0\) one has \(Y=X=(X+Y)/2\sim n(0,1/2)\). Hence \(Y\mid Z_1=0\sim n(0,1/2)\).
(2) Condition on \(Z_2=Y/X=1\). In polar coordinates this is \(\theta=\pi/4\) or \(5\pi/4\). For a two-dimensional isotropic normal, \(R\) is independent of \(\theta\) and \(R\) has density \(r e^{-r^2/2}\) (\(r>0\)). On the two rays, \(Y=\pm R/\sqrt{2}\) equally often, so the density of \(Y\) is \[ f(y)=|y|e^{-y^2},\qquad -\infty<y<\infty \] (not normal).
(3) Condition on \(Z_3=I(Y=X)=1\). But \(P(Y=X)=0\), so \(Z_3=0\) a.s.; \(\{Z_3=1\}\) is an empty condition for this discrete variable, and the conditional distribution has no regular version given by \(Z_3\).
The three versions of “\(Y=X\)” correspond to three sub-\(\sigma\)-algebras, and the conditional distributions may all differ. That is Borel’s paradox. The way to avoid it is to condition only on positive-probability sets, pass to the limit, and declare the approximating sequence (Exercise 4.61).
Exercise 4.61
DeGroot / Borel: \(X_1,X_2\) iid \(\mathrm{exp}(1)\), \(Z=(X_2-1)/X_1\).
(a) \(X_1\mid X_2=1\sim\mathrm{exp}(1)\) (independence). \(Z=0\Leftrightarrow X_2=1\). But \(\{Z=0\}=\{X_2=1\}\) as point sets, so the conditional distribution depends on the regularization. \(f_{X_1,Z}\): inverse \(x_2=1+z x_1\), \(J=x_1\). \(f(x_1,z)=e^{-x_1}e^{-(1+zx_1)}x_1=x_1 e^{-1}e^{-x_1(1+z)}\), \(x_1>0\), \(1+zx_1>0\). At \(z=0\): \(f(x_1\mid z=0)\propto x_1 e^{-x_1}\), i.e. \(\mathrm{gamma}(2,1)\), not exponential.
(b) \(B_1\) is a wedge through the origin with slopes in \(1\pm\varepsilon\), whose width grows with \(x_1\) and therefore carries information about \(X_1\). \(B_2\) is a horizontal band, independent of \(X_1\).
(c) \(P(X_1\le x\mid B_1)\to\) the cdf of \(\mathrm{gamma}(2,1)\); \(P(X_1\le x\mid B_2)\to 1-e^{-x}\). Consistent with (a).
Exercise 4.62
Equality in Jensen: strictly convex supporting line.
\(g(x)>a+bx\) except at \(x=EX\). Hence \(g(X)-(a+bX)\ge 0\) and equals zero only on \(\{X=EX\}\). The expectation is \(>0\) unless \(P(X=EX)=1\).
Exercise 4.63
\(Z=\log X\), \(EZ=0\). Compare \(EX\) with \(1\).
\(x\mapsto e^x\) is strictly convex. Jensen: \(EX=E e^Z\ge e^{EZ}=1\), with equality if and only if \(Z\) is degenerate. In general strictly greater than \(1\).
Exercise 4.64
Triangle inequality.
(a) \(|a+b|^2=(a+b)^2\le a^2+b^2+2|a||b|=(|a|+|b|)^2\).
(b) \(|X+Y|\le|X|+|Y|\) holds pointwise; take expectations.
Exercise 4.65
Prove the covariance inequality.
Assume \(g\) and \(h\) are both nondecreasing. Then \((g(x)-g(y))(h(x)-h(y))\ge 0\) for all \(x,y\). Take \(X,Y\) iid with the given law: \(E[(g(X)-g(Y))(h(X)-h(Y))]\ge 0\). Expanding, \(2Eg(X)h(X)-2Eg(X)Eh(X)\ge 0\). If the maps are oppositely monotone the product is \(\le 0\) and the inequality reverses.