Statistics and A/B testing
An AI/ML engineer interview on distributions, hypothesis tests, and running an online experiment you can believe.
These prompts are original practice. They are not questions from a named employer or a live hiring loop.
1.Response times are roughly normal with a mean of 200 ms and a standard deviation of 20 ms. About what share of requests fall between 160 and 240 ms?
2.Real response times usually have a long right tail. Why is reporting only the mean and standard deviation misleading for them?
3.A coin with a 0.3 chance of heads is flipped 100 times. What are the mean and standard deviation of the number of heads?
4.For a yes-or-no outcome with success rate p, at what value of p is the variance largest?
5.Support tickets arrive at an average of 4 per hour, independently. Which distribution fits the count per hour, and what is its variance?
6.Daily ticket counts have a mean of 50 and a variance of 400. What does that tell you about the Poisson assumption?
7.Time between independent arrivals at a steady rate follows an exponential distribution. What is its notable property?
8.Revenue per user is mostly zero, with a few very large purchases. What does that imply for an A/B test on revenue?
9.What does the central limit theorem say?
10.When can the central limit theorem be slow to kick in?
11.What does the law of large numbers say?
12.A metric has a standard deviation of 20 per user. With 400 users, what is the standard error of the mean?
13.How many times more users do you need to cut a standard error in half?
14.A conversion rate is 10 percent on 10,000 users. What is the standard error of that rate?
15.Using that standard error of 0.003, what is an approximate 95 percent confidence interval for the 10 percent rate?
16.Which reading of a 95 percent confidence interval is correct?
17.What is the difference between a standard deviation and a standard error?
18.You want a confidence interval for the median session length, and no simple formula comes to mind. What is a general approach?
19.Each user has many sessions, and a team bootstraps over sessions to get an interval for a per-user test. Why is the interval too narrow?
20.When should a t-test be used instead of a z-test for comparing means?
21.What is the null hypothesis in a typical A/B test?
22.A test reports p = 0.03. What does that mean?
23.A test gives p = 0.40. What can you conclude?
24.What is a type I error?
25.A test has 80 percent power to detect a 2 percent lift. What does that mean?
26.Which change raises a test's power, all else equal?
27.When is a one-sided test appropriate?
28.A two-sided z-test gives z = 1.96. What is the p-value?
29.Which test fits comparing conversion rates between two arms with thousands of users each?
30.The same 50 users rate an old and a new ranking. Which test fits?
31.When would you use a Mann-Whitney U test instead of a t-test?
32.Which test checks whether two categorical variables, such as device type and plan choice, are related?
33.A change lifts average time on page by 0.2 seconds with p = 0.0001 on 50 million users. What should the team ask next?
34.A team runs 20 independent tests at alpha 0.05, and none of the changes do anything. What is the chance at least one comes out significant?
35.With 20 tests, what per-test threshold does a Bonferroni correction give for an overall alpha of 0.05?
36.How does controlling the false discovery rate (for example, Benjamini-Hochberg) differ from Bonferroni?
37.An experiment shows no overall effect, so an analyst splits results by 30 segments and finds one significant at p = 0.04. How should that be treated?
38.What is p-hacking?
39.Why should the primary metric of an experiment be chosen before the test starts?
40.A disease affects 1 percent of people. A test catches 90 percent of cases and gives a false positive for 5 percent of healthy people. Someone tests positive. About how likely is it that they have the disease?
41.That screening example is a lesson for fraud and abuse models too. What is it?
42.How does Bayes' theorem relate the probability of A given B to the probability of B given A?
43.How does a Bayesian analysis of an A/B test usually report its result?
44.What is the first thing to decide when designing an A/B test?
45.What is the minimum detectable effect (MDE) in test planning?
46.A rough sample size per arm for comparing proportions, at 80 percent power and two-sided alpha of 0.05, is 16 × p(1 − p) / δ². For a 10 percent baseline and an absolute lift of 1 point, how many users per arm is that?
47.Using the same rule, what happens to the needed sample size if you want to detect a lift half as large?
48.A test needs 200,000 users per arm, and the page gets 20,000 eligible users a day split across two arms. About how long must it run?
49.Why is the unit of randomization important?
50.Why randomize by user rather than by page view for a ranking change?
51.Why is it a problem to check results every day and stop the test the first time p drops below 0.05?
52.The team really does need to check results daily and stop early on a clear win or harm. What is the right approach?
53.An experiment meant to split users 50/50 has 50,800 in treatment and 49,200 in control. What should you do?
54.What commonly causes a sample ratio mismatch?
55.What is an A/A test, and why run one?
56.A new homepage shows a big lift in clicks in the first three days, which fades by week three. What is a likely explanation?
57.The opposite pattern appears: a redesign hurts at first and slowly recovers. What is that called?
58.What is a guardrail metric?
59.A new recommendation model raises clicks by 4 percent but lowers 30-day retention slightly. How should a team think about it?
60.Click-through rate is total clicks divided by total page views, while users are what was randomized. Why does its variance need special treatment?
61.What does CUPED do in an A/B test?
62.Why must the covariate used in CUPED be measured before the experiment starts?
63.In a two-sided marketplace, a pricing test gives treatment riders lower prices. Why might the result be misleading?
64.A messaging feature is tested by randomizing individual users. Why might that underestimate the effect?
65.Treatment wins in every device segment, yet loses overall. What could explain that?
66.Users with the worst week of engagement are given a new onboarding flow, and their engagement improves the next week. Why is that not good evidence the flow works?
67.Users who turned on a new feature retain 20 percent better than those who did not. Why does that not show the feature causes retention?
68.What is a confounder?
69.Two metrics have a Pearson correlation of 0.05 across users. Can they still be strongly related?
70.What does Spearman rank correlation measure?
71.A linear regression coefficient on 'number of support tickets' is positive in a model of churn. What does it mean?
72.Two features in a regression are highly correlated with each other. What happens to their coefficients?
73.Which assumption of ordinary least squares matters most for getting correct standard errors in experiment data with repeated measures per user?
74.In an experiment, how can regression help beyond a simple difference in means?
75.An offline metric for a new ranking model improves by 3 percent. What is the right next step before claiming a product win?
76.Why can offline evaluation on logged data favor the existing model?
77.What is interleaving for comparing two ranking models?
78.How does a multi-armed bandit differ from a fixed A/B test?
79.A test shows treatment helps new users and slightly hurts long-time users. What should the team check before acting on that?
80.Why keep a small long-term holdout group that never gets a set of launched features?
81.A team ran 100 experiments this year and reports the total lift from the 15 that 'won'. Why is that sum likely too high?
82.An experiment starts on Black Friday and runs for four days. What risk does that create?
83.An experiment counts only users who reached the checkout page, and the treatment changes how many users get there. What is wrong with the analysis?
84.Users are assigned to treatment, but only 30 percent of them actually see the new feature, because it is below the fold. How should the main effect be reported?
85.A change to an ML model is shipped to 1 percent of traffic first. What is that step for?
86.Why is a confidence interval often more useful than a p-value alone in an experiment readout?
87.Why report a relative lift with care when the baseline is very small?
88.What is a quick check that a metric is sensitive enough to use in experiments?
89.What is a surrogate metric, and what is its risk?
90.A model scored on 500 labeled examples has accuracy 0.84. About how wide is a 95 percent confidence interval for its accuracy?
91.Two models are scored on the same 1,000 test examples. Model A gets 812 right and model B gets 825. Which test fits the comparison best?
92.An LLM is graded by a judge model on 200 prompts, and the new prompt template wins 54 percent of head-to-head comparisons. Is that strong evidence?
93.Why should you check for position bias when an LLM judge compares two answers?
94.Two human raters label the same 300 examples and agree 90 percent of the time, but 85 percent of examples are 'fine'. Why report Cohen's kappa too?
95.A dashboard compares this week's conversion to last week's and flags a 'significant drop' at p = 0.04, using a test that assumes every session is independent. What might be wrong?
96.Daily active users went up after a launch. What design gives better evidence that the launch caused it, when an A/B test was not possible?
97.What does a Q-Q plot of residuals against a normal distribution help you check?
98.Why do analysts often take the log of revenue or latency before modeling?
99.A team wants to show a new model is no worse than the old one, not that it is better. What kind of test fits?
100.A cheaper model is to replace an expensive one if quality drops by less than 0.5 points. The difference is −0.2 with a 95 percent interval from −0.9 to +0.5. What do you conclude?
101.What is the difference between a random sample and a convenience sample when estimating a model's error rate in production?
102.You need error rates for 12 product categories, and some categories are rare. How can you sample for labeling?
103.A metric's history shows it moves by about 1 percent from week to week with no changes at all. A launch moves it by 0.8 percent. What is a sound reading?
104.Why is it risky to stop an experiment as soon as the primary metric looks good, before guardrail metrics have enough data?
105.An analyst says the test is 'trending toward significance' at p = 0.08 and wants to run it a few more days. What is the concern?
106.What should a good experiment readout include?