Algorithm Search⌘K

Problemintro

Symbol detection

Also called MAP symbol detection, ML symbol detection.

Decide which point of a known constellation was sent, given a noisy received vector. MAP minimizes the error probability; with equal priors in AWGN it is the minimum distance rule.

Time
Θ(M n) worst
Where
M = the number of constellation points; n = the number of complex dimensions of a point

Symbol detection is the problem of deciding which point of a known signal constellation was sent, from a received vector that the channel has corrupted with noise. The rule that minimizes the probability of a wrong decision is the maximum a posteriori (MAP) rule. With equally likely symbols it is the maximum likelihood (ML) rule, and in additive white Gaussian noise the ML rule chooses the nearest point, which the minimum distance detector computes. It is an MM-ary decision. The binary signal detection problem of signal processing, with its false alarm constraint and the Neyman-Pearson lemma, is a different question: there the two kinds of error are treated differently, with a limit on one of them, and here all wrong decisions count the same.

In plain words

A sender and a receiver agree on a small set of signals, and each signal stands for a group of bits. The sender sends one. The receiver gets it with noise added, and it must say which one was sent.

The best guess is the signal that is most probable after the receiver sees the data. To find it, the receiver weighs two things: how well each signal explains the data, and how often each signal is sent. If all signals are sent equally often, only the first thing counts. If the noise is the usual random hiss, the signal that explains the data best is simply the nearest one. So the receiver draws a region around each signal, the set of places nearer to it than to any other, and reports the region where the data fell.

Definition

Input. A constellation A={a0,…,aM−1}⊂Cn\mathcal{A} = \{a_0, \ldots, a_{M-1}\} \subset \mathbb{C}^n of distinct points, prior probabilities π0,…,πM−1\pi_0, \ldots, \pi_{M-1}, a received vector yy, and the conditional densities p(y∣ai)p(y \mid a_i) of the channel.

Output. A decision rule dd that maps each yy to an index d(y)∈{0,…,M−1}d(y) \in \{0, \ldots, M - 1\}.

Goal. Minimize the symbol error probability Pe(d)=∑iπiPr⁡[d(y)≠i∣x=ai]P_e(d) = \sum_i \pi_i \Pr[d(y) \ne i \mid x = a_i], which the symbol error rate page studies.

Theorem (MAP is optimal). The rule dMAP(y)=arg⁡max⁡iπi p(y∣ai)d_{\mathrm{MAP}}(y) = \arg\max_i \pi_i\, p(y \mid a_i), with ties broken in any way, minimizes PeP_e over all rules.

Proof. For any rule dd, the probability of a correct decision is 1−Pe(d)=∫πd(y) p(y∣ad(y)) dy1 - P_e(d) = \int \pi_{d(y)}\, p(y \mid a_{d(y)})\, dy, because for each yy only the term of the chosen index counts. At each yy the integrand is at most max⁡iπi p(y∣ai)\max_i \pi_i\, p(y \mid a_i), and dMAPd_{\mathrm{MAP}} reaches this maximum at every yy. So 1−Pe(d)≤1−Pe(dMAP)1 - P_e(d) \le 1 - P_e(d_{\mathrm{MAP}}). ■\blacksquare

By Bayes' theorem, πi p(y∣ai)\pi_i\, p(y \mid a_i) is proportional to the posterior probability of aia_i, which gives the rule its name. With equal priors, the MAP rule is the ML rule arg⁡max⁡ip(y∣ai)\arg\max_i p(y \mid a_i).

The Gaussian case. For y=ai+wy = a_i + w with w∼CN(0,N0In)w \sim \mathcal{CN}(0, N_0 I_n), ln⁡p(y∣ai)=−nln⁡(πN0)−∥y−ai∥2/N0\ln p(y \mid a_i) = -n \ln(\pi N_0) - \|y - a_i\|^2 / N_0. So

dMAP(y)=arg⁡min⁡i(∥y−ai∥2−N0ln⁡πi),dML(y)=arg⁡min⁡i∥y−ai∥2.d_{\mathrm{MAP}}(y) = \arg\min_i \big(\|y - a_i\|^2 - N_0 \ln \pi_i\big), \qquad d_{\mathrm{ML}}(y) = \arg\min_i \|y - a_i\|^2.

Expanding the square gives the correlation form dML(y)=arg⁡max⁡i(Re(aiHy)−∥ai∥2/2)d_{\mathrm{ML}}(y) = \arg\max_i \big(\mathrm{Re}(a_i^H y) - \|a_i\|^2/2\big), which needs only MM inner products. The decision region {y:d(y)=i}\{y : d(y) = i\} of the ML rule is the Voronoi cell of aia_i: the set of points nearer to aia_i than to every other point. Each cell is an intersection of half-spaces, bounded by the perpendicular bisectors of aia_i and its neighbors.

