Interview Lab · v1.0

Read it once.
Run it until it sticks.

Every data science, ML and GenAI interview topic, implemented as a script you can run, break and re-run — with each claim checked against real output.

329questions mapped
42runnable scripts
10modules
12week plan
How a script teaches

Same shape every time, so you stop fighting the code

Each script names the interview question it answers, then walks one idea at a time and proves it. The last block is the sentence to say out loud in the room.

Question
The docstring cites the exact tracker numbers, e.g. Stats #2, ML #14.
Numbers
Real output from a real run — simulated sampling, fitted models, printed tables.
Proof
[OK] means the claim was checked. [XX] means it is false — and the script tells you.
Edge
A boxed 60-second answer you can say without notes.
Pick a path

Three ways in, depending on how much time you have

Recommended · 12 weeks

Beginner, in order

One module every 1–2 weeks. Nothing assumes more than basic Python.

  1. Stats → m01, six scripts
  2. ML fundamentals → m02
  3. Deep learning → m03
  4. NLP, RAG, agents → m04–m05
  5. SQL and coding → m06–m07
  6. MLOps, metrics → m08–m09
  7. Capstone → m10
2 weeks

Sprint for a DS role

Skip deep learning and GenAI unless the job description mentions them.

  1. Week 1: stats, ML, A/B testing
  2. m01, m02, m09
  3. Week 2: SQL + coding + capstone
  4. m06, m07, m10
Interview week

The 30-minute refresh

Read only the boxed "interview edge" block at the end of each script.

  1. 42 boxes, about 30 minutes
  2. Re-run the two scripts you stumbled on
  3. Say the capstone walkthrough out loud
  4. Six STAR stories, timed
The ten modules

What is actually implemented

No module is a reading list. Each one ends with a script that computes something and checks it.

01

Statistics

CLT, tests from scratch, Bayes, bootstrap, power, traps

39 questions
02

ML fundamentals

Gradient descent, bias-variance, metrics, leakage, trees

47 questions
03

Deep learning

Forward pass, backprop, optimisers, norm/dropout, conv & RNN

36 questions
04

NLP & LLMs

BPE, TF-IDF, attention, RAG, decoding & LoRA

37 questions
05

GenAI & agents

Client contract, tool-calling agent, memory, injection

24 questions
06

SQL

Messy SQLite DB + 24 executed interview queries

34 questions
07

Python coding

Warm-ups, LRU/min-stack, language traps, pandas, numpy

33 questions
08

MLOps

Validation, PSI drift, train/serve skew, canary & rollback

29 questions
09

Product metrics

Funnels, cohorts, full A/B test, metric-drop debug

24 questions
10

Capstone & behavioural

End-to-end churn project + STAR stories

26 questions
Question explorer

All 329 questions, and where each one lives

Search by keyword, filter by track or level. The file column is the exact script — or the doc, where a question is answered in prose.

#QuestionLevelTrackWhere
Running it

Three commands, no API keys, no downloads

# 1. install (numpy, pandas, scikit-learn, scipy, pytest) pip install -r requirements.txt # 2. run everything, get a pass/fail report python run_all.py # 3. or one topic at a time python modules/m01_statistics/02_hypothesis_tests.py # unit tests for the coding drills pytest -q tests/
  • Offline by design. The LLM modules use a mock model, so the wrapper, agent and RAG code run without a provider account. The code around the mock is real.
  • Reproducible. Fixed seeds everywhere, so the numbers you see are the numbers in the file.
  • Honest. Where a demo is a stand-in, the script says so. Costs use placeholder rates — swap in your provider's.
  • Checked. 42 scripts, every internal assertion passing; 18 unit tests for the coding implementations.
Start tracking

329 questions, and a checkbox for each

The tracker lets you mark every question as learning, to revise or mastered, filter by track and level, and export your progress as JSON.

Open the tracker →