Search for a tool
Weighted Mean of Numbers

Tool to calculate weighted means. The weighted mean of a statistical value related to a list of numbers that are associated with a coefficient: their weight.

Results

Weighted Mean of Numbers -

Tag(s) : Mathematics, Data processing

Share
dCode and you

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Weighted Mean of Numbers tool. Thank you.

# Weighted Mean of Numbers

## Mean Calculator

(if this message do not disappear, try to refresh this page)
 Calculate Weighted Arithmetic Mean (Classic) Weighted Geometric Mean Weighted Harmonic Mean

Tool to calculate weighted means. The weighted mean of a statistical value related to a list of numbers that are associated with a coefficient: their weight.

## Answers to Questions

### How to compute a weighted arithmetic mean?

Take a list of $n$ values $X = \{x_1, x_2, \dots, x_n \}$ associated with weights $W = \{ w_1, w_2, \dots, w_n\}$. The weighted arithmetic mean is defined by the sum of values multiplied by their weight, divided by the sum of weights. $$\bar{x} = \frac{ \sum_{i=1}^n w_i x_i}{\sum_{i=1}^n w_i}$$

Example: The list of 3 numbers $12$ (coefficient $7$), $14$ (coefficient $2$) and $16$ (coefficient $1$) has for weighted mean $(12 \times 7 + 14 \times 2 + 16 \times 1) / (7 + 2 + 1) = 12.8$

### How to compute a weighted geometric mean?

Consided a list of n values $X = \ {x_1, x_2, \dots, x_n \}$ associated with weights $W = \{ w_1, w_2, \dots, w_n\}$. The weighted geometric mean is defined by the pth root of the product of values, where p is the weight's sum. $$\bar{x}^G = \left(\prod_{i=1}^n x_i^{w_i}\right)^{1 / \sum_{i=1}^n w_i} = \quad \exp \left( \frac{1}{\sum_{i=1}^n w_i} \; \sum_{i=1}^n w_i \ln x_i \right)$$

### How to compute a weighted harmonic mean?

Consided a list of n values $X = \ {x_1, x_2, \dots, x_n \}$ associated with weights $W = \{ w_1, w_2, \dots, w_n\}$. The weighted harmonic mean is defined by the ratio of p (the weight sum) to the sum of the ratio of each weigth over the values. $$\bar{x}^H = \sum_{i=1}^n w_i \bigg/ \sum_{i=1}^n \frac{w_i}{x_i}$$

## Source code

dCode retains ownership of the source code of the script Weighted Mean of Numbers online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be released for free. To download the online Weighted Mean of Numbers script for offline use on PC, iPhone or Android, ask for price quote on contact page !

## Questions / Comments

Team dCode likes feedback and relevant comments; to get an answer give an email (not published). It is thanks to you that dCode has the best Weighted Mean of Numbers tool. Thank you.

Source : https://www.dcode.fr/weighted-mean
© 2020 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaches. dCode
Feedback