Machine Learning, FoundationsLesson 40 of 92

Module 4 · Generalisation, and the discipline of held-out data

How much data do I need?

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 9 of 10 in this chapter

This chapter’s goalDesign a validation scheme that matches the structure of the data (grouped, stratified or time-ordered as required) run a hyperparameter search inside it without contaminating the estimate, and state from a learning curve whether the next improvement should come from more data, better features or a different model.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:49Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

The answer, and then the useful ones

The honest answer is that it depends on how strong the signal is, and you cannot know that before you have some data. What follows are the approximations practitioners actually use, with their reasoning, so you can adapt them rather than recite them.

Rules of thumb, and where they come from

Ten to twenty rows per feature, for a linear model. Below that, the coefficients are estimated so noisily that they are close to meaningless. It comes from the statistics of parameter estimation, and 30 features with 200 rows is a bad situation regardless of what the validation score says.

**Ten to fifteen events per feature, for classification.** This is the version that matters, and the distinction is the one people miss. With 100,000 rows and 200 fraud cases, your effective sample size for learning what fraud looks like is 200, not 100,000. This is the epidemiologists’ events-per-variable rule and it transfers directly.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘How much data do I need?’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/how-much-data-is-enough (Accessed: 29 November 2026).