Group delay and phase delay

In signal processing, group delay and phase delay are functions that describe in different ways the delay times experienced by a signal's various sinusoidal frequency components as they pass through a linear time-invariant (LTI) system…

Uses your system voice; voice and rate in settings.

Snapshot

≈ 13 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

In signal processing, group delay and phase delay are functions that describe in different ways the delay times experienced by a signal's various sinusoidal frequency components as they pass through a linear time-invariant (LTI) system (such as a microphone, coaxial cable, amplifier, loudspeaker, communications system, ethernet cable, digital filter, or analog filter). These delays are sometimes frequency dependent, which means that different sinusoid frequency components experience different time delays.

As a result, the signal's waveform experiences distortion as it passes through the system. This distortion can cause problems such as poor fidelity in analog video and analog audio, or a high bit-error rate in a digital bit stream. y(t) = (h*x)(t) \mathrel{\stackrel{\text{def}}{=}} \int_{-\infty}^\infty h(t - \tau) \, x(\tau) \, \mathrm{d} \tau \mathrel{\stackrel{\text{def}}{=}} \mathcal{L}^{-1}\{H(s) \, X(s)\} \, , where * denotes the convolution operation, \displaystyle X(s) and \displaystyle H(s) are the Laplace transforms of the input \displaystyle x(t) and impulse response \displaystyle h(t) , respectively, is the complex frequency, and \mathcal{L}^{-1} is the inverse Laplace transform. \displaystyle H(s) is called the transfer function of the LTI system and, like the impulse response \displaystyle h(t) , fully defines the input-output characteristics of the LTI system.

This convolution can be evaluated by using the integral expression in the time domain, or (according to the rightmost expression) by using multiplication in the Laplace domain and then applying the inverse transform to return to time domain. x(t) = A_\text{env}(t) \cos(\omega t + \theta) \, . Also suppose that the envelope \displaystyle A_\text{env}(t) is slowly changing relative to the sinusoid's frequency \displaystyle \omega .

This condition can be expressed mathematically as: \left| \frac{d}{dt} \log \big( A_\text{env}(t) \big) \right| \ll \omega \ . Applying the earlier convolution equation would reveal that the output of such an LTI system is very well approximated as: y(t) = \big| H(i \omega) \big| \ A_\text{env}(t - \tau_g) \cos \big( \omega (t - \tau_\phi) + \theta \big) \; .

Here \displaystyle \tau_g is the group delay and \displaystyle \tau_\phi is the phase delay, and they are given by the expressions below (and potentially are functions of the angular frequency \displaystyle \omega ). The phase of the sinusoid, as indicated by the positions of the zero crossings, is delayed in time by an amount equal to the phase delay, \displaystyle \tau_\phi .

The envelope of the sinusoid is delayed in time by the group delay, \displaystyle \tau_g . \tau_\phi(\omega) = - \frac{\phi(\omega)}{\omega} \, . The group delay at each frequency equals the negative of the slope (i.e. the derivative with respect to frequency) of the phase at that frequency: \tau_g(\omega) = - \frac{d \phi(\omega)}{d \omega} \, .

In a linear phase system (with non-inverting gain), both \displaystyle \tau_g and \displaystyle \tau_\phi are constant (i.e., independent of \displaystyle \omega ) and equal, and their common value equals the overall delay of the system; and the unwrapped phase shift of the system (namely \displaystyle -\omega \tau_\phi ) is negative, with magnitude increasing linearly with frequency \displaystyle \omega . x(t) = e^{i \omega t} \ the output is \begin{align} y(t) & = H(i \omega) \ e^{i \omega t} \ \\ & = \left( \big| H(i \omega) \big| e^{i \phi(\omega)} \right) \ e^{i \omega t} \ \\ & = \big| H(i \omega) \big| \ e^{i \left(\omega t + \phi(\omega) \right)} \ \\ \end{align} \ where the phase shift \displaystyle \phi is \phi(\omega) \ \stackrel{\mathrm{def}}{=}\ \arg \left\{ H(i \omega) \right\} \;. The phase of a 1st-order low-pass filter formed by a RC circuit with cutoff frequency \omega_o {=} \frac{1}{RC} is: \phi(\omega) = -\arctan\left(\frac{\omega}{\omega_o}\right) \, .

Similarly, the phase for a 1st-order RC high-pass filter is: \phi(\omega) = \frac{\pi}{2} -\arctan\left(\frac{\omega}{\omega_o}\right) \, . Taking the negative derivative with respect to \omega for either this low-pass or high-pass filter yields the same group delay of: \begin{align} \tau_g(\omega) &= \frac{\omega_o}{\omega^2 + \omega_o^2} \, . \\ \end{align} For frequencies significantly lower than the cutoff frequency, the phase response is approximately linear (arctan for small inputs can be approximated as a line), so the group delay simplifies to a constant value of: \begin{align} \tau_g(\omega \ll \omega_o) &\approx \frac{1}{\omega_o} = RC \, . \\ \end{align} Similarly, right at the cutoff frequency, \tau_g(\omega {=} \omega_o) = \frac{1}{2 \omega_o} = \frac{RC}{2} \, .

