KatInterview

ML and Statistics Fundamentals: A Rapid-Fire Concept Review

Machine LearningModel answer
HardModel answerMachine Learningstatisticsdeep-learninghypothesis-testing

Last updated

Answer a broad set of statistics and ML fundamentals questions, from moment generating functions to attention, then sketch a system that finds relevant users.

You are in a fast-paced technical screen for a machine learning role. The interviewer moves quickly through a series of conceptual questions and expects a short, correct answer to each, with more depth if they probe. Answer all of them.

Probability and statistics

  1. What is a moment generating function, and what is it used for?
  2. Compare the exponential and Poisson distributions. How are they related?
  3. What is the difference between statistical distance and statistical difference (significance)?
  4. Walk through the steps of a hypothesis test.
  5. State the Law of Large Numbers and explain why it matters in practice.

Classical ML

  1. What assumptions do machine-learning models commonly make?
  2. How does multicollinearity affect a Random Forest compared with XGBoost?
  3. How does the number of trees affect performance in each?
  4. Define overfitting and list ways to prevent it.

Deep learning

  1. Which deep-learning model families do you know well?
  2. Compare an RNN and an LSTM. What are the weaknesses of a plain RNN, and how is an LSTM built?
  3. What is an autoencoder, and where is it used?
  4. How does the attention mechanism work?
  5. Describe the architecture of a CNN.

Causality and design

  1. Explain the basic principles of causal inference.
  2. Design an ML system that identifies the most relevant users for some purpose (for example, for a campaign, a recommendation or an outreach). State your assumptions.

Keep each answer to a few sentences, include formulas where they help, and mention trade-offs and common pitfalls.

Hints

Hint 1

For distributions and tests, anchor on definitions and one formula each: the MGF is E[e^{tX}], Poisson counts events while exponential measures waiting time, and a test ends with a decision plus an effect size, not just a p-value.

Hint 2

For tree ensembles, think about how each method builds trees: bagging builds them independently and in parallel, boosting builds them sequentially to fix residuals. That difference drives both the multicollinearity and the number-of-trees answers.

Hint 3

For the system design question, start by clarifying what 'relevant' means and what label or proxy you have, then walk through data, candidate generation, ranking, evaluation (offline and online), and monitoring.