EE140 HW3 Solution
EE140 HW3 Solution
M
0 1 X
sm (t) = sm (t) − sk (t), 1 ≤ m ≤ M, 0 ≤ t ≤ T
M k=1
0
Show that the M signal waveform sm (t) have equal energy, given by
0
ε = (M − 1)ε/M
Solution 1
0
The energy of the signal waveform sm (t) is
1
Z ∞ M
Z ∞
0 0 2 1 X
ε = |sm (t)| dt = |sm (t) − sk (t)|2 dt
−∞ −∞ M k=1
Z ∞ M X M Z ∞
1 X
= s2m (t)dt + 2 sk (t)sl (t)dt
−∞ M k=1 l=1 −∞
M Z M Z
1 X ∞ 1 X ∞
− sm (t)sk (t)dt − sm (t)sl (t)dt
M k=1 −∞ M l=1 −∞
M M
1 XX 2
=ε + 2 εδkl − ε
M k=1 l=1 M
1 2
=ε + ε− ε
M M
M −1
=( )ε
M
M
ε
1
=−
M −1
Apply the Gram-Schmidt procedure to find a set orthonormal basis functions corre-
sponding to the four signals s1 (t), s2 (t), s3 (t), s4 (t) illustrated in Figure 1, and express them
in terms of the orthonormal basis functions you found.
2
Figure 1
Solution 2
√
The waveform s1 (t) has energy ε1 = 2, so that ψ1 (t) = s1 (t)/ 2. Next, we observe that
√ √
c21 = 0, so that ψ1 (t) and s2 (t) are orthogonal. Therefore, ψ2 (t) = s2 (t)/ ε2 = s2 (t)/ 2.
√
To obtain c31 and c32 , which are c31 = 0 and c32 = − 2. Hence,
√
d3 (t) = s3 (t) + 2ψ2 (t)
Thus, s4 (t) is a linear combination of ψ1 (t) and ψ3 (t), and consequently, the dimension-
ality of the signal set is N = 3.
The functions ψ1 (t), ψ2 (t) and ψ3 (t) are shown as follows:
Therefore, we can express s1 (t), s2 (t), s3 (t) and s4 (t) in terms of ψ1 (t), ψ2 (t) and ψ3 (t)
as:
√ √ √ √
s1 = ( 2, 0, 0), s2 = (0, 2, 0), s3 = (0, − 2, 1), s4 = ( 2, 0, 1)
3
Problem 3 (20 points)
s0 (t) = 0, 0 ≤ t ≤ T
s1 (t) = A, 0 ≤ t ≤ T
for transmitting the information. This is called on-off signaling. The demodulator crosscor-
relates the received signal r(t) with s1 (t) and samples the output of the correlator at t =
T.
(a) Determine the optimum detector for an AWGN channel and the optimum threshold,
assuming that the signals are equally probable.
(b) Determine the probability of error as a function of the SNR.
Solution 3
4
Assuming that s(t) has unit energy, then the sampled outputs of the crosscorrelators are
r = sm + n, m = 0, 1
√
where s0 = 0, s1 = A T and the noise term n is a zero-mean Gaussian random variable
N0
with variance σn2 = 2
.
The probability density function for the sampled output is
1 −r
2
f (r|s0 ) = √ e N0
πN0
√
1 (r−A T )2
−
f (r|s1 ) = √ e N0
πN0
Since the signals are equally probable, the optimal detector decides in favor of s0 if
or equivalently
1 √
r ≷ss10 A T
2
√
The optimal threshold is 21 A T .
(b)
5
The average probability of error is
1 1
P (e) = P (e|s0 ) + P (e|s1 )
2 2
Z ∞ Z 1 √
1 1 2A T
= f (r|s0 )dr + f (r|s1 )dr
2 21 A√T 2 −∞
Z 1 √ √
1 ∞ 1 2A T 1 (r−A T )2
Z
1 r2
−N −
= √ e 0 dr + √ e N 0 dr
2 21 A√T πN0 2 −∞ πN0
Z 1q 2 √
1 ∞ 1 − 2 N0 A T 1 − x 2
Z
1 − x2
= √ e 2 dx + √ e 2 dx
2 21 q N2 A√T 2π 2 −∞ 2π
r 0
1 2 √
=Q[ A T]
2 N0
r
SN R
=Q[ ]
2
Suppose that binary PSK is used for transmitting information over an AWGN with power-
spectral density of N0 /2 = 10−10 W/Hz. The transmitted signal energy is εb = A2 T /2, where
T is the bit interval and A is the signal amplitude. Determine the signal amplitude required
to achieve an error probability of 10−6 , if the data rate is (a) 10 kbps (b) 100 kbs (c) 1 Mbps
Solution 4
If the data rate is 10 Kbps, then the bit interval is T = 10−4 and therefore, the signal
6
amplitude is
√
A= 44.9352 × 10−10 × 104 = 6.7034 × 10−3
Similarly we find that when the rate is 105 bps and 106 bps, the required amplitude of
the signal is A = 2.12 × 10−2 and A = 6.703 × 10−2 respectively.
r = ±A + n
where +A and −A occur with equal probability and the noise variable n is characterized
by the (Laplacian) pdf shown in Figure 2.
Figure 2
Solution 5
(a)
The PDF of the noise n is
λ −λ|n|
f (n) = e
2
7
The optimal receiver uses the criterion
f (r|A)
= e−λ[|r−A|−|r+A|] ≷A A
−A 1 ⇒ r ≷−A 0
f (r| − A)
1 1
P (e) = P (e|A) + P (e| − A)
2Z 2
0
1 ∞
Z
1
= f (r|A)dr + f (r| − A)dr
2 −∞ 2 0
1 0 λ −λ|r−A| 1 ∞ λ −λ|r+A|
Z Z
= e dr + e dr
2 −∞ 2 2 0 2
λ −A −λ|x| λ ∞ −λ|x|
Z Z
= e dx + e dx
4 −∞ 4 A
λ 1 λx −A λ 1
= e |−∞ + (− )e−λx |∞ A
4λ 4 λ
1
= e−λA
2
1 √ 2 2 1 √
P (e) = e− λ A = e− 2SN R
2 2
8
If the noise was Gaussian, then
√
r
2εb
P (e) = Q[ ] = Q[ SN R]
N0
where SNR is the signal to noise ratio at the output of the matched filter. With P (e) =
−5
√
10 we find SN R = 4.26 and therefore SN R = 18.1476 = 12.594dB. Thus the required
signal to noise ratio is 5 dB less when the additive noise is Gaussian.
Figure 3
Solution 6
T 3
where we have used the fact that s(t) is even with respect to the t = 2
= 2
axis.
(b)
9
The output of the matched filter is
0 t<0
A2 t 0≤t<1
A2 (2 − t) 1≤t<2
Z t 2A2 (t − 2)
2≤t<3
y(t) = s(t) ∗ s(t) = s(τ )s(t − τ )dτ
0
2A2 (4 − t) 3≤t<4
2
A (t − 4) 4≤t<5
A2 (6 − t) 5≤t<6
6≤t
0
10