Data quality·Glossary term

Data Drift

Data Drift A/B testing Reference guide

Data Drift is a concept used in data quality & diagnostics.

Quick definition: Data drift is a meaningful change over time in the distribution, availability, meaning, or relationship of data used for analytics, experimentation, or models.

What is data drift?

Data drift means that today’s data no longer resembles the data on which a definition, baseline, model, or decision process relied. The change may be real: traffic shifts from desktop to mobile, a campaign brings new visitors, prices change, or seasonality changes purchasing patterns. It may be technical: a release renames an event property, consent behavior changes, a mobile SDK stops sending a field, or a pipeline changes time zones. Both forms matter because an experiment’s expected baseline, sample-size plan, and interpretation depend on the population and measurement remaining understandable.

Drift is not automatically an error. A product should detect real customer change. The risk is unobserved or unexplained drift, especially when it differs between experimental arms or coincides with a release. A lower baseline conversion can be an expected seasonal effect; a sudden treatment-only fall in event coverage is likely an instrumentation problem. Monitoring should distinguish these hypotheses rather than treat every movement as an experiment result.

Types of drift

Feature or covariate drift is a change in input distributions, such as device mix, country, acquisition channel, customer tenure, or basket size. Outcome drift is a change in the overall rate or distribution of a measured result. Concept drift is a change in the relationship between inputs and outcome: a prior engagement signal no longer predicts conversion after a product redesign. Schema or semantic drift is a change in field availability or meaning. Population drift is a change in who is eligible or observable.

TypeExampleExperiment consequence
Population driftA campaign adds first-time visitorsBaseline and effect mix may change.
Schema driftMobile app renames an event propertyOutcome or segment coverage can fail.
Outcome driftHoliday demand raises conversionUse concurrent control, not old benchmarks alone.
Concept driftPricing changes alter buyer behaviorHistorical model or subgroup assumptions weaken.
Latency driftPartner events arrive later than usualRecent windows are incomplete.

Instrumentation and data mechanics

Make drift measurable with versioned event contracts and time-indexed quality metrics. For every important source, retain event time, receipt time, source and schema version, platform, release, and experiment context. Monitor volume, null rate, allowed-value distribution, duplicate rate, event-to-assignment join coverage, ingestion lag, and key numeric quantiles. Compare current periods with a suitable reference period and slice by platform, geography, acquisition channel, and treatment arm.

Distribution checks need context. A percentage-point change in mobile share may be normal after a marketing campaign; a change in treatment-only mobile share can indicate targeting or delivery divergence. Use control charts or statistical distance measures as alerts, then require investigation before treating an alert as evidence of bias. Store the reference definition and baseline window. A dashboard that silently rolls its baseline forward can normalize a slowly growing defect.

Changes should have a release trail. Link metric movements to application deployments, SDK versions, tracking-plan changes, feature flags, attribution rule updates, partner changes, and backfills. When semantics change, version the field or emit a distinct event; do not reuse a property name for a new meaning. Lineage makes it possible to decide whether a time-series discontinuity reflects customer behavior or a measurement break.

Experimental impact

Concurrent randomized control protects an experiment from many calendar-time changes because both arms experience the same external environment. It does not protect against arm-specific drift. A variant may fail only on a new app version, trigger a different eligibility rule, or cause a field to be absent. Analyze quality and population composition by arm before interpreting a metric. A balanced overall assignment count does not prove that every relevant platform and release was balanced; use allocation diagnostics such as sample ratio mismatch alongside coverage checks.

Drift also affects planning. Sample size based on an old baseline may be wrong when traffic quality or outcome variance changes. A shift in conversion baseline does not invalidate randomization, but it can change power and test duration. Monitor cumulative information against the pre-specified plan without stopping opportunistically on a favorable short-term movement; the guide on A/B-test duration explains why outcomes need sufficient time and volume.

For model-assisted experimentation, drift can change targeting or predicted outcomes differently across groups. Freeze the model version at launch when possible, log scores and feature availability at assignment, and evaluate whether failures, fallbacks, and score distributions differ by variant. A model update during a test is an intervention unless its effect is deliberately designed and analyzed.

Practical QA workflow: detecting mobile event drift

A team tests a new product page while releasing a mobile SDK update. Its primary metric is purchase per eligible assigned user. It establishes a seven-day pre-launch reference for event volume, purchase join coverage, null product IDs, latency, device mix, and duplicate order IDs.

  1. Set monitored slices. Track metrics daily by variant, OS, app version, country, and assignment cohort.
  2. Compare raw and reconciled outcomes. Compare browser or app events with the order service, not merely treatment with control.
  3. Investigate discontinuities. A treatment-only iOS fall in purchase-event volume triggers a trace through the release and event contract.
  4. Protect the analysis population. Retain assigned users with zero observed outcomes; do not solve missing tracking by excluding them.
  5. Decide based on materiality. If ledger orders are intact and linkage remains comparable, use the ledger metric and annotate the diagnostic issue. If arm-specific linkage fails, pause the affected estimate.

The team discovers that the SDK update omits experiment context from a subset of iOS events. Total purchase events and control conversion look normal, but treatment iOS outcomes cannot be reliably joined. Reporting a pooled all-platform lift would hide the problem. The team isolates the unaffected population only if that population was a defensible pre-specified analysis scope; otherwise it fixes instrumentation and gathers clean evidence.

Assumptions and limitations

Statistical drift alerts identify change, not cause. With enough monitored fields, some differences arise by chance; with too coarse a monitor, meaningful local defects are missed. Set thresholds according to decision risk, record the reference period, and combine automated alerts with release context and sampled traces. A stable distribution can also be misleading if a field’s semantic meaning changed without changing its values.

Do not use historical stability as a substitute for a concurrent control. Seasonality, marketing, inventory, and competitor actions can change outcomes for everyone. Concurrent A/B assignment estimates relative performance in the actual environment, while drift monitoring verifies that the environment and measurement are understood. Effect estimates should still include uncertainty; confidence intervals do not include unmeasured semantic or coverage error.

Common data-drift failures

  • Alerting only on overall averages. Inspect variants and important technical or population slices.
  • Confusing real behavior with tracking change. Reconcile material outcomes to independent sources and review releases.
  • Allowing silent schema changes. Version contracts and test compatibility before deployment.
  • Refreshing baselines automatically. Preserve a reference so slow degradation remains visible.
  • Ignoring freshness. Late arrivals can make recent cohorts look worse or better.
  • Changing models mid-experiment. Treat model and targeting updates as experimental changes.

Frequently asked questions

Does data drift invalidate an A/B test?

Not necessarily. Common external drift is often handled by concurrent control. Arm-specific or measurement drift can invalidate or materially qualify an estimate.

How often should drift be monitored?

Monitor critical collection and allocation signals continuously or at a cadence matched to traffic; review distributions at launch, after releases, and before decisions.

What is the difference between drift and seasonality?

Seasonality is a predictable real-world pattern. Drift is the broader observed change, which may be seasonal, behavioral, technical, or semantic.

Can a p-value detect drift?

It can flag a difference in a chosen comparison, but it cannot identify cause or prove the experiment metric remains valid.

What should be stored for investigation?

Raw event lineage, schema and release versions, assignment and exposure logs, event and receipt times, quality metrics, and documented transformation versions.

Summary

Data drift is change in the population, data distribution, availability, or meaning that a measurement process relies on. Instrument for lineage and versions, monitor quality by arm and technical slice, investigate shifts with independent reconciliation, and distinguish common environmental change from treatment-specific measurement failure before making an experiment decision.

Sources