0

Let $(X,Y)$ be a bivariate discrete R.V. with joint pmf $$p(x,y)=\begin{cases} \frac{1}{{m+1 \choose 2}} \text{if $y=1,2 \ldots,x$ & $x=1,2,\ldots,m$} \\ 0 \ \text{otherwise} \end{cases}$$ for a given positive integer $(m>1)$.Find $E(X)$ from the marginal distribution of $X$ and also from $E(X|Y)$.

I got the first part .Let the marginal pmf of $X$ be $p_X(x)$. Thus, $p_X(x)=\sum_{y} \frac{1}{{m+1 \choose 2}}=\frac{x}{{m+1 \choose 2}}$ Thus $E(X)=\sum_{x=1}^{m} \frac{x^2}{{m+1 \choose 2}} = \frac{2m+1}{3}$

But how to get $E(X)$ from $E(X|Y)$?

Siong Thye Goh
  • 149,520
  • 20
  • 88
  • 149

1 Answers1

1

We can use the total law of expectation: $$E(X)=\sum_y E(X|Y=y)P_Y(y)$$

If $y \in \{ 1, \ldots, m\}$,

\begin{align}P_Y(y)&=\sum_{x=y}^m p(x,y) =(m-y+1) \frac{1}{\binom{m+1}{2}}\\ \end{align}

$X|Y\sim \operatorname{Uni}\{Y, m\},$

Hence $$E(X|Y=y)=\frac{y+m}{2}$$

\begin{align}E(X)&=\sum_{y=1}^m \frac{y+m}{2}\cdot\frac{m-y+1}{\binom{m+1}{2}} \\ &=\frac{1}{m(m+1)}\sum_{y=1}^m(m^2-y^2+y+m)\\ &= \frac{1}{m(m+1)}\left[(m^2+m)m-\sum_{y=1}^my^2+\sum_{y=1}^my\right]\\ &=\frac{1}{m(m+1)}\left[m^2(m+1)-\frac{m(m+1)(2m+1)}{6} +\frac{m(m+1)}{2}\right]\\ &=m-\frac{2m+1}{6}+\frac12\\ &=\frac{4m+2}{6}\\ &=\frac{2m+1}{3}\end{align}

Siong Thye Goh
  • 149,520
  • 20
  • 88
  • 149