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
Share
dCode and more

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!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Weighted Mean of Numbers' tool for free! Thank you!

Weighted Mean of Numbers

Mean Calculator


Loading...
(if this message do not disappear, try to refresh this page)



See also: Mean of Numbers

Answers to Questions (FAQ)

What is a weighted mean? (Definition)

The weighted mean of a statistical value related to a list of numbers that are associated with a coefficient: their weight, a number which therefore takes up more or less value in the calculated mean.

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. Formula: $$ \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?

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 geometric mean is defined by the pth root of the product of values, where p is the weight's sum. Formula: $$ \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?

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 harmonic mean is defined by the ratio of p (the weight sum) to the sum of the ratio of each weigth over the values. Formula: $$ \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 "Weighted Mean of Numbers" source code. Any algorithm for the "Weighted Mean of Numbers" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Weighted Mean of Numbers" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Weighted Mean of Numbers" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Weighted Mean of Numbers" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source. Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link: https://www.dcode.fr/weighted-mean
In a scientific article or book, the recommended bibliographic citation is: Weighted Mean of Numbers on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/weighted-mean

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Weighted Mean of Numbers' tool for free! Thank you!


https://www.dcode.fr/weighted-mean
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback