We discuss another application that sheds light on meaning of entropy, the message transmission problem. In this model, a sender transmits a message to the receiver through a channel. In real world, the channel could be an optical fiber, a wireless channel, a hard disk etc. In the final application, the computer that writes and reads information from the hard disk is both the sender and the receiver.

In real world the channel is not perfect and the message transmitted is distorted by noise. It is natural to ask whether the message can be transmitted accurately under the noise, i.e., whether the receiver can recover the noisy message.

To study the problem, we need a mathematical model for both the channel and the noise. We focus on the simplest binary channel with bits of 0 and 1. The noise causes the bits to flip and is modelled by the distribution on the bit-flips. We study the simplest one that flips each bit independently with some identical probability p<0.5p < 0.5. For a message with length nn, the number of bit flips follows a Binomial distribution B(n,p)B(n, p). We call such channel a binary symmetric channel.

To protect the message against noise, a naïve way is to send the each bit multiple times. For example, if the sender wants to send a bit 1, it sends 1010 copies of 11 as 11111111111111111111. The receiver decides that the bit sent is 1, if the majority of the 1010 bits it receives is 1.

Could it be improved? Repeating each bit may not be the mot efficient way against the noise. In general, if the sender wants to send a message of kk bits, it can convert it into a new message of nn bits and sends the new one. The receiver considers the nn bits received as a whole, and try to recover the kk-bit message the sender wants to send.

We call the method used by the sender to convert the original message the encoding function, and the one used by the receiver to recover the message the decoding function.

Definition. A (k,n)(k, n) encoding function Enc:{0,1}k→{0,1}n\text{Enc}: \{0, 1\}^k \rightarrow \{0, 1\}^n and a (k,n)(k, n) decoding function Dec:{0,1}n→{0,1}k\text{Dec}: \{0, 1\}^n \rightarrow \{0, 1\}^k, where n≥kn \ge k.

Since the noise flips the bits randomly, it is impossible to have an encoding function and a decoding function without error (unless p=0p = 0). Instead, we aim to control the probability of error within some specified threshold δ\delta. To achieve this, we add redundancy to the message and encode a kk-bit one into an nn-bit one. Now, n−kn - k is the amount of redundancy introduced. We would like to make n−kn - k as small as possible. On the other hand, the value of n−kn-k should positively related to pp. The larger pp is, the noisier the channel is and the larger n−kn - k should be.

For fixed δ\delta and pp, the Shannon's Theorem says that the smallest possible value of n−kn - k we can achieve is roughly nH(p)n\mathbf{H}(p). Intuitively, H(p)\mathbf{H}(p) is the amount of randomness the noise exerts on each bit. Therefore 1−H(p)1 - \mathbf{H}(p) is the maximum amount of information we can transmit by one bit.

Before we proceed, we prove the following lemma.

Lemma 1
For q∈R,q≤1/2q \in \mathbb{R}, q \le 1 / 2 and n∈Nn \in \mathbb{N}, it hold that

∑i=0⌊qn⌋(ni)≤2nH(q)+log⁡n+12 \begin{aligned} \sum_{i = 0}^{\lfloor q n \rfloor} \binom{n}{i} &\le 2^{ n \mathbf{H} ( q) + \log \frac{n + 1}{2} } \end{aligned}

Proof.

∑i=0⌊qn⌋(ni)≤n+12(n⌊qn⌋)≤n+122nH(⌊qn⌋/n)≤2nH(q)+log⁡n+12 \begin{aligned} \sum_{i = 0}^{\lfloor q n \rfloor} \binom{n}{i} &\le \frac{n + 1}{2} \binom{n }{\lfloor q n \rfloor } \\ &\le \frac{n + 1}{2} 2^{ n \mathbf{H} \left( { \lfloor q n \rfloor } / { n } \right) } \\ &\le 2^{ n \mathbf{H} ( q) + \log \frac{n + 1}{2} } \end{aligned}

The first inequality follows from that (ni)\binom{n}{i} is increasing for i≤n/2i \le n / 2 and that the summation is over at most (n+1)/2(n + 1) /2 terms. The last one follows from that H(x)\mathbf{H}(x) is increasing for x≤1/2x \le 1 / 2 and that ⌊qn⌋/n≤qn/n=q<1/2{ \lfloor q n \rfloor } / { n } \le { q n } / { n } = q < 1/2.

■\blacksquare

