
An Introduction to Statistical Signal Processing
.pdf416 |
APPENDIX A. PRELIMINARIES |

Appendix B
Sums and Integrals
In this appendix a few useful definitions and results are gathered for reference.
B.1 Summation
The sum of consecutive integers.
n |
|
|
|
|
n(n + 1) |
|
|
k = |
2 |
, |
(B.1) |
|
|
|
k=1
Proof: The result is easily proved by induction, which requires demonstrating the truth of the formula for n = 1 (which is obvious) and showing
that if the formula is true for any positive integer n, then it must also be
n
true for n + 1. This follows since if Sn = k=1 k and we assume that Sn = n(n + 1)/2, then necessarily
Sn+1 = Sn + (n + 1)
=(n + 1)(n2 + 1)
=(n + 1)(n + 2), 2
proving the claim.
The sum of consecutive squares of integers.
n |
|
|
|
|
|
|
|
|
|
|
1 |
|
|
1 |
|
|
1 |
|
|
k2 = |
|
n3 |
+ |
|
n2 |
+ |
|
n, |
(B.2) |
|
3 |
|
|
2 |
|
6 |
|
k=1
417

418 |
APPENDIX B. SUMS AND INTEGRALS |
The sum can also be expressed as
n k2 = (2n + 1)(n + 1)n. 6
k=1
Proof: This can also be proved by induction, but for practice we note another approach. Just as in solving di erential or di erence equations, one can guess a general form of solution and solve for unknowns. Since summing k up to n had a second order solution in n, one might suspect that solving for a sum up to n of squares of k would have a third order solution in n, that is, a solution of the form f(n) = an3 + bn2 + cn + d for some real numbers a, b, c, d. Assume for the moment that this is the case,
then if f(n) = n k2, clearly n2 = f(n) − f(n − 1) and hence with a
k=1
little algebra
n2 = |
an3 + bn2 + cn + d − a(n − 1)3 + b(n − 1)2 + c(n − 1) + d |
= |
3an2 + (2b − 3a)n + (a − b + c). |
This can only be true for all n hover if 3a = 1 so that a = 1/3, if 2b−3a = 0 so that b = 3a/2 = 1/2, and if a − b + c = 0 so that c = b − a = 1/6. This leaves d, but the initial condition that f(1) = 1 implies d = 0.
The geometric progression
Given a complex constant a, |
− |
|
|
|
|
|
|
n−1 ak = |
1 − an |
, |
(B.3) |
1 a |
k=0
and if |a| < 1 this sum is convergent and
∞ |
− |
|
|
|
|
|
|
|
|
ak = |
1 |
. |
(B.4) |
|
1 |
|
a |
|
k=0
Proof: There are, in fact, many ways to prove this result. Perhaps the
simplest is to define the sum with n terms Sn = n−1 ak and observe that
k=0
|
n−1 |
n−1 |
(1 − a)Sn = |
|
|
ak − a ak |
||
|
k=0 |
k=0 |
|
n−1 |
n |
= |
ak − |
ak |
|
k=0 |
k=1 |
= 1 − an, |
|

