0

i am trying to understand if the following statement is true: $$ E(XY)= E(X^2)=E(Y^2) $$ if $X$ and $Y$ are identically distributed but not necessarily independent r.v. This means that if the variables are identically distributed calculate the expectation of the multiplication of any pair of them is the same that calculate the expectation of one of them squared, due to the fact that they can be treated as the same variable because we are dealing with the expectation of them.

Thanks

2 Answers2

2

It seems that the only situation where the statement is true is when $X = Y$, assuming that $E(X^2) < \infty$.

Indeed, assuming that $X$ and $Y$ are identically distributed, and that $E(XY) = E(X^2)$ implies that $\mbox{cov}(X, Y-X) = 0$.

Let $Z = Y-X$. Then, using the properties of variance/covariance, and the fact that $\mbox{var}(X) = \mbox{var}(Y)$, we have \begin{align*} \mbox{var}(Z) &= \mbox{var}(Y) - 2\mbox{cov}(Y, X) + \mbox{var}(X) \\ &= -2 \{ \mbox{cov}(Y, X) - \mbox{var}(X) \} \\ &= -2 \mbox{cov}(Y-X, X) \\ & = 0, \end{align*} implying that $Y$ is essentially equal to $X$.

QuantIbex
  • 3,880
  • 1
  • 24
  • 42
2

It seems that you neglect the fact that the expected value symbol represents different things depending on what it operates on. Identically distributed r.v.'s means that they are characterized by the same distribution and the same support for this distribution, so

$$E(X^2) = \int_{S}x^2f(x)dx = \int_{S}y^2f(y)dx = E(Y^2)$$

But $E(XY)$ is a double integral with respect to the joint distribution (see also this post):

$$E(XY)=\int_{S}\int_{S}xyf(x,y)dxdy$$

Even ignoring the presence of the density functions, it should be obvious that in general

$$\int_{S}x^2dx \neq \int_{S}\int_{S}xydxdy$$

even if the two variables run over the same interval.

The argument "if they are identically distributed, then, when we use their moments we can treat them as the same random variable" holds only whenever moments of the marginal distributions of the two r.v.'s under consideration are involved. In the expression $E(XY)$ you don't use the expectation of $X$ or of $Y$ - you use the expectation of $XY$ which is a third random variable.

Alecos Papadopoulos
  • 52,923
  • 5
  • 131
  • 241