Assignment 5
Assignment 5
Spring-2025
Instructions:
• All questions are compulsory.
• Clearly state the assumptions (if any) made that are not specified in the questions.
Cautions:
• One late homework assignment is allowed without penalty.
2. Consider a case of binary transmission via polar signaling that uses half-width
rectangular pulses of amplitudes A/2 and −A/2. The data rate is Rb bit/s.
(a) What is the minimum transmission bandwidth and the transmitted power.
(b) This data is to be transmitted by M -ary rectangular half-width pulses of am-
plitudes
A 3A 5A (M − 1)
± ,± ,± ,...,± A
2 2 2 2
Note that to maintain about the same noise immunity, the minimum pulse
amplitude separation is A. If each of the M -ary pulses is equally likely to
occur, show that the transmitted power is
(M 2 − 1)A2
P =
24 log2 M
Also determine the transmission bandwidth.
3. Binary data is transmitted over a certain channel at a rate Rb bit/s. To reduce the
transmission bandwidth, it is decided to use 16-ary PAM signaling to transmit this
data.
1
4. MATLAB - Simulate a binary communication system over an AWGN channel where
two deterministic signals s0 = −A and s1 = +A are transmitted with prior proba-
bilities π0 and π1 , respectively. The received signal is given by
r = si + n, where n ∼ N (0, σ 2 ).
(a) Implement both the MAP and ML decision rules for a fixed SNR.
(b) Simulate the transmission of 106 bits and compute the empirical probability
of error under both rules.
Note: You may assume A = 1 and σ 2 = 1 (i.e., SNR = 0 dB) for simplicity.
The noise random variables n0 and n1 are zero-mean, independent Gaussian random
variables with variance σ 2 .
Use Monte Carlo simulation to generate 100 samples of (r0 , r1 ) for each value of
σ = 0.1, σ = 0.3, and σ = 0.5. Plot these 100 samples for each σ on different
two-dimensional plots. The energy E of the signal may be normalised to unity.
(a) What do you think, what kind of detector can be used for this kind of binary
communication?
(b) What will be the effect of increasing noise variance (decreasing SNR) on the
detector?
2
6. (a) MATLAB - 4-PAM Mapping Function
Write a function fourpammap that maps two 0/1 bits to a symbol in the 4-PAM
constellation. The 4-PAM constellation consists of the symbols {±1, ±3}.
• Input: Two 0/1 bits.
• Output: A symbol taking one of the following values: {±1, ±3}.
(b) Bit Error Probability for 4-PAM
Using the nearest neighbors approximation, the ideal bit error probability for
Gray-coded 4-PAM is given by:
√
4Eb
Pe = Q √
5 N0