Lably
Skip to content

No free lunch theorem

Mathematical folklore

  • 7 min read
  • 4 chapters

Related on Lably

Through Machine learning, Mathematical optimization and Loss function

In 2005, Wolpert and Macready stated that the first theorem in their paper means that "any two optimization algorithms are equivalent when their performance is averaged across all possible problems".

The "no free lunch" (NFL) theorem is an easily stated and easily understood consequence of theorems Wolpert and Macready actually prove. It is objectively weaker than the proven theorems, and thus does not encapsulate them. Various investigators have extended the work of Wolpert and Macready substantively. In terms of how the NFL theorem is used in the context of the research area, the no free lunch in search and optimization is a field that is dedicated for purposes of mathematically analyzing data for statistical identity, particularly search and optimization.

While some scholars argue that NFL conveys important insight, others argue that NFL is of little relevance to machine learning research.

Example

Posit a toy universe that exists for exactly two days and each day has one state: sunny or cloudy. The universe has exactly four possible histories:

  1. (sunny, cloudy): the universe is sunny on day 1, and cloudy on day 2
  2. (sunny, sunny)
  3. (cloudy, cloudy)
  4. (cloudy, sunny)

Any prediction strategy that succeeds for history #2, by predicting sunny on day 2 if it is sunny on day 1, will fail on history #1, and vice versa. If all histories are equally likely, then any prediction strategy will score the same, with the same accuracy rate of 0.5.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication