Noise and decisions: AWGN, SNR and picking the nearest point
لم يُترجم بعد؛ يُعرض باللغة الإنجليزية
عن هذا الدرس
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).
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)
اقرأ الدرس خطوة بخطوة
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)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 receiverGaussian: 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 bellAdditive, 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 wellMany 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 axisSNR: 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 cloudsPick 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)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: 0Less 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)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)
أسئلة سريعة: 5
اختر إجابة واحدة لكل سؤال. يمكنك تغيير اختياراتك قبل التحقق منها.
01In AWGN, what does "white" mean?
White means a flat power spectrum. For samples this means the noise values are independent of each other. The bell curve is the "Gaussian" part, not the "white" part.
02QPSK points sit at (±1, ±1) V and the noise has σ = 0.5 V on each axis. What is the SNR?
Signal power Es = 1² + 1² = 2 V². Noise power 2σ² = 2 × 0.25 = 0.5 V². SNR = 2 / 0.5 = 4, and 10·log₁₀(4) = 6.0 dB.
03The receiver gets r = (−0.3, 0.8). Which bits does the nearest-point rule pick (first bit = sign of I, second = sign of Q, 0 means +)?
I is negative, so the first bit is 1; Q is positive, so the second bit is 0. The nearest point is (−1, +1), labelled 10.
04Why does the receiver pick the nearest point rather than, say, the point it was expecting?
Gaussian noise makes small moves more likely than big ones, so the closest point is the most likely one sent (maximum likelihood). It does not remove noise, and large noise can still cross a boundary.
05Doubling σ from 0.3 V to 0.6 V changes the SNR by how much?
Noise power 2σ² grows 4 times, so SNR falls 4 times: 10·log₁₀(4) ≈ 6 dB (from 10.5 to 4.4 dB). Symbol errors jump from about 0.086 % to 9.3 %.
المسرد
- AWGN
- Additive white Gaussian noise: noise that adds to the signal (r = s + n), has the same power at every frequency (white), and whose values follow the Gaussian bell curve.
- Gaussian (normal) distribution
- The bell-shaped spread of values with mean 0 and standard deviation σ; about 68 % of values lie within ±σ and 95 % within ±2σ.
- Standard deviation σ
- The typical size of the noise on one axis; its square σ² is the noise power on that axis.
- SNR
- Signal-to-noise ratio: average signal power divided by average noise power; in decibels, 10·log₁₀ of that ratio.
- Decibel (dB)
- A log scale for power ratios: 10 dB is ×10, 3 dB is about ×2, 6 dB is about ×4.
- Decision region
- The set of received points that are decided as one symbol; for nearest-point decisions its edges lie halfway between neighbouring points.
- Maximum likelihood (ML) detection
- Picking the symbol most likely to have produced what was received; with equally likely points in Gaussian noise it is the nearest point.
- Q-function
- Q(x): the chance that a standard Gaussian value is bigger than x; one QPSK axis flips with probability Q(A/σ).
الملاحظات والمصادر
- The amplitude 1 V and the noise σ = 0.3 V and 0.6 V are chosen example values. The 200 symbols are one draw from a seeded random generator; the error rates quoted beside them are exact averages from the Gaussian Q-function. Every number in the figure is computed from this model.
- SNR here is per symbol: Es over the total noise power on I and Q. The next lesson rewrites it per bit as Eb/N0 and plots the bit error rate against it.
- Nearest-point decisions are the best possible (fewest symbol errors) when every point is equally likely and the noise is Gaussian with the same σ on I and Q. With unequal odds or other noise, the best rule shifts.
- J. G. Proakis, Digital Communications, 3rd ed., McGraw-Hill, 1995 (the AWGN channel, optimum detection, error probability of QPSK) (Internet Archive record)
- MIT OpenCourseWare 6.450 Principles of Digital Communications I (R. Gallager, L. Zheng): detection, PAM and QAM
- MIT OpenCourseWare 6.02 Introduction to EECS II: Digital Communication Systems (H. Balakrishnan, G. Verghese)
- Additive white Gaussian noise (Wikipedia): additive, white (flat spectrum), Gaussian (normal, zero mean)
- Johnson–Nyquist noise (Wikipedia): thermal noise is approximately white and nearly Gaussian
- Signal-to-noise ratio (Wikipedia): signal power over noise power, 10·log₁₀ in decibels
- 68–95–99.7 rule (Wikipedia): 68.27 % within ±1σ, 95.45 % within ±2σ
- Q-function (Wikipedia): definition and table of values
- Constellation diagram (Wikipedia): noise clouds, closest-point (maximum likelihood) detection, boundaries halfway between points
- Phase-shift keying (Wikipedia): QPSK, Gray coding, Ps = 1 − (1 − Pb)²
- NumPy documentation: numpy.random.Generator.normal
- NumPy documentation: numpy.random.Generator.choice
- NumPy documentation: numpy.where
اختبار يتاح بعد الخطوة الأخيرة.