Field note · July 18, 2026

The average distance km is not the typical one

A 51.0% gap between mean and median on one column, and which of the two answers the question you were asked.

1 min read ·Statistics ·statistics practice

Every skewed column has the same conversation attached to it, so here it is once, on distance_km in ride-hail-trips.

The mean is 4.83. The median is 3.20. That is a gap of 51.0%, and it is not noise — the p90 is 10.69 and the max is 43.09, so the top of the distribution is dragging the average somewhere a minority of rows actually live.

sql
select
  avg(distance_km)                                                     as mean,
  percentile_cont(0.5) within group (order by distance_km)             as median,
  percentile_cont(0.9) within group (order by distance_km)             as p90,
  max(distance_km)                                                     as max
from ride_hail_trips;

The practical consequence is that "average distance km" answers a question nobody asked. If someone wants to know what a typical row looks like, the median answers it. If someone is forecasting a total, the mean is the right tool and the skew does not matter, because the mean times the count is the total.

So the rule is not "never use the mean". It is: name which question you are answering, then pick the statistic that answers it. A report that shows 4.83 with no median next to it has quietly decided you meant the first question.

There is a longer version of this in Describing a column without lying, and the pattern is the short one.