Digital modulation

Lecture 7 · Signal Processing for Communications · University of Klagenfurt, 2019

Nunzio Alexandro Letizia

This lecture

Lecture 7 of 7

  1. Signals as vectors: orthonormal bases, Gram-Schmidt, constellations
  2. The optimal receiver: MAP, ML and the irrelevance theorem
  3. The probability of error, binary and M-ary

From Signal Processing for Communications at the University of Klagenfurt, which I taught in winter 2019: this is that edition, rebuilt for the web, so some of it may be a little dated. All lectures.

Signal space

01

Digital modulation: basics

a_k 010011111 Modulator x_k(t) Channel + noise w(t) y(t) Receiver \hat a_k

  • The symbol to transmit is a_k. It belongs to an alphabet A of cardinality M, and \log_2M is the number of bits each symbol carries.
  • ASK, FSK and PSK are examples of digital modulation: they differ in the association a_k\to x_k(t).
  • The receiver chooses \hat a_k to minimize the probability of error, that is the most probable symbol given what it received:

\hat a_k=\arg\max_{b\in A}P\left[a_k=b\mid y\right]

Orthonormal basis

Let \varphi_i(t), i=1,\dots,I, be an orthonormal basis in the space L^2 of finite-energy (complex) signals. The inner product is

\langle\varphi_i,\varphi_j\rangle=\int_{-\infty}^{+\infty}\varphi_i(t)\,\varphi_j^*(t)\,dt=\delta_{ij}

and the norm is \|x\|=\sqrt{\langle x,x\rangle}, the square root of the energy.

Pythagorean theorem. If x and y are orthogonal,

\|x+y\|^2=\|x\|^2+\|y\|^2

Cauchy-Schwarz inequality.

\left|\langle x,y\rangle\right|\le\|x\|\,\|y\|

with equality if and only if y=kx.

A vector x in the plane of two orthonormal directions, with dotted lines down to its two projections, the inner products of x with phi 1 and phi 2.

Vector representation

A finite-energy signal x(t) can be represented as a linear combination of the orthonormal basis:

x(t)=\sum_{i=1}^{I}x_i\,\varphi_i(t)+e(t),\qquad x_i=\int_{-\infty}^{+\infty}x(t)\,\varphi_i^*(t)\,dt=\langle x,\varphi_i\rangle

x_i is the projection of x(t) in the direction of \varphi_i(t). If e(t) is zero, the basis is complete for x.

For a set of signals x_k(t), k=1,\dots,M, we look for a complete orthonormal basis \varphi_i(t), i=1,\dots,I\le M, that represents all of them:

x_k(t)=\sum_{i=1}^{I}\langle x_k,\varphi_i\rangle\,\varphi_i(t)

Gram-Schmidt

Each x_k(t) is then equivalent to its vector of coefficients, x_k(t)\leftrightarrow[x_{k,1},x_{k,2},\dots,x_{k,I}]. The Gram-Schmidt procedure finds the basis:

\varphi_1(t)=\frac{x_1(t)}{\|x_1\|}

\tilde x_2(t)=x_2(t)-\langle x_2,\varphi_1\rangle\,\varphi_1(t),\qquad\varphi_2(t)=\frac{\tilde x_2(t)}{\|\tilde x_2\|}

\tilde x_3(t)=x_3(t)-\langle x_3,\varphi_1\rangle\,\varphi_1(t)-\langle x_3,\varphi_2\rangle\,\varphi_2(t),\qquad\varphi_3(t)=\frac{\tilde x_3(t)}{\|\tilde x_3\|}

By construction the \varphi_i are orthonormal. If a residual \tilde x_n(t) is zero, x_n is a combination of the previous signals: it adds no basis function, and the procedure goes on with x_{n+1}. It ends after all M signals, so I\le M.

The vector x2 split into its projection along phi 1, the direction of x1, and the residual x2 tilde, perpendicular to it, which gives the direction of phi 2.

Constellations

In summary,

x_k(t)\leftrightarrow[x_{k,1},x_{k,2},\dots,x_{k,I}],\qquad x_{k,i}=\langle x_k,\varphi_i\rangle,\qquad x_k(t)=\sum_{i=1}^{I}\langle x_k,\varphi_i\rangle\,\varphi_i(t)

The coefficients of the orthonormal expansion define M vectors of I components. Each signal can be drawn as a point of the signal space: these points are the constellation of the modulation scheme.

