The probability that q=24 people whose birthdays are drawn at random
from A=365 days all have distinct birthdays is
![]()
The probability that two (or more) people share a birthday is one minus
this quantity, which is about 0.5.
The probability of error is the probability that the selected message
is not uniquely decodeable by the receiver, i.e., it is the probability that
one or more of the
other people has the same birthday
as our selected person, which is
![]()
The capacity of the communication channel is
bits.
The rate of communication attempted is
bits.
So we are transmitting substantially below the capacity of this
noiseless channel, and our communication scheme has an appreciable
probability of error (6%). Random coding looks a rather silly idea.
The number of possible K-tuples is
, and we select
such K-tuples, where q is the number of people in
each of the K rooms.
The probability of error is the probability that the selected message
is not uniquely decodeable by the receiver,

In the case q=364 and K=1 this probability of error is
![]()
[The exact answer found from equation (23.33) is 0.631.]
Thus random coding is highly likely to lead to a communication failure.
As K gets large, however, we can approximate

In the example q=364 and A=365, this probability of error
decreases as
, so, for example, if
then
the probability of error is smaller than
.
For sufficiently large blocklength K, random coding becomes a reasonable strategy.