Probability and statistics
Build intuition for random variables, estimates and inference.
Use confidence intervals and distribution checks when evaluating experimental results.
Interview questions
Choose a question to reveal its answer.
01EasyCoreHow is conditional probability different from marginal probability?
Answer
How is conditional probability different from marginal probability?
Probability of an event given that another event occurred.
Estimate the chance of disease among positive test results.
prior, sensitivity, false_positive = .01, .90, .05
posterior = prior*sensitivity / (prior*sensitivity + (1-prior)*false_positive)
print(round(posterior, 3))A positive test is not necessarily highly predictive when prevalence is low.
02EasyCoreHow does Bayes' theorem update a prior?
Answer
How does Bayes' theorem update a prior?
Updates a prior using likelihood and normalizes by evidence.
Combine prevalence with sensitivity and specificity.
03EasyCoreWhat is the expected value of a random variable?
Answer
What is the expected value of a random variable?
Probability-weighted average of a random variable.
Estimate the long-run average reward of a policy.
04MediumHigh priorityHow does variance measure dispersion?
Answer
How does variance measure dispersion?
Expected squared deviation from the mean.
Quantify how spread out prediction errors are.
05MediumHigh priorityWhat does the sign of covariance mean?
Answer
What does the sign of covariance mean?
Measures joint linear variation; sign indicates direction.
Check whether two measurements tend to increase together.
06MediumHow does correlation differ from covariance?
Answer
How does correlation differ from covariance?
Standardized covariance in the range minus one to one when variances are nonzero.
Compare linear association between features on different scales.
07MediumWhen does the central limit theorem apply?
Answer
When does the central limit theorem apply?
Under suitable conditions, standardized sample means approach a normal distribution.
Approximate uncertainty of averages from repeated independent samples.
08MediumWhat does a 95% confidence interval actually mean?
Answer
What does a 95% confidence interval actually mean?
Procedure that captures the fixed true parameter at the stated frequency over repeated samples under assumptions.
Report uncertainty around a population mean estimate.
09HardWhy is a p-value not the probability the null hypothesis is true?
Answer
Why is a p-value not the probability the null hypothesis is true?
Probability under the null model of a statistic at least as extreme as the observed one.
Assess evidence against a null hypothesis without interpreting it as probability the null is true.
10HardWhat is a Type I error?
Answer
What is a Type I error?
Rejecting a true null hypothesis.
Declare a model improvement when no real improvement exists.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.
1. A fair coin is flipped twice independently. What is the probability of two heads?
2. If X is constant at 5, what is Var(X)?
3. What does p = 0.03 mean for a valid null-hypothesis test?
Experimental design and hypothesis tests
Continue to the next set of interview questions.