Skip to content
ML to LLMs
Learning path

Module 22

ML system design and experimentation

Design an ML system end to end with a repeatable framework, size a recommendation funnel against a latency budget, and prove it works with a well-powered A/B test.

  1. 1. ML system designUse a repeatable ten-step framework to design an ML system in an interview or at work, and apply it end to end to a multi-stage recommendation feed with a latency budget.50 min
  2. 2. Experimentation and A/B testingDesign an A/B test that can actually detect the effect you care about, read its result correctly, and avoid the traps (peeking, sample ratio mismatch, novelty, interference) that make online experiments lie.45 min
  3. 3. Model monitoring and driftMonitor a deployed model across system, input, prediction, and outcome layers, tell covariate, prior, and concept drift apart, compute PSI, the KS statistic, and chi-square from scratch, and design an alert policy that catches real drift without paging people for noise.45 min

A model is one box in a system. This module covers the rest: framing the problem, choosing metrics, building labels and features without leakage, serving within a latency budget, and deciding with an online experiment whether the new system is actually better.

StepWhat you decideFailure mode
Clarify and framegoal, constraints, prediction targetoptimizing the wrong thing
Metricsbusiness, online, offline, guardrailsoffline wins that lose online
Data and featureslabel source, point-in-time features, feature storeleakage, training-serving skew
Model and servingbaseline, funnel stages, latency budgetblowing the budget, no fallback
Experimentsample size, duration, randomization unitpeeking, SRM, interference
Monitordrift, calibration, freshnesssilent decay, feedback loops
#LessonYou will be able to
1ML system designrun a ten-step design framework and design a multi-stage recommendation funnel with a latency budget
2Experimentation and A/B testingcompute sample size and power, read a z-test, and catch peeking, SRM, novelty, and interference
3Model monitoring and drifttell covariate, prior, and concept drift apart, compute PSI, KS, and chi-square, and design an alert policy that avoids alert fatigue
Next moduleModule 23: Projects and career roadmap