Search for a tool
Arithmetic Mean

Tool to compute a mean from numbers. The arithmetic mean (or commonly the mean/average) of a list of numbers is a statistical representation showing the distribution of the numbers in the list.

Results

Arithmetic Mean -

Tag(s) : Statistics, 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 'Arithmetic Mean' tool for free! Thank you!

Arithmetic Mean

Mean Calculator

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

Arithmetic Mean of a Function Calculator

Weighted (Arithmetic) Mean Calculator

Answers to Questions (FAQ)

How to compute an arithmetic mean?

The arithmetic mean is the mathematical term to define what is commonly called mean or >average.

Take a list of $ n $ values (digits, numbers, natural or real numbers) $ X = \{x_1, x_2, \dots, x_n \} $. The arithmetic mean is defined by the sum of the values divided by the number of values $ n $.

$$ \bar{x} = {1 \over n} \ sum_{i=1}^n{x_i} $$

The arithmetic mean is generally used to give a general trend to a set of homogeneous data, possibly bounded, for example school marks between 0 and 20.

Example: The list of $ 4 $ numbers $ \{ 12, 14, 18, 13 \} $ its average value is $ (12+14+18+13)/4 = 14.25 $

This definition can be extended to a function, see function mean calculator.

To find the central value of a list, see median calculator.

When the values are assigned coefficients, see the weighted mean calculator.

How to change of scale an arithmetic mean?

For a list of $ n $ values $ X = \{x_1, x_2, \dots, x_n\} $ having a mean $ \bar {x} = m $, two possible scale changes:

If all $ x_i $ are increased by $ a $ then the arithmetic mean is also increased by $ a $ and becomes $ \bar{x} = m + a $

If all $ x_i $ are multiplied by $ a $ then the arithmetic mean is also multiplied by $ a $ and becomes $ \bar{x} = m \times a $

How to calculate the average of 2 lists knowing their means?

To perform a sort of addition of an average of 2 lists: a list $ A $ of $ n_1 $ values and average $ \bar {A} = m_1 $ and a list $ B $ of $ n_2 $ values and average $ \bar {B} = m_2 $, then the average of the 2 lists is given by the formula:

$$ \overline{A+B} = \frac{n_1 m_1 + n_2 m_2}{n_1+n_2} $$

How to code an arithmetic mean (source code)?

Classic method: // pseudocode
function mean(array[N]) {
sum = 0
for i = 0; i < N ; i++ {
sum += array[i]
}
return sum / N
}

Optimized method for floats (avoid big values) : // pseudocode
function mean(array[N]) {
m = 0
for i = 0; i < N; i++) {
m += (array[i] - m)/(i+1);
}
return m
}

Source code

dCode retains ownership of the "Arithmetic Mean" source code. Any algorithm for the "Arithmetic Mean" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Arithmetic Mean" 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 "Arithmetic Mean" 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 "Arithmetic Mean" 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/arithmetic-mean
In a scientific article or book, the recommended bibliographic citation is: Arithmetic Mean on dCode.fr [online website], retrieved on 2025-04-16, https://www.dcode.fr/arithmetic-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 'Arithmetic Mean' tool for free! Thank you!


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