Weighted geometric mean

In statistics, given a set of data,


 * X = { x1, x2, ..., xn}

and corresponding weights,


 * W = { w1, w2, ..., wn}

the weighted geometric mean is calculated as


 * $$ \bar{x} = \left(\prod_{i=1}^n x_i^{w_i}\right)^{1 / \sum_{i=1}^n w_i} = \quad \exp \left( \frac{\sum_{i=1}^n w_i \ln x_i}{\sum_{i=1}^n w_i \quad} \right) $$

Note that if all the weights are equal, the weighted geometric mean is the same as the geometric mean.

Weighted versions of other means can also be calculated. Probably the best known weighted mean is the weighted arithmetic mean, usually simply called the weighted mean. Another example of a weighted mean is the weighted harmonic mean.

The second form above illustrates that the logarithm of the geometric mean is the weighted arithmetic mean of the logarithms of the individual values.