Building a Fair Scorecard for Last-Mile Couriers
Statistics & ExperimentsModel answerLast updated
Design a measurement system that evaluates couriers fairly across very different routes and conditions, going beyond raw parcel counts and elapsed time.
A logistics company currently judges each courier on only two numbers: how many parcels they delivered and how long their shift took. Leadership suspects this is unfair and easy to game, and wants a better way to assess courier performance.
Design an evaluation framework. In your answer, cover:
- Purpose and guardrails. What decisions will the score support, and what must it never encourage?
- Additional data. What would you collect beyond parcel count and elapsed time (think routes, environment, parcels, vehicles, timing commitments, behavior, customer outcomes)? For each item, explain why it matters and how you would capture it.
- Metrics and scoring. Propose quantitative metrics or a scoring model that compares couriers fairly even when they work in very different conditions. Explain how you would handle small samples and separate a courier's own contribution from factors outside their control.
- Delivering insights. How would couriers and managers see the results, and what would each group need?
- Iteration. How would you validate, monitor, and improve the system over time, including checks for bias and gaming?
Aim for a structured answer that makes explicit trade-offs and names concrete techniques.
Hints
Hint 1
Start by listing which factors a courier can control and which they cannot (stop density, rural vs. urban, weather, traffic, load, late dispatch from the depot). Think about how to compare each courier against what was expected given their conditions.
Hint 2
Mix leading indicators (speeding, harsh braking, scan compliance) with lagging outcomes (on-time rate, missed-delivery claims, damage, customer ratings). Ask which should act as a hard gate rather than a trade-off against speed.
Hint 3
Rates computed on few deliveries are noisy. Consider shrinkage toward the fleet average, and consider a model with a per-courier random effect so that depot and day effects are not blamed on the individual. Also ask whether managers assign hard routes to the best couriers.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing the answer
A good answer starts with purpose. Parcel count and total time are confounded: a courier on a dense apartment route in clear weather will beat a rural courier in snow even if the latter is more skilled. They also reward speed with no regard for safety or customer experience. So the goals are:
- Uses: coaching and recognition, surfacing systemic problems (bad addresses, slow depots), and safety intervention. Do not attach pay or termination consequences until the score is validated.
- Unit: courier-week, with route-level drill-down.
- Guardrails: safety and customer outcomes are hard constraints, not things to trade against speed. The score must be explainable to couriers, who need a way to dispute bad data.
Data to collect
| Area | Examples | Why | Source |
|---|---|---|---|
| Route | Distance, stop count, stop density, urban/rural, apartments vs. houses, stairs, gated access | Dominant driver of expected time | Routing engine, address metadata, historical dwell times |
| Environment | Weather, live traffic, closures, daylight | Uncontrollable delay | Weather and map APIs joined on time and geohash |
| Load | Parcel count, weight, volume, oversize, signature required, multi-parcel stops | Handling effort | Depot scans and manifests |
| Vehicle | Type, capacity, maintenance state | Speed, range, loading time | Fleet system |
| Timing | Promised windows, peak season, depot loading delays, start time | Separates courier lateness from late dispatch | Order system, depot scans |
| Behavior (leading) | Speeding, harsh braking, phone use, seatbelt, idling, route adherence, scan compliance | Predicts incidents and quality problems | Telematics, handheld app logs, cameras with privacy controls |
| Outcomes (lagging) | On-time rate, not-received claims, damage, ratings, failed attempts | What customers actually experience | Claims system, feedback prompts, delivery scans |
| Context | Tenure, route familiarity | For coaching context, not penalties | HR and assignment history |
Prefer passive collection from scans and telematics over self-report, and be transparent with couriers about what is captured.
Metrics
Group into four pillars:
- Safety (gate): incidents per 10k miles, speeding events per 100 miles, harsh-braking rate, distraction events.
- Reliability: on-time rate within the promised window, first-attempt success, scan compliance.
- Customer quality: not-received rate, damage rate, satisfaction, photo-proof quality.
- Efficiency: actual vs. expected time per stop, miles vs. planned route, energy or fuel per parcel.
Small samples. One missed delivery in 50 should not make someone the worst courier. Use empirical-Bayes shrinkage, for example a Beta-Binomial prior on each rate, so low-volume couriers are pulled toward the fleet mean and high-volume ones keep their own estimate.
Fair comparison: expected vs. actual
The core idea is to score performance relative to what conditions predict.
- Expected-time model. Train a model such as gradient-boosted trees on fleet-wide history using only uncontrollable features (stops, density, distance, weather, traffic, load, vehicle, building type) and exclude courier identity. Then compute an efficiency index = sum of expected time / sum of actual time over the week. Apply the same pattern to on-time and not-received rates with classifiers that output expected probabilities.
- Isolating the courier's effect. Fit a mixed-effects model:
time = f(conditions) + courier_effect + depot_effect + day_effect + noise. The courier random effect is a shrunken skill estimate, separated from depot problems like late loading and from one-off bad days. - Peer cohorts. Cluster routes (for example k-means on density, distance, building mix) and report percentiles within a cluster: "top 20% among dense urban routes." This is easy to explain.
- Assignment confounding. If managers give hard routes to their best couriers, a naive model punishes them. Model route difficulty explicitly, rotate assignments where feasible, and check whether residuals correlate with difficulty.
Composite score
- Safety gate: any serious violation caps the tier regardless of speed, which removes the incentive to rush.
- Weighted blend of normalized pillars, for example reliability 35%, customer 35%, efficiency 30% as a starting point.
- Report tiers with confidence, not a decimal ranking, because the measurement noise does not justify false precision.
- Validate weights by checking which pillars predict future complaints, incidents, and attrition, and gather stakeholder input.
Surfacing insights
- Couriers: a weekly mobile scorecard with tier, trend, and one to three concrete actions ("harsh braking is 2x your cohort on Tuesdays"). Include plain-language normalization ("your route was 15% harder than average"), positive recognition, and a dispute path.
- Managers: a dashboard with the distribution of couriers, a coaching queue ranked by expected impact, and near-real-time safety alerts. Include systemic flags where residuals cluster by address, route, or depot (a bad geocode, a slow dock). These are not courier problems.
- Operations leadership: aggregated trends by depot and region, and measured effects of interventions.
Iteration and governance
- Model monitoring: retrain or recalibrate seasonally and around peak; track drift and error by segment.
- Fairness audits: compare score distributions across tenure, region, vehicle type, and route type; investigate gaps that conditions do not explain.
- Gaming checks: watch for skipped scans, fake photos, cherry-picked stops, and unsafe shortcuts. Pair every efficiency metric with a quality or safety counter-metric.
- Experiments: A/B test coaching interventions and scorecard designs against outcomes such as incident rate and retention.
- Metric governance: an owner, a versioned definition for each metric, a change log, and a review cadence.
- Phased rollout: shadow mode first (compute but do not act), then coaching only, then consider any consequential use.
Common mistakes
- Listing data without saying how it will be turned into a fair comparison.
- Letting speed trade off against safety.
- Ranking on raw rates with tiny samples.
- Ignoring that route assignment is not random.
- Blaming couriers for depot, address, or dispatch problems.
- Producing a black-box score that couriers cannot understand or contest.