I have a question regarding the coherence function (defined, e.g., at http://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The coherence between two signals (at a frequency f) is the squared norm of the cross spectral density of the signals at frequency f, divided by the product of the power spectral densities of each signal at frequency f; in other words, the squared Fourier transform of the cross correlation, divided by the product of the Fourier transforms of each autocorrelation. I am having trouble understanding when this quantity would not be equal to 1. Applying the fact that the Fourier transform of a cross correlation of two signals is equal to the product of the Fourier transforms of each signal (where the first Fourier coefficient in the product is conjugated--see http://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems the numerator in the coherence function will always be equal to the denominator. Am I missing something? Thanks, Ben
Question regarding Coherence
Started by ●August 11, 2008
Reply by ●August 11, 20082008-08-11
On Aug 11, 8:02 pm, bdeen <benjamin.d...@gmail.com> wrote:> I have a question regarding the coherence function (defined, e.g., athttp://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The > coherence between two signals (at a frequency f) is the squared norm > of the cross spectral density of the signals at frequency f, divided > by the product of the power spectral densities of each signal at > frequency f; in other words, the squared Fourier transform of the > cross correlation, divided by the product of the Fourier transforms of > each autocorrelation. I am having trouble understanding when this > quantity would not be equal to 1. Applying the fact that the Fourier > transform of a cross correlation of two signals is equal to the > product of the Fourier transforms of each signal (where the first > Fourier coefficient in the product is conjugated--seehttp://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems > the numerator in the coherence function will always be equal to the > denominator. Am I missing something? > > Thanks, > > BenIt is not equal to one if you average the FFTs first with overlap, as in Welch's method. John
Reply by ●August 11, 20082008-08-11
bdeen wrote:> I have a question regarding the coherence function (defined, e.g., at > http://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The > coherence between two signals (at a frequency f) is the squared norm > of the cross spectral density of the signals at frequency f, divided > by the product of the power spectral densities of each signal at > frequency f; in other words, the squared Fourier transform of the > cross correlation, divided by the product of the Fourier transforms of > each autocorrelation. I am having trouble understanding when this > quantity would not be equal to 1.I believe this is the transform equivalent of the normalized dot product. (x dot y) / sqrt( (x dot x) (y dot y) ) It is 1 if x equals y. For coherence, it is also 1 if x and y are equal. If x and y are similar, close to the same frequency but not exactly, on average the cross correlation will be zero. Light sources have a coherence time and coherence length, over which they can be considered coherent. Long for lasers, short (but not zero) for incandescent lamps. -- glen
Reply by ●August 12, 20082008-08-12
On Aug 11, 9:09 pm, John <sampson...@gmail.com> wrote:> On Aug 11, 8:02 pm, bdeen <benjamin.d...@gmail.com> wrote: > > > > > I have a question regarding the coherence function (defined, e.g., athttp://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The > > coherence between two signals (at a frequency f) is the squared norm > > of the cross spectral density of the signals at frequency f, divided > > by the product of the power spectral densities of each signal at > > frequency f; in other words, the squared Fourier transform of the > > cross correlation, divided by the product of the Fourier transforms of > > each autocorrelation. I am having trouble understanding when this > > quantity would not be equal to 1. Applying the fact that the Fourier > > transform of a cross correlation of two signals is equal to the > > product of the Fourier transforms of each signal (where the first > > Fourier coefficient in the product is conjugated--seehttp://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems > > the numerator in the coherence function will always be equal to the > > denominator. Am I missing something? > > > Thanks, > > > Ben > > It is not equal to one if you average the FFTs first with overlap, as > in Welch's method. > > JohnI think I see what you mean. So, is it the case that coherence is only a meaningful quantity when the Fourier transforms at hand are not calculated exactly, but approximated using something like Welch's method? If this is true, it seems strange that most textbooks and websites that I have seen introduce the coherence function purely with its formal definition, without mentioning approximation techniques used to calculate it...Generally, it seems rather strange to define a quantity such that it is only meaningful when not exactly calculated. In any case, I now have a new question...How exactly are high and low coherence to be interpreted, given that no interpretation is implied by the formal definition alone, without conditions on how the Fourier transforms are calculated? I believe that high coherence should correspond to a consistent phase difference between the two signals at a given frequency (i.e. a phase difference that remains constant over time), but I lack a rigorous understanding of this, insofar as I know little about FT approximation methods.
Reply by ●August 12, 20082008-08-12
On Aug 11, 9:09 pm, John <sampson...@gmail.com> wrote:> On Aug 11, 8:02 pm, bdeen <benjamin.d...@gmail.com> wrote: > > > > > I have a question regarding the coherence function (defined, e.g., athttp://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The > > coherence between two signals (at a frequency f) is the squared norm > > of the cross spectral density of the signals at frequency f, divided > > by the product of the power spectral densities of each signal at > > frequency f; in other words, the squared Fourier transform of the > > cross correlation, divided by the product of the Fourier transforms of > > each autocorrelation. I am having trouble understanding when this > > quantity would not be equal to 1. Applying the fact that the Fourier > > transform of a cross correlation of two signals is equal to the > > product of the Fourier transforms of each signal (where the first > > Fourier coefficient in the product is conjugated--seehttp://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems > > the numerator in the coherence function will always be equal to the > > denominator. Am I missing something? > > > Thanks, > > > Ben > > It is not equal to one if you average the FFTs first with overlap, as > in Welch's method. > > JohnI think I see what you mean. So, is it the case that coherence is only a meaningful quantity when the Fourier transforms at hand are not calculated exactly, but approximated using something like Welch's method? If this is true, it seems strange that most textbooks and websites that I have seen introduce the coherence function purely with its formal definition, without mentioning approximation techniques used to calculate it...Generally, it seems rather strange to define a quantity such that it is only meaningful when not exactly calculated. In any case, I now have a new question...How exactly are high and low coherence to be interpreted, given that no interpretation is implied by the formal definition alone, without conditions on how the Fourier transforms are calculated? I believe that high coherence should correspond to a consistent phase difference between the two signals at a given frequency (i.e. a phase difference that remains constant over time), but I lack a rigorous understanding of this, insofar as I know little about FT approximation methods.
Reply by ●August 12, 20082008-08-12
bdeen wrote: (snip)> I think I see what you mean. So, is it the case that coherence is > only a meaningful quantity when the Fourier transforms at hand are not > calculated exactly, but approximated using something like Welch's > method? If this is true, it seems strange that most textbooks and > websites that I have seen introduce the coherence function purely with > its formal definition, without mentioning approximation techniques > used to calculate it...Generally, it seems rather strange to define a > quantity such that it is only meaningful when not exactly calculated.I suppose that sounds right. It is really only useful for approximate signals. In laser experiments, you sometimes determine the coherence between two beams from the same laser (beam splitter) with different path lengths. Incoherence is due to randomness in the emission process. Ideally, all atoms are exactly the same, but in a real system there is randomness. (Gas atoms colliding or lattice vibrations in a crystal.)> In any case, I now have a new question...How exactly are high and low > coherence to be interpreted, given that no interpretation is implied > by the formal definition alone, without conditions on how the Fourier > transforms are calculated? I believe that high coherence should > correspond to a consistent phase difference between the two signals at > a given frequency (i.e. a phase difference that remains constant over > time), but I lack a rigorous understanding of this, insofar as I know > little about FT approximation methods.In laser experiments, it gives the possible strength of an interference pattern. It is actually the time average that generates the incoherence. A single photon will be coherent with itself. Another reason for approximations. -- glen
Reply by ●August 12, 20082008-08-12
On Aug 12, 3:01 pm, bdeen <benjamin.d...@gmail.com> wrote:> On Aug 11, 9:09 pm, John <sampson...@gmail.com> wrote: > > > > > On Aug 11, 8:02 pm, bdeen <benjamin.d...@gmail.com> wrote: > > > > I have a question regarding the coherence function (defined, e.g., athttp://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The > > > coherence between two signals (at a frequency f) is the squared norm > > > of the cross spectral density of the signals at frequency f, divided > > > by the product of the power spectral densities of each signal at > > > frequency f; in other words, the squared Fourier transform of the > > > cross correlation, divided by the product of the Fourier transforms of > > > each autocorrelation. I am having trouble understanding when this > > > quantity would not be equal to 1. Applying the fact that the Fourier > > > transform of a cross correlation of two signals is equal to the > > > product of the Fourier transforms of each signal (where the first > > > Fourier coefficient in the product is conjugated--seehttp://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems > > > the numerator in the coherence function will always be equal to the > > > denominator. Am I missing something? > > > > Thanks, > > > > Ben > > > It is not equal to one if you average the FFTs first with overlap, as > > in Welch's method. > > > John > > I think I see what you mean. So, is it the case that coherence is > only a meaningful quantity when the Fourier transforms at hand are not > calculated exactly, but approximated using something like Welch's > method? If this is true, it seems strange that most textbooks and > websites that I have seen introduce the coherence function purely with > its formal definition, without mentioning approximation techniques > used to calculate it...Generally, it seems rather strange to define a > quantity such that it is only meaningful when not exactly calculated. > > In any case, I now have a new question...How exactly are high and low > coherence to be interpreted, given that no interpretation is implied > by the formal definition alone, without conditions on how the Fourier > transforms are calculated? I believe that high coherence should > correspond to a consistent phase difference between the two signals at > a given frequency (i.e. a phase difference that remains constant over > time), but I lack a rigorous understanding of this, insofar as I know > little about FT approximation methods.If you take a sine wave and work out the coherence you get 1 all the time. In fact for any signal where you work out the FFT exactly and not via averaging. This can be confusing for sure and it is not always pointed out. K.
Reply by ●August 12, 20082008-08-12
On 12 Aug, 02:02, bdeen <benjamin.d...@gmail.com> wrote:> I have a question regarding the coherence function (defined, e.g., athttp://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). �The > coherence between two signals (at a frequency f) is the squared norm > of the cross spectral density of the signals at frequency f, divided > by the product of the power spectral densities of each signal at > frequency f; in other words, the squared Fourier transform of the > cross correlation, divided by the product of the Fourier transforms of > each autocorrelation. �I am having trouble understanding when this > quantity would not be equal to 1.I investigated these questions some time ago: http://groups.google.no/group/comp.dsp/msg/f6e25e66551ff73d?hl=no The trick is to apply non-rectangular windows and bias functions to the correlation functions before computing the coherence.>�Applying the fact that the Fourier > transform of a cross correlation of two signals is equal to the > product of the Fourier transforms of each signal (where the first > Fourier coefficient in the product is conjugated--seehttp://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems > the numerator in the coherence function will always be equal to the > denominator. �Am I missing something?These are statistichal considerations. It is not the FTs of the signals that are equal; it is the *expected* FTs of the signals that are equal. Expectations are taken over every possible realization of the process and at every possible time. In a perfect world there will be differences between realizations which don't show up in the manipulations of expectations. What you have to play with is *one* realization, and the FFT is a deterministic provcedure, and as you say, if you do the maths you find that Cxy(f) == 1, which isn't very useful. It seems to me that the purpose of the window functions in these computations is to 'break the FFT free' from the deterministic constraints. The net effect of the window functions is to mess up the deterministic analysis enough that the results of the (deterministic) computations become 'quasi random' in tune with the gist of the statistichal nature of the context. Mind you, the interpretation of these resutls are my very personal take on the situation! Don't expect to find such arguments or interpretations elsewhere (or even that other people agree with me)! Rune
Reply by ●August 12, 20082008-08-12
bdeen <benjamin.deen@gmail.com> wrote in news:72fbe007-820d-40c8-b062- f7d38eb82f84@d77g2000hsb.googlegroups.com:> ow exactly are high and low > coherence to be interpreted,A perfectly linear noise-free relationship between input and output will yield unity coherence. Both noise and non-linearity decrease coherence. If you do something like transfer function estimates, you can use coherence and the number of epochs you used to put a confidence interval around your estimates. Highly recommend Bendat and Piersol. -- Scott Reverse name to reply
Reply by ●August 13, 20082008-08-13
>I have a question regarding the coherence function (defined, e.g., at >http://www.dsprelated.com/dspbooks/mdft/Coherence_Function.html). The >coherence between two signals (at a frequency f) is the squared norm >of the cross spectral density of the signals at frequency f, divided >by the product of the power spectral densities of each signal at >frequency f; in other words, the squared Fourier transform of the >cross correlation, divided by the product of the Fourier transforms of >each autocorrelation. I am having trouble understanding when this >quantity would not be equal to 1. Applying the fact that the Fourier >transform of a cross correlation of two signals is equal to the >product of the Fourier transforms of each signal (where the first >Fourier coefficient in the product is conjugated--see >http://en.wikipedia.org/wiki/Cross_correlation#Properties), it seems >the numerator in the coherence function will always be equal to the >denominator. Am I missing something? > >Thanks, > >Ben >I think if you work out the math, you can see that is not the case. If you apply the trick that Wikipedia link shows, the coherence function will reduce to C_xy(w) = R_x^{*}(w) * R_y^{*}(w), that is, the product of the complex conjugates of the autocorrelations of x and y. This may very well be zero at times. Hope that helps! Let me know if you need more clarifications!






