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.

HardTechnical
67 practiced
Implement a permutation test (in Python or detailed pseudocode) to assess whether the observed average clustering coefficient differs between two groups of networks. Networks vary in size and degree distribution. Explain how you would construct the null permutations to preserve exchangeability, and describe options to preserve within-network structural properties (e.g., degree-preserving swaps) when appropriate.
MediumTechnical
55 practiced
In Python (pseudocode acceptable), implement a nonparametric bootstrap to estimate a 95% confidence interval for the difference in means between two independent samples A and B. Your function should accept arrays A, B, number of resamples B_resamples, and a choice between 'percentile' and 'bootstrap-t' CI methods. Briefly comment on parallelization and performance concerns for large B_resamples.
MediumTechnical
98 practiced
Explain how the Central Limit Theorem's rate of convergence depends on skewness and tail behavior. Provide concrete rule-of-thumb guidelines for minimum sample sizes when underlying distributions are light-tailed, moderately skewed, and heavy-tailed. Outline a short simulation (pseudocode) that empirically compares convergence rates across these cases.
EasyTechnical
50 practiced
State the Central Limit Theorem (CLT) precisely for IID random variables with finite variance. Explain its implications for sample means and sampling distributions in practice. Give a recommended rule-of-thumb for when the CLT can be used, and sketch a short simulation plan (pseudocode) that demonstrates CLT convergence for a highly skewed distribution.
MediumTechnical
49 practiced
Describe one-way ANOVA: write the model, state the null hypothesis, derive (at a high level) the ANOVA F-statistic, and list model assumptions. If ANOVA rejects, explain two post-hoc procedures (e.g., Tukey HSD and Bonferroni correction), their goals, and when one may be preferable over the other.

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.