What does a higher Signal-to-Noise Ratio (SNR) indicate about a communication channel?
Think about what it means when the signal is stronger compared to noise.
A higher SNR means the signal power is greater than the noise power, which improves the clarity and quality of the communication.
Given the signal power is 50 mW and noise power is 5 mW, what is the SNR in decibels (dB)?
Use the formula: SNR(dB) = 10 * log10(signal_power / noise_power)
import math signal_power = 50 # mW noise_power = 5 # mW snr_db = 10 * math.log10(signal_power / noise_power) print(f"{snr_db:.2f}")
Calculate the ratio first, then apply 10 times the log base 10.
SNR(dB) = 10 * log10(50/5) = 10 * log10(10) = 10 * 1 = 10 dB.
Given a received signal array with noise added, what is the mean power of the noise component?
Signal: [2, 3, 4, 5, 6]
Received: [2.5, 3.2, 3.8, 5.1, 5.9]
Noise = Received - Signal
import numpy as np signal = np.array([2, 3, 4, 5, 6]) received = np.array([2.5, 3.2, 3.8, 5.1, 5.9]) noise = received - signal noise_power = np.mean(noise**2) print(f"{noise_power:.3f}")
Calculate noise by subtracting signal from received, then find mean of squared noise values.
Noise array is [0.5, 0.2, -0.2, 0.1, -0.1]. Squared noise: [0.25, 0.04, 0.04, 0.01, 0.01]. Mean = (0.25+0.04+0.04+0.01+0.01)/5 = 0.07.
Which plot correctly shows the original signal and noise components separately?
import matplotlib.pyplot as plt import numpy as np signal = np.array([1, 2, 3, 4, 5]) noise = np.array([0.1, -0.2, 0.3, -0.1, 0]) received = signal + noise plt.plot(signal, label='Signal') plt.plot(noise, label='Noise') plt.legend() plt.show()
Think about how signal and noise values vary over time.
The code plots signal as a smooth increasing line and noise fluctuates around zero, which matches option A.
What error will this code produce when calculating SNR?
import numpy as np signal_power = np.array([10, 20, 30]) noise_power = np.array([2, 0, 5]) snr_db = 10 * np.log10(signal_power / noise_power) print(snr_db)
Look at the noise_power array and check for zero values.
Noise power contains zero, so division by zero occurs causing a RuntimeWarning.
