「実際に」プールされた分散とはどういう意味ですか?


15

私は統計の初心者なので、ここで私を助けてください。

私の質問は次のとおりです。プールされた分散は実際に何を意味しますか?

インターネットでプールされた分散の式を探すと、次の式を使用して多くの文献が見つかります(たとえば、http//math.tntech.edu/ISR/Mathematical_Statistics/Introduction_to_Statistical_Tests/thispage/newnode19.html):

Sp2=S12(n11)+S22(n21)n1+n22

しかし、実際には何を計算しますか?プールされた分散を計算するためにこの式を使用すると、間違った答えが得られるためです。

たとえば、これらの「親サンプル」を考えてみましょう。

2,2,2,2,2,8,8,8,8,8

この親サンプルの分散である、その平均であるˉ X P = 5Sp2=10x¯p=5

ここで、この親サンプルを2つのサブサンプルに分割するとします。

  1. 最初のサブサンプルは、平均と2,2,2,2,2である、分散S 2 1 = 0x¯1=2S12=0
  2. 第2のサブサンプルは、平均と8,8,8,8,8である及び分散S 2 2 = 0x¯2=8S22=0

ここで、およびS 2 = 0であるため、上記の式を使用してこれら2つのサブサンプルのプール/親分散を計算すると、ゼロが生成されます。それでは、この式は実際に何を計算しますか?S1=0S2=0

一方、長い時間をかけて導出した後、正しいプール/親の分散を生成する式は次のとおりです。

Sp2=S12(n11)+n1d12+S22(n21)+n2d22n1+n21

上記式中、及びD 2 = ¯ X 2 - ˉ X Pd1=x1¯x¯pd2=x2¯x¯p

私は同様の式を見つけました例えば、http//www.emathzone.com/tutorials/basic-statistics/combined-variance.html とWikipediaにあります。私は彼らが私のものとまったく同じに見えないことを認めなければなりませんが。

繰り返しますが、プールされた分散は実際に何を意味しますか?2つのサブサンプルからの親サンプルの分散を意味するべきではありませんか?または私はここで完全に間違っていますか?

前もって感謝します。


編集1:上記の2つのサブサンプルは、分散がゼロであるため病理学的であると誰かが言います。さて、私はあなたに別の例を挙げることができます。この親サンプルを検討してください。

1,2,3,4,5,46,47,48,49,50

この親サンプルの分散である、その平均であるˉ X P =Sp2=564.7x¯p=25.5

ここで、この親サンプルを2つのサブサンプルに分割するとします。

  1. 最初のサブサンプルは、平均と1,2,3,4,5である、分散S 2 1 = 2.5x¯1=3S12=2.5
  2. 第2のサブサンプルは、平均と46,47,48,49,50ある及び分散S 2 2 = 2.5x¯2=48S22=2.5

ここで、「文学の式」を使用してプールされた分散を計算すると、2.5になります。これは、親/プールされた分散が564.7であるため、完全に間違っています。代わりに、「私の式」を使用すると、正しい答えが得られます。

ここで極端な例を使用して、式が実際に間違っていることを人々に示してください。多くのバリエーション(極端な場合)を持たない「通常のデータ」を使用すると、これらの2つの式の結果は非常に似たものになり、式自体が原因ではなく、丸め誤差のために人々は差を無視できます違う。


回答:


13

簡単に言えば、プールされた分散は、それらの分散が等しいという仮定/制約の下で、各サンプル内の分散の(偏りのない)推定です。

これについては、ウィキペディアのプールされた分散のエントリで詳細に説明、動機付け、分析されています。

想定したように、2つの個別のサンプルを連結して形成される新しい「メタサンプル」の分散は推定しませ。既に発見したように、それを推定するには完全に異なる式が必要です。


「平等」(つまり、同じ母集団がそれらのサンプルを実現した)という仮定は、それが何であるかを定義するために一般に必要はありません-「プール」。プールとは、単に平均化されたオムニバスを意味します(ティムへの私のコメントを参照)。
ttnphns

@ttnphns I think the equality assumption is necessary for giving the pooled variance a conceptual meaning (which the OP asked for) that goes beyond just verbally describing the mathematical operation it performs on the sample variances. If the population variances are not assumed equal, then it's unclear what we could consider the pooled variance to be an estimate of. Of course, we could just think about it as being an amalgamation of the two variances and leave it at that, but that's hardly enlightening in the absence of any motivation for wanting to combine the variances in the first place.
Jake Westfall

Jake, I'm not in disagreement with that, given the specific question of the OP, but I wanted to speak about definition of the word "pooled", that's why I said, "in general".
ttnphns

@JakeWestfall Your answer is the best answer so far. Thank you. Although I am still not clear about one thing. According to Wikipedia, pooled variance 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.
Hanciong

@JakeWestfall:では、異なる平均値を持つ2つの異なる母集団からプールされた分散を計算する場合、実際には何を計算しますか?最初の分散は最初の平均に関する変動を測定しており、2番目の分散は2番目の平均に関するものであるためです。計算からどのような追加情報が得られるかわかりません。
ハンシオン

10

Pooled variance is used to combine together variances from different samples by taking their weighted average, to get the "overall" variance. The problem with your example is that it is a pathological case, since each of the sub-samples has variance equal to zero. Such pathological case has very little in common with the data we usually encounter, since there is always some variability and if there is no variability, we don't care about such variables since they carry no information. You need to notice that this is a very simple method and there are more complicated ways of estimating variance in hierarchical data structures that are not prone to such problems.

As about your example in the edit, it shows that it is important to clearly state your assumptions before starting the analysis. Let's say that you have n data points in k groups, we would denote it as x1,1,x2,1,,xn1,k,xn,k, where the i-th index in xi,j stands for cases and j-th index stands for group indexes. There are several scenarios possible, you can assume that all the points come from the same distribution (for simplicity, let's assume normal distribution),

