Data ScienceData science careers and portfolio decisions

Data science interview: choose a metric from business costs

PK
Pankit Kumar
Sr. Data Scientist at Parexel (a Goldman Sachs–backed company) · 20 September 2026 · 2 min read
Technically reviewed by Ishaan Sharma
In this article (5 sections)

There is no universally best classification metric. The useful question is which error changes the decision, how often it occurs and what constraint the system must respect. Accuracy, ROC AUC or F1 can summarize behaviour, but none automatically represents money, safety or review capacity.

Calculate one explicit trade-off

The career evidence lab compares two invented candidates. A missed positive costs 1,200 units and an unnecessary review costs 40.

python
from career_cases import metric_cost_case

result = metric_cost_case()
assert result["total_cost"] == {"A": 16000, "B": 11200}
assert result["selected"] == "B"
assert result["cost_saved_vs_other"] == 4800

Model B produces more false positives but fewer false negatives, reducing the stated total by 4,800. This decision is conditional on the authored counts and cost assumptions. Change the costs, threshold, prevalence or capacity and the choice may reverse.

Translate operations into evaluation

Ask the interviewer or state assumptions:

  • What action follows a positive prediction?
  • What happens after a false positive and false negative?
  • Is the output a probability, class or ranked queue?
  • How many cases can people or systems act on?
  • When do labels mature, and which outcomes remain unobserved?

For a fixed review budget, precision at *k*, recall at *k* and gain over the current queue can be more direct than a threshold-free curve. For probability-based decisions, assess calibration as well as discrimination. For severe imbalance, always report class prevalence and confusion counts beside rates.

Test the assumptions

Estimate costs with domain owners and show a sensitivity table rather than presenting one value as fact. Break results down by time and relevant groups. Add uncertainty around the cost difference; a small observed advantage may not justify operational change. Account for abstentions and cases where the current policy already intervenes.

In an interview, connect the metric to model selection and the threshold to deployment. The validation set can choose the threshold under the declared cost or capacity rule. The locked test set estimates the final policy; it should not become a threshold-search surface.

The Data Science course makes this reasoning visible through decision briefs, confusion counts, calibrated probabilities and held-out policy evaluation.

Exercise

Recalculate the fixture across false-negative costs from 100 to 2,000 and review capacities from 50 to 200. Plot where the preferred candidate changes, then write the questions needed to replace assumed costs with operational evidence.

Continue learning

This article is part of the Data science careers and portfolio decisions sequence. Use the neighbouring tasks when you need the prerequisite or the next application.

Reference: scikit-learn model-evaluation documentation.

PK
Pankit Kumar
Lead Instructor, NeuraPath Academy

Pankit Kumar has 10 years in Data Science & AI, building and shipping production systems in regulated pharma and clinical environments. He is a freelance trainer at Boston Institute of Analytics, AnalytixLabs and Scaler, and has taught this material to thousands of working professionals.

This article is part of our Data Science programme — 6 months. From data foundations to machine learning, deep learning and deployment.

Explore Data Science
Counselling is free · no obligation

Not sure which programme fits?

Tell us your background and we will map it to the right entry point — including saying so when a cheaper programme is the better fit. A counsellor replies within one working day.