KatInterview

Are Two Regional User Populations Statistically Different?

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentshypothesis-testingmultivariate-analysiseffect-size

Last updated

Design a rigorous statistical pipeline to test whether users from two geographic regions differ across a multivariate set of continuous behavioral features.

Scenario

Your team maintains a global product used by millions of people. An analyst notices that engagement metrics look different between users in two regions — call them Region X and Region Y. Each user is represented as a vector of continuous behavioral measurements: things like time spent per session, click-through rate, and purchase conversion rate.

A product manager asks: "Are these two user groups actually different, or is this just noise?"

Your job is to turn that vague question into a concrete statistical analysis.

What to cover

  1. Hypotheses — Define formally what "same distribution" means. Why is equality of means alone insufficient?
  2. Preprocessing — What transformations, normalizations, or data quality checks are necessary before running any test?
  3. Choice of test(s) — Describe at least two approaches suited to multivariate, continuous, real-world data. What does each one detect, and when would you prefer one over another?
  4. Reporting results — How do you communicate significance and practical importance? Why does this distinction matter at large scale?
  5. Pitfalls — Identify at least three ways this analysis can go wrong and how you would guard against each.

Hints

Hint 1

Think about what 'same distribution' actually requires — two groups can share the same mean vector but still differ in variance, tail behavior, or correlation structure. Pick your null hypothesis to match the business question.

Hint 2

Before choosing a test, ask what shape your features have. Session durations and spend figures are typically right-skewed; rates like CTR are bounded. These properties affect which transforms and which tests are appropriate.

Hint 3

At millions of users, a p-value near zero is almost guaranteed even for trivially small differences. Lead with an effect-size metric — something like classifier AUC or Mahalanobis distance — and agree on a practical-significance threshold before you run the analysis.