(1)xi,jN(μ,σ2)

you can assume that each of the sub-samples has its own mean

(2)xi,jN(μj,σ2)

or, its own variance

(3)xi,jN(μ,σj2)

or, each of them have their own, distinct parameters

(4)xi,jN(μj,σj2)

Depending on your assumptions, particular method may, or may not be adequate for analyzing the data.

In the first case, you wouldn't be interested in estimating the within-group variances, since you would assume that they all are the same. Nonetheless, if you aggregated the global variance from the group variances, you would get the same result as by using pooled variance since the definition of variance is

Var(X)=1n1i(xiμ)2

and in pooled estimator you first multiply it by n1, then add together, and finally divide by n1+n21.

In the second case, means differ, but you have a common variance. This example is closest to your example in the edit. In this scenario, the pooled variance would correctly estimate the global variance, while if estimated variance on the whole dataset, you would obtain incorrect results, since you were not accounting for the fact that the groups have different means.

In the third case it doesn't make sense to estimate the "global" variance since you assume that each of the groups have its own variance. You may be still interested in obtaining the estimate for the whole population, but in such case both (a) calculating the individual variances per group, and (b) calculating the global variance from the whole dataset, can give you misleading results. If you are dealing with this kind of data, you should think of using more complicated model that accounts for the hierarchical nature of the data.

The fourth case is the most extreme and quite similar to the previous one. In this scenario, if you wanted to estimate the global mean and variance, you would need a different model and different set of assumptions. In such case, you would assume that your data is of hierarchical structure, and besides the within-group means and variances, there is a higher-level common variance, for example assuming the following model

(5)xi,jN(μj,σj2)μjN(μ0,σ02)σj2IG(α,β)

where each sample has its own means and variances μj,σj2 that are themselves draws from common distributions. In such case, you would use a hierarchical model that takes into consideration both the lower-level and upper-level variability. To read more about this kind of models, you can check the Bayesian Data Analysis book by Gelman et al. and their eight schools example. This is however much more complicated model then the simple pooled variance estimator.


I have updated my question with different example. In this case, the answer from "literature's formula" is still wrong. I understand that we are usually dealing with "normal data" where there is no extreme case like my example above. However, as mathematicians, shouldn't you care about which formula is indeed correct, instead of which formula applies in "everyday/common problem"? If some formula is fundamentally wrong, it should be discarded, especially if there is another formula which holds in all cases, pathological or not.
Hanciong

Btw you said there are more complicated ways of estimating variance. Could you show me these ways? Thank you
Hanciong

2
Tim, pooled variance is not the total variance of the "combined sample". In statistics, "pooled" means weighted averaged (when we speak of averaged quantities such as variances, weights being the n's) or just summed (when we speak of sums such as scatters, sums-of-squares). Please, reconsider your terminology (choice of words) in the answer.
ttnphns

1
Albeit off the current topic, here is an interesting question about "common" variance concept. stats.stackexchange.com/q/208175/3277
ttnphns

1
Hanciong. I insist that "pooled" in general and even specifically "pooled variance" concept does not need, in general, any assumption such as: groups came from populations with equal variances. Pooling is simply blending (weighted averaging or summing). It is in ANOVA and similar circumstances that we do add that statistical assumption.
ttnphns

1

The problem is if you just concatenate the samples and estimate its variance you're assuming they're from the same distribution therefore have the same mean. But we are in general interested in several samples with different mean. Does this make sense?


0

The use-case of pooled variance is when you have two samples from distributions that:

  • may have different means, but
  • which you expect to have an equal true variance.

An example of this is a situation where you measure the length of Alice's nose n times for one sample, and measure the length of Bob's nose m times for the second. These are likely to produce a bunch of different measurements on the scale of millimeters, because of measurement error. But you expect the variance in measurement error to be the same no matter which nose you measure.

In this case, taking the pooled variance would give you a better estimate of the variance in measurement error than taking the variance of one sample alone.


Thank you for your answer, but I still don't understand about one thing. The first data gives you the variance with respect to Alice's nose length, and the second data gives you the variance with respect to Bob's nose length. If you are calculating a pooled variance from those data, what does it mean actually? Because the first variance is measuring the variation with respect to Alice's, and the second with respect to Bob's, so what additional information can we gained by calculating their pooled variance? They are completely different numbers.
Hanciong

0

Through pooled variance we are not trying to estimate the variance of a bigger sample, using smaller samples. Hence, the two examples you gave don't exactly refer to the question.

Pooled variance is required to get a better estimate of population variance, from two samples that have been randomly taken from that population and come up with different variance estimates.

Example, you are trying to gauge variance in the smoking habits of males in London. You sample two times, 300 males from London. You end up getting two variances (probably a bit different!). Now since, you did a fair random sampling (best to your capability! as true random sampling is almost impossible), you have all the rights to say that both the variances are true point estimates of population variance (London males in this case).

But how is that possible? i.e. two different point estimates!! Thus, we go ahead and find a common point estimate which is pooled variance. It is nothing but weighted average of two point estimates, where the weights are the degree of freedom associated with each sample.

Hope this clarifies.

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.