Applied Mathematics
Vol.05 No.17(2014), Article ID:50758,6 pages
10.4236/am.2014.517261
Coherence Modified for Sensitivity to Relative Phase of Real Band-Limited Time Series
William Menke
Lamont-Doherty Earth Observatory of Columbia University, Palisades, NY, USA
Email: menke@ldeo.columbia.edu
Copyright © 2014 by author and Scientific Research Publishing Inc.
This work is licensed under the Creative Commons Attribution International License (CC BY).
http://creativecommons.org/licenses/by/4.0/



Received 3 August 2014; revised 25 August 2014; accepted 8 September 2014
ABSTRACT
As is well known, coherence does not distinguish the relative phase of a pair of real, sinusoidal time series; the coherence between them is always unity. This behavior can limit the applicability of coherence analysis in the special case where the time series are band-limited (nearly-monoch- romatic) and where sensitivity to phase differences is advantageous. We propose a simple modification to the usual formula for coherence in which the cross-spectrum is replaced by its real part. The resulting quantity behaves similarly to coherence, except that it is sensitive to relative phase when the signals being compared are strongly band-limited. Furthermore, it has a useful interpretation in terms of the zero-lag cross-correlation of real band-passed versions of the time series.
Keywords:
Time Series, Coherence, Cross Correlation, Band-Limited, Monochromatic, Filter

1. Introduction
In this paper, we examine the well-known formula for the frequency-dependent coherence
between two time series and argue that it is not well-suited for quantifying the similarity of band-limited data. Using a time domain-based analysis, we identify a critical step in the development of the traditional algorithm, which we show is inappropriate in the band-limited case, and propose an alternative that leads to the definition of a new quantity
, which while having a definition similar to
, is better behaved. We then use both synthetic tests and analytic methods to elucidate the behavior of
, and show that it is a viable alternative to
. Our belief is that the choice of time series analysis technique should be guided by the properties of the data; one analyzes time series in a way designed to best extract knowledge from them. One should always be willing to adapt an analysis method to achieve this goal.
The issue considered here is how best to quantify the similarity between time series that are 1) real (as contrasted to complex) and 2) band-limited (in the sense of being nearly monochromatic). Such time series constitute important special cases because most natural phenomena are described using real numbers and many are dominated by a single period of oscillation. For example, the daily period often contributes strongly to physiological and meteorological signals, the annual period to environmental and climatic signals, the precessional period (25.7 ka) [1] to sedimentary and paleontological signals, and so forth. Furthermore, commonly-used techniques such as multiple window coherence analysis [2] , where two long time-series are divided into a sequence of shorter pairs before coherence analysis is performed, may accentuate the degree to which a single period of oscillation dominates the signal.
An important property of nearly-monochromatic signals is their relative phase. Whether two time series that are in-phase (as in Figure 1(a)) or out-of-phase (as in Figure 1(b)) may be important, for example, from the perspective of an analyst trying to unravel the dynamics of the underlying causative processes.
Traditional coherence analysis [3] has very limited application in this case, because of the well-known insensitivity of coherence to relative phase. The coherence of two sinusoidal time series of the same period is always unity, irrespective of their relative phase. Simply put, coherence does not distinguish a sine from a cosine. Given the general usefulness of coherence in other settings, it is well to ask why it “fails” in this special case and whether it can be modified to produce what may, in some circumstances, be a more useful measure of similarity.
When asking why any quantity encountered in time series analysis, such as coherence, behaves in a certain way, one must contend with the fact that most, if not all, such quantities can be derived from several different perspectives. Any answer will probably make sense only from one of these points of view. Consider, for example, the estimated mean of a time series. This deceptively simple quantity can be understood, alternately, as arising through the minimizing of error (a deterministic derivation) [4] or through the maximizing of likelihood (a probabilistic derivation) [5] or through the maximization of importance (an informational derivation) [6] to name just a few. The answer to a question concerning the estimated mean, say for example, whether it should always be bounded by the smallest and largest datum, will necessarily refer to one of these perspectives. The same is true for coherence. We adopt here a deterministic perspective:
The coherence between two time series, at frequency,
, is closely-related to the zero-lag cross-correlation of band-passed versions of those time series, where the band-pass filter is one-sided and has center-frequency,
. In fact, the former is merely a normalized and squared version of the latter.
This is but one perspective among many, but one we find helpful because it brings out a relationship to the cross-correlation, another quantity useful in assessing the similarity between two time series. Cross-correlation is defined in the time-domain, as contrasted to coherence, which is defined in the frequency-domain, so the link provides complimentary information.
The appearance of a one-sided filter (Figure 2(a)), may seem counter-intuitive, because such filters are almost never used in practice, or at least not when the data are real, for they turn a real-time series into a complex one. All the band-pass filters that an analyst would commonly use are two-sided (Figure 2(b)), and so have real output. The reason for its appearance here is that the usual definition of coherence is completely general. It does not presume that the signals being compared are real, and so builds in the possibility that negative and positive

