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
27 practiced

You need to determine a sample size to estimate average customer lifetime value within a margin of error of 0.5 units at 95% confidence. Population standard deviation is unknown but a pilot sample of 40 customers gives sd ≈ 4. Describe the steps to compute a recommended sample size and show the calculation using the pilot sd. Discuss any iterative steps you would take in practice.

MediumTechnical
32 practiced

Technical coding (Python): Implement a function that computes a two-sided z-test p-value for comparing two proportions. Signature: def proportion_ztest(success_a, n_a, success_b, n_b) -> float. State assumptions in a docstring and handle edge cases such as zero trials. (You may use math or scipy in your answer; explain if you assume scipy is available.)

HardTechnical
30 practiced

In an onboarding experiment the treatment causes higher dropout before the primary metric can be measured, generating differential attrition. Discuss how missing data and attrition can bias effect estimates, explain intention-to-treat versus per-protocol analyses, and propose methods to estimate the effect under missingness.

HardTechnical
34 practiced

Show how Maximum A Posteriori (MAP) estimation with a Gaussian prior on linear regression weights leads to L2 (ridge) regularization. Derive the MAP estimator and compare it with the OLS/MLE solution. Discuss how the regularization parameter relates to the prior variance and implications for bias-variance tradeoff.

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.

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.