Standard Deviation of a Discrete Random Variable
Use a probability distribution (x, P(x)) (or frequencies f(x)) to compute:
mean μ, variance Var(X), and standard deviation σ.
Results
Add the column
xP(x) to get μ = Σ x · P(x).
Square each
x, multiply by P(x), then add x2P(x).
Var(X) = Σ x2P(x) − μ2 and σ = √Var(X)
Computation table
| x | P(x) | xP(x) | x2 | x2P(x) |
|---|---|---|---|---|
| Totals | — | — | — | |
Visualization
Bar chart of P(x). The vertical line marks μ, and dashed lines show μ ± σ.