A little context. A clearer answer.
When this calculator is useful
A delivery team records how many minutes its van arrived before or after an agreed time. An early arrival and a late arrival can cancel when the team averages signed differences. Taking the absolute value first gives both arrivals a positive distance from the appointment. Use a custom centre of zero for that question. Use the mean or median when you want to describe how scattered the arrivals are around a typical result for this particular set of deliveries.
A target set in advance stays fixed when new data arrive. For timings of 9, 10 and 13 minutes against a 10-minute target, the distances are 1, 0 and 3 minutes. The average is four thirds of a minute. If a new delivery takes 17 minutes, it adds seven minutes to the total distance and increases the count by one.
An absolute deviation is expressed in the same units as the measurements. If the observations are lengths in millimetres, the average distance is also in millimetres. Squaring differences would give a different statistic and change the influence of a large gap. Record the centre and the averaging rule alongside your result.
The drawing shows the first eight observations when the list is longer. Open the table to inspect every row. The centre and totals use the entire list, so editing the ninth observation can move the centre line even though that observation has its own row only in the table.
What to enter
| Input | What it means | Example value |
|---|---|---|
| Observations | Enter up to 100 numbers separated by spaces, line breaks or semicolons. Use a decimal point or decimal comma inside an individual value. For three readings of zero, zero and nine, type 0 0 9. Use the same measurement unit for the entire list. | 0 0 9 |
| Centre | Select the mean, median or a custom centre. Changing this choice recalculates the distances of the same observations. Their listing order stays available so that you can trace a long distance back to its original row. | Mean |
| Custom centre | Enter your reference in the same units as the observations. It can sit outside their range. For example, a target of 10 minutes works with three timings of 9, 10 and 13 minutes. | — |
How the calculation works
- Enter the observations in a common unit and check the count. Keep repeated entries when they represent repeated measurements. A negative value can represent a direction, an offset or a position below a reference.
- Choose the centre that answers your question. The mean is the arithmetic average. The median comes from the ordered values. A custom centre lets you test a design target, appointment time or another reference set independently of the sample.
- Read a row in the table from left to right. Subtract the centre from the observation and take the magnitude. The line in the illustration spans that gap. The sum of the gaps divided by the observation count gives the reported average.
D = Σ |xᵢ−c| / nA worked example
For 0, 0 and 9 the mean is 3. The distances from 3 are 3, 3 and 6. Their sum is 12, so the average distance is 4. Switch to the median. The centre moves to 0, the first two distances disappear and the third grows to 9. The total falls to 9 and the average falls to 3. The last observation moves farther from the centre even as the group average gets smaller.
Example you can load
What to enterThis is a fixed example; changing the form above does not change these numbers.
Assumptions & limits
The calculation gives equal weight to every observation. An entry represents one measurement even if another row has exactly the same value. The average uses the number of entries as its denominator. Groups with different sizes, measurements in different units, or observations representing different lengths of time need a decision about weighting before their results can be compared.
Frequently asked questions
How does the median absolute deviation differ from this median setting?
This setting takes the average of the distances from the median. A statistic called the median absolute deviation takes the median of those distances. With 0, 0 and 9 the distances from the median are 0, 0 and 9. Their average is 3 and their median is 0. Reporting the full name makes the distinction clear.
Can two different centres produce the same smallest total distance?
Yes. For 2, 4, 8 and 10 the two middle readings are 4 and 8. Every centre from 4 through 8 gives a total distance of 12. The median option picks their midpoint, 6. Enter either endpoint as a custom centre to see the individual distances redistribute.
Why do two observations on opposite sides have the same distance?
Distance records magnitude. For a target of 10, both 8 and 12 are two units away. Keep the observations as well as the distances when the direction matters. The original value and the centre together show which side each point occupies.