You are on page 1of 135

EC 622 Statistical Signal Processing

P. K. Bora

Department of Electronics & Communication Engineering

INDIAN INSTITUTE OF TECHNOLOGY GUWAHATI


1
EC 622 Statistical Signal Processing Syllabus


1. Review of random variables: distribution and density functions, moments, independent,
uncorrelated and orthogonal random variables; Vector-space representation of Random
variables, Schwarz Inequality Orthogonality principle in estimation, Central Limit
theorem, Random process, stationary process, autocorrelation and autocovariance
functions, Spectral representation of random signals, Wiener Khinchin theorem,
Properties of power spectral density, Gaussian Process and White noise process

2. Linear System with random input, Spectral factorization theorem and its importance,
innovation process and whitening filter

3. Random signal modelling: MA(q), AR(p) , ARMA(p,q) models

4. Parameter Estimation Theory: Principle of estimation and applications, Properties of
estimates, unbiased and consistent estimators, MVUE, CR bound, Efficient estimators;
Criteria of estimation: the methods of maximum likelihood and its properties ; Baysean
estimation: Mean Square error and MMSE, Mean Absolute error, Hit and Miss cost
function and MAP estimation

5. Estimation of signal in presence of White Gaussian Noise (WGN)

Linear Minimum Mean-Square Error (LMMSE) Filtering: Wiener Hoff Equation
FIR Wiener filter, Causal IIR Wiener filter, Noncausal IIR Wiener filter
Linear Prediction of Signals, Forward and Backward Predictions, Levinson Durbin
Algorithm, Lattice filter realization of prediction error filters

6. Adaptive Filtering: Principle and Application, Steepest Descent Algorithm
Convergence characteristics; LMS algorithm, convergence, excess mean square error
Leaky LMS algorithm; Application of Adaptive filters ;RLS algorithm, derivation,
Matrix inversion Lemma, Intialization, tracking of nonstationarity

7. Kalman filtering: Principle and application, Scalar Kalman filter, Vector Kalman filter

8. Spectral analysis: Estimated autocorrelation function, periodogram, Averaging the
periodogram (Bartlett Method), Welch modification, Blackman and Tukey method of
smoothing periodogram, Parametric method, AR(p) spectral estimation and detection of
Harmonic signals, MUSIC algorithm.
2


Acknowledgement


I take this opportunity to thank Prof. A. Mahanta who inspired me to take the course
Statistical Signal Processing. I am also thankful to my other faculty colleagues of the
ECE department for their constant support. I acknowledge the help of my students,
particularly Mr. Diganta Gogoi and Mr. Gaurav Gupta for their help in preparation of the
handouts. My appreciation goes to Mr. Sanjib Das who painstakingly edited the final
manuscript and prepared the power-point presentations for the lectures. I acknowledge
the help of Mr. L.N. Sharma and Mr. Nabajyoti Dutta for word-processing a part of the
manuscript. Finally I acknowledge QIP, IIT Guwhati for the financial support for this
work.

3


SECTION I





REVIEW OF
RANDOM VARIABLES & RANDOM PROCESS




















