statsmodels.sandbox.stats.multicomp.varcorrection_pairs_unbalanced(nobs_all, srange=False)
[source]
correction factor for variance with unequal sample sizes for all pairs
this is just a harmonic mean
Parameters: |
|
---|---|
Returns: |
correction – Correction factor for variance. |
Return type: |
array |
variance correction factor is
1/k * sum_i 1/n_i
where k is the number of samples and summation is over i=0,…,k-1. If all n_i are the same, then the correction factor is 1.
This needs to be multiplies by the joint variance estimate, means square error, MSE. To obtain the correction factor for the standard deviation, square root needs to be taken.
For the studentized range statistic, the resulting factor has to be divided by 2.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.sandbox.stats.multicomp.varcorrection_pairs_unbalanced.html