A 10-digit long number is picked randomly and each digit's pick is independent and has an equal probability of being picked (1/9 because there's digits 1 to 9).
Let $X = \#\{\text{missing digits}\}$ (i.e. if the # is 1357768931, X = 2 because there's no 2 or 4)
What is E(X)? Var(X)?
I am so confused as to how to start this. Some guidance please?
First thing to note: the range of $X$ is $\{0,1,\ldots,8\}$. Second thing to note: there are $9^{10}$ possible 10-digit numbers. Then the expectation is given by \begin{align} E(X) &= \sum_{x=0}^8xP(X=x)\\ &= \sum_{x=0}^8 x\left(\frac{\#\mbox{ 10-digit numbers with exactly }x\mbox{ missing digits}}{9^{10}}\right). \end{align} Then you have to compute the numerator for all values of $x$. A few ones are straight-forward: how many with no missing digit? How many with 8 missing digits? Can you do all of them?
Finally, to compute the variance, you can do as above to compute $E(X^2)$, and then use the fact that $$Var(X) = E(X^2) - E(X)^2.$$