ENع
←Bit error rate and Eb/N0
Lesson 65 · Noise, errors and OFDM

Bit error rate and Eb/N0

16 min11 steps5 questionsAdvanced
About this lesson

Noise flips bits, and the bit error rate (BER) says how often. Follow the byte 10110010 as polar ±1 V pulses through Gaussian noise to a receiver that decides at 0 V: one bit flips. The chance of a flip is the tail area Q(A/σ) of a bell curve, and for a matched filter it depends on one number, the energy per bit over the noise density, Eb/N0. You will read the waterfall curve Q(√(2·Eb/N0)) and check it with a numpy simulation. It builds on the lessons on AWGN and decisions, the matched filter, and phase-shift keying, and on the Maths lesson on probability.

You'll learn to

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

Fig 65 · Interactive
01 / 11

Bits become voltages

We send the byte 10110010. The transmitter turns each 1 into +1 V and each 0 into −1 V, one bit at a time. Two opposite values (polar signalling, the same as BPSK) are as far apart as the power allows.

bit 1  ->  +1 V
bit 0  ->  −1 V

sent: 10110010
      +−++−−+−  (volts, one per bit time)

values are at the receiver's decision point,
after its matched filter, scaled so a clean
bit reads exactly ±1 V
Loading figure…
or ← →
Read the lesson step by step
  1. Bits become voltages

    We send the byte 10110010. The transmitter turns each 1 into +1 V and each 0 into −1 V, one bit at a time. Two opposite values (polar signalling, the same as BPSK) are as far apart as the power allows.

    bit 1  ->  +1 V
    bit 0  ->  −1 V
    
    sent: 10110010
          +−++−−+−  (volts, one per bit time)
    
    values are at the receiver's decision point,
    after its matched filter, scaled so a clean
    bit reads exactly ±1 V
  2. Noise adds a random amount

    On the way, noise adds a random number n to each bit (AWGN: additive white Gaussian noise). Here n has spread σ = 0.707 V. Each value lands somewhere on a bell curve around +1 or −1.

    y = ±1 V + n
    
    n: Gaussian, mean 0, spread σ = 0.707 V
       a new, independent draw for every bit
    
    bit 0: +1 + 0.09 = +1.09 V
    bit 1: −1 − 0.88 = −1.88 V
    bit 2: +1 − 1.31 = −0.31 V
    bit 3: +1 − 0.55 = +0.45 V
    bit 4: −1 + 0.04 = −0.96 V
    bit 5: −1 − 0.03 = −1.03 V
    bit 6: +1 + 0.64 = +1.64 V
    bit 7: −1 − 0.27 = −1.27 V
  3. The receiver decides at 0 V

    The receiver cannot see the noise, only y. Halfway between −1 and +1 is the fairest line: above 0 V it says 1, below it says 0. Picking the nearest clean value is the best rule here.

    rule:  y > 0  ->  1
           y < 0  ->  0
    
    bit 0: y = +1.09 V  ->  1
    bit 1: y = −1.88 V  ->  0
    bit 2: y = −0.31 V  ->  0
    bit 3: y = +0.45 V  ->  1
    bit 4: y = −0.96 V  ->  0
    bit 5: y = −1.03 V  ->  0
    bit 6: y = +1.64 V  ->  1
    bit 7: y = −1.27 V  ->  0
    
    equal chances of 0 and 1, same noise on
    both: the 0 V threshold is the best choice
  4. A bit flips

    Bit 2 was sent as 1 (+1 V), but its noise was −1.31 V, so y = −0.31 V and the receiver read 0. Comparing the rows finds 1 error in 8 bits. Nothing in the bit itself shows it went wrong.

    sent:    10110010
    decided: 10010010
               ^     
    
    bit 2: +1 V −1.31 V = −0.31 V  ->  0
    
    errors: 1 in 8
    (expected at this noise: 8 × 0.0786 = 0.63)
    only a check or a code can catch it
  5. Bit error rate

    Bit error rate (BER) = errors ÷ bits sent. One in eight is a rough guess from few bits. Over a million bits at the same noise, the count settles near 0.0786: about 7.9 % of bits flip.

    BER = number of bit errors
          / number of bits sent
    
    8 bits:    1 / 8 = 0.125  (very rough)
    10⁶ bits:  see the counter, ≈ 0.0786
    
    the count of errors is random; its
    spread shrinks like 1/√(errors), so a
    good estimate needs ~100 errors or more
  6. The error chance is a tail area

    A sent 1 is wrong when y falls below 0: the shaded tail of its bell curve. That area is Q(A/σ) = Q(1/0.707) = Q(1.414) = 0.0786. Q(x) is the chance a standard Gaussian exceeds x.

    P(error | 1 sent) = P(n < −A)
                      = Q(A / σ)
    
    Q(x) = chance a standard Gaussian > x
         = ½·erfc(x / √2)
    
    A = 1 V,  σ = 0.707 V
    A / σ = 1.414
    Q(1.414) = 0.0786
    
    sent 0 is the mirror image: same chance
  7. Energy per bit, Eb

    What sets A/σ? On the signal side, the energy one bit carries: Eb = received power × bit time, in joules. Send each bit for twice as long, or with twice the power, and Eb doubles.

    Eb = P × Tb = P / Rb      (joules)
    
    P  = received signal power (W)
    Tb = time of one bit (s)
    Rb = bits per second
    
    example: P = 1 pW at Rb = 1 Mbit/s
      Eb = 10⁻¹² / 10⁶ = 10⁻¹⁸ J
    
    bigger Eb  ->  bigger clean value A
  8. Noise density, N0

    On the noise side: white noise has the same power in every hertz, N0 watts per hertz. Warm electronics alone give about k·T = 4.00 × 10⁻²¹ W/Hz (−174 dBm/Hz). W/Hz is W·s: joules, like Eb.

    N0 = noise power per hertz (W/Hz)
       (two-sided density: N0/2 per hertz)
    
    thermal floor at T = 290 K:
      k·T = 1.380649e-23 × 290
          = 4.00 × 10⁻²¹ W/Hz
          ≈ −174 dBm/Hz
    
    W/Hz = W·s = J: same unit as Eb,
    so Eb/N0 has no unit
  9. Eb/N0 sets the error rate

    A matched filter leaves noise variance σ² = N0/2 when a clean bit reads √Eb. So (A/σ)² = 2·Eb/N0, and BER = Q(√(2·Eb/N0)). Our 0.707 V is Eb/N0 = 1, which is 0 dB.

    matched-filter output: ±√Eb + n
    noise variance σ² = N0 / 2
    
    (A/σ)² = Eb / (N0/2) = 2·Eb/N0
    
    BER = Q(√(2·Eb/N0)) = ½·erfc(√(Eb/N0))
    
    Eb/N0 = 1 = 0 dB:
      σ = 1/√2 = 0.707 V,  BER = 0.0786
    
    unlike SNR, it does not depend on the
    bandwidth: SNR = (Eb/N0)·(Rb / B)
  10. The waterfall curve

    Plot BER against Eb/N0 in dB and the curve falls ever faster. 0 dB gives 0.0786, 4 dB gives 0.0125, and 9.6 dB gives about 9.7 × 10⁻⁶. Near the bottom, one more dB cuts errors several times over.

    Eb/N0      BER = Q(√(2·Eb/N0))
     0 dB      0.0786
     4 dB      0.0125
    9.6 dB      9.7 × 10⁻⁶
    
    +3 dB = twice the energy per bit
    
    the y-axis is logarithmic:
    each grid line is 10 times fewer errors
  11. Check it by simulation

    In Python with numpy: make a million random bits, add Gaussian noise with σ = 0.707, decide at 0 and count. It prints 0.078482, close to Q(√2) = 0.0786. The dots on the plot are the same test at each Eb/N0.

    import numpy as np
    rng = np.random.default_rng(0)
    b = rng.integers(0, 2, 10**6)
    n = rng.normal(0, 0.7071, 10**6)
    y = 2*b - 1 + n
    ber = np.mean((y > 0) != b)
    print(ber)
    
    >>> 0.078482
    
    theory: 0.5*math.erfc(1) = 0.078650
    (Python 3, numpy; math.erfc is in the
     standard library)

Quiz Unlocks after the last step.