55
$\begingroup$

I'm studying some DSP and I'm having trouble understanding the difference between phase delay and group delay.

It seems to me that they both measure the delay time of sinusoids passed through a filter.

  • Am I correct in thinking this?
  • If so, how do the two measurements differ?
  • Could someone give an example of a situation in which one measurement would be more useful than the other?

UPDATE

Reading ahead in Julius Smith's Introduction to Digital Filters, I've found a situation where the two measurements at least give different results: affine-phase filters. That's a partial answer to my question, I guess.

$\endgroup$
2
  • $\begingroup$ You might find this page useful. It explains group delay, and its effects, without any math. $\endgroup$ Commented Jan 30, 2016 at 16:01
  • $\begingroup$ the wikipedia page spells out the definitions and difference mathematically. if you have a linear-phase filter, group delay and phase delay are the same value and are simply the throughput delay of the filter. for any general filter that has some gain at DC (i.e. not an HPF nor BPF with $-\infty$ dB at DC) and does not have a polarity reversal at DC, the group delay and phase delay are the same value at and close to DC. $\endgroup$ Commented Jan 10, 2017 at 23:23

5 Answers 5

27
$\begingroup$

First of all the definitions are different:

  • Phase delay: (the negative of) Phase divided by frequency
  • Group delay: (the negative of) First derivative of phase vs frequency

In words that means:

  • Phase delay: Phase angle at this point in frequency
  • Group delay: Rate of change of the phase around this point in frequency.

When to use one or the other really depends on your application. The classical application for group delay is modulated sine waves, for example AM radio. The time that it takes for the modulation signal to get through the system is given by the group delay not by the phase delay. Another audio example could be a kick drum: This is mostly a modulated sine wave so if you want to determine how much the kick drum will be delayed (and potentially smeared out in time) the group delay is the way to look at it.

$\endgroup$
3
  • $\begingroup$ "Absolute phase at this point in frequency" Wouldn't that just be called "phase"? $\endgroup$
    – endolith
    Commented Feb 23, 2013 at 16:50
  • $\begingroup$ I meant "absolute" as compared to "relative", but I see that this can be confused with "absolute value". I'll edit it $\endgroup$
    – Hilmar
    Commented Jun 20, 2013 at 13:44
  • 5
    $\begingroup$ one last important difference: the phase delay at some frequency $f$ is the time delay of the phase of the quasi-sinusoidal signal of frequency $f$ passed through the filter. the group delay is the time delay of the envelope or "group" of the quasi-sinusoid. $\endgroup$ Commented Jan 10, 2017 at 23:29
24
$\begingroup$

They don't both measure how much a sinusoid is delayed. Phase delay measures exactly that. Group delay is a little more complicated. Picture a short sine wave with an amplitude envelope applied to it so that it fades in and fades out, say, a gaussian multiplied by a sinusoid. This envelope has a shape to it, and in particular, it has a peak that represents the center of that "packet." Group delay tells you how much that amplitude envelope will be delayed, in particular, how much the peak of that packet will move by.

I like to think about this by going back to the definition of group delay: it's the derivative of phase. The derivative gives you a linearization of the phase response at that point. In other words, at some frequency, the group delay is telling you approximately how the phase response of the neighboring frequencies relate to the phase response at that point. Now, remember how we're using an amplitude-modulated sinusoid. The amplitude modulation will take the sinusoid's peak, and introduce sidebands at neighboring frequencies. So, in a way, the group delay is giving you information about how the sidebands will be delayed relative to that carrier frequency, and applying that delay will change the shape of the amplitude envelope in some way.

The crazy thing? Causal filters can have negative group delay! Take your gaussian multiplied by a sinusoid: you can build an analog circuit such that when you send that signal through, the envelope's peak will appear in the output before the input. It seems like a paradox, since it would appear that the filter has to "see" into the future. It's definitely weird, but a way to think about it is that since the envelope has a very predictable shape, the filter already has enough information to anticipate what is going to happen. If a spike were inserted in the middle of the signal, the filter would not anticipate that. Here's a really interesting article about this: http://www.dsprelated.com/showarticle/54.php

$\endgroup$
1
  • 2
    $\begingroup$ When you say "picture a...", an actual image would be really helpful here. $\endgroup$ Commented Dec 7, 2018 at 17:20
13
$\begingroup$

For those who still cannot chalk the difference here is an simple example

Take long transmission line with simple quasi-sinusoidal signal with an amplitude envelope, $a(t)$, at its input

$$x(t) = a(t) \cdot \sin(\omega t)$$

If you measure this signal at the transmission line end, $y(t)$, it might come somewhere like this:

$$\begin{align} y(t) &= a(t-\tau_g) \cdot \sin(\omega t + \phi) \\ &= a(t-\tau_g) \cdot \sin \big(\omega (t - \tau_\phi) \big) \\ \end{align}$$

where $\phi$ is phase difference from input to output.

If you want how much time in it takes the phase of the sinusoid, $\sin(\omega t)$ transmission from input to output then $\tau_\phi = -\tfrac{\phi}{\omega}$ is your answer in seconds.

