Method and source check
Last checked:
Editorial check of method and sources; this is not professional review or advice.
Method
The calculator validates a list of finite numbers, then computes the arithmetic mean, median, mode, range, sum, and count. The median and mode are computed from the sorted values.
x̄ = Σxᵢ / n
range = maximum − minimum
Variables and units
- xáµ¢
- each value in the data set
- n
- number of values
- x̄
- arithmetic mean
Worked example
For 2, 4, 4, and 10: the sum is 20, n is 4, the mean is 5, the median is 4, the mode is 4, and the range is 8.
Limitations
Mean, median, range, and sum are rounded to at most three decimal places. Mode values and the count are not rounded; the result card shows numbers without trailing zero padding.
- The mean can be strongly affected by outliers. For skewed data, compare the mean with the median instead of treating either value as automatically representative.
- Input 2, 4, 4, 10 returns mean 5, median 4, mode 4, range 8, sum 20, and count 4.
- Input 1, 2, 2 returns mean 1.667, median 2, mode 2, range 1, sum 5, and count 3.
- Input 1, 2, 3 returns no mode because no value repeats. Empty input and nonfinite tokens such as 1, foo fail validation.