The waveform form. In a waveform channel, the receiver first projects the received signal onto an orthonormal basis of the signal set, as the signal space representation page explains. The projection is a sufficient statistic in white Gaussian noise, so detection on the vector yy loses nothing.

Variants

  • Scalar detection after a matched filter. n=1n = 1 and y=hx+wy = h x + w with a known gain hh. This is the case of PAM, PSK and QAM on a flat channel.
  • Vector detection. y=Hx+wy = H x + w with x∈Anx \in \mathcal{A}^n, for several antennas or users. The ML rule minimizes ∥y−Hx∥2\|y - Hx\|^2 over MnM^n candidates; see MIMO detection.
  • Unknown phase. If the carrier phase is unknown and uniform, the likelihood is averaged over the phase, and the rule becomes a comparison of envelopes; see noncoherent detection and differential phase-shift keying.
  • Sequence detection. With intersymbol interference, the symbols are not independent given yy, and the ML decision is over whole sequences; see maximum likelihood sequence estimation.
  • Soft output. A decoder may need the posterior of each bit instead of a hard decision; see soft demapping.

Examples

Unequal priors. BPSK with a0=+1a_0 = +1, a1=−1a_1 = -1, π0=0.9\pi_0 = 0.9, π1=0.1\pi_1 = 0.1 and N0=1N_0 = 1, so Es/N0=0E_s/N_0 = 0 dB. The MAP rule decides a0a_0 when ∣y−1∣2−N0ln⁡0.9<∣y+1∣2−N0ln⁡0.1|y - 1|^2 - N_0 \ln 0.9 < |y + 1|^2 - N_0 \ln 0.1, that is, when Re y>(N0/4)ln⁡(π1/π0)=−0.5493\mathrm{Re}\,y > (N_0/4)\ln(\pi_1/\pi_0) = -0.5493. The real part of the noise has the standard deviation σ=N0/2=0.7071\sigma = \sqrt{N_0/2} = 0.7071. Then Pe=0.9 Q(2.1910)+0.1 Q(0.6374)=0.9⋅0.014224+0.1⋅0.26194=0.038996P_e = 0.9\,Q(2.1910) + 0.1\,Q(0.6374) = 0.9 \cdot 0.014224 + 0.1 \cdot 0.26194 = 0.038996. The ML rule uses the threshold 0 and has Pe=Q(2)=0.078650P_e = Q(\sqrt{2}) = 0.078650, about twice as large. Here Q is the Gaussian tail function.

QPSK. The points (±1±j)/2(\pm 1 \pm j)/\sqrt{2} have the four quadrants as Voronoi cells, so the ML rule decides the sign of the real part and the sign of the imaginary part. At Es/N0=10E_s/N_0 = 10 dB its error probability is 2Q(10)−Q(10)2=1.5648×10−32Q(\sqrt{10}) - Q(\sqrt{10})^2 = 1.5648 \times 10^{-3}.

A case where MAP and ML need different data. The ML rule in Gaussian noise needs only the points and yy. The MAP rule also needs N0N_0, because the prior term N0ln⁡πiN_0 \ln \pi_i scales with the noise. A receiver that does not know N0N_0 cannot apply the MAP rule exactly.

Non-example: a threshold test. Deciding whether a radar echo is present, with a fixed false alarm probability, is a binary hypothesis test of signal detection. Its optimal rule is a likelihood ratio test whose threshold comes from the false alarm constraint, not from priors.

Known algorithms

  • Minimum distance detector. The ML rule in white Gaussian noise. A slicer does it in Θ(1)\Theta(1) time per symbol for PAM, square QAM and PSK.
  • Exhaustive search. Evaluate all MM metrics, Θ(Mn)\Theta(Mn) time per decision in the real RAM. For a vector channel with x∈Anx \in \mathcal{A}^n and y∈Cmy \in \mathbb{C}^m, this is MnM^n evaluations of O(nm)O(nm) each.
  • Sphere decoding. Exact ML for the vector channel by a tree search inside a sphere around yy: Fincke-Pohst enumeration and Schnorr-Euchner enumeration. The worst case is exponential in nn.
  • Linear and successive detectors. Zero forcing, MMSE and V-BLAST detection solve the vector problem approximately in polynomial time; see MIMO detection.
  • Noncoherent and differential detectors for an unknown phase, and the Viterbi algorithm for sequences with memory.
AlgorithmTimeSpacePropertiesCode
Equal gain combiningO(L) worstO(1) extranot needs branch amplitudesneeds branch phasesnot optimal linear combiner1 language
Maximal ratio combiningO(L) worstO(1) extraneeds branch noise powersneeds branch phasesoptimal linear combiner1 language
Minimum distance detectorΘ(1) worstΘ(1) extradeterministicexact ml in awgnseparable for square qam1 language
Rake receiverΘ(L N) worstΘ(1) extradeterministicexact ml with cyclic prefixmaximal ratio weightsneeds channel estimate1 language
Selection combiningO(L) worstO(1) extranot needs branch phasesneeds one receiver chainnot optimal linear combiner1 language