If you want how much time in it takes the envelope, $a(t)$, of the sinusoid transmission from input to output then $\tau_g = -\tfrac{d\,\phi}{d\,\omega}$ is your answer in seconds.

Phase delay is just traveling time for a single frequency while group delay is measure of amplitude distortion if array of multiple frequencies are applied.

$\endgroup$
1
  • $\begingroup$ This answer is a little deceptive since it implies phase and group delay is actually related to the travel time from input to output. (Which is not the case! dsp.stackexchange.com/questions/66574/…) To reduce confusion, I prefer to use the term "offset" versus "time" since it is just the offset between the input and output of the phase (for phase delay) and envelope (for group delay). $\endgroup$ Commented Dec 1, 2021 at 5:37
7
$\begingroup$

I know this is a pretty old question, but I've been looking for a derivation of the expressions for group delay and phase delay on the internet. Not many such derivations exist on the net so I thought I'd share what I found. Also, note that this answer is more of a mathematical description than an intuitive one. For intuitive descriptions, please refer to the above answers. So, here goes:

Let's consider a signal

$$x(t) = a(t) \cos(\omega_0 t)$$

and pass this through an L.T.I. system with frequency response

$$H(j\omega) = e^{j\phi(\omega)}$$

We have considered the gain of the system to be unity because we are interested in analyzing how the system alters the phase of the input signal, rather than the gain. Now, given that multiplication in time domain corresponds to convolution in frequency domain, the Fourier Transform of the input signal is given by

$$X(j\omega) = {1 \over 2\pi}A(j\omega) \cdot \big( \pi\delta(\omega - \omega_0) + \pi\delta(\omega + \omega_0) \big)$$

which amounts to

$$X(j\omega) = {A(j(\omega-\omega_0))+A(j(\omega+\omega_0)) \over 2}$$

Therefore, the output of the system has a frequency spectrum given by

$$B(j\omega) = {e^{j\phi(\omega)} \over 2} \big( A(j(\omega-\omega_0))+A(j(\omega+\omega_0)) \big)$$

Now, to find the inverse Fourier Transform of the above expression, we need to know the exact analytical form for $\phi(\omega)$. So, to simplify matters, we assume that the frequency content of $a(t)$ includes only those frequencies which are significantly lower than the carrier frequency $\omega_0$. In this scenario, the signal $x(t)$ can be viewed as an amplitude modulated signal, where $a(t)$ represents the envelope of the high frequency cosine signal. In the frequency domain, $B(j\omega)$ now contains two narrow bands of frequencies centered at $\omega_0$ and $-\omega_0$ (refer to the above equation). This means that we can use a first order Taylor series expansion for $\phi(\omega)$.

$$\begin{align} \phi(\omega) &= \phi(\omega_0) + \frac{d\phi}{d\omega}(\omega_0)(\omega - \omega_0) \\ &= \alpha + \beta\omega \\ \end{align}$$

where $$\begin{align} \alpha &= \phi(\omega_0) - \omega_0\frac{d\phi}{d\omega}(\omega_0) \\ \beta &= \frac{d\phi}{d\omega}(\omega_0) \\ \end{align}$$

Plugging this in, we can calculate the inverse Fourier transform of the first half of $B(j\omega)$ as

$$\frac{1}{2\pi}\int_{-\infty}^{\infty} \frac{1}{2} A(j(\omega - \omega_0)) e^{j(\omega t + \alpha + \beta\omega)} d\omega$$

Substituting $\omega - \omega_0$ for $\omega'$, this becomes

$$\frac{1}{2\pi}\int_{-\infty}^{\infty} \frac{1}{2} X(j(\omega')) e^{j((\omega' + \omega_0) (t + \beta) + \alpha)} d\omega'$$

which simplifies to

$$a(t + \beta)\frac{e^{j(\omega_0 t + \omega_0\beta + \alpha)}}{2}$$

Plugging in the expressions for $\alpha$ and $\beta$, this becomes

$$a(t + \beta)\frac{e^{j(\omega_0 t + \phi(\omega_0))}}{2}$$

Similarly the other half of the inverse Fourier Transform of $B(j\omega)$ can be obtained by replacing $\omega_0$ by $-\omega_0$. Noting that for real signals, $\phi(\omega)$ is an odd function, this becomes

$$a(t + \beta)\frac{e^{-j(\omega_0 t + \phi(\omega_0))}}{2}$$

Thus, adding the two together, we get $$b(t) = x(t + \frac{d\phi}{d\omega}(\omega_0)) \cos(\omega_0(t + \tfrac{\phi(\omega_0)}{\omega_0}))$$

Notice the delays in the envelope $a(t)$ and the carrier cosine signal. Group delay $(\tau_g)$ corresponds to the delay in the envelope while phase delay $(\tau_p)$ corresponds to the delay in the carrier. Thus,

$$\tau_g = -\frac{d\phi}{d\omega}(\omega_0)$$ $$\tau_p = -\frac{\phi(\omega_0)}{\omega_0}$$

$\endgroup$
3
$\begingroup$

The phase delay of any filter is the amount of time delay each frequency component suffers in going through the filters (If a signal consists of several frequencies.)

The group delay is the average time delay of the composite signal suffered at each component of frequency.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.