Data Analyst Course · Statistics lesson

Statistics and A/B Tests for Data Analyst Interviews

Interpret randomization, confidence intervals and sample ratio mismatch through a synthetic experiment case.

Learn the concept, work through an example, and check your answer.

COURSE LESSON PREVIEW
Statistics lessonLearn → test

Core idea

Check assignment integrity before treating a result as causal.

Design → data quality
Estimate → uncertainty
Decision → caveat
Check the output and reasoning.Apply the example, then check a changed case.

The direct answer

Start experiment interpretation with data and design checks.

An A/B test can support causal inference when assignment, measurement and analysis follow a sound design. A positive difference alone is not enough. This lesson uses a fictional experiment to explain sample ratio mismatch, uncertainty and practical decision-making without turning a confidence interval into a guarantee.

The Microsoft Research paper on sample ratio mismatch is a primary source for the data-quality issue. The course pricing block follows this introduction.

Course access

Choose your next step in Data Analyst preparation.

Review the current course options and access details here.

Heycademy Courses · Coming Soon

Master Data Analyst with Heycademy

We’re preparing an interactive learning experience with practical exercises, skill assessments and personalized learning to help you build confidence and master new skills.

Launching soon!
We’re putting the finishing touches on this course. Please check back for updates.

Working vocabulary

Separate assignment from observed outcomes.

Experiment interpretation terms
TermMeaningQuestion
RandomizationEligibility units assigned by a chance mechanism.Was assignment stable?
Treatment effect estimateObserved difference between defined groups.Are groups comparable?
Confidence intervalRange from a procedure with stated coverage assumptions.How precise is the estimate?
Sample ratio mismatchObserved allocation differs from planned allocation.Was assignment or logging broken?
Practical significanceWhether the possible effect matters to the decision.What are cost and risk?

Always identify the assignment unit, the analyzed unit and the outcome denominator. User-level assignment with session-level counting can create a mismatch between design and analysis.

Worked sample ratio mismatch

The split is not close to the planned half.

Synthetic 50/50 allocation
VariantPlanned shareObserved usersExpected at 2,000
A50%1,0801,000
B50%9201,000

The groups differ by 160 users. A simple chi-square discrepancy statistic is (80²/1,000) + (80²/1,000) = 12.8 for this two-cell comparison. That is a strong reason to investigate the split under the intended assignment model; it is not a diagnosis by itself. Possible causes include enrollment rules, logging loss, filtering or exposure differences. Check those before comparing conversion.

Do not “fix” the mismatch by deleting users until the counts look 50/50. That could introduce more bias. Trace eligibility, assignment and measurement by date, platform and treatment path.

Interpret an outcome carefully

Estimate is not a causal story by itself.

Suppose A has 108 purchases from 1,080 users (10%) and B has 110 from 920 users (about 12.0%). The observed difference is about 2 percentage points. With the unexplained allocation mismatch, it would be premature to ship B solely on that comparison. First confirm the randomization and measurement system, then compute uncertainty using the planned analysis and check guardrail metrics.

A confidence interval depends on the statistical method and assumptions. It does not give a 95% probability that a fixed unknown effect lies inside this one realized interval under a standard frequentist interpretation. In an interview, explain it as uncertainty around an estimate and focus on what decision is supported.

Keep building this skill

Turn the example into a skill you can use.

Return to the course options whenever you are ready.

Explore course options →

Decision checklist

Inspect validity before uplift.

Practical experiment review
CheckWhy it matters
Assignment unit and planned ratioDefines comparable groups.
Eligibility and exclusionsMay remove users unevenly.
InstrumentationMissing events can bias outcomes.
Sample size and durationAffects precision and representativeness.
Primary and guardrail metricsPrevents choosing only favorable outcomes.
Segment analysesUseful for diagnosis, risky for cherry-picking.

The metric-mistakes lesson covers weighted rates and selection bias.

Changed split

What if assignment is balanced?

Now suppose 1,000 users enter each group, with 100 purchases in A and 120 in B. The observed rates are 10% and 12%, a 2-point difference. The ratio check no longer flags the same issue, but you still need outcome logging, uncertainty, predeclared metrics and a practical decision threshold.

Can a balanced split prove randomization worked perfectly?

No. It removes one warning sign. Check the actual assignment process, eligibility and event measurement as well.

Do not claim the interface caused a 2-point improvement from an observational before/after comparison that lacked randomized assignment.

FAQ

Questions about this skill.

Does SRM prove which system failed?

No. It is a warning that prompts diagnosis.

Does a p-value fix biased assignment?

No. Design and measurement validity come first.

Should every experiment segment be reported as a discovery?

No. Treat exploratory segments cautiously and avoid cherry-picking.

Continue with the course

Build reliable data analyst skills.

Review the course options and choose your next learning step.

Take the next step →
Scroll to Top