Neyman allocation (source code)

= Neyman allocation
{c}
{wiki}

<Neyman allocation> minimizes the <variance> of an estimate for a fixed total sampling budget when group <variances> may differ. For <independent random variables>[independent] observations in two treatment groups, estimate their <mean> difference by $\overline Y_1-\overline Y_0$. With outcome standard deviations $\sigma_1,\sigma_0>0$ and fixed total $n=n_1+n_0$, its <variance> is $\sigma_1^2/n_1+\sigma_0^2/n_0$. Differentiation, or <Cauchy-Schwarz inequality>, gives
$$
\frac{n_1}{n_0}=\frac{\sigma_1}{\sigma_0},\qquad \min\operatorname{Var}(\overline Y_1-\overline Y_0)=\frac{(\sigma_1+\sigma_0)^2}{n}.
$$
The noisier group receives more observations. If $\sigma_1=2\sigma_0$, the allocation ratio is $2:1$ rather than $1:1$; <integer> group sizes require rounding. Equal per-observation costs and a mean-difference estimand are part of this calculation.

For a stratified population <mean> $\sum_hW_h\overline Y_h$, the corresponding fixed-count rule is $n_h\propto W_h\sigma_h$. This additional population weight explains why assigning every stratum in proportion to its <standard deviation> alone is generally incorrect. Unequal costs, minimum group sizes and unknown <variances> alter the optimization.