Problem
Analysts often need to know whether two sets of objects differ: control and test groups before an A/B test, audiences of two billboards, or two daily snapshots of a data mart. The standard tool is a statistical test per feature. With thousands of features this means thousands of tests, each needing its own check of correctness and power. In practice analysts compare only two or three business metrics, so differences in all other features go unseen.
Example from the article: the author, who earlier worked in out-of-home advertising, checked billboard targeting with MTS data: more than 5,000 anonymized customer profile metrics plus geodata.
Solution in brief
Replace the comparison with a classification task. Label one set 0 and the other 1, train a binary classifier on all features, and read two outputs. ROC AUC near 0.5 means the sets are indistinguishable. A high ROC AUC means they differ, and feature importance shows which features separate them.
Questions this case answers
- How to compare two large samples across thousands of features at once when running one statistical test per feature is impractical
- How to detect which columns of a recurring data snapshot changed between two dates without per-column distribution tests
- How to check that control and test groups are homogeneous across all customer features before an A/B test?
- How to find which customer attributes distinguish the audiences of two billboard locations?
Tools and methods
- Adversarial validation — a classifier that separates the two sets, with ROC AUC as the similarity score.
- Feature importance — identifies the features that explain the difference.
- Covariate balance check — the A/B use: control against test before the launch.
- Data quality checks — the data mart use: current snapshot against another date.
Google or a one-time email code. No password.