Shannon's Theorem
Given a binary symmetric channel with flip probability p<1/2p < 1 / 2 and for any any ϵ,δ>0\epsilon, \delta > 0, when nn is large enough,

  1. if k≤n(1−H(p)−ϵ)k \le n (1 - \mathbf{H}(p) - \epsilon), there exist (k,n)(k, n) encoding and decoding functions such that the receiver fails to obtain the correct message with probability at most 2δ2\delta.
  2. ∄(k,n)\nexists (k, n) encoding and decoding functions with k≥n(1−H(p)+ϵ)k \ge n (1 - \mathbf{H}(p) + \epsilon) such that the decoding is correctly is at most δ\delta for a kk-bit input message chosen uniformly at random.

Proof of 1.

Intuition. When an nn-bit message ss is transmitted through the channel, the number of flipped bits is roughly npnp. As p<1/2p < {1} / {2}, we can find a λ>0\lambda > 0 such that p+λ<1/2p + \lambda < {1} / {2}. Let RR be the received nn-bit message and define d(s,R)d(s, R) the number of different bits between ss and RR, i.e., the Hamming distance between ss and RR. Given ss and pp, let D(s,p)\mathfrak{D}(s, p) be the distribution of RR on {0,1}n\{0, 1\}^n.

By Hoeffding's inequality, it holds that

Pr⁡R∼D(s,p)[∣d(s,R)−pn∣≥λn]≤exp⁡(−2λ2n). \Pr_{R \sim \mathfrak{D}(s, p) } [ |d(s, R) - pn | \ge \lambda n] \le \exp(- 2 \lambda^2 n).

Define the (p+λ)n(p + \lambda)n ball centered ss as

Bs,(p+λ)n≐{r∈{0,1}n:d(s,r)<(p+λ)n}. B_{s, (p + \lambda)n} \doteq \{ r \in \{0, 1\}^n : d(s, r) < (p + \lambda)n \}.

The the Hoeffding's inequality implies that for large enough nn, we have

Pr⁡R∼D(s,p)[R∉Bs,(p+λ)n]≤δ. \Pr_{R \sim \mathfrak{D}(s, p) } [ R \notin B_{s, (p + \lambda)n}] \le \delta.

That is, with probability at most δ\delta, the received message fall outside the ball Bs,(p+λ)nB_{s, (p + \lambda)n}. This motivates to decode each message in Bs,(p+λ)nB_{s, (p + \lambda)n} as the original message the sender wants to send.

Further, by Lemma 1, the size of Bs,(p+λ)nB_{s, (p + \lambda) n} is bounded by

∑i=0⌊(p+λ)n⌋(ni)≤2nH(p+λ)+log⁡n+12 \begin{aligned} \sum_{i = 0}^{\lfloor (p + \lambda) n \rfloor} \binom{n}{i} &\le 2^{ n \mathbf{H} ( p + \lambda) + \log \frac{n + 1}{2} } \end{aligned}

Therefore, the maximum number of non-overlapped balls we can pack into the message space {0,1}n\{0, 1\}^n is

2n2nH(p+λ)+log⁡n+12=2n(1−H(p+λ)−1nlog⁡n+12) \frac{2^n}{ 2^{ n \mathbf{H} ( p + \lambda) + \log \frac{n + 1}{2} } } = 2^{ n (1 - \mathbf{H} ( p + \lambda) - \frac{1}{n} \log \frac{n + 1}{2}) }

When nn is large enough, this is at least 2n(1−H(p)−ϵ)2^{ n (1 - \mathbf{H} ( p ) - \epsilon) }.

Remark: Hoeffding's inequality is an overkill. Chebyshev's inequality suffices for this proof.

Designing Encoding and Decoding Functions.

This motivates one to design of encoding and decoding function as follows: find a set of messages s1,s2,...,s2k∈{0,1}ns_1, s_2, ..., s_{2^k} \in \{0, 1\}^n, such that

Bs1,(p+λ)n,Bs2,(p+λ)n,...,Bs2k,(p+λ)n B_{s_1, (p + \lambda)n}, B_{s_2, (p + \lambda)n}, ..., B_{s_{2^k} , (p + \lambda)n}

are disjoint balls, and assign the messages in {0,1}k\{0, 1\}^k to the ones in {si}′s\{ s_i \}'s one by one. If the sending want to send ii, it sends sis_i. On receiving a message rr, the receiver determines which ball rr belongs to. The probability of decoding error is at most δ\delta.

Question to ponder: can we find such a set efficiently, such that

Bs1,(p+λ)n,Bs2,(p+λ)n,...,Bs2k,(p+λ)n B_{s_1, (p + \lambda)n}, B_{s_2, (p + \lambda)n}, ..., B_{s_{2^k} , (p + \lambda)n}

are disjoint?

Finding the Codewords.