Ex. 1

  1. Let x_1(t)=\mathrm{rect}\left(\frac{t-2}{4}\right), x_2(t)=-x_1(t), x_3(t)=\mathrm{rect}\left(\frac{t-1}{2}\right)-\mathrm{rect}\left(\frac{t-3}{2}\right) and x_4(t)=-x_3(t). Find an orthonormal basis \varphi_i(t) for the x_k(t) and draw the constellation diagram.
  2. Let x_1(t)=V_0\sin\left(2\pi\frac tT\right)\mathrm{rect}\left(\frac{t-T/2}{T}\right) and x_2(t)=V_0\sin\left(2\pi\frac tT\right)\mathrm{rect}\left(\frac{t-T/4}{T/2}\right). Find an orthonormal basis \varphi_i(t) for the x_k(t) and draw the constellation diagram.
  3. Compare binary PAM and binary PPM in terms of constellation diagram.

Ex. 1: solutions

1. x_1=1 on [0,4]; x_3=+1 on [0,2] and -1 on [2,4].

\|x_1\|^2=4\ \Rightarrow\ \varphi_1(t)=\tfrac12\mathrm{rect}\left(\tfrac{t-2}{4}\right),\qquad\tilde x_2=x_2+2\varphi_1=0:\ \text{no new direction}

\langle x_3,\varphi_1\rangle=\tfrac12(2-2)=0\ \Rightarrow\ \tilde x_3=x_3,\ \|x_3\|^2=4,\ \varphi_2(t)=\tfrac12x_3(t),\qquad\tilde x_4=x_4+2\varphi_2=0

So I=2, with x_1\leftrightarrow(2,0), x_2\leftrightarrow(-2,0), x_3\leftrightarrow(0,2), x_4\leftrightarrow(0,-2): four points on the axes, E_s=4, d_{\min}=2\sqrt2, a QPSK rotated by 45^\circ.

The four waveforms: x1 a unit pulse on 0 to 4, x2 its negative, x3 plus one then minus one, x4 its negative; and the constellation, four points on the axes at distance 2 from the origin.

My notes have no solution to this one: it is added for the web version.

Ex. 1: solutions, continued

2. x_1 is a full sine period on [0,T], x_2 its first half. With E=\frac{V_0^2T}{2}:

\|x_1\|^2=E,\quad\varphi_1=\frac{x_1}{\sqrt E},\qquad\langle x_2,x_1\rangle=V_0^2\int_0^{T/2}\sin^2\left(2\pi\tfrac tT\right)dt=\frac E2\ \Rightarrow\ \langle x_2,\varphi_1\rangle=\frac{\sqrt E}{2}

\tilde x_2=x_2-\tfrac12x_1=\tfrac{V_0}{2}\sin\left(2\pi\tfrac tT\right)\left[\mathrm{rect}\left(\tfrac{t-T/4}{T/2}\right)-\mathrm{rect}\left(\tfrac{t-3T/4}{T/2}\right)\right],\quad\|\tilde x_2\|=\frac{\sqrt E}{2},\quad\varphi_2=\frac{2\tilde x_2}{\sqrt E}

So x_1\leftrightarrow(\sqrt E,0) and x_2\leftrightarrow\left(\frac{\sqrt E}{2},\frac{\sqrt E}{2}\right): 45^\circ apart, d=\|x_1-x_2\|=\sqrt{E/2}. \varphi_2 is the full-wave rectified sine \sqrt{2/T}\,|\sin(2\pi t/T)| on [0,T].

A full sine period x1, its first half x2, the basis function phi 2 shaped as a rectified sine, and the constellation: x1 on the first axis, x2 at 45 degrees with half its length on each axis.

My notes have no solution to this one: it is added for the web version.

Ex. 1: solutions, continued

3. Binary PAM: x_{1,2}(t)=\pm p(t), with \|p\|^2=E_s. Binary PPM: x_1(t)=p(t) and x_2(t)=p(t-T/2), the same pulse in one of two disjoint half-slots.

  • PAM is antipodal: I=1, x_{1,2}=\pm\sqrt{E_s}, d=2\sqrt{E_s}.
  • PPM is orthogonal: \langle x_1,x_2\rangle=0, so I=2, x_1=(\sqrt{E_s},0), x_2=(0,\sqrt{E_s}), d=\sqrt{2E_s}.

Same energy per symbol, but d^2 is twice as large for PAM: in noise (see the probability of error below) PAM needs 3 dB less E_s/N_0 for the same P_e, Q\left(\sqrt{2E_s/N_0}\right) against Q\left(\sqrt{E_s/N_0}\right). PPM spends a second dimension, twice the bandwidth, for nothing in the binary case. Item 1 is PAM on two orthogonal axes.

Left, binary PAM: two points at minus and plus root Es on one axis, distance 2 root Es. Right, binary PPM: one point on each axis at root Es, distance root 2Es.

