InterviewStack.io LogoInterviewStack.io

Probability and Statistical Inference Questions

Covers fundamental probability theory and statistical inference from first principles to practical applications. Core probability concepts include sample spaces and events, independence, conditional probability, Bayes theorem, expected value, variance, and standard deviation. Reviews common probability distributions such as normal, binomial, Poisson, uniform, and exponential, their parameters, typical use cases, computation of probabilities, and approximation methods. Explains sampling distributions and the Central Limit Theorem and their implications for estimation and confidence intervals. Presents descriptive statistics and data summary measures including mean, median, variance, and standard deviation. Details the hypothesis testing workflow including null and alternative hypotheses, p values, statistical significance, type one and type two errors, power, effect size, and interpretation of results. Reviews commonly used tests and methods and guidance for selection and assumptions checking, including z tests, t tests, chi square tests, analysis of variance, and basic nonparametric alternatives. Emphasizes practical issues such as correlation versus causation, impact of sample size and data quality, assumptions validation, reasoning about rare events and tail risks, and communicating uncertainty. At more advanced levels expect experimental design and interpretation at scale including A B tests, sample size and power calculations, multiple testing and false discovery rate adjustment, and design choices for robust inference in real world systems.

MediumTechnical
69 practiced
Implement in Python a benjamini_hochberg(p_values: List[float], alpha: float = 0.05) -> List[bool] that returns which hypotheses to reject under the Benjamini-Hochberg procedure controlling FDR at level alpha. Explain algorithmic complexity and corner cases (ties, p-values = 0 or 1).
MediumTechnical
57 practiced
You ran 100 independent hypothesis tests at α = 0.05 and observed 7 significant results. Explain why some positives are expected by chance and describe two methods to control for false positives: Bonferroni correction and Benjamini-Hochberg FDR. Demonstrate the BH procedure on a small sorted list of p-values and explain how it controls the false discovery rate.
HardTechnical
61 practiced
You train a deep generative model but some training features are missing at random. Compare approaches for handling missingness: marginalizing missing values via Monte Carlo EM, multiple imputation followed by training, and variational inference that treats missing entries as latent variables. Discuss computational trade-offs and convergence diagnostics for each.
EasyTechnical
54 practiced
Apply Bayes' theorem to a realistic diagnosis example: a medical binary classifier has sensitivity P(test+ | disease) = 0.95 and specificity P(test- | no disease) = 0.90. If disease prevalence is 0.5% in the population, compute P(disease | test+) and explain the implications for model calibration and decision thresholds in low-prevalence settings.
HardTechnical
68 practiced
Design a statistical testing framework to detect fairness issues across sensitive groups for a binary classifier (e.g., differences in false negative rates across groups). Include which fairness metrics to test, how to select thresholds for binary decisions, sample size considerations for subgroup tests, and how to adjust for multiple subgroup comparisons.

Unlock Full Question Bank

Get access to hundreds of Probability and Statistical Inference interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.