InterviewStack.io LogoInterviewStack.io

Statistical Inference and Hypothesis Testing Questions

Reasoning about uncertainty in data and drawing formal conclusions from samples. Covers probability rules and common distributions, the Central Limit Theorem, sampling, standard error, confidence intervals, and Bayesian reasoning, together with the significance-testing framework: null and alternative hypotheses, p-values, statistical power, Type I and Type II errors, effect sizes, and choosing the right test (t-test, chi-square, non-parametric). Emphasizes correctly interpreting statistical results and avoiding common misreadings of significance in business and product contexts rather than memorizing formulas.

MediumTechnical
29 practiced

You plan a two-sided A/B test comparing conversion proportions. Baseline p0 = 0.05 and you expect a 20% relative uplift (p1 = 0.06). Using alpha=0.05 and desired power 0.8, compute the required sample size per group. Show the formula you use, numeric steps, and discuss how the calculation changes for unequal allocation or continuous metrics.

MediumTechnical
27 practiced

You suspect a significant drop in conversion rate on multiple landing pages. Given this table schema:

page_events(page_id STRING, user_id INT, event_type STRING, event_time TIMESTAMP)

Describe how you would compute conversion rate per page and write pseudocode or SQL to compute per-page conversions and then perform a statistical test to detect pages with statistically significant drops compared to the previous period. State assumptions and multiple-testing considerations.

MediumTechnical
47 practiced

Write a Python function that takes two numeric arrays representing independent samples and returns: the chosen t-test type (Welch or pooled), the t-statistic, degrees of freedom, two-sided p-value, and a 95% confidence interval for the mean difference. You may use numpy and scipy.stats but explain in comments how you decide which t-test to use.

MediumTechnical
30 practiced

Contrast Bayesian and frequentist approaches to A/B testing at a conceptual level. Discuss interpretation differences between credible intervals and confidence intervals, the role and influence of priors, computational trade-offs, and provide one practical scenario in product experimentation where Bayesian methods would be preferable.

HardTechnical
24 practiced

Revenue has increased for two quarters while retention and NPS have declined. Produce a structured analysis plan to reconcile these conflicting signals: the hypotheses you would test, the metrics and cohorts you would analyze, the statistical tests you would run, and the decisions that might follow.

Unlock Full Question Bank

Get access to all Statistical Inference and Hypothesis Testing interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.