<< Chapter < Page Chapter >> Page >

Use Matlab to generate 1000 i.i.d. samples of X , denoted as X 1 , X 2 , ..., X 1000 . Next, generate 1000 i.i.d. samples of Y , denoted as Y 1 , Y 2 , ..., Y 1000 . For each of the four choices of Z , perform the following tasks:

  1. Use [link] to analytically calculate the correlation coefficient ρ X Z between X and Z . Show all of your work.Remember that independence between X and Y implies that E [ X Y ] = E [ X ] E [ Y ] . Also remember that X and Y are zero-mean and unit variance.
  2. Create samples of Z using your generated samples of X and Y .
  3. Generate a scatter plot of the ordered pair of samples ( X i , Z i ) . Do this by plotting points ( X 1 , Z 1 ) , ( X 2 , Z 2 ) , ..., ( X 1000 , Z 1000 ) . To plot points without connecting them with lines, use the '.' format, as in plot(X,Z,'.') . Use the command subplot(2,2,n) (n=1,2,3,4) to plot the four cases for Z in the same figure. Be sure to label each plot using the title command.
  4. Empirically compute an estimate of the correlation coefficient using your samples X i and Z i and the following formula.
    ρ ^ X Z = i = 1 N ( X i - μ ^ X ) ( Z i - μ ^ Z ) i = 1 N ( X i - μ ^ X ) 2 i = 1 N ( Z i - μ ^ Z ) 2

Inlab report

  1. Hand in your derivations of the correlation coefficient ρ X Z along with your numerical estimates of the correlation coefficient ρ ^ X Z .
  2. Why are ρ X Z and ρ ^ X Z not exactly equal?
  3. Hand in your scatter plots of ( X i , Z i ) for the four cases. Note the theoretical correlation coefficient ρ X Z on each plot.
  4. Explain how the scatter plots are related to ρ X Z .

Autocorrelation for filtered random processes

In this section, we will generate discrete-time random processes and then analyze their behavior using the correlation measure introduced in the previous section.

Background

A discrete-time random process X n is simply a sequence of random variables. So for each n , X n is a random variable.

The autocorrelation is an important function for characterizing the behavior of random processes.If X is a wide-sense stationary (WSS) random process, the autocorrelation is defined by

r X X ( m ) = E [ X n X n + m ] m = , - 1 , 0 , 1 , .

Note that for a WSS random process, the autocorrelation does not vary with n . Also, since E [ X n X n + m ] = E [ X n + m X n ] , the autocorrelation is an even function of the “lag” value m .

Intuitively, the autocorrelation determines how strong a relation there is between samples separated by a lag value of m . For example, if X is a sequence of independent identically distributed (i.i.d.) random variableseach with zero mean and variance σ X 2 , then the autocorrelation is given by

r X X ( m ) = E [ X n X n + m ] = E [ X n ] E [ X n + m ] if m 0 E [ X n 2 ] if m = 0 = σ X 2 δ ( m ) .

We use the term white or white noise to describe this type of random process. More precisely, a random processis called white if its values X n and X n + m are uncorrelated for every m 0 .

A LTI system diagram

If we run a white random process X n through an LTI filter as in [link] , the output random variables Y n may become correlated. In fact, it can be shown that the output autocorrelation r Y Y ( m ) is related to the input autocorrelation r X X ( m ) through the filter's impulse response h ( m ) .

r Y Y ( m ) = h ( m ) * h ( - m ) * r X X ( m )

Experiment

Consider a white Gaussian random process X n with mean 0 and variance 1 as input to the following filter.

y ( n ) = x ( n ) - x ( n - 1 ) + x ( n - 2 )

Calculate the theoretical autocorrelation of Y n using [link] and [link] . Show all of your work.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask