Skip to content
ML Academy

SQL, data modeling, data quality, EDA, visualization · insight-0066

Compute rate KPIs as a ratio of sums unless you deliberately want the average of unit rates

Evidence type
practitioner heuristic
Difficulty
easy
Roles
Data analyst, Data scientist
Industries
aviation, e-commerce, manufacturing

Summary: situation, action, reason, boundary

  1. Situation

    Network load factor is reported as AVG(load_factor) across flights, while finance computes passengers divided by seats.

  2. Action

    Name the question first. For "share of seats filled", use SUM(passengers) / SUM(capacity). For "typical flight's load factor", the average of unit ratios is valid but must be labelled. Publish one definition per KPI and keep both numerator and denominator available.

  3. Reason

    An average of ratios weights each unit equally; a ratio of sums weights by the denominator. They answer different questions and can move in opposite directions.

  4. Boundary

    Load factor, conversion, margin, CTR, defect rate and any per-unit KPI.

Symptom or risk

The two numbers differ because small and large flights get equal weight in the average, and teams argue over which is right.

Exceptions

In experiments randomized by user, an average of per-user ratios can be preferable for variance and robustness reasons.

Trade-offs

Ratio of sums is dominated by large units; average of ratios is sensitive to tiny ones.

Pitfalls

Averaging pre-computed daily ratios to get a monthly ratio.

Lessons and concepts

Claims and their sources