Combine variance of multiple subpopulations

Version 1.1.0.0 (1.74 KB) by Anne
Calculates variance using only means, variances and number of observations of two subpopulations.
211 Downloads
Updated 7 Oct 2011

View License

This function calculates the variance of a population using only the means, variances and number of observations of its subpopulations.

This means you do not need to keep all individual observations in each subpopulation to later find out the variance of the pooled data.

Cite As

Anne (2024). Combine variance of multiple subpopulations (https://www.mathworks.com/matlabcentral/fileexchange/33151-combine-variance-of-multiple-subpopulations), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Disk-Based Gain and Phase Margins in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

Corrected brackets for normalisation with (n-1)

1.0.0.0