Which outcome is harder to guess? Probability and entropy

Make the same guess for two coins. One is fair. The other is biased toward heads, so it lands heads nine times out of ten on average.

If you always guess heads, the expected success rate is 50% for the fair coin and 90% for the biased coin. See how those rates follow from the coins’ probabilities below.

One guess, two probabilities

In Lesson 3.3, you looked at rows of tosses for clues. Here you know the chances in advance, and each simulated toss is independent of the previous ones.

The fair coin gives heads and tails equal chances. Whichever side you guess, you expect to get about 50 out of 100 correct. The second coin has a bias, a preference for one outcome. Its chance of heads is 90%, so guessing heads gives you about 90 out of 100 correct on average. Guessing tails gives you about 10 out of 100.

The experiment compares a player’s score with the score for always guessing heads on the same tosses. For the fair coin, both guesses have the same expected success rate. For the biased coin, guessing heads on every toss has the best expected success rate because any guess of tails trades a 90% chance for a 10% chance. A short set of tosses can land far from the expected rate. With many tosses, the proportion of correct guesses tends to get closer to the expected rate. See UC Berkeley’s notes on the law of large numbers.

One bit can hold different amounts of uncertainty

Either coin’s outcome fits in one bit. You can use 1 for heads and 0 for tails. You still have more uncertainty before a fair toss, where both outcomes are equally likely. Entropy measures uncertainty about the outcome of a source. The fair coin has more entropy per toss than the biased coin. Your guessing score is a way to feel that difference.

For a two-bit secret key to have four equally likely values, you need two independent bits with equal chances of being 0 or 1. With two independent tosses of the biased coin, two heads have a chance of 0.9 × 0.9 = 0.81, so one pair would dominate. You’ll see why that matters in the next lesson.

Check your understanding

On which coin is your next guess harder to get right, and why? What should you guess for the other coin, and how often should it work over many tosses?

Show the answer

The fair coin is harder to guess because heads and tails are equally likely. For the biased coin, guess heads. On average, you’ll get about 90% right over many tosses.