Variance
📐 Definition
Section titled “📐 Definition”For samples with mean ,
An unbiased estimator uses when treating the data as a sample from a larger population.
Domain and Codomain
Section titled “Domain and Codomain”Requires finite second moment; applies to real or complex data. With the modulus-squared convention above, is always a nonnegative real number.
⚙️ Key Properties
Section titled “⚙️ Key Properties”Translation-invariant: adding a constant to all samples leaves variance unchanged. With the modulus-squared convention, scaling obeys (for real this reduces to ).
Zero variance if all samples are equal. For Gaussian data, variance equals the squared standard deviation parameter.
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”- Constant samples give .
- For zero-mean signals, equals RMS (when RMS is defined with or ).
🔗 Related Functions
Section titled “🔗 Related Functions”RMS combines variance and mean; Welford online statistics provide stable incremental updates.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield computes variances as part of SimFieldStats:
- Component variances:
var_re/var_imtrack population variance of real/imag components. - Magnitude variance:
var_abstracks variance of (useful when sign/phase is less meaningful than amplitude). - These feed thresholds/diagnostics (e.g. detecting instability, saturation, or noise growth).
Historical Foundations
Section titled “Historical Foundations”📜 Second Moments
Section titled “📜 Second Moments”Variance is the standard second central moment and measures typical spread around the mean.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”It is a core diagnostic for uncertainty, noise, and stability monitoring and admits stable online update formulas for streaming settings.
📚 References
Section titled “📚 References”- Grimmett & Stirzaker, Probability and Random Processes
- Chan, Golub, LeVeque, “Algorithms for Computing the Sample Variance” (1983)