Weighted arithmetic mean (source code)

= Weighted arithmetic mean
{title2=$\bar x_w$}
{wiki}

= Weighted mean
{synonym}

For positive weights $w_i$, the weighted mean is
$$
\bar x_w=\frac{\sum_iw_ix_i}{\sum_iw_i}.
$$
It lies between the smallest and largest $x_i$; the same result holds for integrals with a positive weight function.