Variance and Standard Deviation
Formula
Section titled “Formula”For a state and self-adjoint observable , define the centered observable
The variance and standard deviation are
When the second moment exists,
Variance has the squared units of ; standard deviation has the same units as .
At a glance
Section titled “At a glance”| Setting | Variance |
|---|---|
| Centered observable | |
| Raw moments | |
| Pure-state norm | |
| Density operator | |
| Discrete outcomes | |
| Continuous outcomes | |
| Affine transformation | for real-valued observables |
| Two outcomes | |
| Bounded spectrum |
The centered and raw-moment formulas are mathematically equivalent, but the centered formula is often more stable numerically.
Meaning
Section titled “Meaning”Variance is the second central moment of the Born distribution for measuring in the specified state. It measures the distribution’s spread around its mean. It is not, by itself:
- an apparatus calibration error;
- a measurement disturbance;
- the error of an estimate of the mean;
- the width of the wavefunction in every representation;
- a complete description of the outcome distribution.
Two states can have the same expectation and variance while differing in skewness, tails, multimodality, or higher moments.
The standard deviation is the root-mean-square distance from the expectation:
where is the Born probability measure of .
Pure and mixed states
Section titled “Pure and mixed states”For a normalized pure state,
The norm form
makes nonnegativity immediate:
For a density operator,
and
The trace formula includes pure states by setting .
Discrete, continuous, and mixed spectra
Section titled “Discrete, continuous, and mixed spectra”If
then
and
Degeneracy is already included when projects onto the full eigenspace. Do not sum separate probabilities for arbitrarily chosen vectors inside that eigenspace unless the measurement actually resolves them.
If the Born law has a density ,
For one-dimensional position,
For a spectrum with discrete and continuous parts, include both:
Domain and existence conditions
Section titled “Domain and existence conditions”Normalization does not guarantee a finite variance. For a pure state and self-adjoint , a finite second spectral moment requires
Equivalently,
Then is a Hilbert-space vector and
in the spectral or quadratic-form sense. The literal vector expression would demand , which is stronger than necessary.
For a density operator, a standard sufficient condition is
with the product understood through the positive spectral calculus. Formal matrix multiplication cannot override domain or convergence failures in infinite dimensions.
If the second moment diverges, write
when that extended value is meaningful. Do not subtract two divergent quantities in the raw-moment formula.
Zero variance and definite values
Section titled “Zero variance and definite values”For a pure state with finite variance,
if and only if
Thus the state lies in the eigenspace with eigenvalue .
For a mixed state, zero variance means the support of lies entirely in one eigenspace of . The state can still be mixed within a degenerate eigenspace. Therefore zero variance for one observable does not imply that the state is pure.
Affine changes and units
Section titled “Affine changes and units”For real and ,
while
Consequently,
Adding a constant shifts every outcome without changing the spread. Rescaling the measurement scale rescales standard deviation by the magnitude of the same factor.
The dimensions are
This is a fast way to detect the common error of identifying variance itself with .
Two-outcome shortcut
Section titled “Two-outcome shortcut”Suppose has only outcomes and , with probabilities and . Then
and
The variance is maximal at and vanishes at or .
For a Pauli observable
one has , so
For a spin component
Mixtures and the law of total variance
Section titled “Mixtures and the law of total variance”Let a preparation be described by
Then
The first term is the average spread within the component states. The second is the classical spread of their means. Mixing can therefore increase variance even when each component has zero variance.
This decomposition depends on the chosen ensemble representation of , although the total on the left does not. Different ensembles for the same density operator can divide the total into different within- and between-component contributions.
Spectral bounds
Section titled “Spectral bounds”If the spectrum of lies in the finite interval , then
The upper bound is reached by a distribution with equal probability at the two endpoints when the endpoint eigenspaces are available. A result outside this range signals an incorrect state, operator, probability distribution, or calculation.
Relation to uncertainty formulas
Section titled “Relation to uncertainty formulas”For two observables and , the standard deviations enter the Robertson bound
The stronger Schrödinger form also contains the covariance of the centered observables. These inequalities constrain a pair of outcome distributions. They do not redefine variance, and they do not say that measuring necessarily disturbs by an amount .
The derivations and equality conditions belong to General Uncertainty Relations.
Statistical estimation and detector noise
Section titled “Statistical estimation and detector noise”For independent measurements of the same observable in the same state, the sample mean has standard deviation
This is the standard error of the sample mean under the independent, identically distributed model. It is distinct from the single-shot quantum spread .
If independent zero-mean detector noise with variance is added to the ideal outcome, then
Correlated, biased, state-dependent, or deconvolved noise requires a more specific measurement model. One cannot identify an observed histogram width with intrinsic quantum variance without calibration.
Numerical stability
Section titled “Numerical stability”The raw-moment formula
can subtract two large, nearly equal floating-point numbers. Roundoff may then produce a small negative result even though exact variance is nonnegative.
Prefer one of the following:
- evaluate the centered norm ;
- sum centered outcome deviations;
- use a stable online variance algorithm for sampled data;
- symmetrize numerically Hermitian inputs;
- treat only a negative value consistent with a documented tolerance as roundoff.
A materially negative variance is not repaired by an absolute value. Diagnose normalization, Hermiticity, basis, and arithmetic first.
Assumptions
Section titled “Assumptions”- The state is normalized and valid.
- is self-adjoint when interpreted as an observable.
- State and operator act on the same Hilbert space.
- The second spectral moment is finite.
- Discrete probabilities include every eigenspace and continuous formulas use the correct measure.
- Trace expressions with unbounded operators are defined.
- Statistical sample formulas assume stable, independent preparations unless a different model is stated.
- Detector-noise decompositions assume the specified independence and bias conditions.
Validity and limitations
Section titled “Validity and limitations”Variance and standard deviation are exact properties of a Born distribution. They summarize spread but do not determine the complete distribution. They can fail to exist for normalizable states with heavy spectral tails.
The variance of a non-self-adjoint operator can be defined in several inequivalent ways. This card concerns self-adjoint observables. For general operators, expressions such as
must be labeled explicitly rather than silently called the same variance.
Calculation checks
Section titled “Calculation checks”- Verify within numerical tolerance.
- Check and .
- In an eigenstate or one-eigenspace mixture, the variance must vanish.
- For , the variance must vanish in every state.
- Shifting by must leave the variance unchanged.
- Scaling by must scale variance by .
- A bounded-spectrum result must obey the range bound.
- A unitary basis change applied to both state and observable must preserve the result.
- For a two-outcome law, compare with .
- When using the raw-moment form, compare with a centered calculation if cancellation is plausible.
Minimal worked uses
Section titled “Minimal worked uses”Spin one-half
Section titled “Spin one-half”Let
For
while . Hence
The spread vanishes for either eigenstate and is maximal for equal outcome probabilities.
Gaussian position law
Section titled “Gaussian position law”For the normalized density
The symbol in this parameterization is the standard deviation, not the variance.
Derivation and canonical home
Section titled “Derivation and canonical home”Variance and Standard Deviation owns the derivation from the Born measure, the pure-state norm form, finite-moment conditions, zero-variance characterization, mixture decomposition, and statistical interpretation.
Variance and Covariance owns the underlying probability identities. Correlations and Covariance develops joint quantum moments, and General Uncertainty Relations owns the operator inequalities.
Worked examples
Section titled “Worked examples”Common mistakes
Section titled “Common mistakes”- Writing .
- Confusing with .
- Treating zero expectation as zero variance.
- Squaring each matrix element of instead of computing .
- Forgetting degeneracy or a continuous part of the spectrum.
- Assuming a normalized state has a finite second moment.
- Requiring when the norm form only requires .
- Calling intrinsic spread an apparatus error or measurement disturbance.
- Omitting the square when converting physical units.
- Inferring a full probability law from only its mean and variance.
- Hiding a materially negative numerical result with an absolute value.
- Assuming every ensemble decomposition of a mixed state assigns the same within-state and between-state variances.
- Applying to correlated or drifting trials without qualification.
Related formulas
Section titled “Related formulas”- Expectation Value
- Born Rule
- Normalization
- Canonical Commutation Relations
- Uncertainty Relations
- Density-Matrix Expectation
- Bloch Vector
References
Section titled “References”- J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020, chs. 1 and 3.
- R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994, chs. 4 and 9.
- L. E. Ballentine, Quantum Mechanics: A Modern Development, 2nd ed., World Scientific, 2014, chs. 2 and 3.
- M. Reed and B. Simon, Methods of Modern Mathematical Physics I: Functional Analysis, rev. ed., Academic Press, 1980, ch. VIII.
Exercises
Section titled “Exercises”Exercise 1: a three-outcome distribution
Section titled “Exercise 1: a three-outcome distribution”An observable has outcomes , , and with probabilities , , and . Find its expectation, variance, and standard deviation.
Solution
The expectation is
The second moment is
Therefore
and
Exercise 2: mixing eigenstates
Section titled “Exercise 2: mixing eigenstates”Let and be eigenstates of with eigenvalues and . For
show that the total variance is entirely between components.
Solution
Each component is supported in one eigenspace, so
The two-outcome formula gives
This equals the variance of the component means, so the within-component term in the law of total variance vanishes.
Exercise 3: sample size
Section titled “Exercise 3: sample size”An observable has single-shot standard deviation in the prepared state. Assuming independent trials, how many measurements are needed to make the standard deviation of the sample mean at most ?
Solution
Use
The requirement is
so and therefore
This calculation assumes independent, identically distributed trials and does not include systematic detector error.