How to Estimate Population Variance from Multiple Samples - Cross Validated most recent 30 from stats.stackexchange.com 2019-10-15T04:25:54Z https://stats.stackexchange.com/feeds/question/243922 https://creativecommons.org/licenses/by-sa/4.0/rdf https://stats.stackexchange.com/q/243922 5 How to Estimate Population Variance from Multiple Samples Delyle https://stats.stackexchange.com/users/31360 2016-11-03T03:49:53Z 2016-11-17T16:15:33Z <p>Suppose I have $N$ samples each of size $n$, drawn from the same population, where each sample has its own sample variance $s_i^2$. </p> <p>I understand that for any given sample, a first estimate of the population variance $\sigma^2$ is: </p> <p>$$\hat{\sigma}^2 = s_i^2 \displaystyle\frac{n}{n-1}$$</p> <p>But what if you have multiple samples? What is the best estimate of $\sigma^2$ given multiple $s^2$?</p> https://stats.stackexchange.com/questions/243922/-/244881#244881 -1 Answer by Tom LaBone for How to Estimate Population Variance from Multiple Samples Tom LaBone https://stats.stackexchange.com/users/137882 2016-11-08T15:55:37Z 2016-11-08T16:21:10Z <p>How about putting a hat on your estimates of the variance for each of the N samples</p> <p>$\hat{\sigma}_{i}^{2}\simeq s_{i}^{2}\frac{n-1}{n}$</p> <p>and appealing to the Law of Propagation of Uncertainty, add them in quadrature to get the estimate of the overall variance</p> <p>$\tilde{\sigma}^{2}=\sum_{i=1}^{N}\hat{\sigma}_{i}^{2}$</p> https://stats.stackexchange.com/questions/243922/-/246449#246449 0 Answer by samples are independent... for How to Estimate Population Variance from Multiple Samples samples are independent... https://stats.stackexchange.com/users/138992 2016-11-17T08:44:15Z 2016-11-17T08:44:15Z <p>I presume this is the issue where you have k samples size n of a population that are all random with a given mean m and sample unbiassed variance s^2. As you do not have the real population mean, NOR the population variance that is used in all the textbooks, you have to find a means to not only calculate this population mean (rather easy), but also have a good estimator of the population variance. I did not find a description how to do this in the HANDBOOK OF PARAMETRIC AND NONPARAMETRIC STATISTICAL PROCEDURES (2000 pages, really quite complete) and that leaves us two ways. Theory (approach each sample of the same parameter as RANDOM and thus state the population is a sum of the INDEPENDENT samples with a weight 1/k of each, giving you a resulting population variance if you pull another sample size n. Then multiply that population variance with n to obtain the population variance when pulling single size samples). Another way is to pragmatically create a program that simulates your population (does not have to be exact) to calculate variances of many sample sizes using your guessed formula and then see what method is actually (after 1000 repetitions, computers are patient) most robust. I propose you use the theoretical approach.</p> https://stats.stackexchange.com/questions/243922/-/246537#246537 4 Answer by whuber for How to Estimate Population Variance from Multiple Samples whuber https://stats.stackexchange.com/users/919 2016-11-17T16:15:33Z 2016-11-17T16:15:33Z <p>A comment clarified that the best estimator of the variance is intended to be <em>unbiased.</em> A standard way to find such an estimator is to restrict one's attention to linear combinations of the estimators (because almost anything else would be difficult to analyze). </p> <p>Let there be $k$ independent samples indexed by $i=1,2,\ldots, k$, each with its own unbiased variance estimator $\hat\sigma_i^2$. Let the unknown weights of the linear combination be $w_i$, so that the combined estimator will be</p> <p>$$\hat\sigma^2 = \sum_{i=1}^k w_i \hat \sigma_i^2.$$</p> <p>Because this is supposed to be unbiased <em>for any population,</em> by definition the population variance will equal its expected value:</p> <p>$$\sigma^2 = \mathbb{E}(\hat\sigma^2) = \sum_{i=1}^k w_i \mathbb{E}(\hat\sigma_i^2) = \sum_{i=1}^k w_i \sigma^2 = \left(\sum_{i=1}^k w_i\right)\sigma^2.$$</p> <p>Since $\sigma^2 \ne 0$ is possible, division of both sides by $\sigma^2$ implies the weights sum to unity:</p> <p>$$1 = \sum_{i=1}^k w_i.$$</p> <p>Let the sample size for estimator $\hat\sigma_i$ be $n_i$. (In the question all the $n_i$ are equal to $n$.) Because each estimator $\hat\sigma_i^2$ has $n_i-1$ degrees of freedom, its variance will be approximately proportional to $1/(n-1)$ times some value that is an (unknown) property $f$ of the population. (This unknown property depends on the first four moments of the population.) In fact, for a Normal population this is not an approximation at all: the variances of the estimators are exactly proportional to $1/(n_i-1)$. Therefore we may approximate the variance of the combined estimator as</p> <p>$$\operatorname{Var}(\hat\sigma^2) = \operatorname{Var}\left(\sum_{i=1}^k w_i \hat\sigma_i^2\right) = \sum_{i=1}^k w_i^2 \operatorname{Var}(\hat\sigma_i^2) \approx \sum_{i=1}^k w_i^2 \frac{f}{n_i-1}.$$ The second equality is due to the independence of the $k$ samples.</p> <p>Subject to the sum-to-unity constraint, this variance is minimized when the $w_i$ are proportional to $n_i-1$. Therefore an (approximate) <em>minimum variance unbiased linear estimator</em> of the population variance is</p> <p>$$\hat\sigma^2 = \frac{1}{n_1+\cdots n_k - k}\sum_{i=1}^k (n_i-1)\hat\sigma_i^2.$$</p> <p>When all the $n_i$ are equal to a common value $n$, this reduces to the <em>arithmetic mean of the individual variance estimators.</em> It should be intuitively obvious that some kind of equally-weighted average of all $k$ estimators would be the best one in this case.</p>