next up previous
Next: About this document Up: Solutions for Chapter 5 Previous: Solutions for Chapter 5

Random coding

The probability that q=24 people whose birthdays are drawn at random from A=365 days all have distinct birthdays is
equation1105
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 tex2html_wrap_inline1361 other people has the same birthday as our selected person, which is
equation1108
The capacity of the communication channel is tex2html_wrap_inline1363 bits. The rate of communication attempted is tex2html_wrap_inline1365 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 tex2html_wrap_inline1369, and we select tex2html_wrap_inline1371 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,
 equation1110
In the case q=364 and K=1 this probability of error is
equation1112
[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
equation1115
In the example q=364 and A=365, this probability of error decreases as tex2html_wrap_inline1389, so, for example, if tex2html_wrap_inline1391 then the probability of error is smaller than tex2html_wrap_inline1393.

For sufficiently large blocklength K, random coding becomes a reasonable strategy.



David J.C. MacKay
Sat May 10 22:36:02 BST 1997