It is left to find a set of satisfactory s1,s2,...,s2k∈{0,1}ns_1, s_2, ..., s_{2^k} \in \{0, 1\}^n. The method we show here does not find a set of non-overlapped balls. Instead it aims to find a set such that

if sis_i is transmitted, then the probability received message rr falls into the another ball, i.e., r∈Bsj,(p+λ)nr \in B_{s_{j} , (p + \lambda)n} (j≠ij \neq i), is less than δ\delta.

The property implies that the overlap between Bsi,(p+λ)nB_{s_{i} , (p + \lambda)n} and ∪j≠iBsj,(p+λ)n\cup_{j \neq i} B_{s_{j} , (p + \lambda)n} is less than δ\delta (measured by probability). To formalize the statement, define the random variable SS to be the message sent and RR to be the one received. Given that S=siS = s_i is sent, the conditional probability of receiving R=rR = r is

Pr⁡R∼D(si,p)[R=r∣S=si]=pd(si,r)(1−p)1−d(si,r) \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] = p^{d(s_i,r)} (1 - p)^{1 - d(s_i, r)}

To goal is to prove that it holds for all ii,

Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]=∑r∈∪j≠iBsj,(p+λ)npr≤δ \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] = \sum_{r \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} } p_r \le \delta

Then , by union bound, it holds that

Pr⁡R∼D(si,p)[R is not recovered correctly∣S=si]=Pr⁡R∼D(si,p)[R∉Bsi,(p+λ)n∨R∈∪j≠iBsj,(p+λ)n∣S=si]≤Pr⁡R∼D(si,p)[R∉Bsi,(p+λ)n∣S=si]+Pr⁡[R∈∪j≠iBsj,(p+λ)n∣S=si]≤2δ \begin{aligned} \Pr_{R \sim \mathfrak{D}(s_i, p) } [ R \text{ is not recovered correctly} \mid S = s_i] &= \Pr_{R \sim \mathfrak{D}(s_i, p) } [ R \notin B_{s_i, (p + \lambda)n} \vee R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} \mid S = s_i] \\ &\le \Pr_{R \sim \mathfrak{D}(s_i, p) } [ R \notin B_{s_i, (p + \lambda)n} \mid S = s_i] + \Pr[ R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} \mid S = s_i] \\ &\le 2 \delta \end{aligned}

That is, sis_i is transmitted and decoded correctly with probability at least 1−2δ1 - 2 \delta.

In what follows, we will prove the following claim:

Claim 1. If we generate 2k+12^{k + 1} codewords uniformly at random from {0,1}n\{0, 1\}^n, then in expectation

Es1,s2,...,s2k+1∼U({0,1}n)[∑i=12k+1Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]]≤2kδ \underset{ {s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } } {\mathbb{E} } \left[ \sum_{i = 1}^{2^{k + 1} } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \right] \le 2^k \delta

Claim 1 implies that there exits a set of codewords s1,s2,...,s2k+1s_1, s_2, ..., s_{2^{k + 1} } with

∑i=12k+1Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]≤2kδ \sum_{i = 1}^{2^{k + 1} } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \le 2^k \delta

If we send each sis_i with probability 1/2k1 / 2^k, then the expected error probability is already δ\delta. But we can have a stronger result: we can find a set of 2k2^k codewords, such that for each ii,

Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]≤2δ \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \le 2 \delta

W.L.O.G., suppose that s1,s2,...,s2ks_1, s_2, ..., s_{2^k} are the ones with the smallest Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]\Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] 's, it must be that

Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]≤2kδ2k=δ \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \le \frac{2^k \delta }{2^k } = \delta

Proof of Claim 1. By Lemma 1, for a fixed rr, the number of strings s∈{0,1}ns \in \{0, 1\}^n such that d(s,r)<(p+λ)nd(s, r) < (p + \lambda) n is bounded by

∑k=0⌊(p+λ)n⌋(nk)≤n+122nH(p+λ) \begin{aligned} \sum_{k = 0}^{\lfloor (p + \lambda) n \rfloor} \binom{n}{k} &\le \frac{n + 1}{2} 2^{ n \mathbf{H} ( p + \lambda) } \end{aligned}

If a message ss is picked uniformly at random from {0,1}n\{0, 1\}^n, the probability such that

Pr⁡s∼U({0,1}n)[d(s,r)<(p+λ)n]≤n+12n+12nH(p+λ) \Pr_{s \sim \mathbf{U}(\{0, 1\}^n) } [d(s, r) < (p + \lambda) n ] \le \frac{n + 1}{2^{n + 1} } 2^{ n \mathbf{H} \left( p + \lambda \right) }

By union bound,