As frequencies get even larger, the group delay decreases with the inverse square of the frequency and approaches zero as frequency approaches infinity. File:Ltspice-negative-1ms-group-delay.png|Circuit with negative group delay of \displaystyle \tau_g = = for frequencies much lower than = .

File:Negative-1ms-group-delay.png|LTspice AC simulation of \displaystyle \tau_g from ) to ( \displaystyle \tau_g ≅ ). File:100Hz-negative-group-delay-wave-1Ghz-bandwidth-opamp.png|Transient simulation of an input (green) wave whose output (red) is ahead by , but with instability when the input turns on and off.

Filters will have negative group delay over frequency ranges where its phase response is positively-sloped. If a signal is band-limited within some maximum frequency B, then it is predictable to a small degree (within time periods smaller than ).

A filter whose group delay is negative over that signal's entire frequency range is able to use the signal's predictability to provide an illusion of a non-causal time advance. However, if the signal contains an unpredictable event (such as an abrupt change which makes the signal's spectrum exceed its band-limit), then the illusion breaks down.

Circuits with negative group delay (e.g., Figure 2) are possible, though causality is not violated. Negative group delay filters can be made in both digital and analog domains.

Applications include compensating for the inherent delay of low-pass filters, to create zero phase filters, which can be used to quickly detect changes in the trends of sensor data or stock prices. \Delta\tau = \tau_\phi - \tau_g , which is the difference between the phase delay and the group delay, where the phase delay refers to the time delay of a single relatively higher frequency sinusoid, and the group delay refers to the much lower frequencies derived from the envelope of the amplitude modulation applied to that sinusoid, resulting in what is perceptually a narrow band musical note. However, exhibiting zero or negligible differential time-delay distortion is a necessary but not sufficient property of an ideal system which must have flat phase delay.

That's because when two narrow band amplitude modulated notes, one much higher up in the human audio range than the other so their frequency spectrums do not overlap, the results being presented separately are perceptionally ideal, because it's not likely that a human can detect that the begin time of one note took longer from device input to device output than that of the other note. However, in the same system, if both notes are presented together at the device input, then, at the device output, one note will take longer to begin than the other, and can alter the perception of the resulting combination note if the begin times at the output are separated too much in time.

It is often desirable for the group delay to be constant across all frequencies; otherwise there is temporal smearing of the signal. Because group delay is \tau_g(\omega) = -\frac{d\phi}{d\omega} , it therefore follows that a constant group delay can be achieved if the transfer function of the device or medium has a linear phase response (i.e., \phi(\omega) = \phi(0) - \tau_g \omega where the group delay \tau_g is a constant).

The degree of nonlinearity of the phase indicates the deviation of the group delay from a constant value. The differential group delay is the difference in propagation time between the two eigenmodes X and Y polarizations. Consider two eigenmodes that are the 0° and 90° linear polarization states.

If the state of polarization of the input signal is the linear state at 45° between the two eigenmodes, the input signal is divided equally into the two eigenmodes. The power of the transmitted signal E T,total is the combination of the transmitted signals of both x and y modes.

E_T = (E_{i,x} \cdot t_x)^2 + (E_{i,y} \cdot t_y)^2 \, The differential group delay D t is defined as the difference in propagation time between the eigenmodes: D t  = |t t,x  − t t,y |.

True time delay

A transmitting apparatus is said to have true time delay (TTD) if the time delay is independent of the frequency of the electrical signal. TTD allows for a wide instantaneous signal bandwidth with virtually no signal distortion such as pulse broadening during pulsed operation.

TTD is an important characteristic of lossless and low-loss, dispersion free, transmission lines. reveals that signals propagate through them at a speed of 1 / \sqrt{LC} for a distributed inductance and capacitance . Hence, any signal's propagation delay through the line simply equals the length of the line divided by this speed. to determine \phi(\omega) from P(j\omega) , use the definition of \phi(\omega) = tan^{-1}(P(j\omega)_{imag}/P(j\omega)_{real}) .

Given that j^{2N} is always real, and j^{2N+1} is always imaginary, \phi(\omega) may be redefined as \phi(\omega) = tan^{-1}(-jP(j\omega)_{odd}/P(j\omega)_{even}) where even and odd refer to the polynomials that contain only the even or odd order coefficients respectively. The -j in the numerator merely converts the imaginary P(j\omega)_{odd} numerator to a real value, since P(j\omega)_{odd} by itself is purely imaginary. \begin{align} &\frac{dtan^{-1}(f(x))}{dx} = \frac{df(x)/dx}{1+f(x)^2} \\ &f(x) = \frac{-jP(j\omega)_{odd}}{P(j\omega)_{even}} \\ &\frac{df(x)}{dx} = \frac{P(j\omega)_{even} \frac{d(P(j\omega)_{odd})}{dx} - -jP(j\omega)_{odd} \frac{d(-jP(j\omega)_{even})}{dx}} {P(j\omega)_{even}^2} \end{align} The above expressions contain four terms to calculate: \begin{array}{lcl} Se = P(j\omega)_{even} &=& \sum_{k=0}^{N/2}P_{2k}(j\omega)^{2k} &=& \sum_{k=0}^{N/2}P_{2k}(-1)^{k}(\omega)^{2k}\\ So = P(j\omega)_{odd} &=& -j\sum_{k=1}^{(N+1)/2}P_{2k-1}(j\omega)^{2k-1} &=& \sum_{k=1}^{(N+1)/2}P_{2k-1}(-1)^{k-1}(\omega)^{2k-1}\\ De = \frac{d(P(j\omega)_{even})}{dx} &=& -j\sum_{k=1}^{N/2}2kP_{2k}(j\omega)^{2k-1} &=& \sum_{k=1}^{N/2}2kP_{2k}(-1)^{k-1}(\omega)^{2k-1} \\ Do = \frac{d(P(j\omega)_{odd})}{dx} &=& \sum_{k=1}^{(N+1)/2}{(2k-1)}P_{2k-1}(j\omega)^{2k-2} &=& \sum_{k=1}^{(N+1)/2}{(2k-1)}P_{2k-1}(-1)^{k-1}(\omega)^{2k-2}\\ \\ \frac{df(x)}{dx} &=& \frac{SeDo - SoDe}{Se^2} \end{array} The equations above may be used to determine the group delay of polynomial P(S) in closed form, shown below after the equations have been reduced to a simplified form. \text{Group Delay} =gd(P(j\omega))= -\frac{d\phi(\omega)}{d\omega} = -\frac {(So*De + Se*Do)} {(Se^2 + So^2)} \text{ sec} A polynomial ratio of the form P2(S) = P_{num}(S)/P_{den}(S) , such as that typically found in the definition of filter designs, may have the group delay determined by taking advantage of the phase relation, \phi(P1/P2) = \phi(P1) - \phi(P2) . \text{Group Delay} = gd(P2) = gd(P2_{num}) - gd(P2_{den}) sec T_4(j\omega) = \frac{1}{2.4494897(j\omega)^4 + 3.8282201(j\omega)^3 + 4.6244874(j\omega)^2 + 3.0412127(j\omega) + 1} The numerator group delay by inspection is zero, so only the denominator group delay need be determined. \begin{align} &Pe_{den} = 2.4494897\omega^4 - 4.6244874\omega^2 + 1 \\ &Po_{den} = -3.8282201\omega^3 + 3.0412127\omega \\ &De_{den} = 4(2.4494897)\omega^3 - 2(4.6244874)\omega \\ &Do_{den} = 3(-3.8282201)\omega^2 + 3.0412127 \end{align} Evaluating at \omega = 1 rad/sec: \begin{align} &Pe_{den} = -1.1749977 \\ &Po_{den} = -0.7870074 \\ &De_{den} = -0.548984 \\ &Do_{den} = -8.4434476 \end{align} \begin{align} &\text{Group Delay} =gd(T_4(j\omega))= -\frac{d\phi(\omega)}{d\omega} \\ &= \bigg[0--\frac {((-0.7870074*-0.548984) + (-1.1749977*-8.4434476))} {((-1.1749977)^2 + (-0.7870074)^2)}\bigg] \\ &= 5.1765430\text{ sec} \\ &\text{at }\omega = 1\text{ rad/sec} \end{align} The group delay calculation procedure and results may be confirmed to be correct by comparing them to the results derived from the digital derivative of the phase angle, \phi(\omega) , using a small delta \Delta\omega of +/-1.e-04 rad/sec. \begin{align} &\text{Group Delay} =gd(T_4(j\omega))= -\frac{d\phi(\omega)}{d\omega} \\ &= - (\phi(1+1e-04)-\phi(1.-1e04))/2e-04\\ &= 5.1765432\text{ sec} \\ &\text{at }\omega = 1\text{ rad/sec} \end{align} Since the group delay calculated by the digital derivative using a small delta is within 7 digits of accuracy when compared to the precise analytical calculation, the group delay calculation procedure and results are confirmed to be correct.

An advantage of measuring or calculating \phi_{DLP}(\omega) over measuring or calculating group delay, gd(\omega) , is \phi_{DLP}(\omega) always converges to 0 as the phase becomes linear, whereas gd(\omega) converges on a finite quantity that may not be known ahead of time. Given this, a linear phase optimizing function may more easily be executed with a \phi_{DLP}(\omega){=}0 goal than with a gd(\omega){=}constant goal when the value for constant is not necessarily already known.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1351829420 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

16 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.