Independent solution

How to solve this Conditional Variance question

Setup

Setup

Record the conditional moments of the exponential variable in terms of its random scale S.

E[XS]=3S,Var(XS)=9S2\operatorname{E}[X\mid S]=3S,\qquad \operatorname{Var}(X\mid S)=9S^2

Model

Model

Compute the moments needed from the continuous uniform distribution.

E[S]=5+202=12.5\operatorname{E}[S]=\frac{5+20}{2}=12.5
Var(S)=(205)212=18.75\operatorname{Var}(S)=\frac{(20-5)^2}{12}=18.75
E[S2]=18.75+12.52=175\operatorname{E}[S^2]=18.75+12.5^2=175

Compute

Compute

Use the within-scale and between-scale pieces of the law of total variance.

Var(X)=E[Var(XS)]+Var(E[XS])\operatorname{Var}(X)=\operatorname{E}[\operatorname{Var}(X\mid S)]+\operatorname{Var}(\operatorname{E}[X\mid S])
Var(X)=9(175)+9(18.75)=1575+168.75=1743.75\operatorname{Var}(X)=9(175)+9(18.75)=1575+168.75=1743.75

Answer

Answer

The unconditional variance is 1,743.75.

1743.75(E)\boxed{1743.75\quad\text{(E)}}