Let \(X\) be a discrete random variable, \(\mu\) be its mean, and \(P(X=x)\) be the probability function. The variance of \(X\) is
Show Hint
Remember the two most important formulas for a discrete random variable:
\[
E(X)=\sum xP(X=x),
\]
\[
\boxed{\operatorname{Var}(X)=E(X^2)-[E(X)]^2.}
\]
These formulas are frequently used in probability and statistics.