B.1. SUMMATION |
419 |
proving (B.3). Other methods of proof include induction and solving the di erence equation Sn = Sn−1 + an−1. Proving the finite n result gives the infinite sum since if |a| < 1,
∞ |
− |
|
|
|
|
|
|
|
|
ak = lim Sn = |
1 |
|
. |
(B.5) |
n→∞ |
1 |
a |
|
k=0
For the reader who might be rusty with limiting arguments, this follows
since |
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
an |
|
|
|
|
|
|
|
|
|a|n |
|
|
|
|||||||
| |
S |
|
|
|
|
|
|
= |
|
|
|
|
|
= |
|
|
|
|
|
0 |
||||||||||||||
n − 1 |
− a| |
|1 − a| |
|1 − a| → |
|||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||
as n → ∞ since by assumption |a| < 1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||
First moment of the geometric progression |
|
|||||||||||||||||||||||||||||||||
Given q (0, 1), |
|
|
|
|
|
∞ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
kqk−1 = |
|
|
|
|
|
|
|
. |
|
|
|
(B.6) |
|||||||||||||
|
|
|
|
|
|
|
|
|
(1 |
− |
q)2 |
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
k=0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
Proof: Since kqk−1 |
= |
d |
|
qk and since we can interchange di erentiation |
||||||||||||||||||||||||||||||
dq |
||||||||||||||||||||||||||||||||||
and summation, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
∞ |
|
|
|
|
|
|
|
d |
|
∞ |
|
|
|
|
|
|
|
d |
|
|
|
|
|
||||||||||
|
|
|
|
|
kqk−1 = |
|
|
|
|
|
qk = |
|
(1 |
− q)−1 , |
||||||||||||||||||||
|
|
|
|
|
dq |
|
|
|
dq |
|||||||||||||||||||||||||
|
k=0 |
|
|
|
|
|
k=0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
where we have used the geometric series sum formula. |
|
|||||||||||||||||||||||||||||||||
Second moment of the geometric progression |
|
|||||||||||||||||||||||||||||||||
Given q (0, 1), |
|
∞ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
= |
|
|
|
2 |
|
|
|
|
+ |
|
|
|
1 |
|
|
(B.7) |
||||||||||
|
|
|
|
|
|
k2qk−1 |
|
|
|
|
|
. |
||||||||||||||||||||||
|
|
|
|
|
|
|
(1 q)3 |
(1 |
|
q)2 |
||||||||||||||||||||||||
|
|
|
|
k=0 |
|
|
|
|
|
|
|
|
− |
|
|
|
|
|
|
|
|
|
|
− |
|
|||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||
Take a second derivative of a geometric progression to find |
||||||||||||||||||||||||||||||||||
|
d2 |
|
∞ |
|
|
|
∞ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
qk |
= |
|
|
|
|
|
|
k(k |
− |
1)qk−2 |
|
|
|
|
|||||||||||||||
|
dq2 |
|
|
|
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||
|
|
|
k=0 |
|
|
|
k=0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
=1q ∞ k(k − 1)qk−1
k=0
=1q ∞ k2qk−1 − 1q ∞ kqk−1
|
|
|
k=0 |
|
|
k=0 |
||
1 |
∞ |
|
|
|
1 |
|
||
|
|
|
|
|
|
|
|
|
= q |
k2qk−1 − |
(1 |
− |
q)2 |
k=0

