KatInterview

Offline vs. Online Model Evaluation and Rare-Event Diagnostics

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsexperimentationmodel-evaluationrare-events

Last updated

Analyze why a model shows offline gains but no live improvement, using paired scenario replay and diagnosing power, exposure, and distribution drift issues.

You're working on a machine learning system where outcomes of interest occur infrequently. Your team has deployed a new model version that demonstrated strong performance gains during offline testing. However, after rolling it out to production, the live metrics show no measurable difference compared to the baseline.

You have access to a library of historical scenarios that can be replayed under both the old and new model versions in a controlled simulation environment.

Your task:

  1. Describe how you would use the historical scenario replay to compare the two model versions. What metrics would you track, and how would you quantify uncertainty?

  2. Investigate why the offline improvement didn't translate to a detectable live effect. Walk through the diagnostic steps you'd take, paying special attention to challenges introduced by rare events.

  3. What conditions would lead you to conclude the new version truly offers no benefit versus concluding your measurement approach lacks sufficient sensitivity?

Hints

Hint 1

For paired comparisons, consider what constitutes an independent observation and how to measure variability at that level.

Hint 2

Flat live results can stem from measurement issues, deployment problems, or real lack of effect—check instrumentation and exposure before concluding the model doesn't work.

Hint 3

Rare events create power challenges; calculate the sample size needed to detect your observed offline effect size at your actual event rate.