Reference: Daniel V. Schroeder, An Introduction to Thermal Physics, (Addison-Wesley, 2000) – Problems 2.1 – 2.4.
As a prelude to the second law of thermodynamics (the one about entropy) we need to build up to it by discussing some elementary probability. The situation most commonly used to introduce this topic is that of flipping coins.
Suppose we have four fair (that is, equally likely to land heads or tails) distinguishable coins. If we flip all four, there are possible outcomes, since each coin has two possible states and the four coins are independent of each other. Each of these states is called a microstate. On the other hand, we might be interested only in the total number of heads or tails, and not in precisely which coins came up in either state. In this case, we’d be interested only in the macrostate of the collection of the four coins.
Example 1 For these 4 coins, the possible microstates are as shown
Coin 1 Coin 2 Coin 3 Coin 4 H H H H H H H T H H T H H H T T H T H H H T H T H T T H H T T T T H H H T H H T T H T H T H T T T T H H T T H T T T T H T T T T
To make things easier to list, I’ve converted the four coin states into binary numbers with and , then just listed the binary numbers from 0 up to 15.
The macrostates and their probabilities are
# of heads # of microstates probability 0 1 1 4 2 6 3 4 4 1
In general, we can work out the probability of getting heads in a total of coin flips. We can think of the problem as the number of ways of selecting coins from a total of , and making these coins the heads with the remaining tails. For the first of the coins, we have to choose from, so there are ways of making this first selection. With that first coin chosen, there are coins from which we can choose the next head, and so on, down to choosing the last head, for which we have choices. Thus the number of ways of choosing coins from in which the order of the choice does matter is
However, for a given macrostate, the order in which we choose the heads doesn’t matter, and there are ways of ordering each of the macrostates, so the actual number of ways of choosing the macrostate with heads is
That is, is the binomial coefficient . From the above table, we can see that with , the entries in the second column are indeed the binomial coefficient for .
Example 2 Now suppose we flip 20 coins. The total number of microstates is now . The probability of getting any one precise sequence of heads and tails is therefore or about 1 in a million. The probability of getting the macrostate of 12 heads and 8 tails, regardless of order, is
Example 3 Now we’ve got 50 coins. The number of microstates is . The number of microstates in, and probabilities of a few macrostates are:
# of heads # of microstates probability 25 0.112 30 0.042 40 50 1
The probability drops off quite sharply when we get further away from the midpoint, with equal numbers of heads and tails. A plot of the probability shows this quite nicely:
Example 4 The binomial coefficient applies to any situation in which we need to select a subset of objects from a larger set of , and the order doesn’t matter. For example, the number of different 5-card poker hands selected from a standard deck of 52 cards is
A royal flush consists of the top 5 ranking cards (ace, king, queen, jack and 10), all in the same suit. There are 4 such hands, so the probability of being dealt a royal flush is