420 |
|
APPENDIX B. SUMS AND INTEGRALS |
||||||||||
and |
∞ |
|
|
|
|
2 |
|
|
|
|
|
|
|
d2 |
|
|
|
|
|
|
|
|
|
||
|
|
|
qk = |
|
|
− |
|
|
|
|
|
|
dq2 |
k=0 |
(1 |
|
q)3 |
|
|
|
|||||
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
so that |
|
|
|
|
|
|
|
|
|
|
|
|
∞ |
|
|
2 |
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(1 |
− |
q)3 |
+ (1 |
− |
q)2 |
, |
||||
k2qk−1 = |
|
|
k=0
proving the claim.
B.2 Double Sums
The following lemma provides a useful simplification of a double summation that crops up when considering sample averages and laws of large numbers.
Lemma B.1 Given a sequence {an},
N−1 N−1 |
N−1 |
|
|
ak−l = |
(N − |n|)an. |
k=0 l=0 |
n=−N+1 |
Proof: This result can be thought in terms of summing the entries of a matrix A = {Ak,l; k, l ZN } which has the property that all elements along any diagonal are equal, i.e., Ak,l = ak−l for some sequence a. (As mentioned in the text, a matrix of this type is called a Toeplitz matrix. To sum up all of the elements in the matrix note that the main diagonal has N equal values of a0, the next diagonal up has N − 1 values of a1, and so on with the nth diagonal having N − n equal values of an. Note there is only one element aN−1 in the top diagonal.
The next result is a limiting result for sums of the type considered in
the previous lemma. |
|
|
|
|
|
|
|
Lemma B.2 Suppose that {an; |
n Z} is an absolutely summable se- |
||||||
quence, i.e., that |
|
∞ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|an| < ∞. |
|
|||
|
|
|
|
||||
Then |
|
n=−∞ |
|
|
|
||
|
N−1 |
|
|
|
|
∞ |
|
|
|
|
|
|
|
||
lim |
|
|n| |
)a |
|
|
|
|
(1 |
|
n |
= |
a . |
|||
N |
→∞ |
|
− N |
|
n |
||
|
n=−N+1 |
|
|
|
|
n=−∞ |
|
|
|
|
|
|
|
Comment: The limit should be believable since the multiplier in the summand tends to 1 for each fixed n as N → ∞.

B.3. INTEGRATION |
|
421 |
|
Proof: Absolute summability implies that the infinite sum exists and |
|||
∞ |
|
|
N−1 |
|
an = lim |
|
|
|
|
an |
|
n=−∞ |
N→∞ |
||
|
n=−N+1 |
||
so the result will follow if we show that |
|||
lim |
N−1 |
|n|an = 0. |
|
|
|
|
|
N→∞ |
N |
||
|
n=−N+1 |
|
|
Since the sequence is absolutely summable, given an arbitrarily small * > 0 we can choose an N0 large enough to ensure that for any N ≥ N0 we have
|
|
|
|
| |
|an| < *. |
|
|
|
|
||||
|
|
|
n: n|≥N |
|
|
|
|
|
|
|
|
|
|
For any N ≥ N0 we can then write |
|
|
|
|
|
|
|
|
|
||||
N−1 |
|n|a |
N−1 |
|n| a |
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
N |
n| |
≤ |
|
N |
| |
n| |
|
|
|
|
|
|
n=−N+1 |
|
|
n=−N+1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|n| |
|
|
|
|n| |
|
||
|
|
|
= |
|
|
N |
a |
n| |
+ |
|
N |
a |
|
|
|
|
|
|
|
| |
|
n:N0≤|n|≤N−1 |
| n| |
||||
|
|
|
n: n|≤N0−1 |
|
|
|
|
|
|||||
|
|
|
| |
|
|
|n| |
|
|
+ |
|
|
|
|
|
|
|
≤ |
|
|
N |
a |
n| |
a |
|
|
||
|
|
|
|
|
| |
|
| n| |
|
|
||||
|
|
|
n: n|≤N0−1 |
|
|
|
n:|n|≥N0 |
|
|
||||
|
|
|
≤ |
|
|
|n| |
a |
n| |
+ *. |
|
|
||
|
|
|
|
|
N |
| |
|
|
|
|
|||
|
|
|
n: |
n|≤N0−1 |
|
|
|
|
|
|
|||
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
Letting N → ∞ the remaining term can be made arbitrarily small, proving the result.
B.3 Integration
A basic integral in calculus and engineering is the simple integral of an exponential, which corresponds to the sum of a “discrete time exponential,” a geometric progression. This integral is most easily stated as
∞
e−r dr = 1. |
(B.8) |
0

422 APPENDIX B. SUMS AND INTEGRALS
If α > 0, then making a linear change of variables as r = αx or x = r/α implies that dr = αdx and hence
|
∞ |
|
1 |
|
|
|
|
0 |
|
e−αx dx = |
|
. |
(B.9) |
|
|
α |
||||
Integrals of the form |
0 |
∞ xke−αx dx |
|
|||
|
|
can be evaluated by parts, or by using the same trick that worked for the geometric progression. Take the kth derivative of both sides of B.9 with respect to α:
|
dk |
0 |
∞ |
|
dk |
|
||
|
|
|
e−αx dx = |
|
|
α−1 |
|
|
|
dαk |
dαk |
|
|||||
0∞(−x)ke−αx dx = (−1)kk!α−k−1 |
|
|||||||
0 |
∞ xke−αx dx = |
k!α−k−1. |
(B.10) |
|||||
Computations using a Gaussian pdf follow from the basic integral |
||||||||
|
|
|
|
∞ |
2 |
|
|
|
|
|
|
|
I = −∞ e−x |
|
dx. |
|
This integral is a bit trickier than the others considered. It can of course be found in a book of tables, but again a proof is provided to make it seem a bit less mysterious. The proof is not di cult, but the initial step may appear devious. Simplify things by considering the integral
I = ∞ e−x2 dx
2 0
and note that this one dimensional integral can also be written as a two dimensional integral:
|
|
|
|
|
|
|
|
|
I |
|
|
∞ |
|||||
|
|
= |
8( 0 |
e−x2 dx)2 |
||||
2 |
||||||||
|
|
|
8 |
|
|
|
||
|
|
= |
( ∞ e−x2 dx)( ∞ e−y2 dy) |
|||||
|
|
|
0 |
0 |
|
|
||
|
|
|
8 |
|
|
|||
|
|
|
∞ ∞ |
=e−(x2+y2 dx dy.
00

B.4. THE LEBESGUE INTEGRAL |
423 |
This subterfuge may appear to actually complicate matters, but it allows
us to change to polar coordinates using r = |
x2 |
+ y2 |
x = r cos(θ), y = |
|||||||||
r sin(θ), and dx dy = rdr dθ to obtain |
|
|
|
|
|
|||||||
|
I |
|
|
|
π/2 |
∞ |
|
|
2 |
|
|
|
( |
|
)2 = |
0 |
|
0 |
re−r |
dr dθ |
|
||||
2 |
|
|
||||||||||
|
|
|
|
π |
∞ |
|
2 |
|
|
|
||
= |
|
|
|
0 |
re−r |
dr. |
|
|
||||
2 |
|
|
|
Again this might appear to have complicated matters by introducing the |
||||||||||||||||||
extra factor of r, but now a change of variables of u = r2 or r = |
√ |
|
implies |
|||||||||||||||
u |
||||||||||||||||||
that dr = du/2√ |
|
so that |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
u |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
I |
|
π |
∞ 1 |
π |
|
|
|
||||||||
( |
|
)2 |
= |
|
0 |
|
|
|
e−u du = |
|
, |
|
|
|
||||
2 |
2 |
|
2 |
4 |
|
|
|
|||||||||||
using (B.8). Thus |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
∞ |
|
2 |
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
−∞ e−x |
dx = √π. |
|
|
|
|
(B.11) |
√
This is commonly expressed by changing variables to r/ 2 = x so that dx = dr/sqrt2 and the result becomes
∞ |
r2 |
|
|
|
|
|
|
|
|
|
|||
−∞ e− |
2 |
dr = |
√2π, |
(B.12) |
from which it follows that a 0 mean unit variance Gaussin pdf has unit integral. The general case is handled by a change of variables. In the following integral change variables by defining r = (x − m)/σ so that dx =
σdr
∞ |
1 |
|
(x−m)2 |
1 |
|
∞ |
|
||||
−∞ |
√ |
|
e− |
|
dx = |
√ |
|
|
−∞ e−r2 σdr |
(B.13) |
|
|
2σ2 |
||||||||||
2σ2 |
2σ2 |
||||||||||
|
|
|
|
|
|
√ |
|
|
|
|
|
|
|
|
|
= |
2π |
|
(B.14) |
||||
|
|
|
|
√ |
|
|
|
||||
|
|
|
|
2π |
|
||||||
|
|
|
|
= |
1. |
|
|
|
|
(B.15) |
B.4 The Lebesgue Integral
This section provides a brief introduction to the Lebesgue integral, the calculus that underlies rigorous probability theory. In the authors view the Lebesgue integral is not nearly as mysterious as it is sometimes suggested in