If I know that I have $X$~$B(1, \frac{1}{3})$ (binomial distribution),
Can I calculate (the expectancy) $E(X^2)$ ?
(That's a part of a question, that if I can calculate it, it will make the question faster).
An explanation would be appreciated.
If I know that I have $X$~$B(1, \frac{1}{3})$ (binomial distribution),
Can I calculate (the expectancy) $E(X^2)$ ?
(That's a part of a question, that if I can calculate it, it will make the question faster).
An explanation would be appreciated.
$$ EX^2 = 0^2 \times \frac{2}{3} + 1^2 \times \frac{1}{3} = \frac{1}{3}. $$ Generally, you can observe that in your case $EX^k = \frac{1}{3}$, for all $k > 0$, as $$ EX^k = 0^k \times\frac{2}{3} + 1^k \times \frac{1}{3} = \frac{1}{3}. $$