EE140 HW2 Solution
EE140 HW2 Solution
EE140 HW2 Solution
Solution 1
fs − 2W = 2000 =⇒ fs = 14000
(c) The reconstruction filter should not pick-up frequencies of the images of the spectrum
X(f ). The nearest image spectrum is centered at fs and occupies the frequency band
[fs − W, fs + W ]. Thus the highest frequency of the reconstruction filter (= 10000) should
satisfy
1
10000 ≤ fs − W =⇒ fs ≥ 16000
K · fs = 1 =⇒ K = (16000)−1
The lowpass signal x(t) with a bandwidth of W is sampled at the Nyquist rate and the
signal
∞
(−1)n x(nTs )δ(t − nTs )
P
x1 (t) =
n=−∞
Solution 2
∞ ∞
(−1)n x(nTs )δ(t − nTs ) = x(t) (−1)n δ(t − nTs )
P P
x1 (t) =
n=−∞ n=−∞
∞
P ∞
P
= x(t)[ δ(t − 2lTs ) − δ(t − Ts − 2lTs )]
l=−∞ l=−∞
∞ ∞
X1 (f ) = X(f ) ∗ [ 2T1 s l 1 l
)e−j2πf Ts ]
P P
δ(f − 2Ts
) − 2Ts
δ(f − 2Ts
l=−∞ l=−∞
∞ ∞
1
P l 1
P l −j2π 2Tl Ts
= 2Ts
X(f − 2Ts
) − 2Ts
X(f − 2Ts
)e s
l=−∞ l=−∞
∞ ∞
1 l 1 l
)(−1)l
P P
= 2Ts
X(f − 2Ts
) − 2Ts
X(f − 2Ts
l=−∞ l=−∞
∞
1 1 l
P
= Ts
X(f − 2Ts
− Ts
)
l=−∞
Two binary random variables X and Y are distributed according to the joint distribution
p(X = Y = 0) = p(X = 0, Y = 1) = p(X = Y = 1) = 13 . Compute H(X), H(Y ), H(X|Y ), H(X, Y )
and I(X; Y ).
2
Solution 3
X 2
P (X = 0) = p(X = 0, Y = k) = p(X = 0, Y = 0) + p(X = 0, Y = 1) =
k
3
X 1
p(X = 1) = p(X = 1, Y = k) = p(X = 1, Y = 1) =
k
3
X 1
p(Y = 0) = (X = k, Y = 0) = p(X = 0, Y = 0) =
k
3
X 2
p(Y = 1) = (X = k, Y = 1) = p(X = 0, Y = 1) + p(X = 1, Y = 1) =
k
3
Hence,
X 1 1 2 2
H(X) = − pi log2 pi = −( log2 + log2 ) = .9183
3 3 3 3
X 1 1 2 2
H(Y ) = − pi log2 pi = −( log2 + log2 ) = .9183
3 3 3 3
X 1 1 1 1 1 1
H(X, Y ) = − pi log2 pi = −( log2 + log2 + log2 ) = 1.5850
3 3 3 3 3 3
A signal can be modeled as a lowpass stationary process X(t) whose PDF at any time t0
3
is given in Figure 1.
Figure 1
The bandwidth of this process is 5 KHz, and it is desired to transmit it using a PCM
system.
(a) If sampling is done at the Nyquist rate and a uniform quantizer with 32 levels is employed,
what is the resulting SQNR? What is the resulting bit rate?
(b) If the available bandwidth of the channel is 40 KHz, what is the highest achievable
SQNR?
Solution 4
(a)
0 Z 2
−x + 2
Z
2 x+2
2
E[X (t)] = x( )dx + x2 ( )dx
−2 4 0 4
1 1 2 1 1 2
= ( x4 + x3 )|0−2 + (− x4 + x3 )|20
4 4 3 4 4 3
2
=
3
Hence,
2 2
3 × 4ν × 3
3 × 45 × 3
SQNR = = = 512 = 27.093(db)
x2max 22
(b)
If the available bandwidth of the channel is 40 KHz, then the maximum rate of trans-
4
mission is ν = 40/5 = 8. In this case the highest achievable SQNR is
2
3 × 48 × 3
SQNR = = 32768 = 45.154(db)
22
Show that a pulse having the raised cosine spectrum given by Equation (1) satisfies the
Nyquist criterion given by Equation (2) for any value of the roll-off factor α.
T , 0 ≤ |f | ≤ (1 − α)/2T
T πT 1−α 1−α 1+α
Xrc (f ) = [1 + cos( (|f | − ))] , ≤ |f | ≤ (1)
2 α 2T 2T 2T
1+α
|f | ≥
0 ,
2T
∞
X m
X(f + )=T (2)
m=−∞
T
Solution 5
cos(παt/T )
x(t) = sinc(t/T )
1 − 4α2 t2 /T 2
The function g(t) needs to be checked only for those values of t such that 4α2 t2 /T 2 = 1
or αt = T2 .
5
However,
cos(παt/T ) cos( π2 x)
lim 2 2 2
= lim
αt→ T2 1 − 4α t /T x→1 1 − x
cos( π2 x) π π π
lim = lim sin( x) = < ∞
x→1 1 − x x→1 2 2 2
Hence,
1 n=0
x(nT ) =
0 n 6= 0
Binary PAM is used to transmit information over an unequalized linear filter channel.
When a = 1 is transmitted the noise-free output of the demodulator is
0.3 , m=1
0.9
, m=0
xm = (3)
0.3
, m = −1
0
, otherwise
(b) Determine qm for m = ±2, ±3, by convolving the impulse response of the equalizer with
the channel response
Solution 6
(a)
6
The equivalent discrete-time impulse response of the channel is
1
X
h(t) = hn δ(t − nT ) = 0.3δ(t + T ) + 0.9δ(t) + 0.3δ(t − T )
n=−1
If by cn we denote the coefficients of the FIR equalizer, then the equalized signal is
1
X
qm = cn hm−n
n=−1
0.9 0.3 0 c−1 0
0.3 0.9 0.3 c0 = 1
0 0.3 0.9 c1 0
The coefficients of the zero-force equalizer can be found by solving the previous matrix
equation.
Thus,
c−1 −0.4762
c0 = 1.4286
c1 −0.4762
(b)
The values of qm for m = ±2, ±3 are given by
1
X
q2 = cn h2−n = c1 h1 = −0.1429
n=−1
1
X
q−2 = cn h−2−n = c−1 h−1 = −0.1429
n=−1
1
X
q3 = cn h3−n = 0
n=−1
7
1
X
q−3 = cn h−3−n = 0
n=−1
Find the capacity of an additive white Gaussian noise channel with a bandwidth of 1
N0
MHz, power of 10W, and noise power-spectral density of 2
= 10−9 W/Hz.
Solution 7
The SNR is
2P P 10
SN R = = = −9 6
= 104
N0 2W 2W 10 × 10
Thus the capacity of the channel is
P
C = W log2 (1 + ) = 106 log2 (1 + 10000) ≈ 13.2879 × 106 bits/sec
N0 W
For the channel shown in Figure 2, find the channel capacity and the input distribution that
achieves capacity.
Figure 2
8
Solution 8
X
p(Y = 2) = p(x)p(Y = 2|X = x) = 0.5p + 0.5p = p
Therefore,
C = max[H(Y ) − H(Y |X)] = max(h(p) − 2p)
p p
To find the optimum value of p that maximizes I(X; Y ), we set the derivative of C with
respect to p equal to zero. Thus,
∂C 1 −1
= 0 = − log2 (p) − p + log2 (1 − p) − (1 − p) −2
∂p p ln(2) (1 − p) ln(2)
= log2 (1 − p) − log2 (p) − 2
and therefore
1−p 1−p 1
log2 =2⇒ =4⇒p=
p p 5
9
The capacity of the channel is
1 2
C = h( ) − = 0.7219 − 0.4 = 0.3219bits/transmission
5 5
10