ENع
←AWGN, SNR and decisions
Lesson 64 · Noise, errors and OFDM

Noise and decisions: AWGN, SNR and picking the nearest point

16 min10 steps5 questionsAdvanced
About this lesson

Every received symbol arrives with a little random noise added. Follow one QPSK point, s = (1, 1) for bits 00, as noise moves it to r = (0.84, 1.24). Learn what additive white Gaussian noise (AWGN) is, measure signal-to-noise ratio (SNR) in decibels, and see why the receiver's best move is to pick the nearest constellation point. Then double the noise σ (a quarter of the SNR, −6 dB) and watch 19 of 200 points cross a decision boundary, just as the Gaussian maths predicts. Builds on the QAM lesson (constellations) and the matched-filter lesson (white noise and SNR).

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 64 · Interactive
01 / 10

A point stands for two bits

QPSK sends one of four points per symbol: I and Q are each +1 or −1 volt. Each point carries two bits: the first gives the sign of I, the second the sign of Q. To send 00, it sends s = (1, 1).

QPSK (4-QAM), from the QAM lesson

point  bits   I     Q
  A     00   +1 V  +1 V
  B     10   −1 V  +1 V
  C     11   −1 V  −1 V
  D     01   +1 V  −1 V

Gray labels: neighbours differ in one bit
send 00  ->  s = (1, 1)
Loading figure…
or ← →
Read the lesson step by step
  1. A point stands for two bits

    QPSK sends one of four points per symbol: I and Q are each +1 or −1 volt. Each point carries two bits: the first gives the sign of I, the second the sign of Q. To send 00, it sends s = (1, 1).

    QPSK (4-QAM), from the QAM lesson
    
    point  bits   I     Q
      A     00   +1 V  +1 V
      B     10   −1 V  +1 V
      C     11   −1 V  −1 V
      D     01   +1 V  −1 V
    
    Gray labels: neighbours differ in one bit
    send 00  ->  s = (1, 1)
  2. Noise adds on the way

    On the way, random noise adds to I and to Q: r = s + n. This time n = (−0.16, 0.24) V, so the receiver gets r = (0.84, 1.24). The point has moved off its ideal spot.

    r = s + n   (noise simply adds: additive)
    
    this symbol:
      n = (−0.16, 0.24) V
      rI = 1 − 0.16 = 0.84 V
      rQ = 1 + 0.24 = 1.24 V
    
    the next symbol gets a fresh n
    main source: thermal noise, the random
    jiggle of electrons in the receiver
  3. Gaussian: the bell curve

    Collect 400 noise values and stack them by size: most are small, a few are big, and they pile into a bell curve, the Gaussian. Its width is the standard deviation σ = 0.3 V. About 68 % lie within ±σ, 95 % within ±2σ.

    Gaussian (normal), mean 0, std σ = 0.3 V
      f(n) = exp(−n²/2σ²) / (σ√(2π))
      peak f(0) = 1.33 per volt
    
    within ±σ   68.27 %   (this draw: 70 %)
    within ±2σ  95.45 %   (this draw: 98 %)
    
    bars: the 400 values of this draw
    curve: the exact bell
  4. Additive, white, Gaussian: AWGN

    This model has a name: additive white Gaussian noise, AWGN. Additive: it adds to the signal. White: equal power at every frequency, so each value is independent of the last. Gaussian: the bell curve. I and Q get separate values.

    A  additive    r = s + n
    W  white       flat power spectrum ->
                   noise values are independent
    G  Gaussian    the bell curve, mean 0
    N  noise
    
    nI and nQ: independent, same σ
    
    thermal noise is nearly white and
    nearly Gaussian, so AWGN fits it well
  5. Many symbols make four clouds

    Now send 200 random symbols. Each lands near its ideal point, pushed by its own noise. Together they form four round clouds. The spread of each cloud is σ = 0.3 V, the same in every direction.

    200 symbols, each one of the 4 points
    each gets its own noise (nI, nQ)
    
    cloud = ideal point + Gaussian spread
    round: same σ on I and on Q,
           and nI, nQ independent
    
    about 95 % of points land within
    2σ = 0.6 V of their ideal point on each axis
  6. SNR: signal power over noise power

    Signal-to-noise ratio (SNR) compares powers. Each point has power 1² + 1² = 2 V². The noise has power 2σ² = 0.18 V². SNR = 2 / 0.18 = 11.1. In decibels: 10·log₁₀(11.1) = 10.5 dB.

    power = mean of the square
    
    signal  Es = 1² + 1² = 2 V²  (all 4 points)
    noise   E[nI² + nQ²] = 2σ² = 2 × 0.3²
            = 0.18 V²
    
    SNR = 2 / 0.18 = 11.1
        = 10·log₁₀(11.1) = 10.5 dB
    
    more SNR = tighter clouds
  7. Pick the nearest point

    The receiver does not know n. It measures the distance from r to each of the four points and picks the nearest: 0.29 V to 00, 1.86 to 10, 2.90 to 11, 2.25 to 01. Nearest is 00, so it outputs bits 00.

    distance = √((rI − I)² + (rQ − Q)²)
    r = (0.84, 1.24)
    
      to 00 (+1, +1)   0.29 V   <- nearest
      to 10 (−1, +1)   1.86 V
      to 11 (−1, −1)   2.90 V
      to 01 (+1, −1)   2.25 V
    
    decision: 00  (correct)
  8. Four regions, split halfway

    Everything nearest to 00 fills a quadrant, bounded halfway between neighbours: I = 0 and Q = 0. So the rule is two signs. In Gaussian noise the nearest point is also the most likely one sent. Here 0 of 200 cross.

    nearest point = check two signs:
      rI ≥ 0 -> first bit 0, else 1
      rQ ≥ 0 -> second bit 0, else 1
    
    equally likely points + Gaussian noise:
    nearest = maximum likelihood
    
    one axis wrong:  p = Q(1/σ) = Q(3.33)
                       = 4.29e-4
    symbol wrong:    1 − (1 − p)² = 0.086 %
    expected in 200: 0.17; this draw: 0
  9. Less SNR, more wrong points

    Double σ to 0.6 V: SNR falls to 2.78 (4.4 dB). The clouds spread and 19 of 200 points cross a line, close to the 9.3 % theory predicts. Symbol 6 sent 10 is read as 11: only one bit wrong.

    σ = 0.6 V:  noise power 2σ² = 0.72 V²
    SNR = 2 / 0.72 = 2.78  (4.4 dB)
    
    one axis wrong:  p = Q(1/0.6) = 4.8 %
    symbol wrong:    1 − (1 − p)² = 9.3 %
    expected in 200: 18.7; this draw: 19
    bits wrong: 19 of 400
    
    symbol 6: sent 10, r = (−1.81, −0.04)
    -> decided 11 (Gray: 1 bit off)
  10. AWGN and decisions in Python

    With numpy: rng.normal(0, 0.3, ...) draws the Gaussian noise, r = s + n adds it, and np.where keeps the sign of each axis, which is the nearest-point decision. Count the rows where d differs from s to get the errors.

    import numpy as np
    rng = np.random.default_rng()
    s = rng.choice([1,-1], (200,2))
    n = rng.normal(0, 0.3, (200,2))
    r = s + n
    d = np.where(r >= 0, 1, -1)
    wrong = (d != s).any(axis=1)
    print(wrong.sum())
    
    expected count: 200 × 0.086 % = 0.17
    with 0.6 instead of 0.3: about 18.7
    (each run differs: the noise is random)
    (Python 3 with numpy)

Quiz Unlocks after the last step.