4
Table of Contents
CHAPTER - 1: REVIEW OF RANDOM VARIABLES .............................................. 9
1.1 Introduction.............................................................................................................. 9
1.2 Discrete and Continuous Random Variables ...................................................... 10
1.3 Probability Distribution Function........................................................................ 10
1.4 Probability Density Function ............................................................................... 11
1.5 Joint random variable ........................................................................................... 12
1.6 Marginal density functions.................................................................................... 12
1.7 Conditional density function................................................................................. 13
1.8 Bayes Rule for mixed random variables............................................................. 14
1.9 Independent Random Variable ............................................................................ 15
1.10 Moments of Random Variables .......................................................................... 16
1.11 Uncorrelated random variables.......................................................................... 17
1.12 Linear prediction of Y from X .......................................................................... 17
1.13 Vector space Interpretation of Random Variables........................................... 18
1.14 Linear Independence ........................................................................................... 18
1.15 Statistical Independence...................................................................................... 18
1.16 Inner Product ....................................................................................................... 18
1.17 Schwary Inequality.............................................................................................. 19
1.18 Orthogonal Random Variables........................................................................... 19
1.19 Orthogonality Principle....................................................................................... 20
1.20 Chebysev Inequality............................................................................................. 21
1.21 Markov Inequality ............................................................................................... 21
1.22 Convergence of a sequence of random variables .............................................. 22
1.23 Almost sure (a.s.) convergence or convergence with probability 1................. 22
1.24 Convergence in mean square sense .................................................................... 23
1.25 Convergence in probability................................................................................. 23
1.26 Convergence in distribution................................................................................ 24
1.27 Central Limit Theorem....................................................................................... 24
1.28 Jointly Gaussian Random variables................................................................... 25
CHAPTER - 2 : REVIEW OF RANDOM PROCESS................................................. 26
2.1 Introduction............................................................................................................ 26
2.2 How to describe a random process?..................................................................... 27
2.3 Stationary Random Process.................................................................................. 28
2.4 Spectral Representation of a Random Process ................................................... 30
2.5 Cross-correlation & Cross power Spectral Density............................................ 31
2.6 White noise process................................................................................................ 32
2.7 White Noise Sequence............................................................................................ 33
2.8 Linear Shift Invariant System with Random Inputs.......................................... 33
2.9 Spectral factorization theorem............................................................................. 35
2.10 Wolds Decomposition......................................................................................... 37
CHAPTER - 3: RANDOM SIGNAL MODELLING................................................... 38
3.1 Introduction............................................................................................................ 38
3.2 White Noise Sequence............................................................................................ 38
3.3 Moving Average model
) (q MA
model .................................................................. 38
3.4 Autoregressive Model ............................................................................................ 40
3.5 ARMA(p,q) Autoregressive Moving Average Model ...................................... 42
3.6 General
) , ( q p ARMA
Model building Steps ......................................................... 43
3.7 Other model: To model nonstatinary random processes ................................... 43
5
CHAPTER 4: ESTIMATION THEORY................................................................... 45
4.1 Introduction............................................................................................................ 45
4.2 Properties of the Estimator................................................................................... 46
4.3 Unbiased estimator ................................................................................................ 46
4.4 Variance of the estimator ...................................................................................... 47
4.5 Mean square error of the estimator ..................................................................... 48
4.6 Consistent Estimators............................................................................................ 48
4.7 Sufficient Statistic .................................................................................................. 49
4.8 Cramer Rao theorem............................................................................................. 50
4.9 Statement of the Cramer Rao theorem................................................................ 51
4.10 Criteria for Estimation........................................................................................ 54
4.11 Maximum Likelihood Estimator (MLE) ........................................................... 54
4.12 Bayescan Estimators............................................................................................ 56
4.13 Bayesean Risk function or average cost............................................................ 57
4.14 Relation between
MAP

and
MLE

........................................................................ 62
CHAPTER 5: WIENER FILTER............................................................................... 65
5.1 Estimation of signal in presence of white Gaussian noise (WGN)..................... 65
5.2 Linear Minimum Mean Square Error Estimator............................................... 67
5.3 Wiener-Hopf Equations ........................................................................................ 68
5.4 FIR Wiener Filter .................................................................................................. 69
5.5 Minimum Mean Square Error - FIR Wiener Filter........................................... 70
5.6 IIR Wiener Filter (Causal).................................................................................... 74
5.7 Mean Square Estimation Error IIR Filter (Causal)........................................ 76
5.8 IIR Wiener filter (Noncausal) ............................................................................... 78
5.9 Mean Square Estimation Error IIR Filter (Noncausal).................................. 79
CHAPTER 6: LINEAR PREDICTION OF SIGNAL............................................... 82
6.1 Introduction............................................................................................................ 82
6.2 Areas of application............................................................................................... 82
6.3 Mean Square Prediction Error (MSPE) .............................................................. 83
6.4 Forward Prediction Problem................................................................................ 84
6.5 Backward Prediction Problem.............................................................................. 84
6.6 Forward Prediction................................................................................................ 84
6.7 Levinson Durbin Algorithm.................................................................................. 86
6.8 Steps of the Levinson- Durbin algorithm............................................................. 88
6.9 Lattice filer realization of Linear prediction error filters.................................. 89
6.10 Advantage of Lattice Structure .......................................................................... 90
CHAPTER 7: ADAPTIVE FILTERS......................................................................... 92
7.1 Introduction............................................................................................................ 92
7.2 Method of Steepest Descent................................................................................... 93
7.3 Convergence of the steepest descent method....................................................... 95
7.4 Rate of Convergence.............................................................................................. 96
7.5 LMS algorithm (Least Mean Square) algorithm........................................... 96
7.6 Convergence of the LMS algorithm..................................................................... 99
7.7 Excess mean square error ................................................................................... 100
7.8 Drawback of the LMS Algorithm....................................................................... 101
7.9 Leaky LMS Algorithm........................................................................................ 103
7.10 Normalized LMS Algorithm............................................................................. 103
7.11 Discussion - LMS ............................................................................................... 104
7.12 Recursive Least Squares (RLS) Adaptive Filter............................................. 105
6
7.13 Recursive representation of
] [

n
YY
R
............................................................... 106
7.14 Matrix Inversion Lemma .................................................................................. 106
7.15 RLS algorithm Steps.......................................................................................... 107
7.16 Discussion RLS................................................................................................ 108
7.16.1 Relation with Wiener filter ............................................................................ 108
7.16.2. Dependence condition on the initial values.................................................. 109
7.16.3. Convergence in stationary condition............................................................ 109
7.16.4. Tracking non-staionarity............................................................................... 110
7.16.5. Computational Complexity........................................................................... 110
CHAPTER 8: KALMAN FILTER ........................................................................... 111
8.1 Introduction.......................................................................................................... 111
8.2 Signal Model ......................................................................................................... 111
8.3 Estimation of the filter-parameters.................................................................... 115
8.4 The Scalar Kalman filter algorithm................................................................... 116
8.5 Vector Kalman Filter........................................................................................... 117
CHAPTER 9 : SPECTRAL ESTIMATION TECHNIQUES FOR STATIONARY
SIGNALS........................................................................................................................ 119
9.1 Introduction.......................................................................................................... 119
9.2 Sample Autocorrelation Functions..................................................................... 120
9.3 Periodogram (Schuster, 1898)............................................................................. 121
9.4 Chi square distribution........................................................................................ 124
9.5 Modified Periodograms....................................................................................... 126
9.5.1 Averaged Periodogram: The Bartlett Method.............................................. 126
9.5.2 Variance of the averaged periodogram........................................................... 128
9.6 Smoothing the periodogram : The Blackman and Tukey Method ................. 129
9.7 Parametric Method.............................................................................................. 130
9.8 AR spectral estimation ........................................................................................ 131
9.9 The Autocorrelation method............................................................................... 132
9.10 The Covariance method .................................................................................... 132
9.11 Frequency Estimation of Harmonic signals .................................................... 134
10. Text and Reference .................................................................................................. 135

7


SECTION I





REVIEW OF
RANDOM VARIABLES & RANDOM PROCESS
8
CHAPTER - 1: REVIEW OF RANDOM VARIABLES

1.1 Introduction
Mathematically a random variable is neither random nor a variable
It is a mapping from sample space into the real-line ( real-valued random
variable) or the complex plane ( complex-valued random variable) .
Suppose we have a probability space } , , { P S .
Let be a function mapping the sample space into the real line such that S X : S
For each there exists a unique . , S s ) ( s X Then X is called a random variable.
Thus a random variable associates the points in the sample space with real numbers.









( ) X s

S
s

Figure Random Variable
Notations:
Random variables are represented by
upper-case letters.
Values of a random variable are
denoted by lower case letters
Y y = means that is the value of a
random variable
y
. X

Example 1: Consider the example of tossing a fair coin twice. The sample space is S=
{HH, HT, TH, TT} and all four outcomes are equally likely. Then we can define a
random variable X as follows
Sample Point Value of the random
Variable X x =
{ } P X x =
HH 0
1
4

HT 1
1
4

TH 2
1
4

TT 3
1
4


9
Example 2: Consider the sample space associated with the single toss of a fair die. The
sample space is given by . If we define the random variable {1, 2,3, 4,5, 6} S = X that
associates a real number equal to the number in the face of the die, then {1, 2,3, 4,5, 6} X =


1.2 Discrete and Continuous Random Variables
A random variable X is called discrete if there exists a countable sequence of
distinct real number such that
i
x ( ) 1
m i
i
P x =

. is called the
probability mass function. The random variable defined in Example 1 is a
discrete random variable.
( )
m i
P x
A continuous random variable X can take any value from a continuous
interval
A random variable may also de mixed type. In this case the RV takes
continuous values, but at each finite number of points there is a finite
probability.


1.3 Probability Distribution Function
We can define an event S} s , ) ( / { } { = x s X s x X
The probability

} { ) ( x X P x F
X
= is called the probability distribution function.
Given ( ),
X
F x we can determine the probability of any event involving values of the
random variable . X
is a non-decreasing function of ) (x F
X
. X
is right continuous ) (x F
X
=> approaches to its value from right. ) (x F
X
0 ) ( =
X
F
1 ) ( =
X
F

1 1
{ } ( )
X X
P x X x F x F x < = ( )


10
Example 3: Consider the random variable defined in Example 1. The distribution
function ( )
X
F x is as given below:

Value of the random Variable X x =
( )
X
F x
0 x < 0
0 1 x < 1
4

1 2 x < 1
2

2 3 x < 3
4

3 x 1









( )
X
F x
X x =


1.4 Probability Density Function
If is differentiable ) (x F
X
) ( ) ( x F
dx
d
x f
X X
= is called the probability density function and
has the following properties.
is a non- negative function ) (x f
X


=1 ) ( dx x f
X

= <
2
1
) ( ) (
2 1
x
x
X
dx x f x X x P
Remark: Using the Dirac delta function we can define the density function for a discrete
random variables.

11
1.5 Joint random variable
X and are two random variables defined on the same sample space .
is called the joint distribution function and denoted by
Y S
} , { y Y x X P ). , (
,
y x F
Y X
Given , ), , (
,
y , - x - y x F
Y X
< < < < we have a complete description of the
random variables X and . Y
) , ( ) , 0 ( ) 0 , ( ) , ( } 0 , 0 {
, , , ,
y x F y F x F y x F y Y x X P
Y X Y X Y X Y X
+ = < <
). , ( ) ( + = x F x F
XY X
To prove this
( ) ( ) ) , ( , ) (
) ( ) ( ) (
+ = = =
+ =
x F Y x X P x X P x F
Y x X x X
XY X
( ) ( ) ) , ( , ) ( + = = = x F Y x X P x X P x F
XY X

Similarly ). , ( ) ( y F y F
XY Y
=
Given , ), , (
,
y , - x - y x F
Y X
< < < < each of is
called a marginal distribution function.
) ( and ) ( y F x F
Y X
We can define joint probability density function
,
( , ) of the random variables and
X Y
f x y X Y
by
2
,
( , ) ( , )
X Y X Y ,
f x y F x y
x y

=

, provided it exists
is always a positive quantity. ) , (
,
y x f
Y X



=
x
Y X
y
Y X
dxdy y x f y x F ) , ( ) , (
, ,


1.6 Marginal density functions
,
,
,
( ) ( )
( , )
( ( , ) )
( , )
a n d ( ) ( , )
d
X X
d x
d
X
d x
x
d
X Y
d x
X Y
Y X Y
f x F x
F x
f x y d y d x
f x y d y
f y f x y d x


=
=
=

=

=



12
1.7 Conditional density function
) / ( ) / (
/ /
x y f x X y f
X Y X Y
= = is called conditional density of Y given . X
Let us define the conditional distribution function.
We cannot define the conditional distribution function for the continuous random
variables and X Y by the relation
/
( / ) ( / )
( ,
=
( )
Y X
)
F y x P Y y X x
P Y y X x
P X x
= =
=
=

as both the numerator and the denominator are zero for the above expression.
The conditional distribution function is defined in the limiting sense as follows:

0
/
0
,
0
,
( / ) ( / )
( ,
=l
( )
( , )
=l
( )
( , )
=
( )
x
Y X
x
y
X Y
x
X
y
X Y
X
)
F y x lim P Y y x X x x
P Y y x X x x
im
P x X x x
f x u xdu
im
f x x
f x u du
f x

= <
< +
< +

+

The conditional density is defined in the limiting sense as follows
(1) / )) / ( ) / ( ( lim
/ )) / ( ) / ( ( lim ) / (
/ / 0 , 0
/ / 0 /
y x x X x y F x x X x y y F
y x X y F x X y y F x X y f
X Y X Y x y
X Y X Y y X Y
+ < + < + =
= = + = =



Because ) ( lim ) (
0
x x X x x X
x
+ < = =


The right hand side in equation (1) is
0, 0 / /
0, 0
0, 0
lim ( ( / ) ( / )) /
lim ( ( / )) /
lim ( ( , )) / ( )

y x Y X Y X
y x
y x
F y y x X x x F y x X x x y
P y Y y y x X x x y
P y Y y y x X x x P x X x x y



+ < < + < < +
= < + < +
= < + < + <
0, 0 ,
,
lim ( , ) / ( )
( , ) / ( )
y x X Y X
X Y X
f x y x y f x x y
f x y f x

=
=
+


, /
( / ) ( , ) / ( )
X Y X Y X
f x y f x y f x = (2)
Similarly, we have

, /
( / ) ( , ) / ( )
X Y Y X Y
f x y f x y f y = (3)



13
From (2) and (3) we get Bayes rule


,
/
/
,
,
/
/
( , )
( / )
( )
( ) ( / )

( )
( , )
=
( , )
( / ) ( )
=
( ) ( / )
X Y
X Y
Y
X Y X
Y
X Y
X Y
X Y X
X Y X
f x y
f x y
f y
f x f y x
f y
f x y
f x y dx
f y x f x
f u f y x du

=
=

(4)
Given the joint density function we can find out the conditional density function.

Example 4:
For random variables X and Y, the joint probability density function is given by

,
1
( , ) 1, 1
4
0 otherwise
X Y
xy
f x y x y
+
=
=


Find the marginal density
/
( ), ( ) and ( / ).
X Y Y X
f x f y f y x Are independent? and X Y
1
1
1 1
( )
4 2
Similarly
1
( ) -1 1
2
X
Y
xy
f x dy
f y y

+
= =
=


and
,
/
( , ) 1
( / ) , 1, 1
( ) 4
= 0 otherwise
X Y
Y X
X
f x y xy
f y x x y
f x
+
= =

and are not independent X Y

1.8 Bayes Rule for mixed random variables
Let X be a discrete random variable with probability mass function and Y be a
continuous random variable. In practical problem we may have to estimate
( )
X
P x
X from
observed Then . Y
14
/ 0 /
,
0
/
0
/
/
( / ) l i m ( / )
( , )
= l i m
( )
( ) ( / )
= l i m
( )
( ) ( / )
=
( )
( ) (
= =
X Y y X Y
X Y
y
Y
X Y X
y
Y
X Y X
Y
X Y X
P x y P x y Y y y
P x y Y y y
P y Y y y
P x f y x y
f y y
P x f y x
f y
P x f



= <
< +
< +

+
/
/ )
( ) ( / )
X Y X
x
y x
P x f y x


Example 5:




V
X
+
Y
X is a binary random variable with
1
1 with probability
2
1
1 with probability
2
X


V is the Gaussian noise with mean
2
0 and variance .


Then

2 2
2 2 2 2
/
/
/
( 1) / 2
( 1) / 2 ( 1) / 2
( ) ( / )
( 1/ )
( ) ( / )
(
X Y X
X Y
X Y X
x
y
y y
P x f y x
P x y
P x f y x
e
e e



+
= =

=
+



1.9 Independent Random Variable
Let X and Y be two random variables characterised by the joint density function
} , { ) , (
,
y Y x X P y x F
Y X
=
and ) , ( ) , (
, ,
2
y x F y x f
Y X y x Y X

=
Then X and Y are independent if
/
( / ) ( )
X Y X
f x y f x x =
and equivalently
) ( ) ( ) , (
,
y f x f y x f
Y X Y X
= , where and are called the marginal
density functions.
) (x f
X
) ( y f
Y
15
1.10 Moments of Random Variables
Expectation provides a description of the random variable in terms of a few
parameters instead of specifying the entire distribution function or the density
function
It is far easier to estimate the expectation of a R.V. from data than to estimate its
distribution
First Moment or mean
The mean
X
of a random variable X is defined by

( ) for a discrete random variable
( ) for a continuous random variable
X i i
X
EX x P x X
xf x dx X

= =
=


For any piecewise continuous function ( ) y g x = , the expectation of the R.V.
is given by ( ) Y g X = ( ) ( ) ( )
x
EY Eg X g x f x dx

= =


Second moment

2 2
( )
X
EX x f x

=

dx
X X

Variance

2 2
( ) ( )
X
x f x

dx
Variance is a central moment and measure of dispersion of the random variable
about the mean.

x
is called the standard deviation.

For two random variables X and Y the joint expectation is defined as
, ,
( ) ( , )
X Y X Y
E XY xyf x y dxdy


= =


The correlation between random variables X and Y measured by the covariance, is
given by
,
( , ) ( )( )
( - - )
( ) -
XY X Y
Y X X Y
X Y
Cov X Y E X Y
E XY X Y
E XY



= =
= +
=

The ratio
2 2
( )( )
( ) ( )
X Y XY
X Y
X Y
E X Y
E X E Y




= =


is called the correlation coefficient. The correlation coefficient measures how much two
random variables are similar.
16
1.11 Uncorrelated random variables
Random variables X and Y are uncorrelated if covariance
0 ) , ( = Y X Cov
Two random variables may be dependent, but still they may be uncorrelated. If there
exists correlation between two random variables, one may be represented as a linear
regression of the others. We will discuss this point in the next section.

1.12 Linear prediction of Y from X
b aX Y + =

Regression
Prediction error

Y Y
Mean square prediction error
2 2

( ) ( ) E Y Y E Y aX b =
For minimising the error will give optimal values of Corresponding to the
optimal solutions for we have
. and b a
, and b a
2
2
( )
( )
E Y aX b
a
E Y aX b
b

0
0

Solving for , b a and
,
2
1

(
Y X Y
X
Y x )
X

=
so that ) (

, X
x
y
Y X Y
x Y

= , where
Y X
XY
Y X

=
,
is the correlation coefficient.
If 0
,
=
Y X
then are uncorrelated. Y X and

. prediction best the is

Y
Y
Y
Y

= =>
= =>
Note that independence => Uncorrelatedness. But uncorrelated generally does not imply
independence (except for jointly Gaussian random variables).

Example 6:
(1,-1). between d distribute uniformly is and
2
(x) f X Y
X
=

are dependent, but they are uncorrelated. Y X and
Because
0) EX (
0
) )( ( ) , (
3
= =
= = =
= =
EXEY
EX EXY
Y X E Y X Cov
Y X X


In fact for any zero- mean symmetric distribution of X, are uncorrelated.
2
and X X
17
1.13 Vector space Interpretation of Random Variables
The set of all random variables defined on a sample space form a vector space with
respect to addition and scalar multiplication. This is very easy to verify.

1.14 Linear Independence
Consider the sequence of random variables . ,.... ,
2 1 N
X X X
If 0 ....
2 2 1 1
= + + +
N N
X c X c X c implies that
, 0 ....
2 1
= = = =
N
c c c then are linearly independent. . ,.... ,
2 1 N
X X X

1.15 Statistical Independence
N
X X X ,.... ,
2 1
are statistically independent if

1 2 1 2
, ,.... 1 2 1 2
( , ,.... ) ( ) ( ).... ( )
N N
X X X N X X X N
f x x x f x f x f x =
Statistical independence in the case of zero mean random variables also implies linear
independence

1.16 Inner Product
If and are real vectors in a vector space V defined over the field , the inner product x y R
> < y x, is a scalar such that
, , and x y z V a R

2
1.
2. 0
3.
4.
x, y y, x
x, x x
x y, z x, z y, z
ax, y a x, y
< > = < >
< > =
< + > = < > + <
< > = < >
>
Y

In the case of RVs, inner product between is defined as and X
,
, )
X Y
< X, Y > = EXY = xy f (x y dy dx.




Magnitude / Norm of a vector

> =< x x x ,
2

So, for R.V.

2
2 2
)
X
X EX = x f (x dx

=


The set of RVs along with the inner product defined through the joint expectation
operation and the corresponding norm defines a Hilbert Space.

18
1.17 Schwary Inequality
For any two vectors and x y belonging to a Hilbert space V

y x | x, y | > <
For RV and X Y

2 2 2
) ( EY EX XY E

Proof:
Consider the random variable Y aX Z + =
.
0 2
0 ) (
2 2 2
2

+
aEXY + + EY EX a
Y aX E

Non-negatively of the left-hand side => its minimum also must be nonnegative.
For the minimum value,

2
2
0
EX
EXY
a
da
dEZ
= => =
so the corresponding minimum is
2
2
2
2
2
2
EX
XY E
EY
EX
XY E
+
Minimum is nonnegative =>
2 2 2
2
2
2
0
EY EX XY E
EX
XY E
EY

< =>



2 2
( )( ) ( , )
( , )
( ) (
X Y
Xx X
X Y
E X Y Cov X Y
X Y
E X E Y )




= =


From schwarz inequality
1 ) , ( Y X

1.18 Orthogonal Random Variables
Recall the definition of orthogonality. Two vectors are called orthogonal if

y x and
x, y 0 = > <
Similarly two random variables are called orthogonal if Y X and EXY 0 =
If each of is zero-mean Y X and
( , ) Cov X Y EXY =
Therefore, if 0 EXY = then Cov( ) 0 XY = for this case.
For zero-mean random variables,
Orthogonality uncorrelatedness
19
1.19 Orthogonality Principle
X is a random variable which is not observable. Y is another observable random variable
which is statistically dependent on X . Given a value of Y what is the best guess for X ?
(Estimation problem).
Let the best estimate be . Then is a minimum with respect
to .
) (

Y X
2
)) (

( Y X X E
) (

Y X
And the corresponding estimation principle is called minimum mean square error
principle. For finding the minimum, we have

2

2
,
2
/
2
/

( ( )) 0

( ( )) ( , ) 0

( ( )) ( ) ( ) 0

( )( ( ( )) ( ) ) 0
X
X Y
X
Y X Y
X
Y X Y
X
E X X Y
x X y f x y dydx
x X y f y f x dydx
f y x X y f x dx dy


=
=





=
=

Since in the above equation is always positive, therefore the
minimization is equivalent to
) ( y f
Y

2
/
/
-
/ /

( ( )) ( ) 0

Or 2 ( ( )) ( ) 0

( ) ( ) ( )

( ) ( / )
X Y
X
X Y
X Y X Y
x X y f x dx
x X y f x dx
X y f x dx xf x dx
X y E X Y

=

=

Thus, the minimum mean-square error estimation involves conditional expectation which
is difficult to obtain numerically.
Let us consider a simpler version of the problem. We assume that and the
estimation problem is to find the optimal value for Thus we have the linear
minimum mean-square error criterion which minimizes
ay y X = ) (

. a
. ) (
2
aY X E

0
0 ) (
0 ) (
0 ) (
2
2
=
=
=
=
EeY
Y aY X E
aY X E
aY X E
da
d
da
d

where e is the estimation error.

20
The above result shows that for the linear minimum mean-square error criterion,
estimation error is orthogonal to data. This result helps us in deriving optimal filters to
estimate a random signal buried in noise.

The mean and variance also give some quantitative information about the bounds of RVs.
Following inequalities are extremely useful in many practical problems.

1.20 Chebysev Inequality
Suppose X is a parameter of a manufactured item with known mean
2
and variance .
X X
The quality control department rejects the item if the absolute
deviation of X from
X
is greater than 2
X
. What fraction of the manufacturing item
does the quality control department reject? Can you roughly guess it?
The standard deviation gives us an intuitive idea how the random variable is distributed
about the mean. This idea is more precisely expressed in the remarkable Chebysev
Inequality stated below. For a random variable X with mean
2
X X
and variance


2
2
{ }
X
X
P X


Proof:

2
2 2
2
2
2
2
( ) ( )
( ) ( )
( )
{ }
{ }
X
X
X
x X X
X X
X
X
X
X
X
x f x dx
x f x dx
f x dx
P X
P X


=



1.21 Markov Inequality
For a random variable X which take only nonnegative values

( )
{ }
E X
P X a
a
where 0. a >

0
( ) ( )
( )
( )
{ }
X
X
a
X
a
E X xf x dx
xf x dx
af x dx
aP X a


=

21
( )
{ }
E X
P X a
a

Result:
2
2
( )
{( ) }
E X k
P X k a
a



1.22 Convergence of a sequence of random variables
Let
1 2
, ,...,
n
X X X be a sequence independent and identically distributed random
variables. Suppose we want to estimate the mean of the random variable on the basis of
the observed data by means of the relation
n

1
1

N
X i
i
X
n

=
=
How closely does
X
represent
X
as is increased? How do we measure the
closeness between
n

X
and
X
?
Notice that
X
is a random variable. What do we mean by the statement
X
converges
to
X
?
Consider a deterministic sequence The sequence converges to a limit if
correspond to any
.... ,.... ,
2 1 n
x x x x
0 > we can find a positive integer such that m for .
n
x x n < > m
Convergence of a random sequence cannot be defined as above. .... ,.... ,
2 1 n
X X X
A sequence of random variables is said to converge everywhere to X if
( ) ( ) 0 for and .
n
X X n m >


1.23 Almost sure (a.s.) convergence or convergence with probability 1
For the random sequence .... ,.... ,
2 1 n
X X X
} { X X
n
this is an event.
If
{ | ( ) ( )} 1 ,
{ ( ) ( ) for } 1 ,
n
n
P s X s X s as n
P s X s X s n m as m
=
< =

then the sequence is said to converge to X almost sure or with probability 1.
One important application is the Strong Law of Large Numbers:
If are iid random variables, then .... ,.... ,
2 1 n
X X X
1
1
with probability 1as .
n
i X
i
X n
n

=






22
1.24 Convergence in mean square sense
If we say that the sequence converges to , 0 ) (
2
n as X X E
n
X in mean
square (M.S).

Example 7:
If are iid random variables, then .... ,.... ,
2 1 n
X X X
1
1
in the mean square 1as .
N
i X
i
X n
n

=

2
1
1
We have to show that lim ( ) 0
N
i X
n
i
E X
n

=
=
Now,
2 2
1 1
n n
2
2 2
1 i=1 j=1,j i
2
2
1 1
( ) ( ( ( ))
1 1
( ) + ( )( )
+0 ( Because of independence)

N N
i X i X
i i
N
i X i X j X
i
X
E X E X
n n
E X E X X
n n
n
n

= =
=
=
=
=

2
2
1

1
lim ( ) 0
X
N
i X
n
i
n
E X
n

=
=
=


1.25 Convergence in probability
} { > X X P
n
is a sequence of probability. is said to convergent to
n
X X in
probability if this sequence of probability is convergent that is
. 0 } { > n as X X P
n

If a sequence is convergent in mean, then it is convergent in probability also, because
2 2 2 2
{ } ( ) /
n n
P X X E X X > (Markov Inequality)
We have
2 2
/ ) ( } { X X E X X P
n n
>
If (mean square convergent) then , 0 ) (
2
n as X X E
n
. 0 } { > n as X X P
n





23
Example 8:
Suppose { }
n
X be a sequence of random variables with
1
( 1} 1
and
1
( 1}
n
n
P X
n
P X
n
= =
= =

Clearly
1
{ 1 } { 1} 0
.
n n
P X P X
n
as n
> = = =


Therefore { } { 0}
P
n
X X =


1.26 Convergence in distribution
The sequence is said to converge to .... ,.... ,
2 1 n
X X X X in distribution if
. ) ( ) ( n as x F x F
X X
n

Here the two distribution functions eventually coincide.


1.27 Central Limit Theorem
Consider independent and identically distributed random variables . ,.... ,
2 1 n
X X X
Let
n
X X X Y ...
2 1
+ + =
Then
n
X X X Y
...
2 1
+ + =
And
2 2 2 2
...
2 1 n
X X X Y
+ + + =
The central limit theorem states that under very general conditions Y converges to
as The conditions are: ) , (
2
Y Y
N . n
1. The random variables
1 2
, ,...,
n
X X X
are independent with same mean and
variance, but not identically distributed.
2. The random variables
1 2
, ,...,
n
X X X
are independent with different mean and
same variance and not identically distributed.


24
1.28 Jointly Gaussian Random variables
Two random variables are called jointly Gaussian if their joint density function
is
Y X and
2 2
( ) ( )( ) ( )
1
2 2 2
2(1 )
,
2
,
( , )
x x y y
X X Y Y
XY
X
Y X Y X Y
X Y
f x y Ae



+



=

where
2
,
1 2
1
Y X y x
A

=


Properties:
(1) If X and Y are jointly Gaussian, then for any constants a and then the random
variable
, b
given by is Gaussian with mean , Z bY aX Z + =
Y X Z
b a + = and variance

Y X Y X Y X Z
ab b a
,
2 2 2 2 2
2 + + =
(2) If two jointly Gaussian RVs are uncorrelated, 0
,
=
Y X
then they are statistically
independent.
) ( ) ( ) , (
,
y f x f y x f
Y X Y X
= in this case.
(3) If is a jointly Gaussian distribution, then the marginal densities ) , (
,
y x f
Y X
are also Gaussian. ) ( and ) ( y f x f
Y X

(4) If X and are joint by Gaussian random variables then the optimum nonlinear
estimator
Y
X

of X that minimizes the mean square error is a linear


estimator
} ]

{[
2
X X E =
aY X =

25
CHAPTER - 2 : REVIEW OF RANDOM PROCESS


2.1 Introduction

Recall that a random variable maps each sample point in the sample space to a point in
the real line. A random process maps each sample point to a waveform.
A random process can be defined as an indexed family of random variables
{ ( ), } X t t T whereT is an index set which may be discrete or continuous usually
denoting time.
The random process is defined on a common probability space }. , , { P S
A random process is a function of the sample point and index variable t and
may be written as ). , ( t X
For a fixed ) ), (
0
t t = , (
0
t X is a random variable.
For a fixed ), (
0
= ) , (
0
t X is a single realization of the random process and
is a deterministic function.
When both and t are varying we have the random process ). , ( t X
The random process ) , ( t X is normally denoted by ). (t X
We can define a discrete random process [ ] X n on discrete points of time. Such a random
process is more important in practical implementations.




2
( , ) X t s
3
s
2
s
1
s
3
( , ) X t s
S
1
( , ) X t s
t

Figure Random Process

26
2.2 How to describe a random process?
To describe we have to use joint density function of the random variables at
different .
) (t X
t
For any positive integer , represents jointly distributed
random variables. Thus a random process can be described by the joint distribution
function
n ) ( ),..... ( ), (
2 1 n
t X t X t X n
and ), ..... , , ..... , ( ) ..... , (
2 1 2 1 2 1 ) ( )..... ( ), (
2 1
T t N n t t t x x x F x x x F
n n n n t X t X t X
n
=
Otherwise we can determine all the possible moments of the process.
) ( )) ( ( t t X E
x
= = mean of the random process at . t
)) ( ) ( ( ) , (
2 1 2 1
t X t X E t t R
X
= = autocorrelation function at
2 1
, t t
)) ( ), ( ), ( ( ) , , (
3 2 1 3 2 1
t X t X t X E t t t R
X
= = Triple correlation function at etc. , , ,
3 2 1
t t t
We can also define the auto-covariance function of given by ) , (
2 1
t t C
X
) (t X

) ( ) ( ) , (
)) ( ) ( ))( ( ) ( ( ) , (
2 1 2 1
2 2 1 1 2 1
t t t t R
t t X t t X E t t C
X X X
X X X


=
=



Example 1:

(a) Gaussian Random Process
For any positive integer represent jointly random
variables. These random variables define a random vector
The process is called Gaussian if the random vector
, n ) ( ),..... ( ), (
2 1 n
t X t X t X n
n
1 2
[ ( ), ( ),..... ( )]'.
n
X t X t X t = X ) (t X
1 2
[ ( ), ( ),..... ( )]'
n
X t X t X t is jointly Gaussian with the joint density function given by

( )
' 1
1 2
1
2
( ), ( )... ( ) 1 2
( , ,... )
2 det(
X
n
X t X t X t n
n
e
f x x x

=
XC X
X
C )
E where ' ( )( ) =
X X X
C X X
and
[ ]
1 2
( ) ( ), ( )...... ( ) '.
n
E E X E X E X = =
X
X
(b) Bernouli Random Process
(c) A sinusoid with a random phase.




27
2.3 Stationary Random Process
A random process is called strict-sense stationary if its probability structure is
invariant with time. In terms of the joint distribution function
) (t X

, and ) ..... , ( ) ..... , (
0 2 1 ) ( )..... ( ), ( 2 1 ) ( )..... ( ), (
0 0 2 0 1 2 1
T t t N n x x x F x x x F
n n t t X t t X t t X n t X t X t X
n n
=
+ + +

For , 1 = n
) ( ) (
0 1 ) ( 1 ) (
0 1 1
T t x F x F
t t X t X
=
+
Let us assume
1 0
t t =

constant ) 0 ( ) 0 ( ) (
) ( ) (
1
1 ) 0 ( 1 ) (
1
= = =
=
X
X t X
EX t EX
x F x F

For , 2 = n
) , ( .) , (
2 1 ) ( ), ( 2 1 ) ( ), (
0 2 0 1 2 1
x x F x x F
t t X t t X t X t X + +
=
Put
2 0
t t =
) ( ) , (
) , ( ) , (
2 1 2 1
2 1 ) 0 ( ), ( 2 1 ) ( ), (
2 1 2 1
t t R t t R
x x F x x F
X X
X t t X t X t X
=
=


A random process is called wide sense stationary process (WSS) if ) (t X

1 2 1 2
( ) constant
( , ) ( ) is a function of time lag.
X
X X
t
R t t R t t
=
=

For a Gaussian random process, WSS implies strict sense stationarity, because this
process is completely described by the mean and the autocorrelation functions.
The autocorrelation function ) ( ) ( ) ( t X t EX R
X
+ = is a crucial quantity for a WSS
process.

2
0 ( )
X
( ) EX t R = is the mean-square value of the process.

*
for real process (for a complex process , ( ) ( ) ( ) ( )
X X X X
X(t) R R R R = =
0 ( ) ( )
X X
R R < which follows from the Schwartz inequality

2 2
2
2 2
2 2
2 2
( ) { ( ) ( )}
( ), ( )
( ) ( )
( ) ( )
(0) (0)
0 ( ) ( )
X
X X
X X
R EX t X t
X t X t
X t X t
EX t EX t
R R
R R

= +
= < + >
+
= +
=
<

28
( )
X
R is a positive semi-definite function in the sense that for any positive
integer and real n
j j
a a ,
,

1 1
( , ) 0
n n
i j X i j
i j
a a R t t
= =
>
If is periodic (in the mean square sense or any other sense like with
probability 1), then
) (t X
) (
X
R is also periodic.
For a discrete random sequence, we can define the autocorrelation sequence similarly.
If ) (
X
R drops quickly , then the signal samples are less correlated which in turn
means that the signal has lot of changes with respect to time. Such a signal has
high frequency components. If ) (
X
R drops slowly, the signal samples are highly
correlated and such a signal has less high frequency components.
) (
X
R is directly related to the frequency domain representation of WSS process.

The following figure illustrates the above concepts


Figure Frequency Interpretation of Random process: for slowly varying random process
Autocorrelation decays slowly


29
2.4 Spectral Representation of a Random Process
How to have the frequency-domain representation of a random process?
Wiener (1930) and Khinchin (1934) independently discovered the spectral
representation of a random process. Einstein (1914) also used the concept.
Autocorrelation function and power spectral density forms a Fourier transform
pair
Lets define

otherwise 0


T t -T X(t) (t) X
T
=
< < =

as will represent the random process ) ( , t X t
T
). (t X
Define in mean square sense. dt e (t) X w) X
jwt
T
T
T T

= (

2
t


d





1
t





2 1 2 1
2 *
2 1
) ( ) (
2
1
2
| ) ( |
2
) ( ) (
dt dt e e t X t EX
T T
X
E
T
X X
E
t j t j
T
T
T
T
T
T
T T T

+


= =
=
1 2
( )
1 2 1 2
1
( )
2
T T
j t t
X
T T
R t t e dt dt
T





=
2
2
1
( ) (2 | |)
2
T
j
X
T
R e T d
T


Substituting =
2 1
t t so that =
1 2
t t is a line, we get



d
T
e R
T
X X
E
j
T
T
x
T T
)
2
| |
1 ( ) (
2
) ( ) (
2
2
*
=


If
X
R ( ) is integrable then as , T

2
( )
lim ( )
2
T j
T X
E X
R e d
T

=


30
=
T
X E
T
2
) (
2

contribution to average power at freq and is called the power spectral


density.
Thus
) ( )
) )
X
X X
S (
and R ( S (
j
x
j
R e d
e dw

=
=



Properties
= average power of the process.
2
X
R (0) ( )
X
EX (t) S dw

= =

The average power in the band is
1
( , 2) w w
2
1
( )
w
X
w
S w dw

) ( R
X
is real and even ) (
X
S is real, even.
From the definition
2
( )
( ) lim
2
T
X T
E X
S w
T

= is always positive.
= =
) (
) (
) (
2
t EX
S
w h
x
X

normalised power spectral density and has properties of PDF,
(always +ve and area=1).

2.5 Cross-correlation & Cross power Spectral Density
Consider two real random processes . and Y(t) X(t)
Joint stationarity of implies that the joint densities are invariant with shift
of time.
Y(t) X(t) and
The cross-correlation function for a jointly wss processes is
defined as
)
X,Y
R ( Y(t) X(t) and

) )
)
) ( ) (
) ( ) ( ) that so
) ( ) ( )
( R ( R
( R
t Y t X
t X t Y ( R
t Y t X ( R
X,Y YX
X,Y
YX
X,Y
=
=
+ =
+ =
+ =

Cross power spectral density

, ,
( ) ( )
jw
X Y X Y
S w R e d

=


For real processes Y(t) X(t) and
31

*
, ,
( ) ( )
X Y Y X
S w S w =
The Wiener-Khinchin theorem is also valid for discrete-time random processes.
If we define ] [ ] [ ] [ n X m n E X m R
X
+ =
Then corresponding PSD is given by

[ ]
[ ]
2
( )
or ( ) 1 1
j m
X x
m
j m
X x
m
S w R m e w
S f R m e f


=
=
=




1
[ ] ( )
2
j m
X X
R m S w e


dw

=
For a discrete sequence the generalized PSD is defined in the domain z as follows

[ ] ( )
m
X x
m
S z R m z

=
=

If we sample a stationary random process uniformly we get a stationary random sequence.
Sampling theorem is valid in terms of PSD.

Examples 2:

2 2
2
2
(1) ( ) 0
2
( ) -
(2) ( ) 0
1
( ) -
1 2 cos
a
X
X
m
X
X
R e a
a
S w w
a w
R m a a
a
S w w
a w a

= >
= < <
+
= >

=
+

)


2.6 White noise process
S (
x
f


f
A white noise process is defined by ) (t X
( )
2
X
N
S f f = < <
The corresponding autocorrelation function is given by
( ) ( )
2
X
N
R = where ) ( is the Dirac delta.
The average power of white noise

2
avg
N
P df


32
Samples of a white noise process are uncorrelated.
White noise is an mathematical abstraction, it cannot be realized since it has infinite
power
If the system band-width(BW) is sufficiently narrower than the noise BW and noise
PSD is flat , we can model it as a white noise process. Thermal and shot noise are well
modelled as white Gaussian noise, since they have very flat psd over very wide band
(GHzs
For a zero-mean white noise process, the correlation of the process at any lag 0 is
zero.
White noise plays a key role in random signal modelling.
Similar role as that of the impulse function in the modeling of deterministic signals.




2.7 White Noise Sequence
For a white noise sequence ], [n x
( )
2
X
N
S w w =
Therefore

( ) ( )
2
X
N
R m = m
where ) (m is the unit impulse sequence.


White Noise WSS Random Signal
Linear
System






2.8 Linear Shi I va ia t yste ith Random Inputs ft n r n S m w
Consider a discrete-time linear system with impulse response ]. [n h




] [ ] [ ] [
] [ ] [ ] [
n * h n E x n E y
n * h n x n y
=
=
For stationary input ] [n x

0
[ ] [ ] [ ]
l
Y X X
k
E y n * h n h n
=
= = =
2
N

2
N

2
N
( )
X
S

] [n h

] [n x

] [n y
2
N


m



[ ]
X
R m
2
N



33
where is the length of the impulse response sequence l

] [ * ] [ * ] [
]) [ * ] [ ( * ]) [ ] [ (
] [ ] [ ] [
m h m h m R
m n h m n x n * h n x E
m n y n E y m R
X
Y
=
=
=
is a function of lag only. ] [m R
Y
m
From above we get
w) S w (w S
X Y
( | ( | =
2
) )

) (w S
XX


Example 3:
Suppose

X
( ) 1
0 otherwise
S ( )
2
c c
H w w w
N
w w
=
=
=
w


Then
Y
S ( )
2
c c
N
w w w w =
and
Y c
R ( ) sinc(w )
2
N
=

2
) H(w
) (w S
YY

) (
X
R


Note that though the input is an uncorrelated process, the output is a correlated
process.
Consider the case of the discrete-time system with a random sequence as an input. ] [n x


] [ * ] [ * ] [ ] [ m h m h m R m R
X Y
=
Taking the we get transform, z
S ) ( ) ( ) ( ) (
1
= z H z H z S z
X Y
Notice that if is causal, then is anti causal. ) (z H ) (
1
z H
Similarly if is minimum-phase then is maximum-phase. ) (z H ) (
1
z H



] [n h
] [n x ] [n y
) (z H ) (
1
z H
] [m R
XX

] [m R
YY

] [z S
YY
( )
XX
S z
34

Example 4:
If
1
1
( )
1
H z
z

=

and is a unity-variance white-noise sequence, then ] [n x



1
1
( ) ( ) ( )
1 1

1 2 1
YY
S z H z H z
z z
1

=

=




By partial fraction expansion and inverse z transform, we get

| |
2
1
1
] [
m
Y
a m R

=

2.9 Spectral factorization theorem
A stationary random signal that satisfies the Paley Wiener condition
can be considered as an output of a linea filter fed by a white noise
sequence.
] [n X
| ln ( ) |
X
S w dw


<

r
If is an analytic function of , ) (w S
X
w
and , then | ln ( ) |
X
S w dw


<

2
( ) ( ) ( )
X v c a
S z H z H z =
where
) (z H
c
is the causal minimum phase transfer function
) (z H
a
is the anti-causal maximum phase transfer function
and
2
v
a constant and interpreted as the variance of a white-noise sequence.
Innovation sequence
v n [ ] ] [n X

Figure Innovation Filter
Minimum phase filter => the corresponding inverse filter exists.


) (z H
c




Since is analytic in an annular region ) ( ln z S
XX
1
z

< < ,
ln ( ) [ ]
k
XX
k
S z c k z


=
=
)
1
z H
c
[ ] v n
(

] [n X
Figure whitening filter
35
where
1
[ ] ln ( )
2
iwn
XX
c k S w e dw


=

is the order cepstral coefficient. kth
For a real signal [ ] [ ] c k c k =
and
1
[0] ln ( )
2
XX
c S


=

w dw

1
1
1
[ ]
[ ] [ ]
[0]
[ ]
-1 2
( )

Let ( )
1 (1)z (2) ......
k
k
k k
k k
k
k
c k z
XX
c k z c k z
c
c k z
C
c c
S z e
e e e
H z e z
h h z


=


= =

=
=
= >
= + + +

( [0] ( ) 1
c z C
h Lim H z

= =
( )
C
H z and are both analytic ln ( )
C
H z
=> is a minimum phase filter. ( )
C
H z
Similarly let

1
1
( )
( )
1
( )
1
( )
k
k
a
k
k
c k z
c k z
C
H z e
e H z z


=
= = <
0)

2 1
Therefore,
( ) ( ) ( )
XX V C C
S z H z H z

=

where
2 ( c
V
e =

Salient points
can be factorized into a minimum-phase and a maximum-phase factors
i.e. and
) (z S
XX
( )
C
H z
1
( )
C
H z

.
In general spectral factorization is difficult, however for a signal with rational
power spectrum, spectral factorization can be easily done.
Since is a minimum phase filter,
1
( )
C
H z
exists (=> stable), therefore we can have a
filter
1
( )
C
H z
to filter the given signal to get the innovation sequence.
and are related through an invertible transform; so they contain the
same information.
] [n X [ ] v n

36
2.10 Wolds Decomposition
Any WSS signal can be decomposed as a sum of two mutually orthogonal
processes
] [n X
a regular process [ ]
r
X n and a predictable process [ ]
p
X n , [ ] [ ] [ ]
r p
X n X n X n = +
[ ]
r
X n can be expressed as the output of linear filter using a white noise
sequence as input.
[ ]
p
X n is a predictable process, that is, the process can be predicted from its own
past with zero prediction error.
37
CHAPTER - 3: RANDOM SIGNAL MODELLING

3.1 Introduction
The spectral factorization theorem enables us to model a regular random process as
an output of a linear filter with white noise as input. Different models are developed
using different forms of linear filters.
These models are mathematically described by linear constant coefficient
difference equations.
In statistics, random-process modeling using difference equations is known as
time series analysis.

3.2 White Noise Sequence
The simplest model is the white noise . We shall assume that is of 0-
mean and variance
[ ] v n [ ] v n
2
.
V


[ ]
V
R m












3.3 Moving Average model model
) (q MA

[ ] v n ] [ n X


The difference equation model is
[ ] [ ]
q
i
i o
X n b v n
=
i =

2 2 2
0
0 0
and [ ] is an uncorrelated sequence means
e X
q
X i V
i
v n
b


=
= =
=
The autocorrelations are given by
m
FIR
filter
( )
V
S w
2
w
2
V

38

0 0
0 0
[ ] [ ] [ ]
[ ] [ ]
[ ]
X
q q
i j
i j
q q
i j V
i j
R m E X n X n - m
bb Ev n i v n m j
bb R m i j
= =
= =
=
=
= +

Noting that
2
[ ] [ ]
V V
R m = m , we get

2
[ ] when
0

V V
R m
m- i j
i m j
=
+ =
= +
The maximum value for so that q j m is +

2
0
[ ] 0
and
[ ] [ ]
q m
X j j m V
j
X X
R m b b m
R m R m

+
=
=
=
q

Writing the above two relations together
2
0
[ ]
= 0 otherwise
q m
X j v j m
j
R m b b m

+
=
q =


Notice that, [ ]
X
R m is related by a nonlinear relationship with model parameters. Thus
finding the model parameters is not simple.
The power spectral density is given by
2
2
( ) ( )
2
V
X
S w B w

= , where
jqw
q
jw
e b e b b w B

1
+ + = = ...... ) (

FIR system will give some zeros. So if the spectrum has some valleys then MA will fit
well.

3.3.1 Test for MA process

[ ]
X
R m becomes zero suddenly after some value of . m


[ ]
X
R m
m
Figure: Autocorrelation function of a MA process
39

Figure: Power spectrum of a MA process











Example 1: MA(1) process

1 0
0 1
2 2 2
1 0
1 0
[ ] [ 1] [ ]
Here the parameters b and are tobe determined.
We have
[1]
X
X
X n b v n b v n
b
b b
R b b

= +
= +
=
From above can be calculated using the variance and autocorrelation at lag 1 of
the signal.
0
and b
1
b

3.4 Autoregressive Model
In time series analysis it is called AR(p) model.



The model is given by the difference equation

1
[ ] [ ] [ ]
p
i
i
X n a X n i v
=
= + n
The transfer function is given by ) (w A
q
m
[ ]
X
R m
( )
X
S w

] [n X
IIR
filter
[ ] v n
40

1
1
( )
1
n
j i
i
i
A w
a e

=
=


with (all poles model) and 1
0
= a
2
2
( )
2 | ( ) |
e
X
S w
A


=
If there are sharp peaks in the spectrum, the AR(p) model may be suitable.





The autocorrelation function [ ]
X
R m is given by

1
2
1
[ ] [ ] [ ]
[ ] [ ] [ ] [ ]
[ ] [ ]
X
p
i
i
p
i X V
i
R m E X n X n - m
a EX n i X n m Ev n X n m
a R m i m
=
=
=
= +
= +

2
1
[ ] [ ] [ ]
p
X i X V
i
R m a R m i m
=
= + I m
The above relation gives a set of linear equations which can be solved to find s.
i
a
These sets of equations are known as Yule-Walker Equation.

Example 2: AR(1) process

1
2
1
2
1
1
1
2
2
X 2
2
2
[ ] [ 1] [ ]
[ ] [ 1] [ ]
[0] [ 1] (1)
and [1] [0]
[1]
so that
[0]

From (1) [0]
1-
After some arithmatic we get

[ ]
1-
X X V
X X V
X X
X
X
V
X
m
V
X
X n a X n v n
R m a R m m
R a R
R a R
R
a
R
R
a
a
R m
a

= +
= +
= +
=
=
= =
=







( )
X
S
[ ]
X
R m
m
41
3.5 ARMA(p,q) Autoregressive Moving Average Model
Under the most practical situation, the process may be considered as an output of a filter
that has both zeros and poles.



The model is given by

1 0
[ ] [ ] [ ]
p q
i i
i i
x n a X n i b v n
= =
= + i (ARMA 1)
and is called the model. ) , ( q p ARMA
The transfer function of the filter is given by

2
2
2
( )
( )
( )
( )
( )
( ) 2
V
X
B
H w
A
B
S w
A



=
=

How do get the model parameters?
For m there will be no contributions from terms to ), 1 max( + p, q
i
b [ ].
X
R m

1
[ ] [ ] max( , 1)
p
X i X
i
R m a R m i m p q
=
= +
From a set of p Yule Walker equations, parameters can be found out.
i
a
Then we can rewrite the equation

=
+ =
=
=
q
i
i
p
i
i
i n v b n X
i n X a n X n X
0
1
] [ ] [
~
] [ ] [ ] [
~
From the above equation b can be found out. s
i
The is an economical model. Only only model may
require a large number of model parameters to represent the process adequately. This
concept in model building is known as the parsimony of parameters.
) , ( q p ARMA ) ( p AR ) (q MA
The difference equation of the model, given by eq. (ARMA 1) can be
reduced to
) , ( q p ARMA
p first-order difference equation give a state space representation of the
random process as follows:

[ 1] [
[ ] [ ]
] Bu n
X n n
+
=
z[n] = Az n
Cz

where

) (
) (
) (
w A
w B
w H =
[ ] X n
[ ] v n
42

1 2
0 1
[ ] [ [ ] [ 1].... [ ]]
......
0 1......0
, [1 0...0] and
...............
0 0......1
[ ... ]
p
q
x n X n X n p
a a a
b b b
=



= =




=
z n
A B
C

Such representation is convenient for analysis.

3.6 General Model building Steps
) , ( q p ARMA
Identification of p and q.
Estimation of model parameters.
Check the modeling error.
If it is white noise then stop.
Else select new values for p and q
and repeat the process.

3.7 Other model: To model nonstatinary random processes
ARIMA model: Here after differencing the data can be fed to an ARMA
model.
SARMA model: Seasonal ARMA model etc. Here the signal contains a
seasonal fluctuation term. The signal after differencing by step equal to the
seasonal period becomes stationary and ARMA model can be fitted to the
resulting data.
43


SECTION II






ESTIMATION THEORY
44
CHAPTER 4: ESTIMATION THEORY

4.1 Introduction
For speech, we have LPC (linear predictive code) model, the LPC-parameters are
to be estimated from observed data.
We may have to estimate the correct value of a signal from the noisy observation.

In RADAR signal processing In sonar signal processing








Signals generated by
the submarine due
Mechanical movements
of the submarine


Array of sensors
Estimate the location of the
submarine.

Estimate the target,
target distance from
the observed data
Generally estimation includes parameter estimation and signal estimation.
We will discuss the problem of parameter estimation here.

We have a sequence of observable random variables represented by the
vector
, ,...., ,
2 1 N
X X X

1
2
N
X
X
X



=




X
.

X is governed by a joint density junction which depends on some unobservable
parameter given by
) | ( ) | ,..., , (
2 1
x
X X
f x x x f
N
=
where may be deterministic or random. Our aim is to make an inference on from an
observed sample of . ,...., ,
2 1 N
X X X
45
An estimator is a rule by which we guess about the value of an unknown

(X) on the
basis of . X

(X) is a random, being a function of random variables.


For a particular observation
1 2
, ,...., ,
N
x x x we get what is known as an estimate (not
estimator)
Let be a sequence of independent and identically distributed (iid) random
variables with mean
N
X X X ,...., ,
2 1
X
and variance
2
.
X

1
1

N
i
i
X
N

=
= is an estimator for .
X

2
1
1
1
(
N
X
i
Y
N

=
=
2
)
X
is an estimator for
2
.
X

An estimator is a function of the random sequence and if it does not
involve any unknown parameters. Such a function is generally called a statistic.
N
X X X ,...., ,
2 1

4.2 Properties of the Estimator
A good estimator should satisfy some properties. These properties are described in terms
of the mean and variance of the estimator.

4.3 Unbiased estimator
An estimator

of is said to be unbiased if and only if

. E =
The quantity

E is called the bias of the estimator.


Unbiased ness is necessary but not sufficient to make an estimator a good one.
Consider

=
=
N
i
X i
X
N
1
2 2
1
) (
1

and

=
N
i
X i
X
N
1
2 2
2
) (
1
1

for an iid random sequence . ,...., ,
2 1 N
X X X
We can show that is an unbiased estimator.
2
2

2 2
1
( ) (
N
i X i X X X
i
E X E X
=
= + )
)} )( ( 2 ) ( ) ( {
2 2
X X X i X X X i
X X E + + =


Now
2 2
) ( =
X i
X E
46
and ( )
2
2


=
N
X
E E
i
X X X


2
2
2
2
2
2
2
2
2
( )
( ( ))
( ) ( )(
( ) (because of independence)
X i
i X
i X i X j X
i j i
i X
X
E
N X
N
E
X
N
E
X E X X
N
E
X
N
N

=
=
= +
=
=

also
2
) ( ) )( (
X i X X X i
X E X E =
2 2 2 2
1
2
) 1 ( 2 ) ( = + =

=
N N X E
N
i
X i

So
2 2 2
2
) (
1
1
=

=
X i
X E
N
E
2
2
is an unbiased estimator of
2
.
Similarly sample mean is an unbiased estimator.

=
=
N
i
i X
X
N
1
1

X
N
i
X
i X
N
N
X E
N
E

= = =

=1
} {
1


4.4 Variance of the estimator
The variance of the estimator is given by

2
))

( )

var( E E =
For the unbiased case

2
)

( )

var( = E
The variance of the estimator should be or low as possible.
An unbiased estimator is called a minimum variance unbiased estimator (MVUE) if

2 2

( ) ( ) E E
where

is any other unbiased estimator.



47
4.5 Mean square error of the estimator
2
)

( = E MSE
MSE should be as as small as possible. Out of all unbiased estimator, the MVUE has the
minimum mean square error.
MSE is related to the bias and variance as shown below.
2 2
2 2
2 2
2

( ) ( )

( ) ( ) 2 ( )( )

( ) ( ) 2( )( )

var( ) ( ) 0 ( ?)
MSE E E E E
E E E E E E E
E E E E E E E
b why




= = +
= + +
= + +
= + +



So

4.6 Consistent Estimators
As we have more data, the quality of estimation should be better.
This idea is used in defining the consistent estimator.
An estimator

is called a consistent estimator of if

converges in probability to .
( ) N

lim P - 0 for any 0



= >

Less rigorous test is obtained by applying the Markov Inequality

( )
2
2

E ( - )

P -


If

is an unbiased estimator (

( ) 0 b = ), then

var( ). MSE =

Therefore, if
then will be a consistent estimator.
2
,
0

( ) Lim E
N
=

Also note that



2

var( ) ( ) MSE b = +
Therefore, if the estimator is asymptotically unbiased (i.e. and
then

( ) 0 as ) b N

var( ) 0 as , N 0. MSE
Therefore for an asymptotically unbiased estimator

, if as

var( ) 0, , N then

will be a consistent estimator.


)

( )

var(
2
b MSE + =
MSE
48
Example 1: is an iid random sequence with unknown
N
X X X ,..., ,
2 1 X
and known
variance
2
.
X

Let
N
i
i 1
1
X
X
N

=
= be an estimator for
X
. We have already shown that
X
is unbiased.
Also
2
var( )
X
X
N

= Is it a consistent estimator?
Clearly
2
. var( ) 0
lim lim
X
X
N
N N

=

= Therefore
X
is a consistent estimator of .
X


4.7 Sufficient Statistic
The observations
1 2
, ....
N
X X X contain information about the unknown parameter . An
estimator should carry the same information about as the observed data. This concept
of sufficient statistic is based on this idea.
A measurable function is called a sufficient statistic of ) .... , (

2 1 N
X X X if it
contains the same information about as contained in the random sequence
1 2
, .... .
N
X X X In other word the joint conditional density
does not involve
) ,... , (
2 1
) ... , (

| .. ,
2 1 2 1
N
X X X X X X
x x x f
N N

.
There are a large number of sufficient statistics for a particular criterion. One has to select
a sufficient statistic which has good estimation properties.

A way to check whether a statistic is sufficient or not is through the Factorization
theorem which states:
) .... , (

2 1 N
X X X is a sufficient statistic of if
1 2
, .. / 1 2 1 2

( , ,... ) ( , ) ( , ,... )
N
X X X N N
f x x x g h x x x

=
where is a non-constant and nonnegative function of )

, ( g and and
does not involve

) ,... , (
2 1 N
x x x h and is a nonnegative function of
1 2
, ,... .
N
x x x

Example 2: Suppose is an iid Gaussian sequence with unknown mean
N
X X X ,..., ,
2 1
X
and known variance 1.
Then
N
i
i 1
1
X
X
N

=
= is a sufficient statistic of .
49
Because
( )
( )
( )
1 2
1
1
2 1

2
, .. / 1 2
1
2 1

2
2 1

2
1
( , ,... )
2
1

( 2 )
1

( 2 )

X
N X
N
X
i
N
i
N x
i
X X X N
i
x
i
N
x
i
N
f x x x e
e
e

=
=

=

+
=
=
=
( )
( )
2 2
1
2 2
1 1
1
( ) ( ) 2( )( )
2
1 1
( ) ( )
0
2 2
1

( 2 )
1
( ?)
( 2 )
N
X X X
i
N N
X X
i i
x x
i i
N
x
i
N
e
e e e w

=
= =
+ +

=
= hy
X

The first exponential is a function of and the second exponential is a
function of
N
x x x ,... ,
2 1
and .
X
Therefore
X
is a sufficient statistics of .
X


4.8 Cramer Rao theorem
We described about the Minimum Variance Unbiased Estimator (MVUE) which is a very
good estimator

is an MVUE if
= )

( E
and

( ) ( ) Var Var
where

is any other unbiased estimator of .


Can we reduce the variance of an unbiased estimator indefinitely? The answer is given by
the Cramer Rao theorem.
Suppose is an unbiased estimator of random sequence. Let us denote the sequence by
the vector

=
N
X
X
X
.
2
1
X
Let ) / ,......, (
1

N
x x f
X
be the joint density function which characterises This function
is also called likelihood function.
. X
may also be random. In that case likelihood function
will represent conditional joint density function.
) / ...... ( ln ) / (
1

N
x x f L
X
x = is called log likelihood function.

50
4.9 Statement of the Cramer Rao theorem
If is an unbiased estimator of

, then

) (
1
)

I
Var
where
2
) ( ) (

=
L
E I and ) ( I is a measure of average information in the random
sequence and is called Fisher information statistic.
The equality of CR bound holds if )

c
L
where is a constant. c
Proof: is an unbiased estimator of


. 0 )

( = E


= . 0 ) / ( )

( x x
X
d f
Differentiate with respect to , we get

. 0 )} / ( )

{( x x
X
d f


(Since line of integration are not function of .)
=

( ) ( / )} ( / ) 0. f dy f d


X X
x x = x

( ) ( / )} ( / ) 1. f dy f d

= =


X X
x x x
(1)
Note that ) / ( )} / ( {ln ) / (

x x x
X X X
f f f


=
( ) ( /
L
f )

X
x

Therefore, from (1)

. 1 )} / ( )} / ( ){

( x x x
X
d f L


So that
2

( ) ( / ) ( / ) ( / )dx 1 f L f d


X X
x x x x . (2)
since . 0 is ) / ( x
X
f
Recall the Cauchy Schawarz Ineaquality

2 2 2
, b a b a < > <
51
where the equality holds when b a c = ( where c is any scalar ).
Applying this inequality to the L.H.S. of equation (2) we get

2
2
2
-

( ) ( / ) ( / ) ( / )dx

( - ) ( / ) d ( ( / ) ( / ) d
f L f d
f L f


X X
X X
x x x x
x x x x x

= ) I( )

var(
) I( )

var( . . S H L
But R.H.S. = 1
1. ) I( )

var(

1

var( ) ,
( ) I


which is the Cramer Rao Inequality.
The equality will hold when

{ ( / ) ( / )} ( ) ( / ) , L f c f

X X
x x x
so that


Also from we get ( / ) 1, f d

=
X
x x
( / ) 0
( / ) 0
f d
L
f d

X
X
x x
x x

Taking the partial derivative with respect to again, we get
2
2
2
2
2
( / ) ( / ) 0
( / ) ( / ) 0
L L
f f d
L L
f f




+ =





d + =






X X
X X
x x
x x
x
x

2
2
2
L
E -
L
E


If

satisfies CR -bound with equality, then

is called an efficient estimator.



( / )

( - )
L
c

x

52
Remark:
(1) If the information ( ) I is more, the variance of the estimator

will be less.
(2) Suppose are iid. Then
N
X X ... ..........
1

/
1
, .. /
1 2
2
1
2
1 2
1
( ) ln( ( ))
( ) ln( ( .. ))
( )
X
X X X
N
N N
I E f x
I E f x x x
NI


=


Example 3:
Let are iid Gaussian random sequence with known and
unknown mean
N
X X ... ..........
1
2
variance
.
Suppose

=
=
N
i
i
X
N
1
1
which is unbiased.
Find CR bound and hence show that is an efficient estimator.
Likelihood function
) / ,..... , (
2

N
x x x f
1 X
will be product of individual densities (since iid)

=

=
N
i
i
x
e x x x f
N
N
1
2
) (
2
2
1
N
2
) 2 ( (
1
) / ,..... , (

1 X

so that
2
1
2
N
) (
2
1
) 2 ln( ) / (

=

=
N
i
i
N
x L X
Now
N
i 2
i 1
1
0 - ( -2) (X )
2
L

=
/

2 2
2
2 2
2
N
- that E So

N
-


=

L
L

CR Bound =
N
1

E -
1

) (
1
2
2
2
2
N


= =

=
L I

= =


-
N
) (X
2
1

N
1 i
2 i 2
i
i
N
X L

= ) - (
2

N

53
estimator. efficient an is and
) -

( c - Hence

L


4.10 Criteria for Estimation
The estimation of a parameter is based on several well-known criteria. Each of the criteria
tries to optimize some functions of the observed samples with respect to the unknown
parameter to be estimated. Some of the most popular estimation criteria are:
Maximum Likelihood
Minimum Mean Square Error.
Bayes Method.
Maximum Entropy Method.

4.11 Maximum Likelihood Estimator (MLE)
Given a random sequence and the joint density function
N
X X ....... ..........
1
1
................. / 1 2
( , ... )
N
X X N
f x x x

which depends on an unknown nonrandom parameter .


) / . .......... , x , (
2 1

N
x x f
X
is called the likelihood function (for continuous function .,
for discrete it will be joint probability mass function).
) / , ,......... , ( ln ) / (
2 1

N
x x x f L
X
x = is called log likelihood function.
The maximum likelihood estimator

MLE
is such an estimator that

1 2 1 2

( , ........., / ) ( , ,........, / ),
N MLE N
f x x x f x x x
X X

If the likelihood function is differentiable w.r.t. , then

MLE
is given by
0 ) / , (
MLE

1
=

N
x x f
X

or 0

) | L(
MLE

x

Thus the MLE is given by the solution of the likelihood equation given above.
If we have a number of unknown parameters given by

=
N

.
2
1

54
Then MLE is given by a set of conditions.
1 1MLE 2 2MLE M MMLE
1 2 M

L L L
.... 0

= = =


= = =



=



Example 4:
Let are independent identically distributed sequence of
distributed random variables. Find MLE for , .
N
X X ....... ..........
1
) , (
2
N
2

) , / , ,......... , (
2
2 1

N
x x x f
X
=
2
2
1

1

2
1




i
x
N
i
e
) , / , ,......... ( ln ) , / (
2
1
2

N
X X f X L
X
=
= - N ln
2
N
1 i
i
x
2
1
- ln N 2 ln

=


N


= =
= =


=> =

N
1 i
MLE i
2
N
1 i
i
0 ) (x
x
0

L

0

) (x

N
0
L
MLE
2
MLE
i
MLE
=

+ = =




Solving we get
( )
1
2
2
1
1

1

N
MLE i
i
N
MLE i MLE
i
x and
N
x
N


=
=
=
=



Example 5:
Let are independent identically distributed sequence with
N
X X ....... ..........
1
/
1
( ) -
2
x
f x e x


= <
X
<
Show that the median of is the MLE for
N
X X ....... ..........
1
.
1
1 2
, ... / 1 2
1
( , .... )
2
N
i
i
N
x
X X X N
N
f x x x e

=

/ 1
1
( / ) ln ( ,........., ) ln 2
N
N i
i
L X f x x N x


=
= =
X

1
N
i
i
x
=

is minimized by
1
( ................. )
N
median X X
55
Some properties of MLE (without proof)
MLE may be biased or unbiased, asymptotically unbiased.
MLE is consistent estimator.
If an efficient estimator exists, it is the MLE estimator.
An efficient estimator exists =>

c( ) / L(

x
at ,

=
0 )

(

) / (

= =

c
L x

is the MLE estimator.

Invariance Properties of MLE:


If

MLE
is the MLE of , then

( )
MLE
h is the MLE of ( ), h where ( ) h is an
invertible function of .

4.12 Bayescan Estimators
We may have some prior information about in a sense that some values of are
more likely (a priori information). We can represent this prior information in the form
of a prior density function.
In the folowing we omit the suffix in density functions just for notational simplicity.








The likelihood function will now be the conditional density ). / ( x f
, /
( , ) ( ) ( )
X
f f f x

=
X
x
Also we have the Bayes rule

/
/
( ) ( )
( )
( )
f f
f
f

=
X
X
X
x
x

where
/
( ) f
X
is the a posteriori density function
Parameter
with density
) (

f
) / (
Obervation
x
x
f

56
The parameter is a random variable and the estimator is another random
variable.
) (

x
Estimation error .

=
We associate a cost function with every estimator It represents the positive
penalty with each wrong estimation.
) ,

( C .

Thus is a non negative function. ) ,

( C
The three most popular cost functions are:
Quadratic cost function
2
)

(
Absolute cost function


Hit or miss cost function (also called uniform cost function)
minimising means minimising on an average)

4.13 Bayesean Risk function or average cost
,

( , C EC , ) C( ) f ( , d d


= =

X
x x )
The estimator seeks to minimize the Bayescan Risk.

Case I. Quadratic Cost Function

2
) -

( )

, ( = = C
Estimation problem is
Minimize


2
,

( ) ) f ( , d d



X
x x
with respect to .

This is equivalent to minimizing




d f )d f( )
d d )f f( )
x x x
x x x
) ( ) |

( (
) ( |

(
2
2
Since is always +ve, the above integral will be minimum if the inner integral is
minimum. This results in the problem:
) (x f
Minimize


)d f( ) ) |

(
2
x

( ) C
1



-
/2

/2
( ) C
( ) C


57
with respect to .

=>
2
/

) 0

( ) f ( d


X

=>
/

2 ) ( ) f ( d

X
0
f ( d f ( d



=

X X
f ( d

=

X
=>
/ /

) )
=>
/

is the conditional mean or mean of the a posteriori density. Since we are minimizing
quadratic cost it is also called minimum mean square error estimator (MMSE).

Salient Points
Information about distribution of available.
a priori density function is available. This denotes how observed data
depend on
) f (


We have to determine a posteriori density . This is determined form the
Bayes rule.
/
) f (
X

Case II Hit or Miss Cost Function
Risk
,

( , C EC , ) C( ) f ( , d d


= =

X
x x )


=


X X
X X
x x
x x

=



/
/

( , ) ( )

( ( , ) ) ( )
c ) f ( f d d
c ) f ( d f d


We have to minimize
/

) with respect to . C (,) f ( d

X

This is equivalent to minimizing


2
/


2
) 1 f ( d -
+

=

X

2


1
2

58
This minimization is equivalent to maximization of


2
/ /

) ) f ( d f (
+

X X
when is very small
This will be maximum if is maximum. That means select that value of that
maximizes the a posteriori density. So this is known as maximum a posteriori estimation
(MAP) principle.
/
) f (
X

This estimator is denoted by .


MAP


Case III


( , ) = C

,
/
/

Average cost=E

= ( , )

= ( ) ( )

= ( ) ( )
C
f d d
f f d d
f d f d


X
X
X
x x
x x
x x

For the minimum
/

( , ) ( | ) 0

X
C f x d

/ /


( ) ( | ) ( ) ( | ) 0

X X
f x d f x d


+


=


Leibniz rule for differentiation of integration
2 2
1 1
0 ( ) 0 ( )
0 ( ) 0 ( )
2 1
2 1
( , )
( , )
d0 ( ) d0 ( )
+ ( , 0 ( )) ( , 0 ( ))
du du
u u
u u
h u v
h u v dv dv
u u
u u
h u u h u u
/ /
/ /

=


/ /
/ /


Applying Leibniz rule we get

/ /

( | ) ( | ) 0
X X
f x d f x d

=


At the

MAE

/ /

( | ) ( | ) 0
MAE
MAE
X X
f x d f x d

=


So

MAE
is the median of the a posteriori density

( ) C

=
59
Example 6:
Let be an iid Gaussian sequence with unity Variance and unknown mean
N
X X X ...., ,
2 1
. Further is known to be a 0-mean Gaussian with Unity Variance. Find the MAP
estimator for .
Solution: We are given
2
2
1
1
2
( )
2
/
1
( )
2
1
)
( 2 )
N
i
i
x
N
f e
f ( e

=
=
X

Therefore
/
/
( ) ( )
)
( )
X
f f
f (
f

=
X
X
x
x

We have to find , such that is maximum.
/
) f (
X
Now is maximum when
/
) f (
X /
( ) ( ) f f
X
x is maximum.
/
ln ( ) ( ) f f

X
x is maximum


N
i
i
x
1
2
2
2
) (
2
1
is maximum

=
=
=
+
=
=


1
1
1
1

0 ) (
i
i MAP
N
i
i
x
N
x
MAP





Example 7:
Consider single observation X that depends on a random parameter . Suppose has a
prior distribution

/
( ) for 0, 0
and
( ) 0
x
X
f e
f x e x

=
= >
>

find the MAP estimation for .
/
/
/
( ) ( )
( )
( )
ln( ( | )) ln( ( )) ln( ( )) ln ( )
X
X
X
X X
f f x
f
f x
f x f f x f x


=
= +
Therefore MAP estimator is given by.
60
]
MAP
/

MAP
ln (x) 0

X
f
X

=
+


Example 8: Binary Communication problem








X is a binary random variable with
1 with probability 1/2
1 with probability 1/ 2
X

=


V is the Gaussian noise with mean
2
0 and variance .

To find the MSE for X from the observed data . Y

Then
2 2
2 2
2 2 2 2
( ) / 2
/
/
/
/
( ) / 2
( 1) / 2 ( 1) / 2
1
( ) [ ( 1) ( 1)]
2
1
( / )
2
( ) ( / )
( / )
( ) ( / )
[ ( 1) ( 1)]
x
y x
Y X
X Y X
X Y
X Y X
y x
y y
f x x x
f y x e
f x f y x
f x y
f x f y x fx
e x x
e e


+
= + +
=
=

+ +
=
+


Hence
2 2
2 2 2 2
2 2 2 2
2 2 2 2
( ) / 2
( 1) / 2 ( 1) / 2
( 1) / 2 ( 1) / 2
( 1) / 2 ( 1) / 2
2
[ ( 1) ( 1)]

( / )
=
tanh( / )
y x
MMSE
y y
y y
y y
e x x
X E X Y x dx
e e
e e
e e
y

+
+
+ +
= =

+

+
=



Y
+
X
V
61
To summarise

MLE:
Simplest

MMSE:

( / )
MMSE
E = X
MMSE

/
( )
X
f x

MLE



Find a posteriori density.
Find the average value by integration
Lots of calculation hence it is computationally exhaustive.

MAP:
MAP
/

Mode of the density


( ).
a posteriori
f

=
X



4.14 Relation between and
MAP

MLE

From
/
/
( ) ( )
)
( )
X
f f
f (
f

=
X
X
x
x

/ /
ln( )) ln( ( )) ln( ( )) ln( ( ))
X
f ( f f f

= +
X X
x x

is given by
MAP

/
ln ( ) ln( ( )) 0

f f


+ =

X
x
_

a priori density likelihood function.

Supose is uniformly distributed between and .
MIN MAX

Then
ln ( ) 0





MAP


/
( ) f
X

62





If

then
MIN MLE MAX
MAP MLE



=

If

then
MAP MIN
MAP MIN

If

then
MLE MAX
MAP MAX

=

MAX

MIN

( ) f

63


SECTION III







OPTIMAL FILTERING
64
CHAPTER 5: WIENER FILTER

5.1 Estimation of signal in presence of white Gaussian noise (WGN)
Consider the signal model is
] [ ] [ ] [ n V n X n Y + =





where is the observed signal, is 0-mean Gaussian with variance 1 and ] [n Y ] [n X ] [n V
is a white Gaussian sequence mean 0 and variance 1. The problem is to find the best
guess for given the observation ] [n X [ ], 1, 2,..., Y i i n =

Maximum likelihood estimation for determines that value of for which the
sequence is most likely. Let us represent the random sequence
by the random vector
] [n X ] [n X
[ ], 1, 2,..., Y i i n =
[ ], 1, 2,..., Y i i n =
[ ] [ [ ], [ 1],.., [1]]'
and the value sequence [1], [2],..., [ ] by
[ ] [ [ ], [ 1],.., [1]]'.
Y n Y n Y
y y y n
y n y n y
=
=
Y n
y n

The likelihood function
/ [ ]
( [ ] / [ ])
n X n
f n x n
Y[ ]
y will be Gaussian with mean ] [n x

( )
2
1
( [ ] [ ])
2
/ [ ]
1
( [ ] / [ ])
2
n
i
y i x n
n X n n
f n x n e

=
Y[ ]
y

Maximum likelihood will be given by
[1], [2],..., [ ]/ [ ]
[ ]
( ( [1], [2],..., [ ]) / [ ]) 0
[ ]
MLE
Y Y Y n X n
x n
f y y y n x n
x n



1
1
[ ] [ ]
n
MLE
i
n y
n

=
=

i
Similarly, to find ] [ n
MAP


and [ ]
MMSE
n we have to find a posteriori density
2
2
1
[ ] [ ]/ [ ]
[ ]/ [ ]
[ ]
1 ( [ ] [ ])
[ ]
2 2
[ ]
( [ ]) ( [ ] / [ ])
( [ ] / [ ])
( [ ])
1
=
( [ ])
n
i
X n n X n
X n n
n
y i x n
x n
n
f x n f n x n
f x n
f n
e
f n
=

Y
Y
Y
Y
y
y n
y
y

Taking logarithm
X
Y
V
+

65
2
2
[ ]/ [ ] [ ]
1
1 ( [ ] [ ])
log ( [ ]) [ ] log ( [ ])
2 2
n
e X n n e n
i
y i x n
f x n x n f n
=

=
Y Y
y
[ ]/ [ ]
log ( [ ])
e X n n
f x n
Y
is maximum at [ ].
MAP
x n Therefore, taking partial derivative of
[ ]/ [ ]
log ( [ ])
e X n n
f x n
Y
with respect to [ ] x n and equating it to 0, we get
1
[ ]
1
MAP
[ ] ( [ ] [ ]) 0
[ ]
[ ]
1
MAP
n
i
x n
n
i
x n y i x n
y i
x n
n
=
=

=
+

=

Similarly the minimum mean-square error estimator is given by
1
MMSE
[ ]
[ ] ( [ ]/ [ ])
1
n
i
y i
x n E X n n
n
=
= =
+

y
For MMSE we have to know the joint probability structure of the channel and the
source and hence the a posteriori pdf.
Finding pdf is computationally very exhaustive and nonlinear.
Normally we may be having the estimated values first-order and second-order
statistics of the data
We look for a simpler estimator.
The answer is Optimal filtering or Wiener filtering

We have seen that we can estimate an unknown signal (desired signal) [ ] x n from an
observed signal on the basis of the known joint distributions of and [ ] y n [ ] y n [ ]. x n We
could have used the criteria like MMSE or MAP that we have applied for parameter es
timations. But such estimations are generally non-linear, require the computation of a
posteriori probabilities and involves computational complexities.
The approach taken by Wiener is to specify a form for the estimator that depends on a
number of parameters. The minimization of errors then results in determination of an
optimal set of estimator parameters. A mathematically sample and computationally easier
estimator is obtained by assuming a linear structure for the estimator.
66
5.2 Linear Minimum Mean Square Error Estimator












The linear minimum mean square error criterion is illustrated in the above figure. The
problem can be slated as follows:

Given observations of data determine a set of
parameters such that
[ 1], [ 2].. [ ],... [ ], y n M y n M y n y n N + + +
[ 1], [ 2]..., [ ],... [ ] h M h M h o h N

1
[ ] [ ] [ ]
M
i N
x n h i y n

=
=

i
and the mean square error ( )
2
[ ] [ ] E x n x n is a minimum with respect to
[ ], [ 1]...., [ ], [ ],..., [ 1]. h N h N h o h i h M +
This minimization problem results in an elegant solution if we assume joint stationarity of
the signals [ ] and [ ] x n y n . The estimator parameters can be obtained from the second
order statistics of the processes [ ] and [ ]. x n y n

The problem of deterring the estimator parameters by the LMMSE criterion is also called
the Wiener filtering problem. Three subclasses of the problem are identified

Noise
Filter
[ ] x n

[ ] y n
[ ] x n

Syste
m
+
[ 1] y n M ..
[ ] y n
1 n M
n n N +

1. The optimal smoothing problem 0 N >
2. The optimal filtering problem 0 N =
3. The optimal prediction problem 0 N <

67
In the smoothing problem, an estimate of the signal inside the duration of observation of
the signal is made. The filtering problem estimates the curent value of the signal on the
basis of the present and past observations. The prediction problem addresses the issues of
optimal prediction of the future value of the signal on the basis of present and past
observations.

5.3 Wiener-Hopf Equations
The mean-square error of estimation is given by
2 2
1
2
[ ] ( [ ] [ ])
( [ ] [ ] [ ])
M
i N
Ee n E x n x n
E x n h i y n i

=
=
=


We have to minimize with respect to each to get the optimal estimation. ] [
2
n Ee ] [i h
Corresponding minimization is given by
{ }
2
[ ]
0, for ..0.. 1
[ ]
E e n
j N M
h j

= =


( E being a linear operator, and
[ ]
E
h j

can be interchanged)
[ ] [ - ] 0, ...0,1,... 1 Ee n y n j j N M = = (1)
or
[ ]
1
[ ] - [ ] [ ] [ - ] 0, ...0,1,... 1
a
e n
M
i N
E x n h i y n i y n j j N M

=

= =

(2)
1
( ) [ ] [ ], ...0,1,... 1
a
M
XY YY
i N
R j h i R j i j N M

=
= =

(3)
This set of equations in (3) are called Wiener Hopf equations or Normal 1 N M + +
equations.

The result in (1) is the orthogonality principle which implies that the error is
orthogonal to observed data.
[ ] x n is the projection of [ ] x n onto the subspace spanned by observations
[ ], [ 1].. [ ],... [ ]. y n M y n M y n y n N + +
The estimation uses second order-statistics i.e. autocorrelation and cross-
correlation functions.
68
If and are jointly Gaussian then MMSE and LMMSE are equivalent.
Otherwise we get a sub-optimum result.
] [n x ] [n y
Also observe that
[ ] [ ] [ ] x n x n e n = +
where [ ] x n and are the parts of [ ] e n [ ] x n

respectively correlated and uncorrelated
with Thus LMMSE separates out that part of [ ]. y n [ ] x n which is correlated with
Hence the Wiener filter can be also interpreted as the correlation canceller. (See
Orfanidis).
[ ]. y n

5.4 FIR Wiener Filter
1
0
[ ] [ ] [ ]
M
i
x n h i y n

=
=

i
[ ] - [ ] [ ] [ - ] 0, 0,1,... 1
e n
M
i
E x n h i y n i y n j j M

=

= =


The model parameters are given by the orthogonality principlee

[ ]
1
0
1
0
[ ] [ ] ( ), 0,1,... 1
M
YY XY
i
h i R j i R j j M

=
= =


In matrix form, we have
=
YY XY
R h r
where
[0] [ 1] .... [1 ]
[1] [0] .... [2 ]
...
[ 1] [ 2] .... [0]
YY YY YY
YY YY YY
YY YY YY
R R R M
R R R
R M R N R


=





YY
R
M

and
[0]
[1]
...
[ 1]
XY
XY
XY
R
R
R M



=



XY
r
and
[0]
[1]
...
[ 1]
h
h
h M



=


h
69
Therefore,

1
=
YY XY
h R r

5.5 Minimum Mean Square Error - FIR Wiener Filter

1
2
0
1
0
1
0
( [ ] [ ] [ ] [ ] [ ]
= [ ] [ ] error isorthogonal to data
= [ ] [ ] [ ] [ ]
= [0] [ ] [ ]
M
i
M
i
M
XX XY
i
E e n Ee n x n h i y n i
Ee n x n
E x n h i y n i x n
R h i R i

=

=




















XX XY
R r

Z
-1
[0] h
Z
-1
Wiener
Estimation
[1] h

[ 1 h M ]
[ ] x n
70
Example1: Noise Filtering
Consider the case of a carrier signal in presence of white Gaussian noise
0 0
[ ] [ ],
4
[ ] [ ] [ ]
x n A cos w n w
y n x n v n

= +
= +
=

here is uniformly distributed in (1, 2 ).
[ ] v n is white Gaussian noise sequence of variance 1 and is independent of [ ]. x n Find the
parameters for the FIR Wiener filter with M=3.
( )( )
( )
2
0
2
0
[ ] cos w
2
[ ] [ ] [ ]
[ ] [ ] [ ] [ ]
[ ] [ ] 0 0
( ) [ ]
2
[ ] [ ] [ ]
[ ] [ ] [ ]
[
XX
YY
XX VV
XY
XX
A
R m m
R m E y n y n m
E x n v m x n m v n m
R m R m
A
cos w m m
R m E x n y n m
E x n x n m v n m
R m

=
=
= + +
= + + +
= +
=
= +
= ]

Hence the Wiener Hopf equations are
2 2 2
2 2 2
2 2 2
[0] [1] [2] [0] [0]
[1] [0] [1] [1] [1]
[2] 1] [0] [2] [2]
1 cos cos
2 2 4 2 2
cos 1 cos
2 4 2 2 4
cos cos 1
2 2 2 4 2
YY YY XX
YY YY YY XX
YY YY YY XX
R R Ryy h R
R R R h R
R R R h R
A A A
A A A

A A A



=





+



+


2
2
2
[0]
2
cos [1]
2 4
cos
[2]
2 2
A
h
A
h
A
h








=









suppose A = 5v then

12.5
13.5 0
12.5
2
[0]
12.5 12.5 12.5
13.5 [1]
2 2
[2]
12.5 0
0 13.5
2
h
h
h


2

=















71
1
12.5
13.5 0 12.5
[0]
2
12.5 12.5 12.5
[1] 13.5
2 2
[2] 12.5
0 13.5 0
2
[0] 0.707
[1 0.34
[2] 0.226
h
h
h
h
h
h


2







=










=
=
=

Plot the filter performance for the above values of The following
figure shows the performance of the 20-tap FIR wiener filter for noise filtering.
[0], [1] and [2]. h h h







72
Example 2 : Active Noise Control
Suppose we have the observation signal is given by ] [n y
0 1
[ ] 0.5cos( ) [ ] y n w n v n = + +
where is uniformly distrubuted in ( )
1
0, 2 and [ ] 0.6 [ 1] [ ] v n v n v n = + is an MA(1)
noise. We want to control with the help of another correlated noise given by

] [
1
n v ] [
2
n v
2
[ ] 0.8 [ 1] [ ] v n v n v n = +







The Wiener Hopf Equations are given by
2 2 1 2
V V VV
= R h r
where [ [0] h[1]] h = h

and
2 2
1 2
1.64 0.8
and
0.8 1.64
1.48
0.6
V V
VV

=



=


R
r

[0] 0.9500
[1] -0.0976
h
h

=




Example 3:
(Continuous time prediction) Suppose we want to predict the continuous-time process
( ) at time ( ) by

( ) ( )
X t t
X t aX t

+
+ =

Then by orthogonality principle
( ( ) ( )) ( ) 0
( )
(0)
XX
XX
E X t aX t X t
R
a
R

+ =
=

As a particular case consider the first-order Markov process given by
] [ n x

] [ ] [
1
n v n x +
2-tap FIR
filter
2
[ ] v n
73
( ) ( ) ( )
d
X t AX t v t
dt
= +
In this case,
( ) (0)
A
XX XX
R R e


=
( )
(0)
A XX
XX
R
a e
R


= =
Observe that for such a process
1 1
1
1 1
( ) ( ( )
( ( ) ( )) ( ) 0
( ) ( )
(0) (0)
0
XX XX
A A A
XX XX
E X t aX t X t
R aR
R e e R e
)


+
+ =
= +
=
=

Therefore, the linear prediction of such a process based on any past value is same as the
linear prediction based on current value.

5.6 IIR Wiener Filter (Causal)
Consider the IIR filter to estimate the signal [ ] x n shown in the figure below.



The estimator is given by ] [ n x

0
( ) ( ) ( )
i
x n h i y n

=
=

i
The mean-square error of estimation is given by
2 2
2
0
[ ] ( [ ] [ ])
( [ ] [ ] [ ])
i
Ee n E x n x n
E x n h i y n i

=
=
=


We have to minimize with respect to each to get the optimal estimation. ] [
2
n Ee ] [i h

Applying the orthogonality principle, we get the WH equation.
0
0
( [ ] ( ) [ ]) [ ] 0, 0, 1, .....
From which we get
[ ] [ ] [ ], 0, 1, .....
i
YY XY
i
E x n h i y n i y n j j
h i R j i R j j

=
= =
= =



[ ] h n
[ ] y n ] [ n x
74
We have to find [ ], 0,1,... h i i = by solving the above infinite set of equations.
This problem is better solved in the z-transform domain, though we cannot
directly apply the convolution theorem of z-transform.
Here comes Wieners contribution.
The analysis is based on the spectral Factorization theorem:

2 1
( ) ( ) ( )
YY v c c
S z H z H z

=





Whitening filter



Wiener filter
Now is the coefficient of the Wiener filter to estimate
2
[ ] h n [ ] x n I from the innovation
sequence Applying the orthogonality principle results in the Wiener Hopf equation [ ]. v n
2
0
( ) ( ) ( )
i
x n h i v n

=
=

i
=

2
0
2
0
[ ] [ ] [ ] [ ]) 0
[ ] [ ] [ ], 0,1,...
i
VV XV
i
E x n h i v n i v n j
h i R j i R j j

=




= =



2
2
2
0
[ ] [ ]
( ) [ ] ( ), 0,1,...
VV V
V XV
i
R m m
h i j i R j j

=
=
= =


So that

[ ]
2 2
2 2
[ ]
[ ] j 0
( )
( )
XV
V
XV
V
R j
h j
S z
H z

=
+
=

where
[ ]
( )
XV
S z + is the positive part (i.e., containing non-positive powers of ) in power
series expansion of
z
( ).
XV
S z
[ ] v n
[ ] y n

1
1
( )
c
H z
( ) H z =
[ ] v n
2
( ) H z
] [ n x
1
( ) H Z
[ ] y n
75
1
0
0
1
0
1
1 1
2 2 1
[ ] [ ] [ ]
[ ] [ ] [ ]
[ ] [ ] [ - - ]
[ ] [j i]
1
( ) ( ) ( ) ( )
( )
( ) 1
( )
( )
i
XV
i
i
XY
i
XV XY XY
c
XY
V c
v n h i y n i
R j Ex n v n j
h i E x n y n j i
h i R
S z H z S z S z
H z
S z
H z
H z

+
=
=
=
= +
= =

=


Therefore,
1 2 2 1
1 (
( ) ( ) ( )
( ) ( )
XY
V c c
S z
H z H z H z
H z H z

)
+

= =



We have to
find the power spectrum of data and the cross power spectrum of the of the
desired signal and data from the available model or estimate them from the data
factorize the power spectrum of the data using the spectral factorization theorem

5.7 Mean Square Estimation Error IIR Filter (Causal)
2
0
0
0
( [ ] [ ] [ ] [ ] [ ]
= [ ] [ ] error isorthogonal to data
= [ ] [ ] [ ] [ ]
= [0] [ ] [ ]

i
i
XX XY
i
E e n Ee n x n h i y n i
Ee n x n
E x n h i y n i x n
R h i R i

=

=





*
*
1 1
1 1
( ) ( ) ( )
2 2

1
( ( ) ( ) ( ))
2
1
( ( ) ( ) ( ))
2
X X
X XY
X XY
C
S w dw H w S w dw
S w H w S w dw
S z H z S z z dz


=
=
=


Y


76
Example 4:
1
[ ] [ ] [ ] y n x n v n = + observation model with
[ ] 0.8 [ -1] [ ] x n x n w = + n
where v n is and additive zero-mean Gaussian white noise with variance 1 and
is zero-mean white noise with variance 0.68. Signal and noise are uncorrelated.
1
[ ] [ ] w n
Find the optimal Causal Wiener filter to estimate [ ]. x n

Solution:




( )( )
1
0.68
( )
1 0.8 1 0.8
XX
S z
z z

=


( )(
[ ] [ ] [ ]
[ ] [ ] [ ] [ ]
[ ] [ ] 0 0
( ) ( ) 1
YY
XX VV
YY XX
R m E y n y n m
) E x n v m x n m v n m
R m R m
S z S z
=
= + +
= + + +
= +

Factorize

( )( )
( )( )
( )
1
1
1
1
1
2
0.68
( ) 1
1 0.8 1 0.8
2(1 0.4 )(1 0.4 )
=
1 0.8 1 0.8
(1 0.4 )
( )
1 0.8
2
YY
c
V
S z
z z
z z
z z
z
H z
z
and

= +


=

Also
( )(
( )( )
)
1
[ ] x[ ] [ ]
[ ] [ ] [ ]
[ ]
( ) ( )
0.68
=
1 0.8 1 0.8
XY
XX
XY XX
R m E n y n m
E x n x n m v n m
R m
S z S z
z z

=
= +
=
=


1
1
1 0.8z


[ ] w n
[ ] x n
77
( )
( )
2 1
1
1 1
1
( ) 1
( )
( ) ( )
1 0.68 (1 0.8 )
=
2 (1 0.8 )(1 0.8 ) 1 0.4
0.944
=
1 0.4
[ ] 0.944(0.4) 0
XY
V c c
n
S z
H z
H z H z
z
z z z
z
h n n

=


5.8 IIR Wiener filter (Noncausal)



The estimator is given by ] [ n x

=
=

i
i n y i h n x ] [ ] [ ] [
For LMMSE, the error is orthogonal to data.
[ ] [ ] [ ] [ ] 0 j I
i
E x n h i y n i y n j

=

=


[ ] [ ] [ ], ,...0, 1, ...
YY XY
i
h i R j i R j j

=
= =


[ ] y n
] [ n x
( ) H z
This form Wiener Hopf Equation is simple to analyse.
Easily solved in frequency domain. So taking Z transform we get
Not realizable in real time

( ) ( ) ( )
YY XY
H z S z S z =
so that

( )
( )
( )
or
( )
( )
( )
XY
YY
XY
YY
S z
H z
S z
S w
H w
S w
=
=
78
5.9 Mean Square Estimation Error IIR Filter (Noncausal)
The mean square error of estimation is given by
2
( [ ] [ ] [ ] [ ] [ ]
= [ ] [ ] error isorthogonal to data
= [ ] [ ] [ ] [ ]
= [0] [ ] [ ]

i
i
XX XY
i
E e n Ee n x n h i y n i
Ee n x n
E x n h i y n i x n
R h i R i

=

=





*
1 1
( ) ( ) ( )
2 2
X X
S w dw H w S w dw


Y


=




*
1 1
1
( ( ) ( ) ( ))
2
1
( ( ) ( ) ( ))
2
X XY
X XY
C
S w H w S w dw
S z H z S z z dz


=
=



Example 5: Noise filtering by noncausal IIR Wiener Filter
Consider the case of a carrier signal in presence of white Gaussian noise
[ ] [ ] [ ] y n x n v n = +
where is and additive zero-mean Gaussian white noise with variance [ ] v n
2
.
V
Signal
and noise are uncorrelated
( ) ( ) ( )
and
( ) ( )
( )
( )
( ) ( )
( )
( )
=
(
) 1
( )
YY XX VV
XY XX
XX
XX VV
XY
VV
XX
VV
S w S w S w
S w S w
S w
H w
S w S w
S w
S w
S w
S w
= +
=
=
+
+

Suppose SNR is very high
( ) 1 H w
(i.e. the signal will be passed un-attenuated).
When SNR is low

( )
( )
( )
XX
VV
S w
H w
S w
=
79
(i.e. If noise is high the corresponding signal component will be attenuated in proportion
of the estimated SNR.














Figure - (a) a high-SNR signal is passed unattended by the IIR Wiener filter
(b) Variation of SNR with frequency


Example 6: Image filtering by IIR Wiener filter

( ) power spectrum of the corrupted image
( ) power spectrum of the noise, estimated from the noise model
or from the constant intensity ( like back-ground) of the image
( )
( )
YY
VV
XX
S w
S w
S w
H w
S
=
=
=
( ) ( )
( ) ( )
=
( )
XX VV
YY VV
YY
w S w
S w S w
S w
+



Example 7:
Consider the signal in presence of white noise given by
[ ] 0.8 [ -1] [ ] x n x n w = + n
where v n is and additive zero-mean Gaussian white noise with variance 1 and
is zero-mean white noise with variance 0.68. Signal and noise are uncorrelated.
[ ] [ ] w n
Find the optimal noncausal Wiener filter to estimate [ ]. x n
( ) H w
SNR
Signal

Noise
w
80
( )( )
( )( )
( )( )
( )( )
-1
XY
-1
YY
-1
-1
-1
0.68
1-0.8z 1 0.8z
S ( )
( )
S ( ) 2 1-0.4z 1 0.4z
1-0.6z 1 0.6z
0.34
One pole outside the unit circle
1-0.4z 1 0.4z
0.4048 0.4048
1-0.4z 1-0.4z
[ ] 0.4048(0.4) ( ) 0.4048(0.4) (
n n
z
H z
z
h n u n u

= =

= +
= + 1) n


[ ] h n



n
Figure - Filter Impulse Response
81
CHAPTER 6: LINEAR PREDICTION OF SIGNAL


6.1 Introduction
Given a sequence of observation
what is the best prediction for [ 1] [ 2], [ ], y n- , y n- . y n- M [ ]? y n
(one-step ahead prediction)
The minimum mean square error prediction for is given by [ ] y n [ ] y n
{ }
[ ] [ ] [ 1] [ 2] [ ] y n E y n | y n - , y n - , ... , y n - M = which is a nonlinear predictor.
A linear prediction is given by

=
=
M
i
i n y i h n y
1
] [ ] [ ] [
where are the prediction parameters. M i i h .... 1 ], [ =
Linear prediction has very wide range of applications.
For an exact AR (M) process, linear prediction model of order M and the
corresponding AR model have the same parameters. For other signals LP model gives
an approximation.

6.2 Areas of application
Speech modeling ECG modeling
Low-bit rate speech coding DPCM coding
Speech recognition Internet traffic prediction
LPC (10) is the popular linear prediction model used for speech coding. For a frame of
speech samples, the prediction parameters are estimated and coded. In CELP (Code book
Excited Linear Prediction) the prediction error [ ] [ ]- [ ] e n y n y n = is vector quantized and
transmitted.
M
i 1
[ ] [ ] [ ] y n h i y n - i
=
=

is a FIR Wiener filter shown in the following figure. It is called
the linear prediction filter.
82
Therefore
M
i 1
[ ] y[ ]- [ ]
[ ] [ ] [ ]
e n n y n
y n h i y n - i
=
=
=


is the prediction error and the corresponding filter is called prediction error filter.
Linear Minimum Mean Square error estimates for the prediction parameters are given by
the orthogonality relation
M
i 1
M
i 1
M
i 1
[ ] [ ] 0 1 2
( [ ] [ ] [ ])y[ ] 0 1 2
[ ] [ ] [ ] 0
[ ] [ ] [ ] 1 2
YY YY
YY YY
E e n y n - j = for j = , , , M
E y n h i y n - i n j j = , , , M
R j - h i R j - i =
R j h i R j - i j = , , , M
=
=
=
=


which is the Wiener Hopf equation for the linear prediction problem and same as the Yule
Walker equation for AR (M) Process.
In Matrix notation

[0] [1] .... [ 1] [1] [1]
[1] [ ] ... [ - 2] [2] [2]
. . .

. . .
. . .
[ ] [ -1] [ - 2] ...... [0] [ ]
YY YY YY YY
YY YY YY YY
YY YY YY YY
R R R M R h
R R o R M R h
h M R M R M R R M




=








YY YY
YY YY
r R h
r h R
1
) (

=
=


6.3 Mean Square Prediction Error (MSPE)

=
=
=
=
=
=
=
M
i
YY YY
M
i
M
i
i R i h R
i n y i h n y n Ey
n e n Ey
n e i n y i h n y E n e E
1
1
1
2
]) [ ] [ ] 0 [
]) [ ] [ ] [ ]( [
] [ ] [
] [ ]) [ ] [ ] [ ( ]) [ (


83
6.4 Forward Prediction Problem
The above linear prediction problem is the forward prediction problem. For notational
simplicity let us rewrite the prediction equation as

M
i 1
[ ] [ ] [ ]
M
y n h i y n - i
=
=

where the prediction parameters are being denoted by . ... 1 ], [ M i i h
M
=

6.5 Backward Prediction Problem
Given we want to estimate . [ ] [ 1], [ 1], y n , y n- . y n- M + y n M [ ]
The linear prediction is given by
M
i 1
y[ ] [ ] y[ 1 ]]
M
n- M b i n i
=
= +


.
.
.


Applying orthogonality principle.

1
( [ - ]- [ ] [ 1 ]) [ 1 ] 0 1, 2..., .
M
M
i
E y n M b i y n i y n j j M
=
+ + = =

This will give


, , M , j = j-i R i b j M R
YY M YY
2 1 ] [ ] [ ] 1 [
M
1 i
= +
=

Corresponding matrix form
[0] [1] .... [ 1] [1] [ ]
[1] [ ] ... [ - 2] [2] [ 1]
. .

. .
. .
[ -1] [ - 2] ...... [0] [ ] [1]
YY YY YY M YY
YY YY YY M YY
YY YY YY M YY
R R R M b R M
R R o R M b R M
R M R M R b M R





=





(1)

6.6 Forward Prediction
Rewriting the Mth-order forward prediction problem, we have
[0] [1] .... [ 1] [1] [1]
[1] [ ] ... [ - 2] [2] [2
. .

. .
. .
[ -1] [ - 2] ...... [0] [ ]
YY YY YY M YY
YY YY YY M YY
YY YY YY M
R R R M h R
R R o R M h R
R M R M R h M




=






]
.
.
.
[ ]
YY
R M










(2)
From (1) and (2) we conclude
84
M i i M h i b
M M
..., 2 , 1 ], 1 [ ] [ = + =
Thus forward prediction parameters in reverse order will give the backward prediction
parameters.
M S prediction error


=
=
=
+ + =
+ =

+ =
M
i
YY M YY
M
i
YY M YY
M
i
M M
i M R i M h R
i M R i b R
M n y i n y i b M n y E
1
1
1
] 1 [ ] 1 [ ] 0 [
] 1 [ ] [ ] 0 [
] [ ] 1 [ ] [ ] [
which is same as the forward prediction error.
Thus



Example 1:
Backward prediction error = Forward Prediction error.
Find the second order predictor for given ] [n y [ ] [ ] [ ], y n x n v n = + where is a 0-mean
white noise with variance 1 and uncorrelated with and
] [n v
] [n x [ ] 0 8 [ 1] [ ] x n . x n- w n = + ,
is a 0-mean random variable with variance 0.68 [ ] w n

The linear predictor is given by

2 2
[ ] [ ] [ ] [2] [ 2] 1 1 y h y h y n n n = +
We have to find h h ]. 2 [ and ] 1 [
2 2
Corresponding Yule Walker equations are

[2]
[1]

YY
YY
YY YY
YY YY
R
R
h
h
R R
R R
] 2 [
] 1 [
] 0 [ ] 1 [
] 1 [ ] 0 [
2
2
To find out ] 2 [ and ] 1 [ , ] 0 [
YY YY YY
R R R
[ ] [ ] [ ],
[ ] [ ] [ ]
YY XX
y n x n v n
R m R m m
= +
= +

| | | |
2
[ ] 0 8 [ 1] [ ]
0.68
[ ] 8 9 8 (0. ) 1.8 (0. )
1 (0.8)
[0] 2.89, [1] 1.51 and [2] 1.21
m m
XX
YY YY YY
x n . x n - w n
R m
R R R
= +
= =

= = =

Solving
2 2
[1] 0.4178 and h [2] 0.2004. h = =

85
6.7 Levinson Durbin Algorithm
Levinson Durbin algorithm is the most popular technique for determining the LPC
parameters from a given autocorrelation sequence.
Consider the Yule Walker equation for order linear predictor. mth

[m]
.
.
.
.
[1]

] [
.
.
.
] 2 [
] 1 [

] 0 [ ] 1 [
] 2 [ . ] [ ] 1 [
] 1 [ ] 1 [ ] 0 [
m
m
m


YY
YY
YY YY
yy YY YY
YY YY YY
R
R
m h
h
h
R ...... m- R
.
.
.
m- R ... o R R
m .... R R R
(1)
Writing in the reverse order

[1]
.
.
.
.
[m]

] 1 [
.
.
.
] 1 [
] [

] 0 [ ] 1 [
] 2 [ . ] [ ] 1 [
] 1 [ ] 1 [ ] 0 [
m
m
m


YY
YY
YY YY
yy YY YY
YY YY YY
R
R
h
m h
m h
R ...... m- R
.
.
.
m- R ... o R R
m .... R R R
(2)

Then (m+1) the order predictor is given by
[0] [1] [ 1] [ ]
[1] [0] [ 2] [ 1]
[ 1] [ 2] [0] [1]
[ ]
YY YY YY YY
YY YY YY YY
YY YY YY YY
YY
R R .... R m R m
R R .... R m R m
.
.
.
R m R m .... R R
R m



m 1
m 1
1 YY
YY 1
[1] [1]
[2] [2]
. .
. .
. .
[ ] [m]
[ 1] [1] [0] [m 1] [ 1]
YY
YY
m
YY YY YY m
h R
h R
h m R
R m .... R R R h m
+
+
+
+





=














+ +




Let us partition equation (2) as shown. Then
(3)
] [
.
.
.
[2]
[1]

] 1 [
.
.
.
1] - [m
[m]
1] [m h
] [
.
.
.
] 2 [
] 1 [

] 0 [ ] 2 [ ] 1 [
] 2 [ ] 0 [ ] 1 [
] 1 [ ] 1 [ ] 0 [
1 m
1
1 m
1 m

+ +

+
+
+
+
m R
R
R
R
R
R
m h
h
h
R .... m R m R
.
.
m R .... R R
m R .... R R
YY
YY
YY
YY
YY
YY
m
YY YY YY
YY YY YY
YY YY YY
and
1 1
1
[ ] [ 1 ] [ 1] [0] [ 1]
m
m YY m YY YY
i
h i R m i h m R R m
+ +
=
+ + + = +

(4)
86
From equation (3) premultiplying by we get ,
1
YY
R


] [
.
.
.
[2]
[1]

] 1 [
.
.
.
1] - [m
[m]
1] [m h
] [
.
.
.
] 2 [
] 1 [

1 m
1
1 m
1 m

+ +


+
+
+
+
m R
R
R
R
R
R
m h
h
h
YY
YY
YY
YY
YY
YY
m
1
YY
1
YY
R R

+ +

=
+
+
+
+
] [
.
.
.
] 2 [
]) 1 [

] 1 [
.
.
.
] 1 [
] [
1] [m
] [
.
.
.
] 2 [
] 1 [

m
m
m
m
m
1
1 m
1 m
1 m
m h
h
h
h
m h
m h
h
m h
h
h
m
m


The equations can be rewritten as
m i i m h k i h i h
m m m m
,... 2 , 1 ] 1 [ ] [ ] [
1 1
= + + =
+ +
(5)
where is called the reflection coefficient or the PARCOR (partial
correlation) coefficient.
] [m h k
m m
=
From equation (4) we get
] 1 [ ] 0 [ ] [ ] 1 [ ] [
1
1 1
+ = + +
=
+ +
m R R m h i m R i h
YY
m
i
YY m YY m

using equation (5)
error. prediction square - mean the is ] 1 [ ] 1 [ ] 0 [ ] [
where
] [
] 1 [ ] [

] [
] 1 [ ] [ ] 1 [
] 1 [ ] [ ] 1 [ } ] 1 [ ] 1 [ ] 0 [ {
] 1 [ ] 1 [ ] 1 [ ] 0 [ ] 1 [ ] [
] 1 [ ] 0 [ ] 1 [ } ] 1 [ ] [ {
1
0
1
1
1 1
1
1
1
1
1
1
1 1

=
=
=
+
= =
+
=
+
=
+
=
+ +
+ + =
+
=
+ + +
=
+ + + = + +
+ = + + + +
+ = + + +
m
i
YY m YY
m
i
YY m
m
i
YY m YY
m
m
i
YY m YY
m
i
YY m YY m
YY
m
i
YY m m
m
i
YY m YY m
YY
m
i
YY m YY m m m
i m R i m h R m
m
i m R i h
m
i m R i h m R
k
i m R i h m R i m R i m h R k
m R i m R i m h k R k i m R i h
m R R k i m R i m h k i h


87
1 ] 0 [ that assumption the used have we Here =
m
h
] 2 [ ] 2 [ ] 0 [ ] 1 [
1
1
1
+ + = +
+
=
+
m
i
YY m YY
i m R i m h R m
Using the recursion for ] [
1
i h
m+
We get
( )
2
1
1 ] [ ] 1 [
+
= +
m
k m m
will give MSE recursively. Since MSE is non negative

1
1
2


m
m
k
k

If 1,
m
k < the LPC error filter will be minimum-phase, and hence the corresponding
syntheses filter will be stable.
Efficient realization can be achieved in terms of .
m
k
represents the direct correlation of the data
m
k [ ] y n m on when the
correlation due to the intermediate data
[ ] y n
[ 1], [ 2],..., [ 1] y n m y n m y n + + is
removed. It is defined by

[ ] [ ]
(0)
f f
m m
m
yy
Ee n e n
k
R
=
where
1
1
[ ] forward prediction error = [ ] [ ] [ ]
and
[ ] backward prediction error= [ ] [ 1 ] [ 1 ]
n
f
m m
i
n
b
m m
i
e n y n h i y n i
e n y n m h m i y n i
=
=
=
= +

+


6.8 Steps of the Levinson- Durbin algorithm
Given . 2, 1, 0, , ] [ = m m R
YY

Initialization
Take m h
m
all for 1 ] 0 [ =

For , 0 = m
] 0 [ ] 0 [
YY
R =
For ... 3 , 2 , 1 = m
1
1
0
[ ] [ ]
[ 1]
m
m YY
i
m
h i R m i
k
m

=

=


88
1 - m 1,2..., i , ] [ ] [ ] [
1 1
= + =

i m h k i h i h
m m m m

) 1 (
] [
2
1 m m m
m m
k
k m h
=
=



Go on computing up to given final value of . m

Some salient points
The reflection parameters and the mean-square error completely determine the LPC
coefficients. Alternately, given the reflection coefficients and the final mean-square
prediction error, we can determine the LPC coefficients.
The algorithm is order recursive. By solving for order linear prediction problem
we get all previous order solutions
- m th
If the estimated autocorrelation sequence satisfy the properties of an autocorrelation
functions, the algorithm will yield stable coefficients

6.9 Lattice filer realization of Linear prediction error filters
[ ] = prediction error due to order forward prediction.
[ ] = prediction error due to order backward prediction.
f
m
b
m
e n mth
e n mth

Then,
1
[ ] = [ ] [ ] [ ]
m
f
m m
i
e n y n h i y n i
=


+
(1)
1
[ ] [ - ]- [ 1 ] [ 1 ]
m
b
m m
i
e n y n m h m i y n i
=
= +


From (1), we get

( )
] 1 [ ] [
] [ ] [ ] [ ] [ ] [ ] [
] [ ] [ ] [ ] [ ] [
] [ ] [ ] [ ] [ ] [ ] [
1 1
1
1
1
1
1
1
1
1
1 1
1
1
+ =

+ =
+ + =
=

=



n e k n e
i n y i m h m n y k i n y i h n y
i n y i m h k i h m n y k n y
i n y i h m n y m h n y n e
m m
f
m
m
i
m m
m
i
m
m
i
m m m m
m
i
m m
f
m
1 1
[ ] [ ] [ 1]
f f b
m m m m
e n e n k e n

= +

Similarly we can show that
1 1
[ ] [ 1] [ ]
b b f
m m m m
e n e n k e n

= +
89




m
k
m
k
1
z

1
[ ]
f
m
e n


1
[ ]
b
m
e n


+
+
[ ]
f
m
e n

[ ]
b
m
e n



How to initialize the lattice?
We have
0 ] [
0 ] [
0
0
=
=
n y e
and
n y e
b
f

Hence
0 0
[ ]
f b
e e y n = =
+
+
1
z

[ ] y n
1
k
1
k




6.10 Advantage of Lattice Structure
Modular structure can be extended by first cascading another section. New stages
can be added without modifying the earlier stages.
Same elements are used in each stage. So efficient for VLSI implementation.
Numerically efficient as |k
m
| < 1.
Each stage is decoupled with earlier stages.

=> It follows from the fact that for W.S.S. signal, sequences as a function of m are
uncorrelated.
[ ]
m
e n
[ ] and [ ] 0
b b
i m
e n e n i m <
are uncorrelated (Gram Schmidt orthogonalisation may be obtained through Lattice
filter).
90

k
1
k
1
k [ ] y[n- ] - [ 1 ] [ 1 ]
( k ) [ ] [ ] [ ] y[n- ] - [ 1 ] [ 1 ]
0 for 0
b
k k
i
b b b
m m k k
i
e n h k i y n i
E E e n e n e n h k i y n i
k m
=
=
= + +
= + +
= <


Thus the lattice filter can be used to whiten a sequence.
With this result, it can be shown that
( )
( )
2
1
1 1
] 1 [
] 1 [ ] [


n e E
n e n e E
k
b
m
b
m
f
m
m
(i)
and
( )
( )
2
1
1 1
] [
] 1 [ ] [
n e E
n e n e E
k
f
m
b
m
f
m
m



= (ii)
Proof:
Mean Square Prediction Error
( )
( )
2
1 1
2
] 1 [ ] [
] [
+ =
=

n e k n e E
n e E
b
m m
f
m
f
m

This is to be minimized w.r.t.
m
k
( )
) (
0 ] [ ] 1 [ ] [ 2
1 1 1
i
i n e n e k n e
b
m
b
m m
f
m

= +


Minimizing ( ) ) ( ] [
2
ii n e E
b
m


Example 2:
Consider the random signal model [ ] [ ] [ ], y n x n v n = + where is a 0-mean white noise
with variance 1 and uncorrelated with and
] [n v
] [n x [ ] 0 8 [ 1] [ ] x n . x n- w n = + , is a 0-
mean random variable with variance 0.68
[ ] w n
a) Find the second order linear predictor for ] [n y
b) Obtain the lattice structure for the prediction error filter
c) Use the above structure to design a second-order FIR Wiener filter to estimate
from [ ] x n [ ]. y n
91
CHAPTER 7: ADAPTIVE FILTERS

