Pooled variance

From HandWiki
Short description: Method for estimating variance of several different populations

In statistics, pooled variance (also known as combined variance, composite variance, or overall variance, and written σ2) is a method for estimating variance of several different populations when the mean of each population may be different, but one may assume that the variance of each population is the same. The numerical estimate resulting from the use of this method is also called the pooled variance.

Under the assumption of equal population variances, the pooled sample variance provides a higher precision estimate of variance than the individual sample variances. This higher precision can lead to increased statistical power when used in statistical tests that compare the populations, such as the t-test.

The square root of a pooled variance estimator is known as a pooled standard deviation (also known as combined standard deviation, composite standard deviation, or overall standard deviation).

Motivation

In statistics, many times, data are collected for a dependent variable, y, over a range of values for the independent variable, x. For example, the observation of fuel consumption might be studied as a function of engine speed while the engine load is held constant. If, in order to achieve a small variance in y, numerous repeated tests are required at each value of x, the expense of testing may become prohibitive. Reasonable estimates of variance can be determined by using the principle of pooled variance after repeating each test at a particular x only a few times.

Definition and computation

The pooled variance is an estimate of the fixed common variance σ2 underlying various populations that have different means.

We are given a set of sample variances si2, where the populations are indexed i=1,,m,

si2 = 1ni1j=1ni(yjyi)2.

Assuming uniform sample sizes, ni=n, then the pooled variance sp2 can be computed by the arithmetic mean:

sp2=i=1msi2m=s12+s22++sm2m.

If the sample sizes are non-uniform, then the pooled variance sp2 can be computed by the weighted average, using as weights wi=ni1 the respective degrees of freedom (see also: Bessel's correction):

sp2=i=1m(ni1)si2i=1m(ni1)=(n11)s12+(n21)s22++(nm1)sm2n1+n2++nmm.

Variants

The unbiased least squares estimate of σ2 (as presented above), and the biased maximum likelihood estimate below:

sp2=i=1N(ni1)si2i=1Nni,

are used in different contexts.[citation needed] The former can give an unbiased sp2 to estimate σ2 when the two groups share an equal population variance. The latter one can give a more efficient sp2 to estimate σ2, although subject to bias. Note that the quantities si2 in the right hand sides of both equations are the unbiased estimates.

Example

Consider the following set of data for y obtained at various levels of the independent variable x.

x y
1 31, 30, 29
2 42, 41, 40, 39
3 31, 28
4 23, 22, 21, 19, 18
5 21, 20, 19, 18,17

The number of trials, mean, variance and standard deviation are presented in the next table.

x n ymean si2 si
1 3 30.0 1.0 1.0
2 4 40.5 1.67 1.29
3 2 29.5 4.5 2.12
4 5 20.6 4.3 2.07
5 5 19.0 2.5 1.58

These statistics represent the variance and standard deviation for each subset of data at the various levels of x. If we can assume that the same phenomena are generating random error at every level of x, the above data can be “pooled” to express a single estimate of variance and standard deviation. In a sense, this suggests finding a mean variance or standard deviation among the five results above. This mean variance is calculated by weighting the individual values with the size of the subset for each level of x. Thus, the pooled variance is defined by

sp2=(n11)s12+(n21)s22++(nk1)sk2(n11)+(n21)++(nk1)

where n1, n2, . . ., nk are the sizes of the data subsets at each level of the variable x, and s12, s22, . . ., sk2 are their respective variances.

The pooled variance of the data shown above is therefore:

sp2=2.764

Effect on precision

Pooled variance is an estimate when there is a correlation between pooled data sets or the average of the data sets is not identical. Pooled variation is less precise the more non-zero the correlation or distant the averages between data sets.

The variation of data for non-overlapping data sets is:

σX2=i[(NXi1)σXi2+NXiμXi2][iNXi]μX2iNXi1

where the mean is defined as:

μX=iNXiμXiiNXi

Given a biased maximum likelihood defined as:

sp2=i=1k(ni1)si2i=1kni,

Then the error in the biased maximum likelihood estimate is:

Error=sp2σX2=i(NXi1)si2iNXi1iNXi1(i[(NXi1)σXi2+NXiμXi2][iNXi]μX2)

Assuming N is large such that:

iNXiiNXi1

Then the error in the estimate reduces to:

E=(i[NXiμXi2][iNXi]μX2)iNXi=μX2i[NXiμXi2]iNXi

Or alternatively:

E=[iNXiμXiiNXi]2i[NXiμXi2]iNXi=[iNXiμXi]2iNXii[NXiμXi2][iNXi]2

Aggregation of standard deviation data

Rather than estimating pooled standard deviation, the following is the way to exactly aggregate standard deviation when more statistical information is available.

Population-based statistics

The populations of sets, which may overlap, can be calculated simply as follows:

NXY=NX+NYNXY

The populations of sets, which do not overlap, can be calculated simply as follows:

XY=NXY=0NXY=NX+NY

Standard deviations of non-overlapping (XY = ∅) sub-populations can be aggregated as follows if the size (actual or relative to one another) and means of each are known:

μXY=NXμX+NYμYNX+NYσXY=NXσX2+NYσY2NX+NY+NXNY(NX+NY)2(μXμY)2

For example, suppose it is known that the average American man has a mean height of 70 inches with a standard deviation of three inches and that the average American woman has a mean height of 65 inches with a standard deviation of two inches. Also assume that the number of men, N, is equal to the number of women. Then the mean and standard deviation of heights of American adults could be calculated as

μ=N70+N65N+N=70+652=67.5σ=32+222+(7065)222=12.753.57

For the more general case of M non-overlapping populations, X1 through XM, and the aggregate population X=iXi,

μX=iNXiμXiiNXiσX=iNXiσXi2iNXi+i<jNXiNXj(μXiμXj)2(iNXi)2,

where

XiXj=, i<j.

If the size (actual or relative to one another), mean, and standard deviation of two overlapping populations are known for the populations as well as their intersection, then the standard deviation of the overall population can still be calculated as follows:

μXY=1NXY(NXμX+NYμYNXYμXY)σXY=1NXY(NX[σX2+μX2]+NY[σY2+μY2]NXY[σXY2+μXY2])μXY2

If two or more sets of data are being added together datapoint by datapoint, the standard deviation of the result can be calculated if the standard deviation of each data set and the covariance between each pair of data sets is known:

σX=iσXi2+2i,jcov(Xi,Xj)

For the special case where no correlation exists between any pair of data sets, then the relation reduces to the root sum of squares:

cov(Xi,Xj)=0,i<jσX=iσXi2.

Sample-based statistics

Standard deviations of non-overlapping (XY = ∅) sub-samples can be aggregated as follows if the actual size and means of each are known:

μXY=1NXY(NXμX+NYμY)σXY=1NXY1([NX1]σX2+NXμX2+[NY1]σY2+NYμY2[NX+NY]μXY2)

For the more general case of M non-overlapping data sets, X1 through XM, and the aggregate data set X=iXi,

μX=1iNXi(iNXiμXi)σX=1iNXi1(i[(NXi1)σXi2+NXiμXi2][iNXi]μX2)

where

XiXj=,i<j.

If the size, mean, and standard deviation of two overlapping samples are known for the samples as well as their intersection, then the standard deviation of the aggregated sample can still be calculated. In general,

μXY=1NXY(NXμX+NYμYNXYμXY)σXY=[NX1]σX2+NXμX2+[NY1]σY2+NYμY2[NXY1]σXY2NXYμXY2[NX+NYNXY]μXY2NXY1

See also

References