Exercises
ex11-01
EasyCompute the normalized second moment of the 1D integer lattice (uniform scalar quantization with step size 1).
The Voronoi region is the interval .
.
Compute the second moment
.
Normalize
. .
Compare with the optimal . The 1D lattice has a shaping loss of dB.
ex11-02
EasyFor a polar code of length designed for a BEC with capacity , how many information bits and frozen bits are there?
Information bits: .
Compute
information bits. Frozen bits: . Code rate: .
ex11-03
EasyWhat is the coding gain of an ideal code operating at dB for rate bits/channel use, compared to uncoded BPSK which requires dB at BER ?
Coding gain = required without code minus with code.
Compute coding gain
Coding gain dB.
The Shannon limit for rate 1/2 is dB, which is dB. So the code is 0.2 dB from the Shannon limit.
ex11-04
EasyCompute the shaping gap (in dB) between uniform 16-QAM and an ideal Gaussian-distributed signal with the same average power.
The shaping gap is for any QAM constellation at high SNR.
Apply the formula
The shaping gap is independent of constellation size at high SNR: dB.
At moderate SNR, the actual gap may be smaller because the discreteness of the constellation is less significant.
ex11-05
MediumShow that the polar transform preserves total mutual information: .
Use the chain rule for mutual information.
is the channel from to and is from to .
Write the total mutual information
.
Apply the chain rule
By the chain rule for mutual information: .
Since knowing does not reduce the information in about beyond what is already captured: (because and are independent).
Use independence of the two channel uses
where the first equality uses the fact that the encoding is a bijection, so mutual information is preserved.
ex11-06
MediumFor the BEC with erasure probability , derive the polarization recursion: and .
sends through two BEC() channels with and .
is erased iff we cannot determine it from , i.e., iff is erased OR is erased.
is erased iff we cannot determine it from , i.e., iff both AND are erased.
Analyze $W^-$
can be recovered from (when both are not erased). is erased iff is erased OR is erased. .
Analyze $W^+$
Given , we need , so is recovered from (directly) or from (indirectly). is erased iff both AND are erased. .
Verify conservation
. But the capacity is , so the total capacity is .
ex11-07
MediumA system uses 64-QAM (, 6 bits/symbol) with a rate-3/4 LDPC code. The code operates at dB. Compute: (a) the spectral efficiency, (b) the Shannon limit for this spectral efficiency, (c) the total gap to capacity, and (d) the estimated shaping loss.
Spectral efficiency .
Shannon limit: (linear).
Spectral efficiency
bits/s/Hz.
Shannon limit
. In dB: dB.
Total gap
Gap dB.
Estimate shaping loss
Modern LDPC codes have a coding gap of about β dB at this rate. The shaping loss is approximately dB, which is less than the theoretical maximum of 1.53 dB because the high rate and finite constellation size reduce the effective shaping penalty.
ex11-08
MediumExplain why 16-QAM can be viewed as a 2D lattice code based on the lattice with a square shaping region. What lattice would give a 1-2% improvement in packing density?
Consider the hexagonal lattice instead of .
The NSM of is .
16-QAM as $\mathbb{Z}^2$ code
16-QAM is , which is a subset of (odd integers) in each dimension. After scaling, this is intersected with the square .
Hexagonal improvement
The hexagonal lattice has vs. . The power efficiency improvement is dB.
This is the basis for hexagonal constellations, which provide a small but measurable improvement over square QAM.
ex11-09
HardProve that the bit-channel capacities in polar coding form a martingale. Specifically, let be uniformly distributed on (the "path" through the polarization tree), and define . Show that is a bounded martingale with respect to the natural filtration.
At each step, the capacity either goes to or with equal probability.
The martingale property follows from .
Apply the martingale convergence theorem.
Define the random process
. At step , the path determines which bit-channel we are at. At step , we go to either (applying ) or (applying ), each with probability 1/2.
Verify martingale property
.
(Using .)
Apply convergence theorem
is a bounded martingale (), so by the martingale convergence theorem, a.s. Since the variance is strictly positive unless , the only possible limits are 0 and 1. The fraction converging to 1 equals .
ex11-10
HardDesign a probabilistic shaping scheme for 16-QAM. The Maxwell-Boltzmann distribution is . Find the value of that minimizes the average power while maintaining an effective rate of at least 3 bits per complex symbol.
The 16-QAM points have amplitudes (for standard labeling).
The effective rate is bits.
Optimize to satisfy with minimum .
Enumerate constellation points
Standard 16-QAM has 4 points at (inner ring), 8 points at (middle ring), and 4 points at (outer ring).
Maxwell-Boltzmann probabilities
where .
Optimize
For : uniform, , bits. For : , bits. For : , bits.
The optimal achieves the minimum 3-bit rate with a power reduction of about dB. Of this, 1.53 dB is shaping gain; the rest comes from reducing the effective rate from 4 to 3 bits/symbol.
ex11-11
HardShow that the volume-to-noise ratio must exceed 1 for reliable lattice decoding, and that the rate of a lattice code with spherical shaping approaches as .
The probability of correct decoding under nearest-neighbor decoding is related to the Voronoi region volume vs. noise volume.
Rate .
Decoding error condition
Nearest-neighbor decoding fails when the noise vector leaves the Voronoi region. For reliable decoding, we need . Hence .
Rate computation
With a spherical shaping region of power and volume :
as . More precisely: . As , the second term vanishes.
ex11-12
ChallengeConsider a binary-input AWGN channel with dB. Compute the bit-channel erasure rates for a polar code of length using Gaussian approximation (GA) for density evolution. Which bits should be frozen for a rate-1/2 code?
In GA, the LLR distribution is where is the mean LLR.
Initial mean: .
The polarization recursion for GA is: , .
Initial LLR mean
For BPSK over AWGN at SNR = 1 (0 dB): .
First polarization level ($N = 2$)
(good channel). where . Numerically, , .
Second polarization level ($N = 4$)
From : , . From : , .
Ordering: bit 4 (, best) > bit 3 () > bit 2 () > bit 1 (, worst).
For rate 1/2: freeze bits 1 and 2 (worst), use bits 3 and 4.
ex11-13
MediumCompare the performance of rate-1/2 turbo, LDPC, and polar codes at block length by stating their approximate thresholds (minimum for BER ) over the binary-input AWGN channel. The Shannon limit for rate 1/2 is dB.
Look up published threshold values for each family.
At , finite-length effects are significant for all three.
Published thresholds at $n = 512$
- Turbo (rate 1/2, 8-state): dB (gap: 1.3 dB)
- LDPC (optimized irregular, BP): dB (gap: 1.0 dB)
- Polar (CA-SCL, ): dB (gap: 1.1 dB)
Comparison
At this moderate block length, all three perform within about 1.0β1.5 dB of the Shannon limit. LDPC has a slight edge, but the differences are small and depend strongly on the specific code design and decoder implementation. At longer block lengths (), all three approach within 0.3 dB of the limit.
ex11-14
EasyA 5G NR system uses LDPC base graph 1 with maximum information block size of 8448 bits. If the code rate is 2/3, what is the total encoded block length?
Rate , so .
Compute
bits.
In 5G NR, this would be transmitted using rate matching to fit the allocated resource blocks.
ex11-15
MediumShow that for the BEC with erasure probability , after levels of polarization (), the fraction of bit-channels with capacity approaches 0.5 (the channel capacity) as for any .
Track the distribution of erasure probabilities through the recursion.
Show that the recursion drives probabilities toward 0 and 1.
Recursion for the BEC
Starting from : at each level, each channel with erasure splits into and .
Fixed points
The recursion has fixed points at and . For : and . The "good" children get better, the "bad" children get worse.
Convergence
By the martingale argument, as , the fraction of channels with (capacity ) approaches , and the fraction with (capacity ) also approaches 0.5.