Pr⁡s1,s2,...,s2k+1∼U({0,1}n)[r∈∪j≠iBsj,(p+λ)n]<2kn+12n+12nH(p+λ)=2k+log⁡(n+1)+nH(p+λ)−n−1 \begin{aligned} \Pr_{s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } [ r \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} ] &< 2^k \frac{n + 1}{2^{n + 1} } 2^{ n \mathbf{H}( p + \lambda) } \\ &= 2^{ k + \log (n + 1) + n \mathbf{H} ( p + \lambda) - n - 1 } \end{aligned}

As k≤n(1−H(p)−ϵ)k \le n(1 - \mathbf{H}(p) - \epsilon), when nn is sufficient large, it follows

Pr⁡s1,s2,...,s2k+1∼U({0,1}n)[r∈∪j≠iBsj,(p+λ)n]<2log⁡n+12+n(H(p+λ)−H(p)−δ)≤δ2 \begin{aligned} \Pr_{s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } [ r \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} ] < 2^{ \log \frac{n + 1}{2} + n ( \mathbf{H} ( p + \lambda) - \mathbf{H} ( p) - \delta) } \le \frac{\delta}{2} \end{aligned}

Therefore,

Es1,s2,...,s2k+1∼U({0,1}n)[Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]]=∑r∈{0,1}nPr⁡s1,s2,...,s2k+1∼U({0,1}n)[r∈∪j≠iBsj,(p+λ)n]⋅Pr⁡R∼D(si,p)[R=r∣S=si]≤δ2 \begin{aligned} &\underset{ {s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } } {\mathbb{E} } \left[ \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \right] \\ &= \sum_{r \in \{0, 1\}^n } \Pr_{s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } [ r \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n} ] \cdot \Pr_{R \sim \mathfrak{D}(s_i, p) } [ R = r \mid S = s_i] \\ &\le \frac{\delta}{2} \end{aligned}

and

Es1,s2,...,s2k+1∼U({0,1}n)[∑i=12k+1Pr⁡R∼D(si,p)[R∈∪j≠iBsj,(p+λ)n∣S=si]]≤2k+1δ2=2kδ \underset{ {s_1, s_2, ...,s_{2^{k + 1} } \sim \mathbf{U}(\{0, 1\}^n) } } {\mathbb{E} } \left[ \sum_{i = 1}^{2^{k + 1} } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R \in \cup_{j \neq i} B_{s_{j} , (p + \lambda)n } \mid S = s_i] \right] \le 2^{k + 1} \frac{\delta}{2} = 2^k \delta

■\blacksquare

Proof of 2.

The difficulty here is to prove that the claim holds for arbitrary (k,n)(k, n) encoding and decoding functions. The proof relies on an important property:

the decoding function Dec\text{Dec} is a function on {0,1}n\{0, 1\}^n

For any r∈{0,1}nr \in \{0, 1\}^n, there is a unique output Dec(r)∈{0,1}k\text{Dec}(r) \in \{0, 1\}^k. The decoding function needs to decide the unique message {0,1}n\{0, 1\}^n the sender want to send.

Now, define

Si≐{r∈{0,1}n:r is decoded correctly if si is sent} S_i \doteq \{ r \in \{0, 1\}^n : r \text{ is decoded correctly if } s_i \text{ is sent} \}

The SiS_i's are non-overlapped and we have,

∪i=12kSi⊂{0,1}n \cup_{i = 1}^{2^k} S_i \subset \{0, 1 \}^n

If sis_i is sent, then by Hoeffding inequality, with probability at least 1−exp⁡(−2λ2n)1 - \exp(- 2\lambda^2 n), the received message RR is likely to fall into a ring centered at sis_i:

ring(si)≐{r∈{0,1}n:∣d(r,si)−pn∣<λn} \text{ring} (s_i) \doteq \{ r \in \{0, 1\}^n : |d(r, s_i) - pn |< \lambda n \}

Finally, if the messages s1,s2,...,s2ks_1, s_2, ..., s_{2^k} are sent uniformly at random, i.e., i∼U[1,2k]i \sim \mathbf{U}[1, 2^k], then

Pr⁡[R is decoded correctly]=∑i=12k∑r∈SiPr⁡R∼D(si,p)[R=r∣S=si]Pr⁡i∼U[1,2k][S=si]=12k∑i=12k∑r∈SiPr⁡R∼D(si,p)[R=r∣S=si] \begin{aligned} \Pr[ R \text{ is decoded correctly}] &= \sum_{i = 1}^{2^k} \sum_{r \in S_i } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] \Pr_{i \sim \mathbf{U}[1, 2^k]} [ S = s_i] \\ &= \frac{1}{2^k} \sum_{i = 1}^{2^k} \sum_{r \in S_i } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] \end{aligned}

