# No Free Lunch Theorem

> Source: https://modeladay.com/models/no-free-lunch-theorem/
> Category: principle | Topics: science, cognition | Difficulty: 3/5

## Definition

No single algorithm is best for every problem: averaged over all possible problems, any two optimizers or learners perform the same. Every method has its home turf and blind spots, and every gain in performance is bought with assumptions about problem structure.

## Core Rule

No universal algorithm is optimal for all problems — averaged over all possible problems, any two optimization or learning algorithms perform the same. Common form: every method has its domain of applicability and blind spots, and any gain in performance comes at the cost of assumptions about the problem's structure.

## Opening Context

Netflix awarded a million dollars to a team that could predict movie ratings better than its own system. But the whole winning package never went straight into the service. If it guessed ratings better, why leave it on the contest floor?

That gives us a way into the No Free Lunch Theorem. Over all equally weighted scoring rules for a finite search problem, search algorithms under the same conditions have no average advantage. Let's look at what Netflix put on the exam and what it had to decide afterward.

## How It Works (Preview)

Start in two thousand six, when Netflix handed entrants a batch of movie ratings and held some back. The teams had to guess those missing ratings. To qualify for the grand prize, they'd have to cut the original system's prediction error on the specified test by ten percent.

In two thousand nine, the winners combined many models and beat the target by a little. Netflix handed over the prize and tested some of the methods offline. It found the extra accuracy wasn't worth the engineering work to bring the full combination into the service.

## When It Fails (Preview)

Before you take that average into a decision, look at the problem you actually have. Ask how often the different arrangements you'd count on paper show up in your work.

## Full Lesson, Audio & Practice

Get the full No Free Lunch Theorem breakdown, 5-minute audio lesson, interactive mechanism animation, and decision checklist in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow
- Web page: https://modeladay.com/models/no-free-lunch-theorem/

## Related Mental Models

- [Gödel's Incompleteness Theorems](https://modeladay.com/models/godels-incompleteness-theorems/)
- [Countable and Uncountable Infinity](https://modeladay.com/models/countable-and-uncountable-infinity/)
- [Diagonal Argument](https://modeladay.com/models/diagonal-argument/)
