mxplx

Information Entropy of "Guess Who?"

Published by ideonexus

Have you ever played Akinator? You think of a character, a genie asks you some twenty questions, and somehow it knows. That’s fingerprinting in a nutshell, except your browser answers the questions for you. Once you understand information entropy, Akinator’s magic turns into a simple trick.

Let’s simplify with that game where you have to guess the character on a board through questions like “Is my character a man?”. If I say “yes”, and half of the characters on your board are men, you’re now considering only half of the total candidates. Now we can say that my answer gave you log₂(100 / 50) = log₂(2) = 1 bit of information, because it cut the pool of candidates in half.

The bits you get from one answer are called its surprisal: the rarer the answer, the more it tells you.

  • a trait shared by 1 in 2 people is worth 1 bit (is a man),
  • 1 in 8 is worth 3 bits (has a mustache),
  • and 1 in 128 is worth 7 bits (has one eye).

Surprisal quantifies the value of the answer, and entropy quantifies the value of the question. If 1 person in 128 is one-eyed, then asking about it will yield ‘no’ 127 times in 128.

AnswerProbabilitySurprisalEntropy contribution
Yes 1/128 log₂(128 / 1) = 7 bits 1/128 x 7 = ~0.055
No 127/128 log₂(128 / 127) = ~0.0113 bits 127/128 x 0.0113 = ~0.011

Summing up the contribution of each possible answer, the question itself is worth ~0.066 bits of entropy - that’s the average amount of bits you gain from an answer.

Unknown, From now on I’ll call you: Clumsy Raccoon (10/19/2026)

References

Schemas

Not in any schema.

Triples

Not related to other memes yet.

Watson’s reading

Tags generated by IBM Watson from the text. Percentages are its confidence.

People, places and things