Just started a course in probability when I stumbled upon this question. Now, I know that one formula for variance is: $$\text{Var}(X)= E(X^2) - (E(X))^2$$
I understand that, in general, the probability of rolling an outcome that hasnt been rolled is $(6-n)/6$, and thus the $E(X)= \sum_{i=1}^6 6/i = 14.7 $
My question is regarding:
a. The validity of this approach
b. How exactly to calculate $E(X^2)$ or if there is some other approach to calculating variance.
I apologize if this seems a basic question, but I have searched online and through my book and cannot really find any help.
Of course, a point in the right direction would much appreciated (even more so then just an answer).
Thank you!