Skip to content
GATEiit

GATE EC · Communications

MAP, ML detection

Optimum detection of digital symbols in noise: the MAP and ML decision rules, likelihood-ratio tests, thresholds for binary signals in Gaussian noise, minimum-distance decisions and the resulting error probability.

Before you start

This topic comes before: Matched filter receiver

Concept notes

1. The detection problem

The transmitter sends one of M symbols s1,…,sM with prior probabilities P1,…,PM. The receiver observes r=si+n, where n is noise (after matched filtering and sampling, r is a number or a vector). The detector maps every possible r to one symbol. This divides the observation space into decision regions Z1,…,ZM.

The likelihood p(r ∣ si) is the pdf of r when si is sent. For additive noise, p(r ∣ si)=pn(r−si).

The a posteriori probability follows from Bayes' theorem:

P(si ∣ r)=p(r ∣ si) Pip(r),p(r)=∑kp(r ∣ sk) Pk

The probability of a correct decision is ∫P(chosen s ∣ r) p(r) dr. Since p(r)≥0, it is largest when, for each r, the receiver picks the symbol with the largest posterior. That is the MAP rule, and it minimises the symbol error probability.

The error probability for a given rule is

Pe=∑iPi P(r∉Zi ∣ si)

so always weight each conditional error by its prior.

2. MAP and ML rules, likelihood-ratio test

Rule Choose si that maximises Needs priors? Optimal when
MAP (maximum a posteriori) P(si ∣ r), i.e. Pi p(r ∣ si) Yes Always (minimum Pe)
ML (maximum likelihood) p(r ∣ si) No Priors are equal

With equal priors the factor Pi is the same for every symbol, so MAP = ML. With unequal priors, MAP favours the more likely symbol: its decision region grows.

For two symbols, the MAP rule is the likelihood-ratio test (LRT):

Λ(r)=p(r ∣ s1)p(r ∣ s0)  ≷s1s0  P0P1

ML uses the same test with threshold 1. Taking logarithms often simplifies Gaussian or exponential pdfs.

Discrete observations work the same way. On a binary symmetric channel with crossover p, if 1 is received the MAP detector compares P1(1−p) with P0 p. When one symbol is very likely, the MAP detector may decide it regardless of what is received, while the ML detector (for p<0.5) always decides the received bit.

3. Binary signals in Gaussian noise: the threshold

Let r=ai+n with n∼N(0,σ2) and levels a1>a0. The LRT reduces to comparing r with a threshold γ:

γ=a0+a12+σ2a1−a0ln⁡P0P1

Decide s1 if r>γ.

  • ML (or equal priors): γ=(a0+a1)/2, the midpoint.
  • MAP with P1>P0: ln⁡(P0/P1)<0, so γ moves towards a0, the less likely symbol. The region of the more likely symbol widens.
  • The shift grows with noise power σ2 and shrinks as the levels separate.

At γ the two weighted curves P0 p(r ∣ s0) and P1 p(r ∣ s1) cross; that is a quick way to find the MAP threshold for any pdf.

Error probability with the ML threshold (distance d=a1−a0):

Pe=Q ⁣(d2σ),Q(x)=12π∫x∞e−t2/2 dt

For BPSK with matched filter, d=2Eb and σ2=N0/2, giving Pe=Q ⁣(2Eb/N0). For on-off keying, Pe=Q ⁣(Eb/N0) with Eb the average energy per bit, 3 dB worse than BPSK.

rML threshold 0MAP threshold γs₀ = −1s₁ = +1P₀ p(r|s₀)P₁ p(r|s₁)decide s₀decide s₁
Prior-weighted likelihoods for $s_0 = -1$, $s_1 = +1$ with $\sigma = 0.6$, $P_1 = 0.8$. The MAP threshold sits where the curves cross, $\gamma \approx -0.25$, shifted towards the less likely $s_0$.

4. ML in AWGN is minimum-distance detection

In additive white Gaussian noise with N-dimensional signal vectors, each noise component has variance σ2=N0/2 and

p(r ∣ si)=1(πN0)N/2exp⁡ ⁣(−∥r−si∥2N0)

