226 6 Other Stochastic Methods and Prism
need to do is to calculate the proportion of micro-states that realize the particular
macro-state we are interested in. We can do this for every macro-state, if we wish.
In most realistic cases, the situation is a bit more complicated in that not all micro-
states will be equally likely. In this case we associate each micro-state with a weight
and take this weight into account when calculating the proportions.
Let us consider an example to clarify this. Imagine a royal court of C people,
consisting of a king, a queen and the lower members of the court (C −2 courtiers).
Let us assume the entire court to be decadent, in fact so decadent that they take no
interest whatsoever in the outside world and practically never leave the palace. It is
rather easy for them to stay “at home” since their palace has many rooms. Somebody
might now be interested in modeling in which rooms the king, a queen and the court
are dwelling throughout the day. The partition function method is a convenient tool
in this case. To obtain a first, simple model, let us assume that every person in the
palace moves randomly between the rooms.
The first question to ask is the mean occupancy of every room, that is the average
number of people in every room. This is, of course, simply given by C/N.Asome-
what more challenging question is to ask about the probability that there is exactly
one person (either the king or the queen or any of the courtiers) in a particular room,
say room 1. In this case, we identify two macro-states: one corresponds to exactly
one person being in room 1, and the other covers all other cases. It is clear that each
of these two macro-states can be realized by many micro-states. For example, the
queen could be the person in room 1, or the king, or any of the courtiers. As long as
only one person is in the room in question it does not matter what goes on in all the
other rooms.
Given our assumption that each and every micro-state has the same probability,
we can then answer questions about various probabilities by considering all possible
configurations that fulfill a particular condition, and then dividing this number by
the number of all possible configurations. For example, we could ask about the
probability of finding exactly one person in room 1. This is true when C −1 persons
are in room 2 and one in room 1. It is also true, if C −2 people are in room 2, one
in room 3 and exactly one in room 1; and so on.
Let us make this more precise and calculate the number of all possibilities (i.e.,
micro-states) first. This can be obtained by observing that each member of court
(king and queen included) can occupy only one of the N rooms at any particular
time. If, for the moment, we only consider the king, then there are clearly N possible
configurations. Taking into account the queen, then for each of the N configurations
of the king, the queen has N configurations of her own; hence altogether there are
N
2
ways to arrange the king and queen. Just by extending the argument, we see that
there are Z
.
= N
C
arrangements of the entire court over the rooms of the palace.
Z is sometimes called the partition function.
The next question to ask is how many configurations there are such that there is
exactly one person in room 1. This is nearly the same as asking how many configu-
rations there are to distribute C −1 people over N −1 rooms. The answer to this is
of course (N −1)
(C−1)
(the reasoning is exactly the same as in the case of C peo-
ple in N rooms). To obtain the desired number of configurations, we need to take