Interview prep
26 probability interview questions, with answers.
Probability interview questions for data science and quant roles, with worked answers: conditional probability and Bayes, distributions, expectation, the classic puzzles, and where probability shows up in machine learning.
Probability questions test how you reason, so interviewers care more about your setup than the final number. Define the events, state your assumptions (independence, fair coins, how the information was revealed), then compute.
Several answers below are worked examples. Try them on paper first; the puzzles are classics precisely because intuition gets them wrong.
These 26 questions are free. SchoolWhool's Foundations of AI course places 650+ interview questions right after the lessons they test, with a mock interview with Gaurav. See also the machine learning interview questions.
Foundations
What's the difference between independent and mutually exclusive events?
State the addition rule.
How do you solve at-least-one problems?
What's the difference between permutations and combinations?
What's the difference between covariance and correlation?
Conditional probability and Bayes
What is conditional probability?
State Bayes' theorem and explain each term.
A disease affects 1% of people. A test catches 99% of cases and has a 5% false-positive rate. You test positive. What's the chance you have the disease?
What is the law of total probability?
A family has two children, and at least one is a boy. What's the probability both are boys?
Random variables and distributions
What are a PMF, a PDF and a CDF?
What are the key properties of expectation and variance?
How many rolls of a fair die do you expect to need to get a six?
When do you use the Bernoulli, binomial and Poisson distributions?
Why is the normal distribution so common?
Explain the central limit theorem.
How does the law of large numbers differ from the central limit theorem?
What does it mean that the exponential distribution is memoryless?
Classic puzzles
Explain the Monty Hall problem.
How many people do you need for a better-than-even chance that two share a birthday?
How do you get a fair result from a biased coin?
How do you pick one item uniformly at random from a stream of unknown length, in one pass?
Probability in machine learning
Where does probability appear in classification models?
What's the difference between maximum likelihood and MAP estimation?
Why is naive Bayes naive, and why does it still work?
What is a p-value, in probability terms?
Keep preparing
Misleading statistics: 10 examples and how to spot each one
Misleading statistics use true numbers to suggest false conclusions. See 10 examples, from truncated axes to Simpson's paradox, and how to spot each one.
ArticleStatistics and probability for data science and machine learning: what to learn, in order
The statistics and probability data science and machine learning use, in 7 steps, with a worked example for each and a list of what you can skip.
Interview prep23 data visualization interview questions
Data visualization interview questions with answers: choosing the right chart, honest design, matplotlib, seaborn and plotly, and the plots that matter when you build and evaluate models.
Interview prep28 Python interview questions
Python interview questions for data science, ML and backend roles: mutability, data structures, functions and scope, classes, generators, errors and the GIL, with the pitfalls interviewers probe.
ArticleAccuracy is lying to you: baselines, imbalance, precision and recall
Why a model that's right 89% of the time can be almost useless, and the three questions to ask before you trust any accuracy score.
GuideMachine learning for engineers
Machine learning for engineers: uses in monitoring, inspection and simulation, the Python tools to learn, sensor datasets and a first project.
First Principles, the SchoolWhool newsletter
One machine learning idea, explained properly, every week.
The intuition, the common mistake, and a five-minute way to try it yourself. Written by Gaurav.
Learn it properly, then the interview is the easy part.
Foundations of AI teaches probability and the rest of machine learning from first principles, with notebooks that check your work.