Computing the expected value of a discrete random variable

35 Views Asked by At

I was given the following problem:

enter image description here

However, I am confused as to how they compute $E(X_i)$. From definition, $E(x)=\sum{xP(X=x)}$, so wouldn't the expected value of $Xi$ be the following instead:

$$E(X_i)=1*P(X_i=1) + 0*P(X_i = 0)$$

I am also not understanding how $P(X_i=1) =1$, wouldn't it equal p?

1

There are 1 best solutions below

0
On BEST ANSWER

It's a definite typo in the book. It should read on both lines $$\dots1×P(X_i=1)+0×P(X_i=0)=P(X_i=1)=p\dots$$