1. Home
  2. 3Blue1Brown

Feb 5, 2022

Why the best Wordle opener isn't just common letters

30 min → 2:11

Overview

The host explains the core concepts of information theory, like entropy and expected value, by building and refining an algorithm to find the best possible guesses in the word game Wordle.

3 things to know

Optimal Algorithm

The most effective algorithm balances two goals: maximizing the information gained from a guess (high entropy) and choosing a word that is likely to be the actual answer (high probability).

More

Initially, information gain is prioritized, but as possibilities narrow, guessing likely answers becomes more important.

▶ Watch at 0:06

Wordle Strategy

The goal is to choose guesses that provide the most information to narrow down the list of possible answers.

More

The best initial guess is not necessarily a word with the most common letters, but one that best partitions the remaining possibilities into the smallest, most evenly-sized groups, regardless of the color pattern returned.

▶ Watch at 6:07

Entropy

A guess with higher entropy is better because it reduces uncertainty more effectively, on average.

More

Defined as the "expected information" from a probability distribution. It is calculated by taking a weighted average of the information of every possible outcome.

▶ Watch at 21:12

Also in this episode

Information Theory

The amount of information gained from an event is related to how surprising or unlikely it is.

More

The standard unit of information is the "bit," which represents a halving of the space of possibilities. The formula for information (I) of an event with probability (p) is `I = log₂(1/p)`.

Quotes

“In fact, what it means to be informative is that it's unlikely.”

▶ Watch at 6:07

“If you're wondering if that's any good, the way I heard one person phrase it is that with Wordle, four is par and three is birdie.”

▶ Watch at 2:15

“Nobody knows what entropy really is. So in a debate, you'll always have the advantage.”

▶ Watch at 21:23

2 more quotes

“It occurs to me that this game makes for a very good central example in a lesson about information theory, and in particular a topic known as entropy.”

▶ Watch at 0:06

“You should call it entropy!”

▶ Watch at 21:12

Full summary

Episode Overview

  • The episode uses the popular word game Wordle as a practical example to explain the core concepts of information theory, particularly entropy.
  • The host walks through the process of building a Wordle-solving algorithm, starting with simple strategies and progressively refining it using mathematical principles.
  • Key concepts like "bits" of information, expected value, and entropy are defined and illustrated through the lens of choosing the best possible guess in the game.
  • The algorithm's performance is tested and improved across several versions, demonstrating how incorporating probability and maximizing information gain leads to a more optimal strategy.

Key Concepts

  • Wordle Strategy: The goal is to choose guesses that provide the most information to narrow down the list of possible answers. The best initial guess is not necessarily a word with the most common letters, but one that best partitions the remaining possibilities into the smallest, most evenly-sized groups, regardless of the color pattern returned.
  • Information Theory: The amount of information gained from an event is related to how surprising or unlikely it is. The standard unit of information is the "bit," which represents a halving of the space of possibilities. The formula for information (I) of an event with probability (p) is I = log₂(1/p).
  • Entropy: Defined as the "expected information" from a probability distribution. It is calculated by taking a weighted average of the information of every possible outcome. A guess with higher entropy is better because it reduces uncertainty more effectively, on average.
  • Optimal Algorithm: The most effective algorithm balances two goals: maximizing the information gained from a guess (high entropy) and choosing a word that is likely to be the actual answer (high probability). Initially, information gain is prioritized, but as possibilities narrow, guessing likely answers becomes more important.