7.1 Introduction
In practical situations, the system is operating in an uncertain environment where the
input condition is not clear and/or the unexpected noise exists. Under such circumstances,
the system should have the flexible ability to modify the system parameters and makes
the adjustments based on the input signal and the other relevant signal to obtain optimal
performance.
A system that searches for improved performance guided by a computational algorithm
for adjustment of the parameters or weights is called an adaptive system. The adaptive
system is time-varying.

Wiener filter is a linear time-invariant filter.

In practical situation, the signal is non-stationary. Under such circumstances, optimal
filter should be time varying. The filter should have the ability to modify its parameters
based on the input signal and the other relevant signal to obtain optimal performance.

How to do this?
Assume stationarity within certain data length. Buffering of data is required and
may work in some applications.
The time-duration over which stationarity is a valid assumption, may be short so
that accurate estimation of the model parameters is difficult.
One solution is adaptive filtering. Here the filter coefficients are updated as a
function of the filtering error. The basic filter structure is as shown in Fig. 1.









The filter structure is FIR of known tap-length, because the adaptation algorithm updates
each filter coefficient individually.
Filter Structure

Adaptive algorithm
] [ n x
] [ n x

y ] [n
] [n e
92
7.2 Method of Steepest Descent
Consider the FIR Wiener filter of length M. We want to compute the filter coefficients
iteratively.
Let us denote the time-varying filter parameters by

1 - M ... 0,1, i ], [ = n h
i
and define the filter parameter vector by
0
1
1
[ ]
[ ]
[ ]
[ ]
M
h n
h n
n
h n




=



.
h
We want to find the filter coefficients so as to minimize the mean-square error ] [
2
n Ee
where

] [ ] [ - x[n]
] [ ] [ - x[n]
] [ ] [ - x[n]
] [ ] [ ] [
1
0
n n
n n
i n y n h
n x n x n e
M
i
i
h y
y h
=
=
=
=

=

[ ]
[ 1]
where [ ]
[ 1
y n
y n
n
y n M


=


] +

y
.

Therefore

] [ [ ] [ 2 ] 0 [
]) [ ] [ ] [ ( ] [
2 2
n n n R
n n n x E n Ee
xy XX
h ]R h r h
y h
YY
+ =
=
where

=
] 1 [
] 1 [
] 0 [
M R
R
R
XY
XY
XY
XY
.
r
and
[0] [ 1] .... [1 ]
[1] [0] .... [2 ]
...
[ 1] [ 2] .... [0]
YY YY YY
YY YY YY
YY YY YY
R R R M
R R R
R M R M R


=





YY
R
M

The cost function represented by is a quadratic in ] [
2
n Ee ] [n h
A unique global minimum exists
The minimum is obtained by setting the gradient of to zero. ] [
2
n Ee
93











Figure - Cost Function ] [
2
n Ee
The optimal set of filter parameters are given by
XY
1
XY opt
r R h

=
which is the FIR Wiener filter.

Many of the adaptive filter algorithms are obtained by simple modifications of the
algorithms for deterministic optimization. Most of the popular adaptation algorithms are
based on gradient-based optimization techniques, particularly the steepest descent
technique.

The optimal Wiener filter can be obtained iteratively by the method of steepest descent.
The optimum is found by updating the filter parameters by the rule
) n Ee n n ] [ (
2
] [ 1
2
+ = +

h ] h[
where
2
0
2
1
[ ]
2
[ ]
.........
[ ] .........
........
2 2 [ ]
and is the step-size parameter.
M
Ee n
h
Ee n
h
XY
Ee n
n





=





= +
YY
r R h

So the steepest descent rule will now give
) n n n
YY XY
] [ ] [ 1 h R (r h ] h[ + = +
94
7.3 Convergence of the steepest descent method
We have
XY
XY
n
n n
) n n n
r )h R (I
r h R h
h R (r h ] h[
YY
YY
YY XY
+ =
+ =
+ = +
] [
] [ ] [
] [ ] [ 1


where I is the identity matrix. MxM
This is a coupled set of linear difference equations.

Can we break it into simpler equations?
yy
R can be digitalized (KL transform) by the following relation
Q Q R
YY
=
where Qis the orthogonal matrix of the eigenvectors of .
YY
R
is a diagonal matrix with the corresponding eigen values as the diagonal elements.
Also Q Q Q Q I = =
Therefore
XY
n n r h Q Q Q (Q h + = + ] [ ) ] 1 [
Multiply by Q
XY
n n r Q h Q ) I h Q + = + ] [ ( ] 1 [
Define a new variable
XY XY
n n r Q r h Q h = = and ] [ ] [
Then

XY
n n r h ) (I h + = + ] [ ] 1 [
=
xy
r h +

] [
1 ... ..... 0
0
0 0 1
1
n

.
M
.
.



This is a decoupled set of linear difference equations

1 ,... 1 , 0 ] [ . ] [ ). 1 ( ] 1 [ = + = + M i i r n h n h
xy i i i


and can be easily solved for stability. The stability condition is given by
95
M i
i
i
i
,....... 1 , / 2 0
1 1 1
1 1
= < <
< <
<


Note that all the eigen values of are positive.
YY
R
Let
max
be the maximum eigen value. Then,

max 1 2
.....
Trace( )
M
< + +
=
YY
R


] 0 [ M.R
2

) (
2
0
YY
=
< <
yy
R Trace


The steepest decent algorithm converges to the corresponding Wiener filter
lim [ ]
n
n

=
-1
YY XY
h R r
if the step size is within the range of specified by the above relation.]

7.4 Rate of Convergence
The rate of convergence of the Steepest Descent Algorithm will depend on the factor
(1 )
i

in

1 ,... 1 , 0 ] [ . ] [ ). 1 ( ] 1 [ = + = + M i i R n h n h
xy i i i

Thus the rate of convergence depends on the statistics of data and is related to the eigen
value spread for the autocorrelation matrix. This rate is expressed using the condition
number of defined as ,
YY
R
min
max

= k where
max min
and are respectively the maximum
and the minimum eigen values of . The fastest convergence of this system occurs
when k = 1, corresponding to white noise.
YY
R

7.5 LMS algorithm (Least Mean Square) algorithm
Consider the steepest descent relation

2
[ 1] [ ]
2

n n e + = h h E [n]
Where
96

1
2
0
2
] [
] [
2
........
.........
.........
] [
M
h
n Ee
h
n Ee
n e E
In the LMS algorithm is approximated by to achieve a computationally
simple algorithm.
] [
2
n Ee ] [
2
n e


1
0
2
] [
. ..........
.........
..........
] [
]. [ . 2 ] [
M
h
n e
h
n e
n e n e E
Now consider
] [ ] [ ] [ ] [
1
0
i n y n h n x n e
M
i
i
=

=
1 ,....... 1 , 0 ], [
]. [
= =

M j j n y
h
n e
j

0
1
[ ] [ ]
[ 1]
................ .........
[ ]
................ ..........
.............. [ ]
[ 1]
M
y n e n
h y n
n
e n
h
y n M






= =


+

y
] [ ] [ ] [ n n e n y 2 Ee
2
=
The steepest descent update now becomes
y[n] h[n] 1] h[n ] [n e + = +
This modification is due to Widrow and Hopf and the corresponding adaptive filter is
known as the LMS filter.

Hence the LMS algorithm is as follows
Given the input signal , reference signal and step size ] [n y ] [n x
1. Initialization 1 ..... 2 , 1 , 0 , 0 ] 0 [ = = M i h
i

2 For 0 > n
97
Filter output
[ ] [ ] [ ] x n n = h y n
Estimation of the error
] [ ] [ ] [ n x n x n e =
98
3. Tap weight adaptation
e[n]y[n] h[n] 1] h[n + = +



FIR filter
1 ,.. 1 , 0 [ ], = h
i
M i n
] [n y
] [ n x

] [n e
] [n x
LMS algorithm
+






7.6 Convergence of the LMS algorithm
As there is a feedback loop in the adaptive algorithm, convergence is generally not
assured. The convergence of the algorithm depends on the step size parameter .
The LMS algorithm is convergent in the mean if the step size parameter
satisfies the condition.

max
2
0

< <
Proof:
y[n] h[n] 1] h[n ] [n e + = +
[ ]
( [ ] [ ])
[ ] [ ]
E E E e n
E E x n h
E E


+ = +
= +
= +
XY
h[n 1] h[n] y[n]
h[n] y[n] y [n] n
h[n] r y n y [n]h n

Assuming the coefficient to be independent of data (Independence Assumption), we get
] [
] [ ] [
n h R r h[n]
n h [n] y n y r h[n] 1] h[n
XY XY
XY
E E
E E E E


+ =
+ = +

Hence the mean value of the filter coefficients satisfies the steepest descent iterative
relation so that the same stability condition applies to the mean of the filter coefficients.
In the practical situation, knowledge of
max
is not available and Trace can be
taken as the conservative estimate of
yy
R
max
so that for convergence

2
0
Trace
< <
YY
(R )

Also note that trace, Trac ( [0] e M =
YY YY
R ) R = Tape input power of the LMS
filter.
99
Generally, a too small value of results in slower convergence where as big values of
will result in larger fluctuations from the mean. Choosing a proper value of is very
important for the performance of the LMS algorithm.

In addition, the rate of convergence depends on the statistics of data and is related to the
eigenvalue spread for the autocorrelation matrix. This is defined using the condition
number of defined as ,
YY
R
min
max

= k where
min
is the minimum eigenvalue of . The
fastest convergence of this system occurs when k = 1, corresponding to white noise. This
states that the fastest way to train a LMS adaptive system is to use white noise as the
training input. As the noise becomes more and more colored, the speed of the training
will decrease.
YY
R

The average of each filter tap weight converges to the corresponding optimal filter tap-
weight. But this does not ensure that the coefficients converge to the optimal values.

7.7 Excess mean square error
Consider the LMS difference equation:
y[n] h[n] 1] h[n ] [n e + = +
We have seen that the mean of LMS coefficient converges to the steepest descent
solution. But this does not guarantee that the mean square error of the LMS estimator will
converge to the mean square error corresponding to the wiener solution. There is a
fluctuation of the LMS coefficient from the wiener filter coefficient.
Let = optimal wiener filter impulse response.
opt
h
The instantaneous deviation of the LMS coefficient from is
opt
h
t
n n
op
h h h = ] [ ] [
] [ ] [ ] [ ] [
]) [ ] [ ] [ ( 2 ] [ ] [ ] [ ] [
]) [ ] [ ] [ ( 2 ] [ ] [ ] [ ] [ ]} [ ] [ {
]} [ ] [ ] [ ] [ { ] [ ] [
min
min
2
2 2
n n n n E
n n n e E n n n n E
n n n e E n n n n E n y n x E
n n n n x E n Ee n
opt
opt
opt
h y y h
y h h y y h
y h h y y h h
y h y h
opt
+ =
+ =
+ =
= =


assuming the independence of deviation with respect to data and at [ ] 0. E n = h
Therefore,
] [ ] [ ] [ ] [ n n n n E
excess
h y y h =
100
An exact analysis of the excess mean-square error is quite complicated and its
approximate value is given by

=
=
=
M
i
i
i
M
i
i
i
excess
1
1
min
2
1
2


The LMS algorithm is said to converge in the mean-square sense provided the step-length
parameter satisfies the relations
1
2
1
<

=
M
i i
i


and
max
2
0

< <
If 1
2
1
<<

=
M
i i
i


then

=

=
M
i i
i
excess
1
min
2


Further, if
min
min
1
1
( )
2
1 0
1
( )
2
excess
Trace
Trace



<<
=

YY
YY
R
R =

The factor

=
=
M
i
i
i excess
1
min
2

is called the misadjustment factor for the LMS filter.



7.8 Drawback of the LMS Algorithm
Convergence is slow when the eigenvalue spread of the autocorrelation matrix is large.
Misadjustment factor given by
) (
2
1
min
YY
R Trace
excess


is large unless is much smaller. Thus the selection of the step-size parameter is crucial
in the case of the LMS algorithm.
When the input signal is nonstationary the eigenvalues also change with time and
selection of becomes more difficult.

101
Example 1:
The input to a communication channel is a test sequence [ ] 0.8 [ -1] [ ] x n x n w n = + where
is a 0 mean unity variance white noise. The channel transfer function is given by
and the channel is affected white Gaussian noise of variance 1.
[ ] w n
2 1
5 . 0 ) (

= z z z H
(a) Find the FIR Wiener filter of length 2 for channel equalization
(b) Write down the LMS filter update equations
(c) Find the bounds of LMS step length parameters
(d) Find the excess mean square error.

Solution:
From the given model

[ ] x n

[ ] y n
[ ] x n


Noise
Equqlizer
Chan
nel
+ +
+


+




2
| |
2
[ ] (0.8)
1 0.8
[0] 2.78
[1] 2.22
[2] 1.78

m W
XX
XX
XX
XX
R m
R
R
R

=
=
=
[3] 1.42
[ ] [ 1] 0.5 [ 2] ( )
[ ] 1.25 [ ] 0.5 [ 1] 0.5 [ 1] [ ]
[0] 2.255
[1] 0 5325
also [ ] [ ] [ 1 ] 0.5 [ 2
XX
YY XX XX XX
YY
YY
XY
R
y n x n x n v n
R m R m R m R m
R
R .
R m Ex n x n m x n m

=
= +
= + +
=
=
= ( ) ] [ ]
[ 1] 0.5 [ 2]
[0] 1.33
and [1] 1.07
XX XX
XY
XY
v n m
R m R m
R
R
+
= + +
=
=
m

0
1
0 1
Therefore, the Wiener solution is given by
2.255 0.533 1.33

0.533 2.255 1.07
[0] [1] [2]
XX XY XY
h
h
MSE R h R h R

=


=


102
0
1
1 2
0.51
0.35
, 2.79,1.72
2

2.79
0.72
h
h

=
=
=

=

Excess mean square error

2
1
2
1
2
2
1
2 2
I
I
i
i
mn
i
i



7.9 Leaky LMS Algorithm
Minimizes
2
2
] [ ] [ n n e h +
where ] [n h is the modulus of the LMS weight vector and is a positive quantity.
The corresponding algorithm is given by
] [ ] [ ] [ ) 1 ( ] 1 [ n n n n y e h h + = +
where is chosen to be less than 1. In such a situation the pole will be inside the unit
circle, instability problem will not be there and the algorithm will converge.

7.10 Normalized LMS Algorithm
For convergence of the LMS algorithm

2
0
MAX

< <
and the conservative bound is given by
2
2
0
2

[0]
2
=
( [ ])
Trace
M
ME Y n
< <
=
YY
YY
(R )
R

We can estimate the bound by estimating by
2
( [ ]) E Y n
2
0
1
[ ]
M
n
Y n
M =
so that we get the bound
2 1
0
2 ] [
2
] [
2
0
n
i n y
M
i
y
=

< <

=

103
Then we can take
2
] [
2
n y
=
and the LMS updating becomes
] [ ] [
] [
1
] [ ] 1 [
2
n n e
n
n n y
y
h h + = +
where 2 0 < <

7.11 Discussion - LMS
The NLMS algorithm has more computational complexity compared to the LMS
algorithm
Under certain assumptions, it can be shown that the NLMS algorithm converges for
2 0 < <
2
[ ] n y can be efficiently estimated using the recursive relation

2 2
2 2
[ ] [ 1] [ ] [ 1] n n y n y n M = + y y
Notice that the NLMS algorithm does not change the direction of updation in steepest
descent algorithm
If is close to zero, the denominator term ( [ ] n y
2
[ ] n y ) in NLMS equation becomes very
small and
] [ ] [
] [
1
] [ ] 1 [
2
n n e
n
n n y
y
h h + = + may diverge
To overcome this drawback a small positive number is added to the denominator term
the NLMS equation. Thus

2
1
[ 1] [ ] [ ] [
[ ]
n n e n
n

+ = +
+
h h y
y
] n
For computational efficiency, other modifications are suggested to the LMS algorithm.
Some of the modified algorithms are blocked-LMS algorithm, signed LMS algorithm etc.
LMS algorithm can be obtained for IIR filter to adaptively update the parameters of the
filter

1 1
1 0
[ ] [ ] [ ] [ ] [ ]
M N
i i
i i
y n a n y n i b n x n i

= =
= +


How ever, IIR LMS algorithm has poor performance compared to FIR LMS filter.
104
7.12 Recursive Least Squares (RLS) Adaptive Filter
LMS convergence slow
Step size parameter is to be properly chosen
Excess mean-square error is high
LMS minimizes the instantaneous square error ] [
2
n e
Where ] [ ] [ ] [ ] [ ] [ ] [ ] [ n n n x n n n x n e h y - = y h - =

The RLS algorithm considers all the available data for determining the filter parameters.
The filter should be optimum with respect to all the available data in certain sense.

Minimizes the cost function
]
)
[ e ] [
2 k - n
0
k n
n
k
=
=

with respect to the filter parameter vector

] [
] [
] [
] [
1
1
0
n h
n h
n h
n
M
h
where is the weighing factor known as the forgetting factor

Recent data is given more weightage
For stationary case = 1 can be taken
0.99 is effective in tracking local nonstationarity

The minimization problem is
Minimize with respect to (
2
0
] [ ] [ ] [
] [
n k
k
x
n
n
k
k n
h
y

=
=

] [n h
The minimum is given by
0
h
=

) (
) (
n
n

=>
( )
0
2 [ ] [ ] [ ] [ ] [ ] 0
n
n k
k
x k k k k n

=
=

y y y h
=>


=
=

n
k
k n
n
k
k n
k k x k k n
0
1
0
] [ ] [ ] [ ] [ ] [ y y y h
Let us define
0

[ ] [ ] [ ]
n
n k
YY
k
n k

=
k =

R y y

105
which is an estimator for the autocorrelation matrix .
YY
R
Similarly estimator for the autocorrelation vector
=

=
=

n
k
k n
k k x n
0
] [ ] [ ] [ y r
XY

] [n
XY
r
Hence ( ) ] [ ] [

] [
1
n n n
XY XY
r R h

=
Matrix inversion is involved which makes the direct solution difficult. We look forward
for a recursive solution.

7.13 Recursive representation of
] [

n
YY
R
] [

n
YY
R can be rewritten as follows
] [ ] [ ] 1 [


] [ ] [ ] [ ] [
] [ ] [ ] [ ] [ ] [

1
0
1
1
0
n n n
n n k k
n n k k n
n
k
k n
n
k
k n
y y R
y y y y
y y y y R
YY
YY
+ =

+ =

+ =


This shows that the autocorrelation matrix can be recursively computed from its previous
values and the present data vector.
Similarly ] [ ] [ ] 1 [ ] [ n n x n n y r r
XY XY
+ =
[ ]
( ) ] [ ] [ ] [ ] 1 [


] [ ] [

] [
1
1
n n n n
n n n
XY YY
XY YY
r y y R
r R h

+ =
=


For the matrix inversion above the matrix inversion lemma will be useful.

7.14 Matrix Inversion Lemma
If A, B, C and D are matrices of proper orders, A and C nonsingular

1 1 1 1 1 1 1
+ = + DA ) C B (DA B A - A BCD) (A
Taking ] [ and 1 ], [ ], 1 [

n n n y D C y B R A
YY
= = = =
we will have
( ) [ ] ] 1 [

] [ 1 ] [ ] 1 [

1
] [ ] [ ] 1 [

1
] 1 [

1
] [

1
1

+ =


n n n n n n n n n
1
YY
1
YY
1 1
YY yy
R y y R y y R R R
YY


=

] [ ] 1 [

] [
] 1 [

] [ ] [ ] 1 [

] 1 [

1
n n n
n n n n
n
y R y
R y y R
R
1
YY
1
YY
1
YY 1
YY


Rename Then ]. [

] [ n n
1
YY
R P

=
106
( ) ] 1 [ ] [ ] [ ] 1 [
1
] [ = n n n n n P y k P P


where is called the gain vector and given by ] [n k

] [ ] 1 [ ] [
] [ ] 1 [
] [
n n n
n n
n
y P y
y P
k
+

=


] [n k important to interpret adaptation is also related to the current data vector
by
] [n y
] [ ] [ ] [ n n n y P k =
To establish the above relation consider
( ) ] 1 [ ] [ ] [ ] 1 [
1
] [ = n n n n n P y k P P


Multiplying by and post-multiplying by and simplifying we get ] [n y

( )
] [
] [ ] 1 [ ] [ ] [ ] [ ] 1 [
] [ ] 1 [ ] [ ] [ ] 1 [ ] [ [
n
n n n n n n
n n n n n n n
k
y P y k y P
y P y k P ]y P

=
=
=

Therefore

( )
( )
[ ]
( ) ] 1 [ ] [ ] [ ] [ ] 1 [

] [ ] [ ] 1 [ ] [ ] [ ] 1 [

] [ ] [ ] [ ] 1 [

] 1 [ ] [ ] [ ] 1 [

] [ ] [ ] [ ] 1 [

] [

] [ ] [ ] 1 [ ] [
] [ ] [

] [
1
1
+ =
+ =
+ =
+ =
+ =
=

n n n x n n
n n x n n n n
n n n x n n n n n
n n n x n n
n n x n n
n n n
h y k h
k h y k h
y P
r
P y
k
P
y P
r
P
y r P
r R h
XY
XY
XY
XY YY




7.15 RLS algorithm Steps
Initialization:
At n = 0
,
[0] , a postive number
[0] , [0]
=
= =
MxM
P I
y 0 h 0
Choose
Operation:
For 1 to n = Final do
1. Get ] [ ], [ n n x y
2. Get ] [ ] 1 [ ] [ ] [ n n n x n e y h =
3. Calculate gain vector
] [ ] 1 [ ] [
] [ ] 1 [
] [
n n n
n n
n
y P y
y P
k
+

=


107
4. Update the filter parameters
] [
] [ ] 1 [
] [ n e
n n
n
k h
h
+ =
5. Update the matrix P
( ) ] 1 [ ] [ ] [ ] 1 [
1
] [ = n n n n n P y k P P


end do


7.16 Discussion RLS
7.16.1 Relation with Wiener filter
We have the optimality condition analysis for the RLS filters
] [ ] [ ] [

n n n
xy YY
r h R =
where
0

[ ] [ ] [ ]
n
n k
k
n k

=
=
YY
R y k y
Dividing by 1 + n

1
] [ ] [
1
] [

0
+

=
+

=

n
k k
n
n
n
k
k n
y y
R
YY


if we consider the elements of
1
] [

+ n
n
YY
R
, we see that each is an estimator for the auto-
correlation of specific lag.
] [
1
] [

lim n
n
n
n
YY
YY
R
R
=
+


in the mean square sense. In other words, weighted sample autocorrelation is a
consistent estimator of the auto-correlation function of a WSS process.
Similarly

[ ]
lim [ ]
1
n
n
n
n

=
+
XY
XY
r
r
Hence as , optimality condition can be written as n
[ ] [ ] [ ]. n n n =
YY XY
R h r

108
7.16.2. Dependence condition on the initial values
Consider the recursive relation
] [ ] [ ] 1 [

] [

n n n n
YY YY
y y R R + =
Corresponding to

1

[0]
YY

= R I
we have

[0]

=
YY
I
R
With this initial condition the matrix difference equation has the solution

1
0
1
1

[ ] [ 1] [ ] [ ]

[ 1] [ ]

[ ]
n
n n k
YY
k
n
YY YY
n
YY
n k
n
n

+
=
+
+
k = +
= +
= +

R R y y
R R
I
R


Hence the optimality condition is modified as
] [ ] [
~
]) [

(
1
n n n
XY YY
n
r h R
I
= +
+


where is the modified solution due to assumed initial value of the P-matrix. ] [
~
n h
] [ ] [
~ ] [
~
] [

1 1
n n
n n
YY
n
h h
h R
= +
+


If we take as less than 1,then the bias term in the left-hand side of the above equation
will be eventually die down and we will get
] [ ] [
~
n n h h =

7.16.3. Convergence in stationary condition
If the data is stationary, the algorithm will converge in mean at best in M
iterations, where M is the number of taps in the adaptive FIR filter.
The filter coefficients converge in the mean to the corresponding Wiener filter
coefficients.
Unlike the LMS filter which converges in the mean at infinite iterations, the
RLS filter converges in a finite time. Convergence is less sensitive to eigen
value spread. This is a remarkable feature of the RLS algorithm.
The RLS filter can also be shown to converge to the Wiener filter in the
mean-square sense so that there is zero excess mean-square error.

109
7.16.4. Tracking non-staionarity
If is small n i
i n
<<

for 0
the filter is based on most recent values. This is also qualitatively explains that the
filter can track non stationary in data.


7.16.5. Computational Complexity
Several matrix multiplications result in arithmetic operations, which are quite
large, if the filter tap-length is high. So we have to go for the best implementation of the
RLS algorithm.
2
7M


110
CHAPTER 8: KALMAN FILTER

8.1 Introduction

N
] [n x

] [n y
+
Linear filter

[ ] x n


To estimate a signal [ ] x n in the presence of noise,
FIR Wiener Filter is optimum when the data length and the filter length are equal.
IIR Wiener Filter is based on the assumption that infinite length of data sequence
is available.
Neither of the above filters represents the physical situation. We need a filter that adds a
tap with each addition of data.

The basic mechanism in Kalman filter is to estimate the signal recursively by the
following relation

y[n] K 1] [n x A [n] x
n n
+ =

The whole of Kalman filter is also based on the innovation representation of the signal.
We used this model to develop causal IIR Wiener filter.

8.2 Signal Model
The simplest Kalman filter uses the first-order AR signal model
[n] [n 1] [ ] x ax w n = +

where is a white noise sequence.
[ ] w n
The observed data is given by
y[n] [ ] [ ] x n v n = +

where is another white noise sequence independent of the signal.
[ ] v n
The general stationary signal is modeled by a difference equation representing the ARMA
(p,q) model. Such a signal can be modeled by the state-space model and is given by
(1) [n] [n 1] [ ] n = + x Ax Bw
And the observations can be represented as a linear combination of the states and the
observation noise.
(2) [n] [n] [ ] y v = + c x n
111
Equations (1) and (2) have direct relation with the state space model in the control system
where you have to estimate the unobservable states of the system through an observer
that performs well against noise.

Example 1:
Consider the
( ) AR M
model

1 2 M
[n] [n 1] [n 2]+....+ [n ]+ [ ] x a x a x a x M w n = +

Then the state variable model for
[ ] x n
is given by
[n] [n 1] [ ] w n = + x Ax B

where
1
2
1 2
1 2
[ ]
[ ]
[ ] , [ ] [ ], [ ] [ 1].... and [ ] [ 1],
[ ]
.. ..
1 0 .. .. 0

0 1 .. .. 0
0 0 .. .. 1
1
0
and
..
0
M
M
M
x n
x n
x n x n x n x n x n x n M
x n
a a a



= = = =







=







=



x n
A
b
.
+

Our analysis will include only the simple (scalar) Kalman filter

The Kalman filter also uses the innovation representation of the stationary signal as
does by the IIR Wiener filter. The innovation representation is shown in the following
diagram.

] [ , ] 1 [ ], 0 [ n y y y

] [
~
, ] 1 [
~
], 0 [
~
n y y y
Orthogonalisation


Let
[ ] x n
be the LMMSE of
[ ] x n
based on the data
[0], [1] , [ ]. y y y n
112
In the above representation is the innovation of and contains the same
information as the original sequence. Let be the linear
prediction of based on
] [
~
n y ] [n y

( [ ] | [ 1]............, [0]) E y n y n y
[ ] y n [ 1]............, [0]. y n y


Then

[ ] [ ] ( [ ] | [ 1]............, [0])

[ ] ( [ ] [ ] | [ 1]............, [0])

[ ] ( [ 1] [ ] [ ] | [ 1]............, [0])

[ ] ( [ 1] | [ 1]..........
y n y n E y n y n y
y n E x n v n y n y
y n E ax n w n v n y n y
y n E ax n y n
=
= +
= + +
=

.., [0])
[ ] [ 1]
[ ] [ ] [ ] [ 1]
[ ] [ ] [ 1] [ ] [ 1]
= [ ] [ ] ( [ 1] [ 1]) [ ]
[ ] [ 1] [ ]
y
y n ax n
y n x n x n ax n
y n x n ax n w n ax n
y n x n a x n x n w n
v n ae n w n
=
= +
= + +
+ +
= + +


which is a linear combination of three mutually independent orthogonal sequences.
It can be easily shown that is orthogonal to each of
] [
~
n y [ 1], [ 2],......and [0]. y n y n y


The LMMSE estimation of based on is same as the estimation
based on the innovation sequence ,
] [n x ], [ , ] 1 [ ], 0 [ n y y y
] [
~
], 1 [
~
],.... 1 [ ], 0 [
~
n y n y y y
. Therefore,

] [
~
] [
0
n y k n x
n
i
i
=
=
where can be obtained by the orthogonality relation.
s k
i
Consider the relation

0
0
2
[ ] [ ] [ ]
[ ] [ ]
Then
( [ ] [ ]) [ ] 0 0,1..
so that
[ ] [ ] / 0,1..
n
i i
n
i i
j j
x n x n e n
k y i e n
E x n k y i y j j n
k Ex n y j j n
=
=
= +
= +
=
= =

=
113
Similarly

1
0
2
2
2
[ 1] [ 1] [ 1]
[ ] [ 1]
[ 1] [ ] / 0,1.. 1
( [ ] [ ]) [ ] / 0,1.. 1
( [ ]) [ ] / 0,1.. 1
/
n
i
i
j j
j
j
j j
x n x n e n
k y i e n
k Ex n y j j n
E x n w n y j a j n
E x n y j a j n
k k a

=
= +
= +
= =
= =
= =

0,1.. 1 j n =

Again,

a k A
n y k n x A n x
n x a y n y
n y y n y n y E
n y k n x a k
n x a n y k n x a
y n y n y E n y k n x a
n y k i y k a
n y k i y k i y k n x
n n
n n
n n
n
n
n
n
i
i
n
n
i
i
n
i
i
) 1 ( with
] [ ] 1 [ ] [
]. 1 [ as same is which and ]) 0 [ ..., ]......... 1 [ ns obseravtio
on based ] [ of prediction linear the is ])) 0 [ ..., ]......... 1 [ / ] [ (

where
] [ ]) 1 [ ) 1 (
]) 1 [ ] [ ( ] 1 [
])) 0 [ ..., ]......... 1 [ / ] [ (

] [ ( ] 1 [
] [
~
] [
~

] [
~
] [
~
] [
~
] [
1
0
1
0 0
=
+ =


+ =
+ =
+ =
+
=
+ = =

= =
Thus the recursive estimator
[ ] x n
is given by


[ ] [ 1] [ ]
n n
x n A x n k y n = +
Or

[ ] [ 1] ( [ ] [ 1])
n
x n ax n k y n ax n = +

The filter can be represented in the following diagram







[ ] y n
-
+
+
n
k
A
1
z

[ ] x n

114
8.3 Estimation of the filter-parameters
Consider the estimator

] [ ] 1 [ ] [ n y k n x A n x
n n
+ =

The estimation error is given by

] [ ] [ ] [ n x n x n e =
Therefore must orthogonal to past and present observed data .
] [n e

0 , 0 ] [ ] [ = m m n y n Ee

We want to find and the using the above condition.
n
A
n
k
] [n e
is orthogonal to current and past data. First consider the condition that is
orthogonal to the current data.
] [n e
2
2
2 2
2
2
[ ] [ ] 0
[ ]( [ ] [ ]) 0
[ ] [ ] [ ] [ ] 0
[ ]( [ ] [ ]) [ ] [ ] 0
[ ] [ ] [ ] 0
[ ] ( [ ] [ 1] [ ]) [ ] 0
[ ] 0
[ ]
n n
n V
n
V
Ee n y n
Ee n x n v n
Ee n x n Ee n v n
Ee n x n e n Ee n v n
Ee n Ee n v n
n E x n A x n k y n v n
n k
n
k

=
+ =
+ =
+ + =
+ =
+ =
=
=

We have to estimate at every value of n.
2
[ ] n
How to do it?
Consider

2
2
2
2 2
[ ] [ ] [ ]
[ ]( [ ] (1 ) [ 1] [ ])
(1 ) [ ] [ 1] [ ] [ ]
(1 ) (1 ) ( [ 1] [ ]) [ 1]
(1 ) (1 ) [ 1] [ 1]
n n
X n n
n X n
n X n
n Ex n e n
Ex n x n k ax n k y n
k aEx n x n k Ex n y n
k k aE ax n w n x n
k k a Ex n x n

=
=
=
= +
=
Again

2
2
2 2
[ 1] [ 1] [ 1]
[ 1]( [ 1] [ 1])
[ 1] [ 1]
Therefore,
[ 1] [ 1] [ 1]
X
X
n Ex n e n
Ex n x n x n
Ex n x n
Ex n x n n


=
=
=
=
115
Hence
2 2 2
2 2
2 2 2 2
[ 1]
[ ]
[ 1]
W
V
W V
a n
n
a n



+
=
+ +

where we have substituted
2 2
(1 )
W X
a
2
=


We have still to find
]. 0 [
For this assume
. 0 ] 1 [ ] 1 [ = = x x
Hence from the relation
2 2
[ ] (1 ) (1 ) [ 1] [ 1]
n X n
n k k a Ex n x n =

we get
2 2
0
[0] (1 )
X
k =

Substituting we get

2
0 2
[0]
V
k

=

in the expression for
2
[ ] n
We get
2 2
2
2 2
[0]
X V
X V


=
+


8.4 The Scalar Kalman filter algorithm
Given: Signal model parameters
2 2
W V
and and the observation noise variance . a

Initialisation
0 ] 1 [ = x
Step 1. Calculate
. 0 = n
2 2
2
2 2
[0]
X V
X V


=
+

Step 2. Calculate
2
2
[ ]
n
V
n
k

=

Step 3. Input Estimate by
]. [n y ] [ n x

] 1 [ ] [ ( ] 1 [ ] [ + = n x a n y k n x a n x
n

Step 4.
. 1 + = n n
Step 5.
2 2 2
2 2
2 2 2 2
[ 1]
[ ]
[ 1]
W
V
W V
a n
n
a n



+
=
+ +

Step 6. Go to Step 2


116
Example 2:
Given
2 2
[n] 0.6 [n 1] [ ] n 0
[ ] [ ] [ ] n 0
0 25 0.5
W V
x x w n
y n x n v n
. ,
= +
= +
= =


Find the expression for the Kalman filter equations at convergence and the corresponding
mean square error.
Using
2 2 2
2 2
2 2 2 2
[ 1]
[ ]
[ 1]
W
V
W V
a n
n
a n



+
=
+ +

We get
2 2
2
2
0.25 0.6
0.5
0.25 0.5 0.6

+
=
+ +

Solving and taking the positive root
2
=
0.320
n
k =
2
=
0.390
We have to initialize
2
[0].
Irrespective of this initialization,
[ ] and [ ] k n n
converge to final values.

8.5 Vector Kalman Filter
n] [n 1] [ ] n = + x[ Ax w
[n] [n] [ ] n = + y cx v
The vector Kalman filter can be derived in a similar fashion. We will not discuss this derivation.
117


SECTION IV





SPECTRAL ESTIMATION
118
CHAPTER 9 : SPECTRAL ESTIMATION TECHNIQUES
FOR STATIONARY SIGNALS

9.1 Introduction
The aim of spectral analysis is to determine the spectral content of a random process from
a finite set of observed data.
Spectral analysis is s very old problem: Started with the Fourier Series (1807) to solve
the wave equation.
Strum generalized it to arbitrary function (1837)
Schuster devised periodogram (1897) to determine frequency content numerically.

Consider the definition of the power spectrum of a random sequence } ], [ { < < n n x
2
( ) [ ]
j wm
XX XX
m
S w R m e

=
=


where is the autocorrelation function. ] [m R
XX
The power spectral density is the discrete Fourier Transform (DFT) of the
autocorrelation sequence
The definition involves infinite autocorrelation sequence.
But we have to use only finite data. This is not only for our inability to handle
infinite data, but also for the fact that the assumption of stationarity is valid
only for a sort duration. For example, the speech signal is stationary for 20 to
80-ms.
Spectral analysis is a preliminary tool it says that the particular frequency content may
be present in the observed signal. Final decision is to be made by Hypothesis Testing.

Spectral analysis may be broadly classified as parametric and non-parametric. In the
parametric method, the random sequence is modeled by a time-series model, the model
parameters are estimated from the given data and the spectrum is found by substituting
parameters in the model spectrum
We will first discuss the non-parametric techniques for spectral estimation. These
techniques are based on the Fourier transform of the sample autocorrelation function
which is an estimator for the true autocorrelation function.
119
9.2 Sample Autocorrelation Functions
Two estimators of the autocorrelation function exist

(unbiased) ] [ ] [
1
] [


(biased) ] [ ] [
1
] [


1
0
1
0


=

=
+

=
+ =
m N
n
XX
m N
n
XX
m n x n x
m N
m R
m n x n x
N
m R

Note that

1
XX
0
1

[ ] [ ] [ ]
[ ]
[ ] [ ]
[ ]
N m
n
XX
XX XX
XX
E R m E x n x n m
N
N m
R m
N
m
R m R m
N
N m
R m
N

=
= +

=
=

=



Hence is a biased estimator of Had we divided the terms under
summation by
] [

m R
XX
]. [m R
XX
m N instead of N, the corresponding estimator would have been
unbiased. Therefore, is an unbiased estimator. ] [

m R
XX

] [

XX
m R is an asymptotically unbiased estimator. As N , the bias of will
tend to 0. The variance of is very difficult to be determined, because it involves
fourth-order moments. An approximate expression for the covariance of is
given by Jenkins and Watt (1968) as
] [

XX
m R
] [

XX
m R
] [

XX
m R
( )
1 2
2 1 1 2

C ( [ ], [ ])
1
[ ] [ ] [ ] [ ]
XX XX
XX XX XX XX
n
ov R m R m
R n R n m m R n m R n m
N

=
+ +

+

This means that the estimated autocorrelation values are highly correlated.
The variance of is obtained from above as ] [

XX
m R
( )
2
1

var ( [ ] [ ] [ ] [ ]
XX XX XX XX
n
R m R n R n m R n
N

=
+

m +
Note that the variance of is large for large lag especially as m approaches
N.
] [

XX
m R , m
120
( ) ( ) . ] [ provided 0 ] [

var , N as Also
2
<

= n
XX XX
n R m R
As Though sample autocorrelation function is a consistent
estimator, its Fourier transform is not and here lies the problem of spectral estimation.
. 0 ]) [

var( , m R N
XX
Though unbiased and consistent estimators for is not used for spectral
estimation because does not satisfy the non-negative definiteness criterion.
], [
XX
m R ] [

XX
m R
] [

XX
m R

9.3 Periodogram (Schuster, 1898)

2
1
0
1

( ) [ ] , -
N
p jnw
XX
n
S w x n e w
N

=
=


gives the power output of band pass filters of impulse response

( )
p
XX
S w
1
[ ] ( )
i
w n
i
n
h n e rect
N
N

=
[ ]
i
h n is a very poor band-pass filter.
Also

1
( 1)
1 | |
0

( ) [ ]
1

where [ ] [ ] [ ]
N
p j
XX XX
m N
N m
XX
n
S w R m e
wm
R m x n x n
N

=

=
=
= +

m

The periodogram is the Fourier transform of the sample autocorrelation function.

To establish the above relation
Consider

1 1
0 0
2
1
0
[ ] [ ] for
0 otherwise
[ ]* [ ]

[ ]
1

( ) [ ] [ ]
1
[ ]
N
N N
XX
N N
p jwn
XX
n n
N
jwn
n
x n x n n N
x m x m
R m
N
S w x n e x n e
N
x n e
N

= =

=
= <
=

jwn
=

=


=


121
1
( 1)
1
( 1)
1
( 1)

( ) [ ]

( ) [ ]
1 [ ]
N
p j
XX XX
m N
N
p j
XX XX
m N
N
jwm
XX
m N
So S w R m e
E S w E R m e
m
R m e
N

=
=

=


=

wm
wm

as the right hand side approaches true power spectral density Thus the
periodogram is an asymptotically unbiased estimator for the power spectral density.
N ). ( f S
XX
To prove consistency of the periodogram is a difficult problem.
We consider the simple case when a sequence of Gaussian white noise in the following
example.
Let us examine the periodogram only at the DFT frequencies . 1 ,... 1 , 0 ,
2
= = N k
N
k
w
k


Example 1:
The periodogram of a zero-mean white Gaussian sequence . N- , . . . , n n x 1 0 , ] [ =
The power spectral density is given by
2
2
1
0

- ( )
2
The a is given by periodogr m
1

( ) [ ]
x
XX
N
p j
XX
n
w w S
S w x n e
N

wn

=
= <

=


Let us examine the periodogram only at the DFT frequencies . 1 ,... 1 , 0 ,
2
= = N k
N
k
w
k


2
2
1
0
2
1
0
2 2
1 1
0 0
2 2
2 2
1

( ) [ ]
1
[ ]
1 [ ]sin
[ ]cos
( ) ( )
where ( ) and ( ) are the con
K
N
j kn
p N
XX
n
N
jw n
n
N N
K
K
n n
X K X K
X K X K
S k x n e
N
x n e
N
x n w n
x n w n
N N
C w S w
C w S w

=

= =
=
=

+ =


+ =

sine and sine parts of . ( )


p
XX
S w

122
1
2
0
2
2
1
2
0
1
2 2
0
Let us consider
1
( ) [ ] cos
which is a linear combination of a Gaussian process.
Clearly E ( ) 0
1
var ( ) [ ]cos
1
[ ]cos
N
X K K
n
X K
N
X K k
n
N
K
n
C w x n w n
N
C w
C w E x n w n
N
Ex n w n
N

=
=
=

=


+ =

(Cross terms) E

Assume the sequence to be independent. ] [n x
Therefore,
( )
2 2 1 1
X X 2
K K
0 0
2
X
2
X
2
1 cos
var C (w )
cos
N N 2
sin

cos ( 1)
N 2 2sin
1
sin

cos ( 1)
2 2 sin
For
N N
K
K
n n
K
K
K
K
K
K
K
w
n
w
n
w
N N
w
N
w
w
N
w
N
w
N
w


= =
+

= =



= +



=
+



( )
( )
2
K K
2
K K
2
sin
0 0, (assuming even).
2sin 2
var C (w ) 0
2
sin
Again 1 0.
sin
var C (w ) 0, for
2
Similarly considering the sine par
K
K
X
K
K
X
k
N
w N N
k k N
w
k for
Nw
for k
N w
N
k k

=
=
= = /
= =
= = =
N-1
n 0
2
X
t
1
( ) [ ]sin
( ) 0 [ ] is zero mean.
var ( ) 0 0 (for dc part has no sine term)
0.
2
0, .

K K K
K K
K K
S w x n w n
N
E S w x n
S w for k
for k
Therefore for k Distribution

=
=
=
= =
= =
/
=

2
[ ] ~ (0, )
[ ] 0.
K X
K
C k N
S k

=

123
2
2
0
~ 0,
2
~ 0, .
2
X
K
X
K
for k
C N
S N

=
/







We can also show that
( ( ) ( )) 0.
X K X K
Cov S w C w =
So and are independent Gaussian R.V.s.. ( )
X K
C w ( )
X K
S w
The periodogram
2 2

[ ] [ ] [ ] has a chi-square distribution


p
XX X X
S k C k S k = +

9.4 Chi square distribution
Let be independent zero-mean Gaussian variables each with
variance Then
X . . . , X X
N 2 1
.
2
X

2 2 2
1 2 N
Y X X . . . X = + + + has (chi square) distribution with
mean
2
N


1 2
2 2 2
( )
N
EY E X X . . . X N
2
X
= + + + =
and variance
4
2 .
X
N
2
2
2
2 2
2
2
2
2 X

[ ] [ ] [ ].
It is a distribution.

[ ] [ ]
2 2

[ ] is unbiased

var [ ]) 2 2 [ ] which is independent of


2
XX X X
X X
XX X XX
XX
XX XX
S k C k S k
E S k S k
S k
(S k S k N

= +
= + = =


= =


( )
2 2
0 1
2
4 2

[0] [0] is a distribution of degree of freedom 1

[0]

[0] is unbiased

and var [0] [0].


XX
XX x
XX
XX X XX
S C
E S
S
S S

=
=

= =

It can be shown that for the Gaussian independent white noise sequence at any
frequency , w
2

var ( )) ( )
p
XX XX
(S w S w =
124







p
XX

( ) S w

w
For general case
1
( 1)
1 | |
0
1
( 1)

( ) [ ]
1

[ ] [ ] [ ], the biased estimator of autocorrelation fn.


| |

1 [ ]

N
p jwm
XX XX
m N
N m
XX
n
N
jwm
XX
m N
S w R m e
where R m x n x n m
N
m
R m e
N

=

=

=
=
= +

=


=

N-1
m -(N-1)

[ ] [ ]

where [ ] is the unbiased estimator of auto correlation


| |
and [ ] 1 is the Bartlett Window.
( Fourier Transform of product
jwm
B XX
XX
B
w m R m e
R m
m
w m
N

{ }
{ }
'
'
of two functions)

So, ( ) ( ) [ ]

E ( ) ( ) [ ]
( ) ( )
( ) ( )
p
XX B XX
p
XX B XX
B XX
B XX
S w W w FT R m
S w W w FT E R m
W w S w
W w S d

=
=
=
=


As

, E ( ) ( )
p
XX XX
N S w S w
)
Now cannot be found out exactly (no analytical tool). But an approximate
expression for the covariance is given by
(

var ( )
p
XX
S w
( )
1 2
2 2
1 2 1 2
1 2
1 2 1 2

( ), ( )
( ) ( )
sin sin
2 2
~ ( ) ( )
sin( ) sin( )
2 2
p p
XX XX
XX XX
Cov S w S w
N w w N w w
S w S w
w w w w
N N

+



+

+




125

( )
{ }
2
2
2
2
1 2
1 2 1 2
1
sin

var ( ) ~ ( ) 1
sin

var ( ) ~ 2 ( ) for w 0
( ) for 0 w
Consider w 2 and 2 , , integers.
Then

(
p
XX XX
p
XX XX
XX
p
XX
Nw
S w S w
N w
S w S w ,
S w
k k
f k k
N N
Cov S w




+





=
< <
= =
( )
2

), ( ) 0
p
XX
S w

This means that there will be no correlation between two neighboring spectral estimates.
Therefore periodogram is not a reliable estimator for the power spectrum for the
following two reasons:
(1) The periodogram is not a consistent estimator in the sense that does
not tend to zero as the data length approaches infinity.
( )

var ( )
p
XX
S w
(2) For two frequencies, the covariance of the periodograms decreases data length
increases. Thus the peridogram is erratic and widely fluctuating.
Our aim will be to look for spectral estimator with variance as low as possible, and
without increasing much the bias.

9.5 Modified Periodograms
Data windowing
Multiply data with a more suitable window rather than rectangular before finding the
perodogram. The resulting periodogram will have less bias.

9.5.1 Averaged Periodogram: The Bartlett Method
The motivation for this method comes from the observation that
,

lim E ( ) ( )
p
XX XX
N
S w S w


We have to modify to get a consistent estimator for

( )
p
XX
S w ). ( f S
XX
Given the data [ ] , 0 1 1 x n n , , . . . N - =
Divide the data in K non-overlapping segments each of length . L
Determine periodogram of each section.
126
2
1
( )
0
1
( ) ( )
0
( )
B
1

( ) [ ] for each section


1

( ). ( ) Then
As shown earlier,

W ( ) ( )
( )
| |
1 , | | 1
where [ ]
0,
L
k jwn
XX
n
K
av k
XX XX
m
k
XX XX
B
w
x n e S
L
w w S S
K
E w S d w
S
m
m M
w m
L

=
=

=

=

otherwise


{ }
2
B
1
( )
( 1)
1
( ) ( )
0
sin
2
W ( )
sin
2

[ ]
( )

1

( ) ( ) ( )

( )
L
jwm
k
XX XX
m L
K
av k k
XX XX XX
k
av
XX B
wL
w
w
w R m e
S
ES w ES w E S w
K
ES w W



=



=
= =
=

( ) ( ) .
XX
w S d


To find the mean of the averaged periodogram, the true spectrum is now convolved with
the frequency of the Barlett window. The effect of reducing the length of the data
from
) ( f W
B
N points to results in a window whose spectral width has been increased
by a factor K consequently the frequency resolution has been reduced by a factor K.
/ L N K =




( )
B
W w

Original
Modified

Figure Effect of reducing window size
127
9.5.2 Variance of the averaged periodogram

var( ( ))
av
XX
S w is not simple to evaluate as 4
th
order moments are involved.
Simplification :
Assume the K data segments are independent.
1
( )
0
1
( )
2
0
2
2
2

Then var( ( )) var ( )
1

var ( )
1 sin
~ 1 ( )
sin
1
~ original vari

K
av k
XX XX
k
K
m
XX
k
XX
S w S w
S w
K
wL
K S w
L w K
K

=

=


=


+



ance of the periodogram.



So variance will be reduced by a factor less than K because in practical situations, data
segments will not be independent.
For large L and large , K will tend to zero and will be a consistent
estimator.

var( ( ))
av
XX
S w

( )
av
XX
S w

The Welch Method (Averaging modified periodograms)
(1) Divide the data into overlapping segments ( overlapping by about 50 to 75%).
(2) Window the data so that the modified periodogram of each segment is

2
1
(mod)
0
1

[ ] [ ]
( )
L
jwn
XX
n
x n w n e
w S
UL

=
=


1
2
0
1
0
1
[ ]
The window [ ] need not be an is a even function and is used to control spectral leakage.
[ ] [ ] is the DTFT of [ ] [ ] where [ ] 1 for 0 , . . . -1

L
n
L
jwn
n
w n
L
w n
x n w n e x n w n w n n L

=
=
= =

0 otherwise =

1
( ) (mod)
0
1

(3) Compute ( ). ( )
K
Welch
XX XX
k
w w S S
K

=
=



128
9.6 Smoothing the periodogram : The Blackman and Tukey Method
Widely used non parametric method
Biased autocorrelation sequence is used ]. [

m R
XX
Higher order or large lags autocorrelation estimation involves less data
and so more prone to error, we give less importance to higher-
order autocorrelation.
( - , large) N m m

[ ]
XX
R m is multiplied by a window sequence which under weighs the
autocorrelation function at large lags. The window function has the following
properties.
[ ] w m
[ ] w m
0 w[ ] 1
[0] 1
[- ] [ ]
[ ] 0 | | .
m
w
w m w m
w m for m M
< <
=
=
= >

[0] 1 is a consequence w = of the fact that the smoothed periodogram should not modify
a smooth spectrum and so ( ) 1. W w dw


The smoothed periodogram is given by

1
( 1)

( ) [ ] [ ]
M
BT jwm
XX XX
m M
S w w m R m e

=
=


Issues concerned :
1. How to select [ ]? w m
There are a large numbers of windows available. Use a window with small side-lobes.
This will reduce bias and improve resolution.
2. How to select M. Normally
XX
~ or ~ 2 N (Mostly based on experience)
5
if N is large 10,000 N ~ 1000

( ) convolution of S ( ) and ( ), the F.T. of the window sequence.

BT p
XX
N
M M
S w w W w =
= Smoothing the periodogram, thus decreasing the variance in the estimate at the
expense of reducing the resolution.

129

p
1
( 1)

( ( )) ( ) * ( )

where ( ) ( ) ( )
or from time domain

( ) [ ] [ ] arymtotically unbiased

BT p
XX XX
XX XX B
M
BT jwm
XX XX
m M
E S w E S w W w
E S w S W w d
E S w E W m R m e

=
=
=
=

1
( 1)

[ ] [ ]
M
jwm
XX
m M
W m E R m e

=
=

_

( )
BT
XX
S w can be proved to be asymptotically unbiased.
2 1
2
( 1)
( )

and variance of ( )~ [ ]
M
BT
XX
XX
K M
S w
S w w k
N


Some of the popular windows are rectangular window, Bartlett window, Hamming
window, Hanning window, etc.

Procedure
1. Given the data [ ], 0,1.., 1 x n n N =
2. Find periodogram.
2
1
2 /
0
1

(2 / ) [ ] ,
N
p j
XX
n
S k N x n e
N

=
=

k N

3. By IDFT find the autocorrelation sequence.
4. Multiply by proper window and take FFT.

9.7 Parametric Method
Disadvantage classical spectral estimators like Blackman Tuckey Method using
windowed autocorrelation function.
- Do not use a priori information about the spectral shape
- Do not make realistic assumptions about [ ] x n for 0 and . n n N <
Normally can be estimated from sample values. From
these autocorrelations we can estimate a model for the signal basically a time series
model. Once the model is available it is equivalent to know the autocorrelation for all lags
and hence will give better spectral estimation. (better resolution) A stationary signal can
be represented by ARMA (p, q) model.

[ ], 0, 1,....... ( 1)
X
R m m N = N
1 0
[ ] [ ] [ ]
p q
i i
i i
x n a x n i b v n i
= =
= +



130
[ ] x n [ ] v n


H(z)




0
1
2
2
( )
( )
( )
1
( ) ( )
q
i
i
i
p
i
i
i
XX V
b z
B z
H z
A z
a z
and
S w H w

=
= =


Model signal as AR/MA/ARMA process
Estimate model parameters from the given data
Find the power spectrum by substituting the values of the model parameters in
expression of power spectrum of the model

9.8 AR spectral estimation
( ) AR p process is the most popular model based technique.
Widely used for parametric spectral analysis because:
Can approximate continuous power spectrum arbitrarily well
(but might need very large p to do so)
Efficient algorithms available for model parameter estimation
if the process Gaussian maximum entropy spectral estimate is ( ) AR p spectral
estimate
Many physical models suggest AR processes (e.g. speech)
Sinusoids can be expressed as AR-like models

The spectrum is given by

2
2
1

( )
1
V
XX
P
jwi
i
i
S w
a e

=
=


where are s
i
a ( ) AR p process parameters.
Figure an AR spectrum
w

( )
XX
S w

131
9.9 The Autocorrelation method
The are obtained by solving the Yule Walker equations corresponding to estimated
autocorrelation functions.
s
i
a
1
2

[0] [1] ..... [ 1]

[1] [0] ..... [ 2]

..
.............. ....................

[ 1] [1] ..... [0]
XX XX XX
XX XX XX
P
XX XX XX
R R R p
a
a
R R R p
a
R p R R














2
1

[1]

[2]

..

[ 1]

[0] [ ]
X
X
X
P
V X i XX
i
R
R
R P
R a R i
=


=




+

=



9.10 The Covariance method
The problem of estimating the AR-parmeters may be considered in terms of minimizing
the sum-square error
1
2
[ ] [ ]
N
n p
n e

=
=

n
with respect to the AR parameters, where
1
[ ] [ ] [ ]
p
i
i
e n x n a x n i
=
=


Theis formulation results in
1
2

[1,1] [2,1] ..... [ ,1]

[1, 2] [2, 2] ..... [ , 2]

..
.............. ....................

[1, ] [2, ] ..... [ , ]
XX XX XX
XX XX XX
P
XX XX XX
R R R p
a
a
R R R p
a
R p R p R p p









2
1

[0,1]

[0, 2]

..

[0, 1]

[0, 0] [0, ]
where
1

[ , ] [ ] [ ]
is an estimate for the autocorrelation function.
X
X
X
P
V X i XX
i
N
XX
n p
R
R
R P
R a R i
R k l x n k x n l
N p

=
=

=








+

=
=


Note that the autocorrelation matrix in the Covariance method is not Toeplitz and cannot
be solved by efficient algorithms like the Levinson Durbin recursion.
The flow chart for the AR spectral estimation is given below:



132
Find
2
2
1

( )
1
V
XX
P
jwi
i
i
S w
a e

=
=
+

Estimate the auto correlation


values

[ ], 0,1,..
XX
R m m p =
Solve for
2
, 1, 2,..
and
i
V
a i p

( )
XX
S w
[ ], 0,1,.., x n n N =
Select an order
p























Some questions :
Can an ( ) AR p process model a band pass signal?
If we use (1) R model, it will never be able to model a band-pass process. If
one sinusoid is present th
( 2)
A
en
AR
an
process will be able to discern it. If there
is a strong frequency component w ( 2) AR process with poles at
0
,
0
jw
re


with 1 r will be able to discriminate the frequency components.

How do we select the order of the AR(p) process?
MSE will give some guidance regarding the selected order is proper or not.
For spectral estimation, some criterion function with respect to the order
parameter are to be minimized. For example, p
133
- Minimize Forward Prediction Error.

2
1

1
P
N
N p
FPE (p)
p

+ +
=


diction error (variance for non zero mean case)
ation Criteria
e

FPE(p)
P
where N = No of data

2

P
= mean square pre
Akike Inform
-Minimiz

2
2
( ) ln( )
v
p
AIC p
N
= +

9.11 Frequency Estimation of Harmonic signals
A class of spectral estimators is based on eigen decomposition of the autocorrelation
matrix of the data vector. Either the eigen values or the eigen vectors can be used.
Notable of these algorithms is the MUSIC (Multiple Signal Classification) algorithm. We
will discuss this algorithm also.
134
10. Text and Reference


1. M. Hays, Statistical Digital Signal Processing and Modelling, John Willey and
Sons, 1996.

2. M.D. Srinath, P.K. Rajasekaran and R. Viswanathan, Statistical Signal Processing
with Applications, PHI, 1996.

3. Simon Haykin, Adaptive Filter Theory, Prentice Hall, 1996

4. D.G. Manolakis, V.K. Ingle and S.M. Kogon, Statistical and Adaptive Signal
Processing, McGraw Hill, 2000

5. S. M. Kay, Modern Spectral Estimation, Prentice Hall, 1987

6. S. J. Orfanidis, Optimum Signal Processing, Second Edition, MacMillan
Publishing, 1989.

7. H. Stark and J.W. Woods, Probability and Random Processes with Applications
to Signal Processing, Prentice Hall 2002.

8. A. Papoulis and S.U. Pillai, Probability, Random Variables and Stochastic
Processes, 4th Edition, McGraw-Hill, 2002


135

You might also like