Learning objectives
- Separate a measurement-definition change from a genuine distribution change.
- Define a reproducible comparison before interpreting a drift alert.
Prerequisites: Convert fractions to basis points and compare sample summaries.
Mechanism and interpretation
A drift check compares data distributions across periods or between development and deployment. Before interpreting a difference, verify that the variable still means the same thing: unit, timestamp, currency, population, missing-value code and inclusion rules must remain aligned. A schema or measurement contract records those expectations. A large numerical alert can reflect a changed unit or logging rule rather than changed market behavior.
Once definitions match, choose a fixed comparison method and reference window. Means can detect a location change but miss changing dispersion or tail shape, so examine additional summaries suited to the intended risk. Finite samples create random variation, and testing many fields repeatedly creates multiplicity. A detected input change also does not automatically establish a change in the relationship between predictors and outcomes; that requires suitable labeled evidence and its reporting delay.
Worked case · synthetic data
A hypothetical transaction-cost field originally stores 2, 4, 6 in basis points, mean 4. A new feed stores equivalent decimal fractions 0.0002, 0.0004, 0.0006, mean 0.0004. A raw comparison appears to show a 99.99% drop. Converting decimals to basis points by multiplying by 10,000 restores exactly 2, 4, 6, so these observations provide no evidence of a cost-distribution change. A later decimal sample 0.0003, 0.0005, 0.0007 converts to 3, 5, 7, mean 5: a genuine sample-mean increase of 25% on the aligned scale.
Failure modes and context
A three-point shift is descriptive, not a statistically established permanent regime change. Costs can vary because order size, venue or time-of-day composition changed. Correcting units resolves one measurement error but does not certify the entire pipeline. Preserve both raw data and documented conversion, record the effective schema version and rerun comparisons consistently rather than silently rewriting historical values to make an alert disappear.
Practice assignment
A separate latency field previously records 10, 20, 30 milliseconds. A new logger records 0.01, 0.02, 0.03 seconds. Compare the correctly converted means. Then analyze a later seconds sample 0.02, 0.03, 0.04 and state the percentage mean change relative to the original sample, without declaring a causal explanation.
Worked answer
The original mean is 20 milliseconds. The first new mean is 0.02 seconds, also 20 milliseconds, so there is no aligned mean change. The later sample averages 0.03 seconds or 30 milliseconds, a 50% increase. This establishes the arithmetic difference in these samples; workload mix, measurement timing and sampling uncertainty still need examination before diagnosing its cause.
Check your understanding
Question 1
What converts a decimal return or cost fraction to basis points?
- Multiply by 10,000
- Multiply by 100
- Divide by 10,000
Reveal answer and reasoning
A. Multiply by 10,000
One basis point is 0.0001 as a decimal fraction.
Question 2
Does the first cost feed change demonstrate lower costs?
- Yes, by 99.99%
- Only for the middle observation
- No, the unit changed
Reveal answer and reasoning
C. No, the unit changed
Aligned values are identical after the documented conversion.
Question 3
Does a changed input mean prove a causal market-regime change?
- Only after converting units
- No
- Yes
Reveal answer and reasoning
B. No
Measurement, sample composition and random variation remain possible explanations.