Quotes

  • At 00:06 - "It occurs to me that this game makes for a very good central example in a lesson about information theory, and in particular a topic known as entropy." - The speaker introduces the core thesis of the video, connecting the popular game to a complex mathematical concept.
  • At 02:15 - "If you're wondering if that's any good, the way I heard one person phrase it is that with Wordle, four is par and three is birdie." - The speaker provides a simple, relatable analogy to benchmark the performance of a Wordle player or algorithm.
  • At 06:07 - "In fact, what it means to be informative is that it's unlikely." - The speaker explains a fundamental and somewhat counter-intuitive principle of information theory: rare outcomes provide more information than common ones.
  • At 21:12 - "You should call it entropy!" - The speaker recounts John von Neumann's advice to Claude Shannon on naming his measure of uncertainty.
  • At 21:23 - "Nobody knows what entropy really is. So in a debate, you'll always have the advantage." - Continuing the anecdote, this quote explains von Neumann's humorous and practical reasoning for using the term "entropy."

Takeaways

  • To solve problems with incomplete information, focus on making choices that maximize the expected information you'll receive, thereby reducing the space of possibilities most efficiently.
  • An event's information content is inversely related to its probability. Highly likely outcomes provide little new information, while highly unlikely outcomes are very informative.
  • The best starting words in Wordle (like 'CRANE' or 'TARES') are not just collections of common letters; they are words that are mathematically proven to divide the set of possible answers into many small, manageable groups on average.
  • Entropy provides a quantitative measure for uncertainty. A guess that leads to a probability distribution with higher entropy is one that is more likely to significantly narrow down the remaining options.

Watch the full episode 30 min

Read along with the audio summary

The host points out a surprising flaw in how many people approach the popular word game Wordle, noting that the best starting word is not necessarily the one packed with the most common letters. In this episode, which came out on February 5, 2022, the host walks through the process of building a Wordle solving algorithm to explain the core concepts of information theory. By the end, you will learn how to use mathematical principles like probability and entropy to make better decisions when you have incomplete information.

The best starting strategy in Wordle is about dividing and conquering, not just hunting for common letters. Instead of just picking frequent letters, the true goal is to choose guesses that provide the most information to narrow down the list of possible answers. As the speaker heard one person phrase it, in Wordle, four guesses is par and three is a birdie. To get those low scores, the best initial guess is one that partitions the remaining possibilities into the smallest, most evenly sized groups, no matter what color pattern the game returns. Next time you play Wordle, try starting with words like crane or tares, which are mathematically proven to divide the possible answers into small, manageable groups on average.

To understand why this works, we have to look at how information theory measures a surprise. The speaker explains a counterintuitive rule of mathematics, stating that what it means to be informative is that an outcome is unlikely. Highly likely events give you very little new information, while rare outcomes tell you a lot. In information theory, the standard unit of measurement is called a bit, which simply represents cutting the space of possible answers in half. The mathematical formula for this calculates information as the base two logarithm of one divided by the probability of the event, meaning the lower the probability, the more bits of information you gain.

This brings us to a powerful way to measure uncertainty before you even make a guess, a concept called entropy. When mathematician Claude Shannon was deciding what to call this measure of uncertainty, the speaker recounts that John von Neumann told him to call it entropy, joking that nobody knows what entropy really is, so in a debate, you will always have the advantage. In plain terms, entropy is the expected information you get from a whole set of probabilities. It is calculated by taking a weighted average of the information from every possible outcome, much like predicting your average score across many games before you play a single round. When you are trying to narrow down options in a game or a problem, you should look for the choice with the highest entropy, because it reduces uncertainty more effectively on average.

Finally, building the most effective algorithm requires balancing the desire for new clues with the chance of winning on the spot. A purely information driven approach is great at the beginning, when the space of possibilities is huge and you just need to eliminate wrong answers. However, the most effective algorithm balances two distinct goals, which are maximizing the information gained from a guess through high entropy, and choosing a word that actually has a high probability of being the final answer. When you are solving a problem like this, you should prioritize gathering information early on, and then shift your focus to guessing the most likely answers once your possibilities narrow down.

When you are facing any problem with incomplete information, focus on making choices that maximize the expected information you will receive, because cutting down the space of possibilities is the most efficient path to the answer. In fact, what it means to be informative is that it's unlikely.

More from 3Blue1Brown

Related Episodes