Figure 1. (a) Two nearly-monochromatic time series (black and red curves) with the relative phase,
; (b) Same as (a), but with relative phase,
.

Figure 2. (a) Fourier transform of a one-sided band-pass filter, consisting of a single boxcar function centered at frequency,
, and with width,
; (b) Fourier transform of a two-sided band-pass filter, also centered at frequency,
.
frequency components of the time series behave completely differently from one another. This is contrast to real-time series, where they are complex conjugate pairs. However, in being general, it cannot exploit an important property of real signals: that sines and cosines are distinguishable from one another. As we show below, substituting a two-sided filter produces a version of coherence that distinguishes sines from cosines; that is, one that is sensitive to the relative phase of band-limited signals.
2. Coherence-Like Measure of Similarity Based of Cross-Correlation.
The problem we consider is how to quantify the similarity of two real, transient time series,
and
, in the vicinity of a specified frequency,










The convolution, 



Note that at zero-lag, cross-correlation is just the area beneath the product of the two time series:

Note also that definition of the convolution and cross-correlation in (1a), (1b) differ only by a sign of 




At zero lag, the cross-correlation is proportional the integral of its Fourier transform,

Inserting (3) into (4) and using the rule that the Fourier transform of a convolution is the product of the transforms ([7] , page 115) and the rule that the transform of 


Here 


is defined for





The normalized measure of similarity, say

Note that the quantity, 
3. Coherence Related to Zero-Lag Cross-Correlation
As asserted in the Introduction, the usual formula for coherence can be obtained simply by switching to a one-sided filter, a single unit step function of width 







As an aside, we note that our derivations of 





4. Similarity and Coherence of Real Band-Limited Signals
Suppose that time series 






The similarity, 


Thus, 


The coherence, 



We then find:

This is the well-known result that the coherence, 



5. Examples
We consider the example of a sequence of nearly-monochromatic wavelets, formed by taking the product of a phase-shifted sinusoid of frequency, 


and then by adding a small amount of uncorrelated random noise. Figures 3(a)-(c) illustrate pairs of these wavelets with different phase relationships. Note that the wavelets are not merely time-shifted versions of one another, since the position of the zeros crossings of the sinusoid (parameterized by





We have not performed an exhaustive analysis of the differences between 


where the Fourier transforms are written in terms of their real and imaginary parts, 













We might expect in the case that


Figure 3. (a)-(c) Sequence of three pairs of nearly-monochromatic time series with frequency 











Figure 4. (a)-(c) Sequence of three pairs of broad-band time series with an approximately: (a) frequency-independent coherence, (b) coherence that increases with frequency, and (c) coherence that decreases with frequency; (d)-(f) Corresponding coherence, 




6. Conclusion
In summary, we recommend this simple modification of coherence in cases where the time series that are being compared are narrow-band and where phase relationships between them are considered important. For pure sinusoids differing by phase, 





References
- Olsen, P.E. and Kent, D.V. (1996) Milankovitch Climate Forcing in the Tropics of Pangea during the Late Triassic. Paleooceanography, Paleoclimatology, Paleoecology, 122, 1-26. http://dx.doi.org/10.1016/0031-0182(95)00171-9
- Bendat, J.S. and Piersol, A.G. (2010) Random Data, Anaysis and Measurement Procedures. John Wiley and Sons, New York. http://dx.doi.org/10.1002/9781118032428
- Sandberg, J. and Hansson, M. (2006) Cohernece Estimation between EEG Signals Using Multiple Window Time- Frequency Analysis Compared to Gaussian Kernels. Proceedings of the 14th European Signal Processing Conference, Florence, 4-8 September 2006. http://www.eurasip.org/Proceedings/Eusipco/Eusipco2006/papers/1568981924.pdf
- Lawson, C.L. and Hanson, R.J. (1974) Solving Least Squares Problems. Prentice-Hall, New York.
- Millar, R.B. (2011) Maximum Likelihood Estimation and Inference: With Examples in R, SAS and ADMB. John Wiley and Sons, New York. http://dx.doi.org/10.1002/9780470094846
- Menke, W. (2012) Geophysical Data Analysis: Discrete Inverse Theory. MATLAB Edition, Elsevier, Amsterdam.
- Bracewell, R.N. (2000) The Fourier Transform and Its Applications. 3rd Edition, McGraw-Hill, New York.
Appendix
The rule that the transform of 



Here we have utilized the substitution