Observed that Si⊂ring(si)∪(Si∩ring(si))S_i \subset \text{ring} (s_i) \cup (S_i \cap \text{ring} (s_i) ), we get

Pr⁡[R is decoded correctly]≤12k∑i=12k(∑r∉ring(si)Pr⁡R∼D(si,p)[R=r∣S=si]+∑r∈Si∩ring(si)Pr⁡R∼D(si,p)[R=r∣S=si])≤12k∑i=12k(exp⁡(−2λ2n)+∑r∈Si∩ring(si)Pr⁡R∼D(si,p)[R=r∣S=si]) \begin{aligned} &\Pr[ R \text{ is decoded correctly}] \\ &\le \frac{1}{2^k} \sum_{i = 1}^{2^k} \left( \sum_{r \notin \text{ring} (s_i) } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] +\sum_{r \in S_i \cap \text{ring} (s_i) } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] \right) \\ &\le \frac{1}{2^k} \sum_{i = 1}^{2^k} \left( \exp( -2\lambda^2n) +\sum_{r \in S_i \cap \text{ring} (s_i) } \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] \right) \end{aligned}

Note that for r∈Si∩ring(si)r \in S_i \cap \text{ring} (s_i), as p<1/2p < 1 / 2, it holds that

Pr⁡R∼D(si,p)[R=r∣S=si]≤p⌈(p−λ)n⌉(1−p)n−⌈(p−λ)n⌉ \Pr_{R \sim \mathfrak{D}(s_i, p) } [R = r \mid S = s_i] \le p^{ \lceil(p - \lambda) n \rceil} (1 - p)^{ n - \lceil(p - \lambda) n \rceil }

We obtain

Pr⁡[R is decoded correctly]≤exp⁡(−2λ2n)+12k∑i=12k∑r∈Si∩ring(si)p⌈(p−λ)n⌉(1−p)n−⌈(p−λ)n⌉≤exp⁡(−2λ2n)+12k∑i=12k∑r∈Si∩ring(si)p(p−λ)n(1−p)n−(p−λ)n=exp⁡(−2λ2n)+p(p−λ)n(1−p)n−(p−λ)n∑i=12k∑r∈Si∩ring(si)12k=exp⁡(−2λ2n)+ppn(1−p)n−pn(1−pp)λn2n−k=exp⁡(−2λ2n)+2n−k−nH(p)(1−pp)λn \begin{aligned} &\Pr[ R \text{ is decoded correctly}] \\ &\le \exp( -2\lambda^2n) + \frac{1}{2^k} \sum_{i = 1}^{2^k} \sum_{r \in S_i \cap \text{ring} (s_i) } p^{ \lceil(p - \lambda) n \rceil} (1 - p)^{ n - \lceil(p - \lambda) n \rceil } \\ &\le \exp( -2\lambda^2n) + \frac{1}{2^k} \sum_{i = 1}^{2^k} \sum_{r \in S_i \cap \text{ring} (s_i) } p^{ (p - \lambda) n } (1 - p)^{ n - (p - \lambda) n } \\ &= \exp( -2\lambda^2n) + p^{ (p - \lambda) n } (1 - p)^{ n - (p - \lambda) n } \sum_{i = 1}^{2^k} \sum_{r \in S_i \cap \text{ring} (s_i) } \frac{1}{2^k} \\ &= \exp( -2\lambda^2n) + p^{ pn } (1 - p)^{ n - pn } \left(\frac{ 1 - p}{ p} \right)^{\lambda n} 2^{n - k}\\ &= \exp( -2\lambda^2n) + 2^{n - k - n \mathbf{H}(p)} \left(\frac{ 1 - p}{ p} \right)^{\lambda n} \end{aligned}

Conditioning on that k≥n(1−H(p)+δ)k \ge n (1 - \mathbf{H}(p) + \delta),

Pr⁡[R is decoded correctly]≤exp⁡(−2λ2n)+2−n(δ+λlog⁡1−pp) \Pr[ R \text{ is decoded correctly}] \le \exp( -2\lambda^2n) + 2^{- n (\delta + \lambda \log \frac{ 1 - p}{ p} ) }

By choosing sufficient small λ\lambda and large enough nn, Pr⁡[R is decoded correctly]\Pr[ R \text{ is decoded correctly}] can be arbitrary small.

■\blacksquare

Reference

[1] M. Mitzenmacher and E. Upfal, Probability and computing: an introduction to randomized algorithms and probabilistic analysis. New York: Cambridge University Press, 2005.