lecture 19 autocorrelation
play

Lecture 19: Autocorrelation Mark Hasegawa-Johnson All content CC-SA - PowerPoint PPT Presentation

Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Lecture 19: Autocorrelation Mark Hasegawa-Johnson All content CC-SA 4.0 unless otherwise specified. ECE 401: Signal and Image Analysis, Fall 2020 Review


  1. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Lecture 19: Autocorrelation Mark Hasegawa-Johnson All content CC-SA 4.0 unless otherwise specified. ECE 401: Signal and Image Analysis, Fall 2020

  2. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Review: Power Spectrum 1 Autocorrelation 2 Autocorrelation of Filtered Noise 3 Power Spectrum of Filtered Noise 4 Parseval’s Theorem 5 Example 6 Summary 7

  3. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Outline Review: Power Spectrum 1 Autocorrelation 2 Autocorrelation of Filtered Noise 3 Power Spectrum of Filtered Noise 4 Parseval’s Theorem 5 Example 6 Summary 7

  4. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Review: Energy Spectrum and Parseval’s Theorem The energy spectrum of a random noise signal has the DTFT form | X ( ω ) | 2 , or the DFT form | X [ k ] | 2 . The easiest form of Parseval’s theorem to memorize is the DTFT energy spectrum form: � π ∞ x 2 [ n ] = 1 � | X ( ω ) | 2 d ω 2 π − π n = −∞ The DFT energy spectrum form is similar, but over a finite duration: N − 1 N − 1 x 2 [ n ] = 1 � � | X [ k ] | 2 N n =0 k =0

  5. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Review: Power Spectrum and Parseval’s Theorem Energy of an infinite-length signal might be infinite. Wiener defined the power spectrum in order to solve that problem: 1 N | X ( ω ) | 2 R xx ( ω ) = lim N →∞ where X ( ω ) is computed from a window of length N samples. The DTFT power spectrum form of Parseval’s theorem is ( N − 1) / 2 � π 1 x 2 [ n ] = 1 � lim R xx ( ω ) d ω 2 π N N →∞ − π n = − ( N − 1) / 2

  6. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary White Noise White noise is a type of noise whose samples are uncorrelated ( E [ x [ n ] x [ m ]] = E [ x [ n ]] E [ x [ m ]], unless n = m ). If it is also zero mean and unit variance, then � 1 n = m E [ x [ n ] x [ m ]] = 0 n � = m The Fourier transform of any zero-mean random signal is, itself, a zero-mean random variable: E [ X ( ω )] = 0 The power spectrum is also a random variable, but its expected value is not zero. The expected power spectrum of white noise is flat, like white light: � 1 � N | X ( ω ) | 2 E [ R xx ( ω )] = E = 1

  7. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: DTFT and Power Spectrum of White Noise

  8. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: Expected DTFT and Power Spectrum of White Noise

  9. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Colored Noise Most colored noise signals are well modeled as filtered white noise, i.e., y [ n ] = h [ n ] ∗ x [ n ]. The filtering means that the samples of y [ n ] are correlated with one another. If x [ n ] is zero-mean, then so is y [ n ], and so is Y ( ω ): E [ Y ( ω )] = 0 The expected power spectrum is | H ( ω ) | 2 : � 1 � N | Y ( ω ) | 2 = | H ( ω ) | 2 E [ R yy ( ω )] = E

  10. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: Filtered Noise

  11. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Outline Review: Power Spectrum 1 Autocorrelation 2 Autocorrelation of Filtered Noise 3 Power Spectrum of Filtered Noise 4 Parseval’s Theorem 5 Example 6 Summary 7

  12. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Finite-Duration Power Spectrum In practice, we will very often compute the power spectrum from a finite-length window: R xx ( ω ) = 1 R xx [ k ] = 1 N | X ( ω ) | 2 , N | X [ k ] | 2 where X ( ω ) is computed from a window of length N samples. The DTFT power spectrum form of Parseval’s theorem is then � π N − 1 N 1 x 2 [ n ] = 1 R xx ( ω ) d ω = 1 � � R xx [ k ] N 2 π N − π n =0 k =0

  13. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Inverse DTFT of the Power Spectrum Since the power spectrum of noise is MUCH more useful than the expected Fourier transform, let’s see what the inverse Fourier transform of the power spectrum is. Let’s call R xx ( ω ) the power spectrum, and r xx [ n ] its inverse DTFT. R xx ( ω ) = 1 N | X ( ω ) | 2 = 1 N X ( ω ) X ∗ ( ω ) where X ∗ ( ω ) means complex conjugate. Since multiplying the DTFT means convolution in the time domain, we know that r xx [ n ] = 1 N x [ n ] ∗ z [ n ] where z [ n ] is the inverse transform of X ∗ ( ω ) (we haven’t figured out what that is, yet).

  14. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Inverse DTFT of the Power Spectrum So what’s the inverse DFT of X ∗ ( ω )? If we assume that x [ n ] is real, we get that � ∗ � ∞ � x [ n ] e − j ω n X ∗ ( ω ) = n = −∞ ∞ � x [ n ] e j ω n = n = −∞ ∞ � x [ − m ] e − j ω m = m = −∞ So if x [ n ] is real, then the inverse DTFT of X ∗ ( ω ) is x [ − n ]!

  15. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Autocorrelation The power spectrum, of an N -sample finite-length signal, is R xx ( ω ) = 1 N | X ( ω ) | 2 Its inverse Fourier transform is the autocorrelation, ∞ r xx [ n ] = 1 N x [ n ] ∗ x [ − n ] = 1 � x [ m ] x [ m − n ] N m = −∞ This relationship, r xx [ n ] ↔ R xx ( ω ), is called Wiener’s theorem, named after Norbert Wiener, the inventor of cybernetics.

  16. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: Autocorrelation of White Noise

  17. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary A warning about python Notice, on the last slide, I defined autocorrelation as ∞ r xx [ n ] = 1 N x [ n ] ∗ x [ − n ] = 1 � x [ m ] x [ m − n ] N m = −∞ Python defines an “energy version” of autocorrelation, instead of the “power version” shown above, i.e., np.correlate computes: ∞ � r python[ n ] = x [ m ] x [ m − n ] m = −∞ The difference is just a constant factor ( N ), so it usually isn’t important. But sometimes you’ll need to be aware of it.

  18. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Autocorrelation is also a random variable! Notice that, just as the power spectrum is a random variable, the autocorrelation is also a random variable. The autocorrelation is the average of N consecutive products, thus N − 1 � � 1 � E [ r xx [ n ]] = E x [ m ] x [ m − n ] = E [ x [ m ] x [ m − n ]] N m =0 The expected autocorrelation is related to the covariance and the mean: E [ r xx [ n ]] = Cov ( x [ m ] , x [ m − n ]) + E [ x [ m ]] E [ x [ m − n ]] If x [ n ] is zero-mean, that means E [ r [ n ]] = Cov ( x [ m ] , x [ m − n ])

  19. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Autocorrelation of white noise If x [ n ] is zero-mean white noise, with a variance of σ 2 , then � σ 2 n = 0 E [ r xx [ n ]] = E [ x [ m ] x [ m − n ]] = 0 otherwise We can write E [ r [ n ]] = σ 2 δ [ n ]

  20. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Outline Review: Power Spectrum 1 Autocorrelation 2 Autocorrelation of Filtered Noise 3 Power Spectrum of Filtered Noise 4 Parseval’s Theorem 5 Example 6 Summary 7

  21. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Filtered Noise What happens when we filter noise? Suppose that x [ n ] is zero-mean white noise, and y [ n ] = h [ n ] ∗ x [ n ] What is y [ n ]?

  22. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: Filtering of White Noise

  23. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Filtered Noise ∞ � y [ n ] = h [ n ] ∗ x [ n ] = h [ m ] x [ n − m ] m = −∞ y [ n ] is the sum of zero-mean random variables, so it’s also zero-mean. y [ n ] = h [0] x [ n ] + other stuff, and y [ n + 1] = h [1] x [ n ] + other stuff. So obviously, y [ n ] and y [ n + 1] are not uncorrelated. So y [ n ] is not white noise. What kind of noise is it?

  24. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary The variance of y [ n ] First, let’s find its variance. Since x [ n ] and x [ n + 1] are uncorrelated, we can write ∞ � σ 2 h 2 [ m ]Var( x [ n − m ]) y = m = −∞ ∞ = σ 2 � h 2 [ m ] x m = −∞

  25. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary The autocorrelation of y [ n ] Second, let’s find its autocorrelation. Let’s define r xx [ n ] = 1 N x [ n ] ∗ x [ − n ]. Then r yy [ n ] = 1 N y [ n ] ∗ y [ − n ] = 1 N ( x [ n ] ∗ h [ n ]) ∗ ( x [ − n ] ∗ h [ − n ]) = 1 N x [ n ] ∗ x [ − n ] ∗ h [ n ] ∗ h [ − n ] = r xx [ n ] ∗ h [ n ] ∗ h [ − n ]

  26. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Example: Autocorrelation of Colored Noise

  27. Review Autocorrelation Autocorrelation Spectrum Parseval Example Summary Expected autocorrelation of y [ n ] r yy [ n ] = r xx [ n ] ∗ h [ n ] ∗ h [ − n ] Expectation is linear, and convolution is linear, so E [ r yy [ n ]] = E [ r xx [ n ]] ∗ h [ n ] ∗ h [ − n ]

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend