Combined Variance of Two Groups with Equal Numbers of Observations
1
Combined Variance of Two Groups with Equal Numbers of Observations
Sara E. Burke Created 2014-01-12, Last updated 2021-06-11
Special Thanks to Rachel Nolan
If we have two groups of n observations each, and we know the mean and sample variance of each group separately, how can we calculate the mean and sample variance of the combination of the two groups?
Let's refer to the groups as X and Y . The elements in the first group are x1 . . . xn and the elements in the second group are y1 . . . yn. We are given four values:
Mean of X = x? Variance of X = Vx
Mean of Y = y? Variance of Y = Vy
And we are expected to calculate two values:
Overall Mean = M Overall Variance = V
The overall mean is easy to calculate. It is the sum of all the observations divided by the total number of observations 2n. Because each group has equally many observations, the overall mean is just the midpoint of the two means.
n
n
M
=
xi
i=1
+
yi
i=1
=
nx? +
ny?
=
x?
+ y?
2n
2n
2
The overall variance is not so simple.
The variance of X can be written as follows. As shown, from now on all sums across indices i from 1 to n will be written using only the symbol.
n
(xi - x?)2
Vx
=
i=1
n
-
1
=
(xi - x?)2 n-1
2
The overall variance follows the same structure, but we have to sum across all of the X observations and all of the Y observations.
V = (xi - M )2 + (yi - M )2 2n - 1
Let's take the X portion of the numerator and expand it as shown below.
(xi - M )2 = = = = =
(xi - x? + x? - M )2 ((xi - x?) + (x? - M ))2 ((xi - x?)2 + 2(xi - x?)(x? - M ) + (x? - M )2) (xi - x?)2 + 2 (xix? - x?2 - xiM + x?M ) + (x? - M )2 (xi - x?)2 + 2x? xi - 2nx?2 - 2M xi + 2nx?M + n(x? - M )2
Note that x? = xi so n
xi = nx? . Continuing from above,
(xi - M )2 = (xi - x?)2 + 2nx?2 - 2nx?2 - (x? + y?)nx? + (x? + y?)nx? + n(x?2 - 2x?M + M 2)
= (xi - x?)2 + nx?2 - 2nx?M + nM 2
=
(xi - x?)2 + nx?2 - 2nx?
x? + y? 2
+n
x? + y? 2 2
=
(xi - x?)2 + nx?2 - (nx?2 + nx?y?) + n
x?2 + 2x?y? + y?2 4
=
(xi
-
x?)2
+
nx?2
-
nx?2
-
nx?y?
+
n x?2 4
+
n x?y?
2
+
n y?2 4
=
(xi
-
x?)2
+
n x?2 4
-
n x?y?
2
+
n y?2 4
=
(xi
-
x?)2
+
n (x?2 4
-
2x?y?
+
y?2)
=
(xi
-
x?)2
+
n (x?
4
-
y?)2
3
The (yi - M )2 portion of the numerator of V can be similarly expanded, so V can be expanded as follows.
V= = =
(xi - M )2 + (yi - M )2 2n - 1
(xi
-
x?)2
+
n 4
(x?
-
y?)2
+
(yi
-
y?)2
+
n 4
(x?
-
y?)2
2n - 1
(xi - x?)2 +
(yi
-
y?)2
+
n 2
(x?
-
y?)2
2n - 1
Note that Vx =
(xi - x?)2 n-1
so
(xi - x?)2 = (n - 1)Vx . The same applies to Y .
V
=
(n - 1)Vx + (n - 1)Vy +
n 2
(x?
-
y?)2
2n - 1
V
=
(n
-
1)(Vx
+
Vy )
+
n 2
(x?
-
y?)2
2n - 1
This is the simplest form.
Note that, as the sample sizes increases, the variance of the combined sample approaches the mean of the two variances plus the square of half the distance between the two means.
lim (V ) =
lim
(n
-
1)(Vx
+
Vy )
+
n 2
(x?
-
y?)2
n
n
2n - 1
2n - 1
= Vx + Vy + (x? - y?)2
2
4
= Vx + Vy + x? - y? 2
2
2
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- gage r r vs anova msc conf
- combined variation worksheets with answers
- combined variation worksheet doc
- combined variation purdue university
- lesson 2 2 inverse variation
- performance based learning and assessment task radford university
- 28 1 inverse variation and combined variation
- combined variance of two groups with equal numbers of observations
- joint and combined variation calculator
- joint and combined variation mcas
Related searches
- percentage of two numbers formula
- find percentage variance between two numbers
- calculate percentage of two numbers in excel
- calculate variance between two numbers
- percentage of two numbers calculator
- calculate variance of two numbers
- average of two numbers calculator
- find percentage of two numbers calculator
- variance of two numbers
- excel variance between two numbers
- percent variance of two numbers
- two triangles with equal sides