by yuan meng
"is it yellow?"
"nope"
"yup"
to find the answer, is it cleverer to ask about shape or color?
same for shape (square or circle)
color reduces more entropy!
l'hôpital's rule
"thus twenty skillful hypotheses will ascertain what two hundred thousand stupid ones might fail to do." — charles s. pierce (1901)
get "yes" half of time and "no" also half of the time
20 questions game
variation: "guess which word i'm thinking about!"
data: 41,460 english words + their frequencies
| word | freq |
|---|---|
| amen | 10 |
| banana | 100 |
| boba | 50 |
toy vobaculary
cross out impossible row(s)
entropy of all words
entropy of remaining words
most useful condition: neither too common or rare
# start with a character (e.g., char = 'b')
df[df["word"].str.startswith(char)]
# end with a character
df[df["word"].str.endswith(char)]
# first vowel (e.g., vowel = 'a')
df[df["first_vowel"] == vowel]homework 10, q4
david mackay's "bible" (website)