Let \( X \) be the random variable taking values \( 1, 2, \dots, n \) for a fixed positive integer \( n \). If \( P(X = k) = \frac{1}{n} \) for \( 1 \leq k \leq n \), then the variance of \( X \) is:
Show Hint
For uniform discrete distributions, use known formulas:
\( E(X) = \frac{n+1}{2} \),
\( E(X^2) = \frac{(n+1)(2n+1)}{6} \),
and
\( \text{Var}(X) = E(X^2) - [E(X)]^2 \).