Q-Function Interactive Simulator
Move the slider to see how the "Tail Probability" (the area in red) changes. This red area represents the Probability of Error (BER).
The Math Behind the Q-function
To understand why the BER formula for BPSK is Q(√(2Eb/N0)), we must look at the geometry of the signal and the physics of the noise.
1. What is the "Threshold Distance"?
In a BPSK system, we transmit two possible signal levels. In a simplified model, these are represented as amplitudes:
- Bit 1: +√Eb
- Bit 0: -√Eb
Threshold Distance: This is the distance from the intended signal to the error boundary.
Distance = √Eb - 0 = √Eb.
2. What is N0/2?
Noise in communication channels is modeled as Additive White Gaussian Noise (AWGN). The term N0 represents the one-sided noise power spectral density.
In mathematical modeling, we use the "double-sided" power density, which is N0/2. This value is critical because it defines the variance of the noise distribution:
- Variance (σ²): The total power of the noise, which is N0/2.
- Standard Deviation (σ): The "width" or magnitude of the noise, which is √(N0/2).
3. Deriving the Q-function Argument (x)
The Q-function Q(x) only works for a Standard Normal Distribution (where the spread is 1). To use it for real noise, we must "normalize" our distance by dividing it by the noise's standard deviation (σ).
x = Distance / Noise Magnitude
x = √Eb / √(N0 / 2)
By bringing the "2" up into the numerator, we get the standard argument used in digital communications:
Summary Table
| Term | Symbol | Physical Meaning |
|---|---|---|
| Threshold Distance | √Eb | How much "safety gap" we have before an error occurs. |
| Noise Variance | N0/2 | The total power of the Gaussian noise (σ²). |
| Noise Magnitude | √(N0/2) | The Standard Deviation (σ). It determines how "fat" the noise curve is. |
| Q-function Input | x | The ratio of Distance / Noise. Tells us how many "standard deviations" of noise can fit in our safety gap. |
BPSK: SNR (dB) vs. Q-function Argument (x)
Note that 0 dB does not mean x=1. Because of the factor of 2 in √(2Eb/N0), the argument x is larger than the SNR ratio.
| SNR (dB) | Ratio (Eb/N0) | Q-function Argument (x) | BER Result |
|---|---|---|---|
| -3 dB | 0.5 | x = 1.0 | 0.1587 (15.8%) |
| 0 dB | 1.0 | x = 1.414 (√2) | 0.0786 (7.8%) |
| 3 dB | 2.0 | x = 2.0 | 0.0228 (2.2%) |
| 6 dB | 4.0 | x = 2.828 | 0.0023 (0.2%) |
Summary: If the distance is much larger than the noise magnitude (High SNR), the Q-function argument x becomes large, and the probability of error drops toward zero.