Why Use Binary Codes in Lower Bounds?
A metric lower bound often needs many parameter values that are well separated from one another. A binary cube supplies a convenient finite set of candidates, but using the entire cube does not ensure a large minimum separation: two cube points may differ in only one coordinate. A code is a subset chosen to avoid such close pairs. The key fact is that a simple greedy selection produces a code whose size can be bounded from below by counting how many cube points each selected codeword can exclude.
The construction is purely combinatorial. It does not by itself say that the corresponding statistical experiments are difficult to distinguish. For a statistical lower bound, one must separately control the distributions associated with the selected parameters, as in Fano’s method for metric estimation.
Hamming Distance and Codes
A Hamming ball of radius \(t\), centered at \(u\), contains the cube points at distance at most \(t\) from \(u\). Its size does not depend on the center: to make a point at distance \(j\), choose the \(j\) coordinates to flip. Thus the volume is
The central idea is to choose one point, exclude all points too close to it, and repeat. Each choice removes at most one Hamming ball’s worth of candidates.
The Greedy Packing Bound
Proof. Begin with all \(2^m\) cube points available. While any points remain, select one as a codeword and remove it and every still-available point within Hamming distance \(d-1\) of it. Because the cube is finite, this procedure stops. Let \(M\) be the number of selected points. When a point is selected, every point removed at that step lies in a ball of radius \(d-1\), so at most \(V(m,d-1)\) points are removed. At termination every cube point has been removed. Therefore
If two selected points were at distance at most \(d-1\), the later one would have been removed when the earlier one was selected. This contradicts the fact that it was selected. Thus every distinct pair is at distance at least \(d\), and the selected set has the claimed size. \(\square\)
This proof gives a bound for a code that the algorithm constructs; it does not claim that the code is the largest possible. The bound can be conservative, but it requires no search for an optimal code.
Worked Example: A Small Code of Length Five
Take \(m=5\) and require minimum distance \(d=3\). Each selected word removes a ball of radius \(d-1=2\), with volume
There are \(2^5=32\) words in total, so the greedy bound guarantees
For instance, the words \(00000\) and \(11111\) differ in all five positions, so their distance is \(5\), which is at least \(3\). This verifies directly that a two-word code with the required separation exists.
Worked Example: Length Eight and Distance Three
For \(m=8\) and \(d=3\), again use balls of radius \(2\). Their volume is
The cube has \(2^8=256\) words. The packing bound therefore gives
Thus a greedy procedure is guaranteed to select at least seven words, any two of which differ in at least three coordinates. The conclusion is a guarantee, not a claim that seven is the maximum possible code size.
An Entropy Bound for Hamming-Ball Volume
For larger \(m\), evaluating every term of the ball-volume sum may be inconvenient. The binary entropy function gives a compact upper bound on that volume.
Proof. If \(t=0\), the sum is \(1\), and the bound holds because \(h_2(0)=0\). Now suppose \(1\le t\le m/2\), and put \(q=t/m\). For every \(j\le t\), since \(0<q\le 1/2\),
Indeed, the ratio of the left side to the right side is \(\big((1-q)/q\big)^{t-j}\), which is at least \(1\). Multiply the inequality by \(\binom{m}{j}\), sum over \(j=0,\ldots,t\), and use the binomial theorem:
Rearranging gives
The last equality follows by substituting \(q=t/m\) into the definition of \(h_2\). Combining this ball-volume bound with the greedy packing bound at \(t=d-1\) gives the stated code-size bound. \(\square\)
Worked Example: Length One Hundred and Distance Twenty-One
Let \(m=100\) and require distance \(d=21\), so the relevant ball radius is \(t=20\), with \(t/m=1/5\). The entropy bound yields
Using
the exponent is \(100[1-h_2(1/5)]\approx 27.80719051\). The rigorous bound is therefore
which is approximately \(2.35\times 10^8\) codewords. The exact expression inside the ceiling is the bound; the decimal exponent and code size are only approximations. In particular, rounding the exponent upward before applying the power would not preserve a lower bound.
Turning Codewords into Separated Parameters
The reason these codes are useful in metric estimation is that Hamming distance can translate directly into distance between parameter values. For example, for a fixed \(a>0\), associate to each \(u\in\{0,1\}^m\) the vector \(\theta_u=a u\in\mathbb{R}^m\). For \(1\le p<\infty\), the usual \(\ell_p\) distance satisfies
Consequently, if \(C\) has minimum Hamming distance at least \(d\), then the parameter set \(\{\theta_u:u\in C\}\) is separated by at least \(a d^{1/p}\) in \(\ell_p\) distance. For example, in \(\ell_2\), that separation is at least \(a\sqrt d\). This supplies a large finite collection of well-separated candidates, the geometric ingredient used in packing-based lower bounds.
A code’s cardinality and separation address only the geometry of the parameter set. To apply a testing inequality, one must also verify that the data distributions indexed by those parameters are sufficiently similar under the divergence or information measure being used. A large code alone cannot establish that statistical condition.
Common Pitfalls
- Using the wrong ball radius. To guarantee minimum distance at least \(d\), delete points within radius \(d-1\), not radius \(d\). Deleting radius \(d\) would give the stronger separation \(d+1\), but a weaker size guarantee.
- Confusing a lower bound with an optimum. The greedy argument guarantees at least the stated number of codewords; it does not determine the maximum possible code size.
- Rounding an exponent upward in a lower bound. If the derived bound is \(2^A\) and \(A\) is approximated by a decimal, replacing \(A\) by a rounded-up value can increase the claimed lower bound. Keep the exact exponent inside the ceiling, and label decimal evaluations as approximations.
- Assuming separation proves a statistical lower bound. Separation makes estimation errors distinguishable geometrically, but the associated distributions must also satisfy the required testing or information bound.
Check Your Understanding
Use the definitions and arguments above to answer the following.
- For length \(m=6\) and required distance \(d=3\), what radius is deleted at each greedy step, and what is the corresponding ball volume?
- Why does selecting a point and deleting its radius-\((d-1)\) ball ensure that later selected points are at distance at least \(d\)?
- For \(m=40\) and \(d=9\), state the entropy exponent in the code-size bound, and check that the theorem’s radius condition holds.
- If binary codewords index vectors \(a u\) in \(\ell_2\), what separation follows from minimum Hamming distance at least \(d\)?
- What additional statistical property, beyond code size and parameter separation, is needed to use the code in a Fano lower bound?