+ All Categories
Home > Documents > Digital Signal Processing-Random processes

Digital Signal Processing-Random processes

Date post: 04-Apr-2018
Category:
Upload: gramoz-cubreli
View: 216 times
Download: 0 times
Share this document with a friend

of 121

Transcript
  • 7/30/2019 Digital Signal Processing-Random processes

    1/121

    1

    Random Processes, OptimalFiltering and Model-based Signal

    Processing

    Elena Punskayawww-sigproc.eng.cam.ac.uk/~op205

  • 7/30/2019 Digital Signal Processing-Random processes

    2/121

    2

    Overview of the course

  • 7/30/2019 Digital Signal Processing-Random processes

    3/121

    3

    A good text for the course:

    Monson H. Hayes, Statistical Digital

    Signal Processing and Modeling,

    Willey, 1996

  • 7/30/2019 Digital Signal Processing-Random processes

    4/1214

    Discrete-time Random Processes

    A random process is a rule that maps every outcome of anexperiment to a function.

    family of functions (a single function is

    identified by the outcome k

    and it is just

    a function of, for example, time, where t =

    nT, and T the sampling interval)

  • 7/30/2019 Digital Signal Processing-Random processes

    5/1215

    Random Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    6/1216

    Ensemble representation of adiscrete-time random process

    where t = nT, and T the sampling interval

    1

    2

    .

    .

    .

    N

    From pdf

    f()

    samplespace

    Xn1 Xn2 Xn3 Random Vector

    n1

    n2

    n3

    Random variable

  • 7/30/2019 Digital Signal Processing-Random processes

    7/121

    7

    Discrete-time and Continuous-timeRandom process

  • 7/30/2019 Digital Signal Processing-Random processes

    8/121

    8

    Example: the harmonic process

  • 7/30/2019 Digital Signal Processing-Random processes

    9/121

    9

    Example: the harmonic process

    f()

    1/2

    0=0T, where T sampling periodo true frequency

    0

    normalised frequencyindependent of T

    A f b f h d h

  • 7/30/2019 Digital Signal Processing-Random processes

    10/121

    10

    A few members of the random phasesine ensemble

  • 7/30/2019 Digital Signal Processing-Random processes

    11/121

    11

    Correlation functions- Autocorrelation

  • 7/30/2019 Digital Signal Processing-Random processes

    12/121

    12

    Cross-Correlation function

  • 7/30/2019 Digital Signal Processing-Random processes

    13/121

    13

    Stationarity

  • 7/30/2019 Digital Signal Processing-Random processes

    14/121

    14

    Stationarity

    Joint pdf:Random vectors, see Fig.1

    Xn1

    Xn2

    Xn3

    Random Vector

    n1

    n2

    n3

  • 7/30/2019 Digital Signal Processing-Random processes

    15/121

    15

    Stationarity

  • 7/30/2019 Digital Signal Processing-Random processes

    16/121

    16

    Strict-Sense Stationarity

  • 7/30/2019 Digital Signal Processing-Random processes

    17/121

    17

    Wide-sense stationarity

  • 7/30/2019 Digital Signal Processing-Random processes

    18/121

    18

    Wide-sense stationarity

    WSS sometimes known as weakly

    stationary

    This only applies for finite variance processes: a

    SSS process with infinite variance is not WSS

  • 7/30/2019 Digital Signal Processing-Random processes

    19/121

    19

    Example: random phase sine-wave

  • 7/30/2019 Digital Signal Processing-Random processes

    20/121

    20

    Take three WSS conditions in turn

    Example: random phase sine-wave

    E[sin()]=-

    sin()f() d=

    sin()(1/2)d=0odd function

    E[cos()]=- cos()f() d= cos()(1/2)d=0sin() = 0, sin(-) = 0

    Condition 1 Ok

    constant

    sum of angles

    constants

  • 7/30/2019 Digital Signal Processing-Random processes

    21/121

    21

    nth mth from the same member of ensemble

    sinAsinB=0.5[cos(A-B)-cos(A+B)]

    fixed constants

    cos(A+B)=cosAcosB-sinAsinB,where B = 2and A fixed constantsimplify and show as before

    E[cos(2)] = E[sin(2)]

    = 0

    Condition 2 Ok

    Example: random phase sine-wave

  • 7/30/2019 Digital Signal Processing-Random processes

    22/121

    22

    3. Check variance is finite

    x2 = E[(Xn-)

    2], = 0

    x2 = E[Xn

    2] (autocorrelation)

    = rXX[0]= 0.5A2[cos(n-n)0]

    = 0.5A2 <

    Condition 3 Ok

    Example: random phase sine-wave

  • 7/30/2019 Digital Signal Processing-Random processes

    23/121

    23

    Power Spectra

    Autocorrelation function from power

  • 7/30/2019 Digital Signal Processing-Random processes

    24/121

    24

    Autocorrelation function from powerspectrum

    P S

  • 7/30/2019 Digital Signal Processing-Random processes

    25/121

    25

    Power Spectra

    contribution to the mean-

    square in a frequency

    interval

    lT lTuTuT 2

    E l P S

  • 7/30/2019 Digital Signal Processing-Random processes

    26/121

    26

    Example: Power Spectrum

    E l P S t

  • 7/30/2019 Digital Signal Processing-Random processes

    27/121

    27

    Example: Power Spectrum

    cos as half sum of complex exp

    Recall from Part 1B: Fourier series representation of a function of,

    C1m= exp(jm0) and C2m= exp(-jm0)

    E.g., C2m corresponds to impulse

    train of period 2

    C2m

    = (1/2)(-0

    )exp(-jm)d =

    = (1/2)exp(-jm0)Sum of two impulse

    trains of period 2

  • 7/30/2019 Digital Signal Processing-Random processes

    28/121

    Whit N i

  • 7/30/2019 Digital Signal Processing-Random processes

    29/121

    29

    White Noise

    =cXX[0]

    1

    m

    [m]

    Whit N i

  • 7/30/2019 Digital Signal Processing-Random processes

    30/121

    30

    White Noise

    rXX[m] = cXX[m] = X2[m]

    [m]=1 only form=0

    E l hit G i i (WGN)

  • 7/30/2019 Digital Signal Processing-Random processes

    31/121

    31

    Example: white Gaussian noise (WGN)

    1

    E ample: hite Ga ssian noise (WGN)

  • 7/30/2019 Digital Signal Processing-Random processes

    32/121

    32

    Xn1 Xn2 Xn3 Random Vector

    n1

    n2

    n3

    fXn(xn) = N (xn | = 0, X2)

    Example: white Gaussian noise (WGN)

    Example: white Gaussian noise

  • 7/30/2019 Digital Signal Processing-Random processes

    33/121

    33

    Example: white Gaussian noise

    since allXnis independent

    Example: white Gaussian noise

  • 7/30/2019 Digital Signal Processing-Random processes

    34/121

    34

    Example: white Gaussian noise

    Statistical characteristics are the same irrespective of shifts along the time

    axis.

    An observer looking at the process from sampling time n1 would not be able

    to tell the difference in the statistical characteristics of the process if hemoved to a different time n2

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    35/121

    35

    Linear systems and random processes

    e.g. Digital Filter

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    36/121

    36

    Linear systems and random processes

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    37/121

    37

    Linear systems and random processes

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    38/121

    38

    Linear systems and random processes

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    39/121

    39

    Linear systems and random processes

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    40/121

    40

    Linear systems and random processes

    Time reversed impulse response

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    41/121

    41

    Linear systems and random processes

    Linear systems and random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    42/121

    42

    Linear systems and random processes

    Example: Filtering white noise

  • 7/30/2019 Digital Signal Processing-Random processes

    43/121

    43

    Example: Filtering white noise

    Example: Filtering white noise

  • 7/30/2019 Digital Signal Processing-Random processes

    44/121

    44

    Example: Filtering white noise

    Example: Filtering white noise

  • 7/30/2019 Digital Signal Processing-Random processes

    45/121

    45

    Example: Filtering white noise

    Example: Filtering white noise

  • 7/30/2019 Digital Signal Processing-Random processes

    46/121

    46

    Example: Filtering white noise

    m = -1, m = 0, m =1

    Example: Filtering white noise

  • 7/30/2019 Digital Signal Processing-Random processes

    47/121

    47

    p g

    PeriodicMinima

    -

    Maxima

    H(z) has a zero at z = -b0/b1=-1/0.9

    Hence |H(ej) | has a minimum at= +2n

    maximum at=0 + 2n

    =z-plane

    Ergodic Random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    48/121

    48

    g p

    Ergodic Random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    49/121

    49

    g p

    Ergodic Random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    50/121

    50

    g p

    Ergodic Random processes

  • 7/30/2019 Digital Signal Processing-Random processes

    51/121

    51

    g p

    Example

  • 7/30/2019 Digital Signal Processing-Random processes

    52/121

    52

    p

    f f

    Example

  • 7/30/2019 Digital Signal Processing-Random processes

    53/121

    53

    p

    as we were supposed to obtain

    Example

  • 7/30/2019 Digital Signal Processing-Random processes

    54/121

    54

    Ergodic processes

  • 7/30/2019 Digital Signal Processing-Random processes

    55/121

    55

    Comment: Complex-valued processes

  • 7/30/2019 Digital Signal Processing-Random processes

    56/121

    56

    Summary

  • 7/30/2019 Digital Signal Processing-Random processes

    57/121

    57

    Looked at discrete-time random processes (most results for continuous

    time random processes follow through almost directly)

    Defined Correlation functions (auto- and cross-)

    Stationarity (strict sense and wide sense 3 conditions)

    Power spectrum (and calculation of autocorrelation function using

    the inverse DTFT)

    White noise (in particular, white Gaussian noise)

    Ergodic processes

    Linear system and a wide-sense stationary process

    Revision: Continuous time random processes see handouts, notcovered during lectures

    Optimal Filtering

  • 7/30/2019 Digital Signal Processing-Random processes

    58/121

    58

    The general Wiener filtering problem

  • 7/30/2019 Digital Signal Processing-Random processes

    59/121

    59

    +

    observed

    unobserved

    H(z)

    Need to designthis filter

    The general Wiener filtering problem

  • 7/30/2019 Digital Signal Processing-Random processes

    60/121

    60

    The Discrete-time Wiener Filter

  • 7/30/2019 Digital Signal Processing-Random processes

    61/121

    61

    H(z)

    Need to design

    this filter

    Filtering observed noisy signal

  • 7/30/2019 Digital Signal Processing-Random processes

    62/121

    62

    Mean-squared error (MSE)

  • 7/30/2019 Digital Signal Processing-Random processes

    63/121

    63

    Mean-squared error (MSE)

  • 7/30/2019 Digital Signal Processing-Random processes

    64/121

    64

    Error signal

    +_

    error

    H(z)

    Need to design

    this filter

    +

    The Discrete-time Wiener Filter

  • 7/30/2019 Digital Signal Processing-Random processes

    65/121

    65

    Derivation of Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    66/121

    66

    Derivation of Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    67/121

    67

    Derivation of Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    68/121

    68

    rdx

    [-q] = rxd

    [q]

    Derivation of Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    69/121

    69

    Derivation of Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    70/121

    70

    Mean-squared error for the optimal filter

  • 7/30/2019 Digital Signal Processing-Random processes

    71/121

    71

    Mean-squared error for the optimal filter

  • 7/30/2019 Digital Signal Processing-Random processes

    72/121

    72

    Thus, minimum error is:

    Important Special Case: UncorrelatedSignal and Noise Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    73/121

    73

    Important Special Case: UncorrelatedSignal and Noise Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    74/121

    74

    Important Special Case: UncorrelatedSignal and Noise Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    75/121

    75

    0

    Important Special Case: UncorrelatedSignal and Noise Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    76/121

    76

    leads to Wiener Filter

    and are

    real and positive

    1

    Important Special Case: UncorrelatedSignal and Noise Processes

  • 7/30/2019 Digital Signal Processing-Random processes

    77/121

    77

    1 +

    1

    1 +

    1

    1

    SNR()

    =

    Signal-to-noise ratio

    Example: AR Process

  • 7/30/2019 Digital Signal Processing-Random processes

    78/121

    78

    A 1storder all-pole, also known as, autoregressive process

    (AR), is generated by passing a zero-mean white

    noise through a first-order all-pole IIR filter

    H(z) =1

    1 - z-1

    2

    Example: AR Process

  • 7/30/2019 Digital Signal Processing-Random processes

    79/121

    79

    This is our AR

    process

    Example: AR Process

  • 7/30/2019 Digital Signal Processing-Random processes

    80/121

    80

    =

    Example: Deconvolution

  • 7/30/2019 Digital Signal Processing-Random processes

    81/121

    81

    Consider the following process

    where vn is zero-mean unit variance white noise uncorrelated with dn

    Assume dn is a WSS AR(1) process with rdd[k] = (0.5)|k|

    Determine the optimal Wiener filter to estimate dn from xn

    xn =dn+ 0.8 dn-1 + vn

    Example: Deconvolution

  • 7/30/2019 Digital Signal Processing-Random processes

    82/121

    82

    Example: Deconvolution

  • 7/30/2019 Digital Signal Processing-Random processes

    83/121

    83and take DTFT ofrxdand rxx to obtain the Wiener filter

    The FIR Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    84/121

    84

    The FIR Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    85/121

    85

    The FIR Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    86/121

    86

    The correlation matrix

  • 7/30/2019 Digital Signal Processing-Random processes

    87/121

    87

    The FIR Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    88/121

    88

    Positive definite

    The FIR Wiener filter

  • 7/30/2019 Digital Signal Processing-Random processes

    89/121

    89

    Example: AR process

    C id 1st

    d AR hi h h t l ti f ti

  • 7/30/2019 Digital Signal Processing-Random processes

    90/121

    90

    Consider 1 order AR process which has autocorrelation function

    The process is observed in zero mean white noise with variance , which

    is uncorrelated with :

    Design the 1st order FIR Wiener Filter for estimation of from

    Now

    We need to find

    rdd[k] = |k|, with -1 < < 1

    = |k| +v2[k]

    Example: AR process

  • 7/30/2019 Digital Signal Processing-Random processes

    91/121

    91

    Example: AR process

  • 7/30/2019 Digital Signal Processing-Random processes

    92/121

    92

    1+v2

    1+v2

    1

    -1

    dddd

    -1

    Example: Noise cancellation

  • 7/30/2019 Digital Signal Processing-Random processes

    93/121

    93

    Design a Wiener Filter to estimate dn

    Signal

    Source

    Noise

    Source

    +dn

    vn

    xn=dn+vn

    Example: Noise cancellation

  • 7/30/2019 Digital Signal Processing-Random processes

    94/121

    94

    First, assume dn and vn are stationary and ergodic so that we

    could estimate

    Also assume that a long segment ofvn is available during asilent section of music/speech

    large

    v vvv

    Example: Noise cancellation

    For the FIR Wiener Filter

  • 7/30/2019 Digital Signal Processing-Random processes

    95/121

    95

    For the FIR Wiener Filter

    Example: Noise cancellation

    For the FIR Wiener Filter

  • 7/30/2019 Digital Signal Processing-Random processes

    96/121

    96

    For the FIR Wiener Filter

    Example: Noise cancellation

  • 7/30/2019 Digital Signal Processing-Random processes

    97/121

    97

    In the above equation rxx and rvv were estimated asexplained before and the equation below can be solvedusing, for example, Matlab

    In fact, audio signals are non-stationary

    Thus, need to apply to short quasi-stationary batches ofdata, one by one

    Can also successfully implement a frequency domainversion using FFT

    Model-based Signal Processing

  • 7/30/2019 Digital Signal Processing-Random processes

    98/121

    98

    Autoregressive moving-average model

  • 7/30/2019 Digital Signal Processing-Random processes

    99/121

    99

    Model-based Signal Processing

  • 7/30/2019 Digital Signal Processing-Random processes

    100/121

    100

    ARMA modelling

  • 7/30/2019 Digital Signal Processing-Random processes

    101/121

    101

    ARMA modelling

  • 7/30/2019 Digital Signal Processing-Random processes

    102/121

    102

    ARMA modelling

  • 7/30/2019 Digital Signal Processing-Random processes

    103/121

    103

    ARMA modelling

  • 7/30/2019 Digital Signal Processing-Random processes

    104/121

    104

    ARMA modelling

  • 7/30/2019 Digital Signal Processing-Random processes

    105/121

    105

    Autoregressive models

  • 7/30/2019 Digital Signal Processing-Random processes

    106/121

    106

    AR model

  • 7/30/2019 Digital Signal Processing-Random processes

    107/121

    107

    Autocorrelation function of AR model

  • 7/30/2019 Digital Signal Processing-Random processes

    108/121

    108

    Autocorrelation function of AR model

  • 7/30/2019 Digital Signal Processing-Random processes

    109/121

    109

    Autocorrelation function of AR model

  • 7/30/2019 Digital Signal Processing-Random processes

    110/121

    110

    The inverse z-

    transform of1/A(z)

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    111/121

    111

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    112/121

    112

    wn

    = [n] and forn = 0

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    113/121

    113

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    114/121

    114

    r = 0

    r = 1

    r = P

    `

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    115/121

    115

    Yule-Walker Equations

  • 7/30/2019 Digital Signal Processing-Random processes

    116/121

    116

    Solving for AR coefficients

  • 7/30/2019 Digital Signal Processing-Random processes

    117/121

    117

    Example: AR coefficients estimation

    Takep = 2

  • 7/30/2019 Digital Signal Processing-Random processes

    118/121

    118

    We have measured

    rXX[0] = 6.14rXX[1] = 3.08

    rXX[2] = -2.55

    In practice this would be measured using ergodicity of the

    process

    large

    Yule-Walker Equations:

    Example: AR coefficients estimation

  • 7/30/2019 Digital Signal Processing-Random processes

    119/121

    119

    6.14 3.08

    3.08 6.14

    3.08

    -2.55

    -0.95

    0.89

    Example: AR coefficients estimation

  • 7/30/2019 Digital Signal Processing-Random processes

    120/121

    120

    = 6.14 +3.08 x (-0.95) +(-2.55) x (0.89)

  • 7/30/2019 Digital Signal Processing-Random processes

    121/121

    121


Recommended