Maximising this is the same as minimising the Euclidean distance ∥r−si∥. So the ML detector picks the nearest constellation point. Decision boundaries are the perpendicular bisectors between neighbouring points.

The MAP version minimises ∥r−si∥2−N0ln⁡Pi; boundaries shift away from likely points.

Equivalent correlation form: maximise r⋅si−12∥si∥2. For equal-energy sets (PSK) the energy term drops and the detector picks the largest correlation.

Practical consequences:

  • QPSK: decide each bit from the sign of each coordinate.
  • M-PAM: thresholds midway between adjacent levels.
  • Error probability depends on minimum distance dmin and noise: roughly Q ⁣(dmin/2N0) per nearest neighbour.

The matched filter (or correlator) produces exactly these sufficient statistics, so matched filter followed by ML decision is the optimum receiver for equally likely symbols in AWGN.

φ₁φ₂s₁s₂s₃s₄rregion of s₁region of s₂region of s₃region of s₄boundaries are theperpendicular bisectors(here the two axes)
QPSK decision regions under ML: the received point $r$ is nearest to $s_4$, so $s_4$ is decided.

Formulas to remember

Posterior (Bayes)
P(si ∣ r)=p(r ∣ si) Pi∑kp(r ∣ sk) Pk
MAP rule
s^=arg⁡max⁡i  Pi p(r ∣ si)
ML ruleSame as MAP when priors are equal
s^=arg⁡max⁡i  p(r ∣ si)
Likelihood-ratio test
p(r ∣ s1)p(r ∣ s0)≷s1s0P0P1
MAP threshold, Gaussian noiseDecide a1 if r>γ (a1>a0)
γ=a0+a12+σ2a1−a0ln⁡P0P1
Binary error probability (ML)d=∣a1−a0∣
Pe=Q ⁣(d2σ)
BPSK in AWGN
Pb=Q ⁣(2EbN0)
Error probability of a rule
Pe=∑iPi P(error ∣ si)

Common mistakes

  • Moving the MAP threshold towards the more likely symbol; it moves towards the less likely one, so the likely symbol gets the bigger region.
  • Using σ instead of σ² in the MAP threshold term (σ²/(a₁ − a₀)) ln(P₀/P₁).
  • Writing the error probability as Q(d/σ); for a binary decision at the midpoint it is Q(d/2σ).
  • Taking the noise variance as N₀ instead of N₀/2 for each dimension of white noise.
  • Forgetting to weight the conditional errors by the priors when computing the average error probability.
  • Assuming the receiver must decide the received bit; a MAP detector may ignore the observation when one symbol is very likely.

Worked examples

Try each step yourself, then reveal the working.

Example 1: MAP threshold for unequal priors

numerical

Antipodal levels ±1 V are sent with P(+1)=0.8, P(−1)=0.2, in Gaussian noise of variance σ2=0.25 V2. Find the ML and MAP thresholds, and the ML error probability.

  1. Step 1: Find the ML threshold.

    Try it on paper first.

Example 2: MAP and ML disagree on a binary symmetric channel

numerical

Bits go through a BSC with crossover probability 0.1. P(0)=0.95, P(1)=0.05. Find the MAP and ML decisions for each received bit and the error probability of each detector.

  1. Step 1: Received 1: compare the weighted likelihoods.

    Try it on paper first.

Example 3: ML detection with exponential likelihoods

numerical

Equally likely hypotheses give p(r ∣ H0)=e−r and p(r ∣ H1)=2e−2r for r≥0. Find the ML decision rule and its error probability.

  1. Step 1: Form the likelihood ratio.

    Try it on paper first.

Example 4: Why ML becomes nearest-neighbour in AWGN

conceptual

A QPSK receiver gets r=(0.3,−0.8) with symbols at (±1,±1)/2, equally likely, in AWGN. Which symbol does the ML detector choose, and why is no pdf calculation needed?

  1. Step 1: Write the Gaussian likelihood.

    Try it on paper first.

Previous year questions

2 official GATE EC questions on this topic, newest first.

Topic test

10 questions: up to 2 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.