In an urn there are 5 balls with 1 written on them, 2 balls with 2 on them and 3 balls with 5 on them.
5 balls are extrated without replacement.
Let the random variable $X$ represent the sum of the number exctracted.
Determine:
- $P(X=6)$
- $E[X]$
- $Var(X)$
Since the only combinations whose sum is 6 are the ones consisting of 1 ball with 2 and 4 balls with 1 then $$P(X=6)=\frac{\binom{5}{4}\binom{2}{1}}{\binom{10}{5}}=\frac{5}{126}$$
Now, I don't know how to evaluate $E[X]$.
I could define $X_i$ as the result of the i-th extraction, $i=1,2,3,4,5$ and $X=\sum_{i=1}^5 X_i$ but $X_i$ are not indipendent and it wouldn't make the calculation easier.