Evaluating a Missed-Charge Detector When Findings Are Rare

Last updated: November 29, 2026

Quick Overview

Your model flags charts with a missed billable procedure, which occurs in about 3% of charts. Auditors labeled a random sample of 2,000 charts and the model's flags on them; explain how you would evaluate the model, which metrics you would report to a customer, and how you would set the flagging threshold.

Charta Health
Machine Learning
Machine Learning Engineer
Charta Health
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


Your model flags charts with a missed billable procedure, which occurs in about 3% of charts. Auditors labeled a random sample of 2,000 charts and the model's flags on them; explain how you would evaluate the model, which metrics you would report to a customer, and how you would set the flagging threshold.

At Charta Health, every false flag costs a coder time and every missed one costs the customer revenue, and findings are a small minority of charts. The interviewer checks that you avoid accuracy, reason about precision and recall at low prevalence, tie the threshold to costs, and know how sampling affects the labels.

What the Interviewer Expects
  • Rejects accuracy as misleading at 3% prevalence
  • Computes precision, recall and their uncertainty from a confusion matrix
  • Uses precision-recall curves, not only ROC
  • Chooses a threshold from coder time cost and missed revenue
  • Notes evaluation pitfalls such as auditors seeing model output
Key Topics to Cover
precision and recall
class imbalance
threshold selection
confidence intervals
label quality
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you evaluate on customers whose prevalence is 10% instead of 3%?
  • Auditors disagree with each other 8% of the time; how does that cap measurable precision?
  • How would you get more positive labels cheaply without biasing recall?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Positive = the chart truly has a missed billable procedure according to an auditor. The 2,000 charts are a random sample, so about 60 positives. Each flag costs a coder about 4 minutes to check; each ...

Approach

Build the confusion matrix on the random sample. Report precision (share of flags that are real, which is what coders feel) and recall (share of real misses caught, which is what revenue feels), with ...


Submit Your Answer
Markdown supported

Related Questions