My notes have no solution to this one: it is added for the web version.

The optimal receiver

02

Estimation basics

Maximum a posteriori (MAP) criterion: \ \arg\max_{\hat\alpha}P\left[x=\hat\alpha\mid y=\beta\right]. With Bayes,

P\left[x=\hat\alpha\mid y=\beta\right]=\frac{P\left[y=\beta\mid x=\hat\alpha\right]\cdot P\left[x=\hat\alpha\right]}{P[y=\beta]}

and the denominator does not depend on \hat\alpha, so

\mathbf{MAP}:\ \arg\max_{\hat\alpha}P\left[y=\beta\mid x=\hat\alpha\right]\cdot P\left[x=\hat\alpha\right]

Maximum likelihood (ML) criterion:

\mathbf{ML}:\ \arg\max_{\hat\alpha}P\left[y=\beta\mid x=\hat\alpha\right]

If the input symbols are equiprobable, MAP = ML.

Example 1. Y=X+N, with X,N\in\{0,1\} independent, p_N(0)=\frac12 and p_X(0)=\frac34. Find P_e.

Example 1: solution

Y\in\{0,1,2\}. The joint probabilities P[X=\alpha,Y=\beta]=p_X(\alpha)\,p_N(\beta-\alpha) are

P[0,0]=\tfrac38,\qquad P[0,1]=\tfrac38,\qquad P[1,1]=\tfrac18,\qquad P[1,2]=\tfrac18

MAP decides \hat x=0 for y=0, \hat x=1 for y=2, and for y=1 the larger of \frac38 and \frac18, so \hat x=0. The only error is X=1, Y=1:

P_e^{MAP}=p_X(1)\,p_N(0)=\frac14\cdot\frac12=\frac18

ML ignores the prior: at y=1 both likelihoods are \frac12, a tie. Breaking it with a fair coin gives P_e^{ML}=\frac12P[Y=1]=\frac14, worse than MAP, because the symbols are not equiprobable.

My notes have no solution to this one: it is added for the web version.

The irrelevance theorem

Noise affects the transmission, r_k(t)=x_k(t)+w(t). Let w(t) be additive white Gaussian noise (AWGN) with two-sided PSD \frac{N_0}{2}. It can be decomposed as w(t)=w_\parallel(t)+w_\perp(t), where

w_\parallel(t)=\sum_{i=1}^{I}\langle w,\varphi_i\rangle\,\varphi_i(t)

is the noise in the signal space, and w_\perp the rest, independent of it and of the signal. Then

x_k(t)\leftrightarrow[x_{k,1},x_{k,2},\dots,x_{k,I}]=X,\qquad w_\parallel(t)\leftrightarrow[w_1,w_2,\dots,w_I]=N

are sufficient statistics for the optimal decision: w_\perp is irrelevant. The components w_i are i.i.d. Gaussian, with zero mean and variance \sigma^2=\frac{N_0}{2}.

Example 2: ML with AWGN. If Y=X+N, with X and N the signal-space vectors above, and N has i.i.d. Gaussian components, then \ \mathbf{ML}:\ \arg\max_{\hat\alpha}f_{Y|X}(\beta\mid\hat\alpha) is the \hat\alpha with \|\beta-\hat\alpha\| minimum.

Example 2: solution

f_{Y|X}(\beta\mid\hat\alpha)=f_N(\beta-\hat\alpha)=\frac{1}{(2\pi\sigma^2)^{I/2}}\exp\left(-\frac{\|\beta-\hat\alpha\|^2}{2\sigma^2}\right)

The exponential is strictly decreasing in \|\beta-\hat\alpha\|^2, so

\arg\max_{\hat\alpha}f_{Y|X}(\beta\mid\hat\alpha)=\arg\min_{\hat\alpha}\|\beta-\hat\alpha\|^2

The ML receiver in AWGN is the minimum distance receiver: the decision region of each point is the set of points of the plane closest to it.

The result is on my slides; the one-step proof is added for the web version.

The probability of error

03

Probability of error, M=2

In the model y=x+w, with M=2 (binary modulation), equiprobable symbols, the minimum distance (ML) decision, and w i.i.d. Gaussian with zero mean and variance \sigma^2 per component, the probability of error at the receiver is

P_e=Q\left(\frac{d}{2\sigma}\right)

where q=x_2-x_1 and d=\|q\|.

The decision boundary is the perpendicular bisector of the segment from x_1 to x_2: an error happens when the noise component along q, w_c, carries y across it, farther than \frac d2.

