InterviewStack.io LogoInterviewStack.io

Hypothesis Testing and Inference Questions

Fundamental framework and application of hypothesis testing and statistical inference. Topics include formulating null and alternative hypotheses, understanding Type I and Type II errors, interpreting p values and confidence intervals, selecting and applying common tests such as t tests, chi square tests, analysis of variance, and non parametric alternatives, checking test assumptions, and discussing statistical versus practical significance. Candidates should explain power, significance levels, effect sizes, and common pitfalls such as misinterpreting p values or violating independence assumptions. At more advanced levels, discuss limitations of null hypothesis significance testing, alternatives such as Bayesian inference, and guidance for when different approaches are appropriate.

MediumTechnical
32 practiced
Implement McNemar's test in Python. The input should be a 2x2 contingency table of disagreement counts: [[n00, n01], [n10, n11]]. Return the chi-square statistic and two-sided p-value, and explain when McNemar is appropriate for classifier comparison.
MediumTechnical
28 practiced
You observe different predicted positive rates across demographic groups. Explain how to set up a chi-square test of independence to check whether predicted outcome is independent of group membership. Show how to construct the contingency table and discuss alternatives when counts are small.
EasyTechnical
25 practiced
Explain the multiple testing problem and describe how Bonferroni correction works. Give a short ML example where multiple testing arises and discuss the downsides of Bonferroni in that context.
MediumTechnical
26 practiced
You have daily aggregated conversion rates for control and variant over 14 days. Sample sizes per day vary and days may be correlated. Explain which statistical test or approach you would use to evaluate lift, justify your choice, and describe how you would check independence assumptions.
HardSystem Design
29 practiced
Design CI/CD gating rules for ML model rollout that incorporate offline hypothesis tests on held-out data, online experiment results, and production monitoring alerts. Specify measurable thresholds for promotion, rollback criteria, automated checks, and how to avoid blocking useful changes due to overly conservative statistical gates.

Unlock Full Question Bank

Get access to hundreds of Hypothesis Testing and Inference interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.