Bounds

All bounds here are for the ML rule with equal priors in CN(0,N0I)\mathcal{CN}(0, N_0 I) noise. Write dik=∥ai−ak∥d_{ik} = \|a_i - a_k\|.

Pairwise error. If only aia_i and aka_k are possible, the error probability is Q(dik/2N0)Q(d_{ik}/\sqrt{2N_0}). The noise component along the line from aia_i to aka_k is real Gaussian with variance N0/2N_0/2, and an error occurs when it exceeds dik/2d_{ik}/2.

Union bound. The error event given aia_i is the union of the pairwise events, so by the union bound

Pe≤1M∑i∑k≠iQ ⁣(dik2N0).P_e \le \frac{1}{M}\sum_i \sum_{k \ne i} Q\!\left(\frac{d_{ik}}{\sqrt{2N_0}}\right).

For QPSK at Es/N0=10E_s/N_0 = 10 dB this is 2Q(10)+Q(20)=1.5693×10−32Q(\sqrt{10}) + Q(\sqrt{20}) = 1.5693 \times 10^{-3}, against the exact 1.5648×10−31.5648 \times 10^{-3}.

Lower bound. The decision region of aia_i lies inside the half-space on its side of the bisector to its nearest neighbor, so Pr⁡[error∣ai]≥Q(di/2N0)\Pr[\text{error} \mid a_i] \ge Q(d_i/\sqrt{2N_0}), where did_i is the distance from aia_i to its nearest neighbor. For QPSK this gives Q(10)=7.827×10−4Q(\sqrt{10}) = 7.827 \times 10^{-4}.

Nearest neighbor approximation. At high SNR, Pe≈Nˉmin⁡ Q(dmin⁡/2N0)P_e \approx \bar N_{\min}\, Q(d_{\min}/\sqrt{2N_0}), where dmin⁡d_{\min} is the minimum distance and Nˉmin⁡\bar N_{\min} the average number of neighbors at that distance. This is an approximation, not a bound. The symbol error rate page gives the exact values for the common formats.

Reductions

  • ML detection in Gaussian noise is a nearest point search. For the vector channel y=Hx+wy = Hx + w with A\mathcal{A} a finite part of a lattice, the ML rule is the closest vector problem restricted to a box. In general this is NP-hard; for the optimum multiuser detector of synchronous CDMA, which has this form with binary symbols, Verdú proved NP-hardness in the number of users (1989).
  • Binary detection is a likelihood ratio test. For M=2M = 2, the MAP rule compares the likelihood ratio p(y∣a0)/p(y∣a1)p(y \mid a_0)/p(y \mid a_1) with the threshold π1/π0\pi_1/\pi_0.
  • From waveforms to vectors. Projection onto a basis of the signal set reduces the waveform problem to the vector problem without loss in white Gaussian noise.

Applications

Every digital receiver solves this problem, once per symbol: after the matched filter in a single-carrier link, after the one-tap correction on each OFDM subcarrier, and after an equalizer or a MIMO detector. The hard decisions feed decoders of hard-decision codes and decision-directed loops for carrier and timing recovery. The error probability of the optimal rule is the symbol error rate of the link.

References

  1. John G. Proakis and Masoud Salehi, Digital Communications, fifth edition, McGraw-Hill, 2008, Section 4.1-1 (optimal detection for a general vector channel, the MAP and ML rules), Section 4.2-1 (optimal detection for the vector AWGN channel) and Section 4.2-3 (a union bound on the probability of error of ML detection)
  2. John R. Barry, Edward A. Lee and David G. Messerschmitt, Digital Communication, third edition, Kluwer Academic Publishers, 2004, Chapter 7, Probabilistic Detection (the MAP and ML detectors and their error probability)
  3. David Tse and Pramod Viswanath, Fundamentals of Wireless Communication, Cambridge University Press, 2005, Appendix A, Detection and estimation in additive Gaussian noise (scalar and vector detection, sufficient statistics)
  4. John M. Wozencraft and Irwin M. Jacobs, Principles of Communication Engineering, Wiley, 1965 (reissued by Waveland Press, 1990), Chapter 4, Optimum receiver principles (decision regions, the optimum receiver for vector and waveform channels)
  5. Sergio Verdú, Computational complexity of optimum multiuser detection, Algorithmica 4, 1989, pp. 303 to 312 (optimum multiuser detection in synchronous CDMA is NP-hard as the number of users grows)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a contract.yaml