What is the i.i.d. assumption in machine learning?

Quick Overview

Asks what the i.i.d. assumption means for machine learning data and why model training and evaluation depend on it. Tests whether a candidate can explain both halves of the assumption, spot the common ways real datasets break it, and choose a split that gives an honest performance estimate.

What is the i.i.d. assumption in machine learning?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the i.i.d. assumption in machine learning? Explain what it means and why model training and evaluation depend on it. ```hint Take the two words apart Ask what "independent" and "identically distributed" each rule out, then think of a dataset where a random train/test split would give a misleading score. ``` ### What a Strong Answer Covers - The meaning of each half of the assumption - Why random held-out evaluation and the usual training objective rely on it - Concrete ways real datasets violate it - How to split, evaluate and monitor when it does not hold ### Follow-up Questions - You have 50 rows per user and a random 80/20 split gives an AUC of 0.95. Why might that number be too high, and how would you check? - Which half of the assumption does covariate shift break, and which half does autocorrelation break? - Why does random K-fold cross-validation on time series overstate accuracy, and what does a time-based split cost you?

Overview: Asks what the i.i.d. assumption means for machine learning data and why model training and evaluation depend on it. Tests whether a candidate can explain both halves of the assumption, spot the common ways real datasets break it, and choose a split that gives an honest performance estimate.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the i.i.d. assumption in machine learning? Explain what it means and why model training and evaluation depend on it.

What a Strong Answer Covers Guidance

  • The meaning of each half of the assumption
  • Why random held-out evaluation and the usual training objective rely on it
  • Concrete ways real datasets violate it
  • How to split, evaluate and monitor when it does not hold

Follow-up Questions Guidance

  • You have 50 rows per user and a random 80/20 split gives an AUC of 0.95. Why might that number be too high, and how would you check?
  • Which half of the assumption does covariate shift break, and which half does autocorrelation break?
  • Why does random K-fold cross-validation on time series overstate accuracy, and what does a time-based split cost you?