Two constellation points x1 and x2, the dashed segment between them of length d, and the decision boundary, its perpendicular bisector. From x1, the noise w moves the received point y; w c is the part of w along the segment.

Probability of error, M=2: the proof

P_e=P\left[\hat x\ne x\mid x=x_1\right]P\left[x=x_1\right]+P\left[\hat x\ne x\mid x=x_2\right]P\left[x=x_2\right]

=P\left[\|y-x_1\|>\|y-x_2\|\mid x=x_1\right]P\left[x=x_1\right]+P\left[\|y-x_2\|>\|y-x_1\|\mid x=x_2\right]P\left[x=x_2\right]

By symmetry the two conditional probabilities are equal, P_1=P_2, so it is enough to compute one:

P_1=P\left[\|w\|>\|w+x_1-x_2\|\right]=P\left[\|w\|>\|w-q\|\right]=P\left[\|w\|^2>\|w\|^2+\|q\|^2-2\langle w,q\rangle\right]=P\left[\langle w,q\rangle>\frac{d^2}{2}\right]

z=\langle w,q\rangle is Gaussian, with zero mean and variance \sigma^2\sum_iq_i^2=\sigma^2d^2, therefore

P_e=P_1=P\left[\frac{z}{\sigma d}>\frac{d}{2\sigma}\right]=Q\left(\frac{d}{2\sigma}\right)\qquad\blacksquare

Binary modulations: the signals

On 0\le t\le T, with k an integer and \theta the carrier phase, every waveform has energy A^2\frac T2:

  • B-ASK: \ x_1(t)=A\sin\left(2\pi k\frac tT+\theta\right), \|x_1\|=A\sqrt{\frac T2}=\sqrt{E_s}; \ x_2(t)=\alpha x_1(t), \|x_2\|=\alpha\sqrt{E_s}
  • B-PSK: \ x_1(t)=A\sin\left(2\pi k\frac tT+\theta\right), \ x_2(t)=A\sin\left(2\pi k\frac tT+\theta+\pi\right)=-x_1(t), both of norm \sqrt{E_s}
  • B-FSK: \ x_i(t)=A\sin\left(2\pi k_i\frac tT+\theta\right), i=1,2, with integers k_1\ne k_2, which makes them orthogonal; both of norm \sqrt{E_s}

Three waveforms over two symbol periods: B-ASK, a sine at full then at half amplitude; B-PSK, a sine that flips phase by pi at T; B-FSK, a sine whose frequency doubles at T.

Binary modulations: the error

With \sigma^2=\frac{N_0}{2}, \ \frac{d}{2\sigma}=\frac{d}{\sqrt{2N_0}}, and P_e=Q\left(\frac{d}{2\sigma}\right) gives

\text{B-ASK: }d=(1-\alpha)\sqrt{E_s},\quad P_e=Q\left((1-\alpha)\sqrt{\frac{E_s}{2N_0}}\right)

\text{B-PSK: }d=2\sqrt{E_s},\quad P_e=Q\left(\sqrt{\frac{2E_s}{N_0}}\right)\qquad\qquad\text{B-FSK: }d=\sqrt{2E_s},\quad P_e=Q\left(\sqrt{\frac{E_s}{N_0}}\right)

B-PSK is 3 dB better than B-FSK; B-ASK, at the same peak energy, is worse than both for any 0\le\alpha<1.

The three constellations: B-ASK, two points on one axis at alpha root Es and root Es; B-PSK, two points at minus and plus root Es; B-FSK, one point on each of two axes, distance root 2Es.

Probability of error, M-ary

From the probability axioms,

P[A],\,P[B]\le P[A\cup B]\le P[A]+P[B]

and the following bounds hold:

\frac{N_{\min}}{M}Q\left(\frac{d_{\min}}{2\sigma}\right)\le P_e\le(M-1)\,Q\left(\frac{d_{\min}}{2\sigma}\right)

where d_{\min}=\min_{i\ne j}d_{ij}, with d_{ij}=\|x_i-x_j\|, and N_{\min} is the number of points that have at least one neighbour at distance d_{\min}.

The upper one is the union bound: an error on x_i means crossing towards at least one of the other M-1 points, each crossing no more likely than Q\left(\frac{d_{\min}}{2\sigma}\right).

Example 3: QPSK

4-PSK, or QPSK: \ x_n(t)=A\sin\left(2\pi k\frac tT+\frac{(2n+1)\pi}{4}\right), n=0,\dots,3, with \|x_n\|=A\sqrt{\frac T2}=\sqrt{E_s}.

Find the constellation and P_e, and compare it with the bounds.

Example 3: solution

