BER vs Eb/N0 Simulation
*Changes update the plot in real-time.
Mathematical Background
The Bit Error Rate (BER) is the probability that a bit is misidentified due to noise. We plot this against $E_b/N_0$ (Energy per bit to noise power spectral density ratio).
1. Energy Conversion
For M-ary modulations, each symbol carries $k = \log_2(M)$ bits. The Symbol Energy ($E_s$) relates to Bit Energy ($E_b$) as:
Es/N0 = (Eb/N0) × log2(M)
2. The Complementary Error Function
Errors in Gaussian noise (AWGN) are calculated using the erfc(x) function. It is related to the Q-function by: Q(x) = ½ erfc(x/√2).
3. Modulation Formulas
M-ary PSK:
BER ≈ (1 / log₂M) × erfc( √(Es/N0) × sin(Ï€/M) )
BER ≈ (1 / log₂M) × erfc( √(Es/N0) × sin(Ï€/M) )
M-ary QAM (Square):
BER ≈ [ 2(1 - 1/√M) / log₂M ] × erfc( √( 1.5 × Es/N0 / (M - 1) ) )
BER ≈ [ 2(1 - 1/√M) / log₂M ] × erfc( √( 1.5 × Es/N0 / (M - 1) ) )
Binary ASK (On-Off Keying):
BER = ½ erfc( √(Eb/4N0) )
BER = ½ erfc( √(Eb/4N0) )
Binary FSK (Coherent):
BER = ½ erfc( √(Eb/2N0) )
BER = ½ erfc( √(Eb/2N0) )