Skip to Main Content

Mathematical Moments: Reading Your Mind?

a purple 20 questions toy

How does something the size of a yo-yo successfully play a game of 20 Questions? Although its success tempts players to think that the device is reading their minds, it's not. This sophisticated toy uses mathematics such as probability and fuzzy logic, and mathematical objects such as matrices to determine your animal, vegetable or mineral more than 75% of the time.

The online version of the game is an example of artificial intelligence, specifically a neural network, which uses feedback loops and weights to "learn" as it gets more information. In this case, answers are given weights, with "unknown" having a weight of zero, and (in the online game) weights are adjusted as necessary after each game. The weights form a matrix, with objects and questions indexing the rows and columns, respectively. The game chooses a question by first determining which objects are still probable and then finding which question has the most desirable set of weights for the remaining candidate objects. What is the most desirable set of weights? Sorry, that's not a Yes-No question.

Reading Your Mind?
pdf icon English

Other Translations (PDF)

For More Information:

"How Do “20 Questions” AI Algorithms Work?," Saulo Barreto, Baeldung, May 30, 2023
"How Electronic "20 Questions" Games Work," Chris Higgins, Mental Floss, July 17, 2009
AMS Bookstore

image of a brain diagram with blue computer like lines overlaying

Artificial Intelligence by Pixabay, CC BY 1.0 via Wikimedia Commons

AMS logo. The Mathematical Moments program promotes appreciation and understanding of the role mathematics plays in science, nature, technology, and human culture.