Bit error rate and Eb/N0
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
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.
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اقرأ الدرس خطوة بخطوة
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 VNoise 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 VThe 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 choiceA 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 itBit 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 moreThe 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 chanceEnergy 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 ANoise 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 unitEb/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)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 errorsCheck 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)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01A link sends 2 000 000 bits and 50 of them arrive wrong. What is the bit error rate?
BER = errors ÷ bits sent = 50 / 2 000 000 = 0.000025 = 2.5 × 10⁻⁵.
02Polar bits at ±1 V meet Gaussian noise of spread σ = 0.5 V, and the receiver decides at 0 V. What is the BER?
A sent 1 is wrong when the noise is below −1 V, which is −2σ. That chance is Q(A/σ) = Q(1/0.5) = Q(2) ≈ 0.0228.
03Which change doubles Eb, the energy per bit, at the receiver?
Eb = P / Rb. Doubling P doubles Eb; doubling Rb halves it. Halving N0 doubles Eb/N0, but not Eb itself.
04For BPSK in AWGN, which formula gives the bit error rate?
With a matched filter, (A/σ)² = 2·Eb/N0, so BER = Q(√(2·Eb/N0)) = ½·erfc(√(Eb/N0)).
05Why do engineers compare modulation schemes using Eb/N0 rather than SNR?
SNR = (Eb/N0)·(Rb/B) depends on how bandwidth and bit rate are chosen. Eb/N0 asks how much energy each bit gets compared with the noise, which is a fair comparison between schemes.
المسرد
- Bit error rate (BER)
- Bit errors divided by bits sent. As a probability, the chance that any one bit is decided wrongly.
- Polar signalling / BPSK
- Sending 1 and 0 as two opposite values (+A and −A). BPSK does the same with the two phases of a carrier.
- AWGN
- Additive white Gaussian noise: noise added to the signal, with equal power at every frequency and a Gaussian (bell-curve) spread of values.
- Decision threshold
- The value the receiver compares with; for equally likely ±A in the same noise, 0 V is the best choice.
- Q-function
- Q(x), the chance that a standard Gaussian value is larger than x; Q(x) = ½·erfc(x/√2).
- Eb
- Energy per bit at the receiver, in joules: received power times bit time, Eb = P/Rb.
- N0
- Noise power spectral density, in watts per hertz (the same unit as joules). The thermal floor k·T is about 4 × 10⁻²¹ W/Hz.
- Eb/N0
- Energy per bit over noise density, usually in dB; for BPSK in AWGN, BER = Q(√(2·Eb/N0)).
الملاحظات والمصادر
- Every number in the figure is computed from this model: polar bits at ±1 V, Gaussian noise of spread σ = A/√(2·Eb/N0), decided at 0 V. The 8 bits use one seeded noise draw, picked so exactly one bit flips (8 × 0.0786 = 0.63 flips are expected on average). The plotted dots are a seeded simulation of 10⁶ bits per point.
- Q(√(2·Eb/N0)) holds for two opposite values (BPSK or polar NRZ) with a matched filter in additive white Gaussian noise; other schemes have other curves. Real links also lose a few dB to filters, timing and amplifier noise, so the thermal floor k·T is a best case.
- The Python card was run with numpy 2.4.4: rng = np.random.default_rng(0) and the six lines shown, then print(ber), gave 0.078482.
- J. G. Proakis, M. Salehi, Digital Communications, 5th ed., McGraw-Hill, 2008 (ch. 4: optimum receivers for AWGN channels and their error rate) (book preface page)
- MIT OpenCourseWare 6.02 Introduction to EECS II: Digital Communication Systems (H. Balakrishnan, G. Verghese, Fall 2012): course notes, ch. 9 'Noise'
- MIT OpenCourseWare 6.450 Principles of Digital Communications I (R. Gallager, L. Zheng, Fall 2006)
- Bit error rate (Wikipedia): definition; BER of BPSK in AWGN = Q(√(2Eb/N0))
- Phase-shift keying (Wikipedia): BPSK bit error rate ½·erfc(√(Eb/N0))
- Eb/N0 (Wikipedia): SNR per bit; C/N = (Eb/N0)·(fb/B)
- Q-function (Wikipedia): definition, Q(x) = ½·erfc(x/√2), table of values
- Johnson–Nyquist noise (Wikipedia): available noise power kTΔf, about −174 dBm in 1 Hz
- NumPy documentation: random Generator (default_rng, integers)
- NumPy documentation: numpy.random.Generator.normal (loc = mean, scale = standard deviation)
- Python documentation: math.erfc
اختبار يتاح بعد الخطوة الأخيرة.