A unit-norm basis on [0,T]:

\varphi_1(t)=\sqrt{\tfrac2T}\cos\left(2\pi k\tfrac tT\right),\qquad\varphi_2(t)=\sqrt{\tfrac2T}\sin\left(2\pi k\tfrac tT\right)

x_n\leftrightarrow\sqrt{E_s}\left(\sin\tfrac{(2n+1)\pi}{4},\ \cos\tfrac{(2n+1)\pi}{4}\right)=\left(\pm\sqrt{\tfrac{E_s}{2}},\ \pm\sqrt{\tfrac{E_s}{2}}\right)

d_{\min}=\sqrt{2E_s},\qquad\frac{d_{\min}}{2\sigma}=\sqrt{\frac{E_s}{N_0}}

The decision regions are the quadrants: each coordinate is decided by its sign, independently, wrong with probability p=Q\left(\sqrt{E_s/N_0}\right).

The QPSK constellation: four points at plus or minus root of Es over 2 on each axis, labelled 11, 01, 00 and 10; the quadrant of 11 is shaded as its decision region; the distance between neighbours is root 2Es.

Example 3: solution, continued

P_e=1-P_c=1-\sum_{i=1}^{M}\frac1MP\left[\hat x=x\mid x=x_i\right]=1-\left(1-Q\left(\sqrt{\frac{E_s}{N_0}}\right)\right)^2=2Q\left(\sqrt{\frac{E_s}{N_0}}\right)-Q^2\left(\sqrt{\frac{E_s}{N_0}}\right)

With E_b=\frac{E_s}{2} per bit, the same is 1-\left(1-Q\left(\sqrt{2E_b/N_0}\right)\right)^2. Every point has neighbours at d_{\min}, so N_{\min}=M=4, and the bounds read

Q\left(\sqrt{\frac{E_s}{N_0}}\right)\le P_e\le3\,Q\left(\sqrt{\frac{E_s}{N_0}}\right)

The exact value sits just under 2Q: each point has two nearest neighbours.

Corrected from my 2019 slide, which normalized the basis by \frac{1}{\sqrt{E_s}} (not unit norm), put the points at \pm\sqrt{E_s}, and gave P_e with Q\left(\sqrt{2E_s/N_0}\right), right only if E_s there means the energy per bit.

Assignment 7

Find a closed-form expression for the error probability of an 8-PSK and compare it with the upper bound of the previous slides.

x_n=e^{j2\pi\frac nM},\qquad n=0,1,\dots,7\quad(M=8)

Assignment 7: the solution

Scale the points to \|x_n\|=\sqrt{E_s}. By symmetry P_e=P\left[\text{error}\mid x_0\right], and the ML region of x_0 is the wedge |\arg y|<\frac\pi M. The exact result, in Craig’s form, is a finite-range integral:

P_e=\frac1\pi\int_0^{\frac{(M-1)\pi}{M}}\exp\left(-\frac{E_s}{N_0}\,\frac{\sin^2(\pi/M)}{\sin^2\phi}\right)d\phi

Each edge of the wedge is at distance \sqrt{E_s}\sin\frac\pi M from x_0, so

d_{\min}=2\sqrt{E_s}\sin\frac\pi M,\qquad\frac{d_{\min}}{2\sigma}=\sqrt{\frac{2E_s}{N_0}}\,\sin\frac\pi8

My notes have no solution to this one: it is added for the web version.

The 8-PSK constellation: eight points on a circle labelled 0 to 7 counter-clockwise from the positive real axis, with the wedge of plus or minus pi over 8 around point 0 shaded as its decision region, and the distance d min between points 0 and 1.

Assignment 7: the solution, continued

With N_{\min}=M, the bounds of the previous slides are

Q\left(\tfrac{d_{\min}}{2\sigma}\right)\le P_e\le2Q\left(\tfrac{d_{\min}}{2\sigma}\right)\le7\,Q\left(\tfrac{d_{\min}}{2\sigma}\right)

The middle one counts only the two nearest neighbours, each wedge edge being a half-plane: it is tight at high SNR, P_e\approx2Q\left(\sqrt{2E_s/N_0}\,\sin\frac\pi8\right). The union bound (M-1)Q=7Q is about 3.5 times too large, under 1 dB of E_s/N_0, and above 1, so useless, at low SNR.

Error probability of 8-PSK against Es over N0 from 0 to 20 dB, on a log scale: the exact curve lies on top of 2Q, between the lower bound Q and the union bound 7Q.

the exact P_e, computed from Craig’s integral, and the bounds

This was the last lecture. The exam and the exam simulation are on the course page, as PDFs.