How to calculate E[Xi Xj]?

2.9k Views Asked by At

This question is from an example in the book of Bertsekas. (p240 of 1st edition). I would like to know why $$E[X_{i} X_{j}] = P(X_{i} = 1\text{ and }X_{j}=1)$$ and $$E[X_{i}] = P(X_{i}=1)$$. please explain to me. Thanks.

enter image description here

1

There are 1 best solutions below

0
On BEST ANSWER

$X_iX_j$ takes only two values $0$ and $1$. It is $1$ iff $X_i=X_j=1$. Hence $EX_iX_j$ is $1$ times the probability of $X_i=X_j=1$ plus $0$ times the probability of the complementary event.