Group delay and phase delay

From testwiki
Revision as of 02:48, 1 March 2025 by imported>BD2412 (clean up spacing around commas and other punctuation, replaced: , , → , , ,t → , t, ,x → , x, ,y → , y)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description

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).

Unfortunately, these delays are sometimes frequency dependent,[1] 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.

Background

Frequency components of a signal

Template:Main Fourier analysis reveals how signals in time can alternatively be expressed as the sum of sinusoidal frequency components, each based on the trigonometric function sin(x) with a fixed amplitude and phase and no beginning and no end.

Linear time-invariant systems process each sinusoidal component independently; the property of linearity means they satisfy the superposition principle.

Introduction

The group delay and phase delay properties of a linear time-invariant (LTI) system are functions of frequency, giving the time from when a frequency component of a time varying physical quantity—for example a voltage signal—appears at the LTI system input, to the time when a copy of that same frequency component—perhaps of a different physical phenomenon—appears at the LTI system output.

A varying phase response as a function of frequency, from which group delay and phase delay can be calculated, typically occurs in devices such as microphones, amplifiers, loudspeakers, magnetic recorders, headphones, coaxial cables, and antialiasing filters.[2] All frequency components of a signal are delayed when passed through such devices, or when propagating through space or a medium, such as air or water.

While a phase response describes phase shift in angular units (such as degrees or radians), the phase delay is in units of time and equals the negative of the phase shift at each frequency divided by the value of that frequency. Group delay is the negative derivative of phase shift with respect to frequency.

Phase delay

A linear time-invariant system or device has a phase response property and a phase delay property, where one can be calculated exactly from the other. Phase delay directly measures the device or system time delay of individual sinusoidal frequency components. If the phase delay function at any given frequency—within a frequency range of interest—has the same constant of proportionality between the phase at a selected frequency and the selected frequency itself, the system/device will have the ideal of a flat phase delay property, a.k.a. linear phase.[1] Since phase delay is a function of frequency giving time delay, a departure from the flatness of its function graph can reveal time delay differences among the signal’s various sinusoidal frequency components, in which case those differences will contribute to signal distortion, which is manifested as the output signal waveform shape being different from that of the input signal.

The phase delay property in general does not give useful information if the device input is a modulated signal. For that, group delay must be used.

Group delay

The group delay is a convenient measure of the linearity of the phase with respect to frequency in a modulation system.[3][4] For a modulation signal (passband signal), the information carried by the signal is carried exclusively in the wave envelope. Group delay therefore operates only with the frequency components derived from the envelope.

Basic modulation system

Figure 1: Outer and Inner LTI Devices

A device's group delay can be exactly calculated from the device's phase response, but not the other way around. The simplest use case for group delay is illustrated in Figure 1 which shows a conceptual modulation system, which is itself an LTI system with a baseband output that is ideally an accurate copy of the baseband signal input. This system as a whole is referred to here as the outer LTI system/device, which contains an inner (red block) LTI system/device. As is often the case for a radio system, the inner red LTI system in Fig 1 can represent two LTI systems in cascade, for example an amplifier driving a transmitting antenna at the sending end and the other an antenna and amplifier at the receiving end.

Amplitude Modulation

Amplitude modulation creates the passband signal by shifting the baseband frequency components to a much higher frequency range. Although the frequencies are different, the passband signal carries the same information as the baseband signal. The demodulator does the inverse, shifting the passband frequencies back down to the original baseband frequency range. Ideally, the output (baseband) signal is a time delayed version of the input (baseband) signal where the waveform shape of the output is identical to that of the input.

In Figure 1, the outer system phase delay is the meaningful performance metric. For amplitude modulation, the inner red LTI device group delay becomes the outer LTI device phase delay. If the inner red device group delay is completely flat in the frequency range of interest, the outer device will have the ideal of a phase delay that is also completely flat, where the contribution of distortion due to the outer LTI device's phase response—determined entirely by the inner device's possibly different phase response—is eliminated. In that case, the group delay of the inner red device and the phase delay of the outer device give the same time delay figure for the signal as a whole, from the baseband input to the baseband output. It is significant to note that it is possible for the inner (red) device to have a very non-flat phase delay (but flat group delay), while the outer device has the ideal of a perfectly flat phase delay. This is fortunate because in LTI device design, a flat group delay is easier to achieve than a flat phase delay.

Angle Modulation

In an angle-modulation system—such as with frequency modulation (FM) or phase modulation (PM)—the (FM or PM) passband signal applied to an LTI system input can be analyzed as two separate passband signals, an in-phase (I) amplitude modulation AM passband signal and a quadrature-phase (Q) amplitude modulation AM passband signal, where their sum exactly reconstructs the original angle-modulation (FM or PM) passband signal. While the (FM/PM) passband signal is not amplitude modulation, and therefore has no apparent outer envelope, the I and Q passband signals do indeed have separate amplitude modulation envelopes. (However, unlike with regular amplitude modulation, the I and Q envelopes do not resemble the wave shape of the baseband signals, even though 100 percent of the baseband signal is represented in a complex manner by their envelopes.) So, for each of the I and Q passband signals, a flat group delay ensures that neither the I pass band envelope nor the Q passband envelope will have wave shape distortion, so when the I passband signal and the Q passband signal are added back together, the sum is the original FM/PM passband signal, which will also be unaltered.

Theory

According to LTI system theory (used in control theory and digital or analog signal processing), the output signal y(t) of an LTI system can be determined by convolving the time-domain impulse response h(t) of the LTI system with the input signal x(t). Template:Slink expresses this relationship as:

y(t)=(h*x)(t)=defh(tτ)x(τ)dτ=def1{H(s)X(s)},

where * denotes the convolution operation, X(s) and H(s) are the Laplace transforms of the input x(t) and impulse response h(t), respectively, Template:Mvar is the complex frequency, and 1 is the inverse Laplace transform. H(s) is called the transfer function of the LTI system and, like the impulse response 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.

LTI system response to wave packet

Suppose that such a system is driven by a wave packet formed by a sinusoid multiplied by an amplitude envelope Aenv(t)>0, so the input x(t) can be expressed in the following form:

x(t)=Aenv(t)cos(ωt+θ).

Also suppose that the envelope Aenv(t) is slowly changing relative to the sinusoid's frequency ω. This condition can be expressed mathematically as:

|ddtlog(Aenv(t))|ω .

Applying the earlier convolution equation would reveal that the output of such an LTI system is very well approximatedTemplate:Clarification needed as:

y(t)=|H(iω)| Aenv(tτg)cos(ω(tτϕ)+θ).

Here τg is the group delay and τϕ is the phase delay, and they are given by the expressions below (and potentially are functions of the angular frequency ω). 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, τϕ. The envelope of the sinusoid is delayed in time by the group delay, τg.

Mathematical definition of group delay and phase delay

The group delay, τg, and phase delay, τϕ, are (potentially) frequency-dependent[5] and can be computed from the unwrapped phase shift ϕ(ω). The phase delay at each frequency equals the negative of the phase shift at that frequency divided by the value of that frequency:

τϕ(ω)=ϕ(ω)ω.

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:[6]

τg(ω)=dϕ(ω)dω.

In a linear phase system (with non-inverting gain), both τg and τϕ are constant (i.e., independent of ω) and equal, and their common value equals the overall delay of the system; and the unwrapped phase shift of the system (namely ωτϕ) is negative, with magnitude increasing linearly with frequency ω.

LTI system response to complex sinusoid

More generally, it can be shown that for an LTI system with transfer function H(s) driven by a complex sinusoid of unit amplitude,

x(t)=eiωt 

the output is

y(t)=H(iω) eiωt =(|H(iω)|eiϕ(ω)) eiωt =|H(iω)| ei(ωt+ϕ(ω))  

where the phase shift ϕ is

ϕ(ω) =def arg{H(iω)}.

1st order low- or high-pass RC filter example

The phase of a 1st-order low-pass filter formed by a RC circuit with cutoff frequency ωo=1RC is:[7]

ϕ(ω)=arctan(ωωo).

Similarly, the phase for a 1st-order RC high-pass filter is:

ϕ(ω)=π2arctan(ωωo).

Taking the negative derivative with respect to ω for either this low-pass or high-pass filter yields the same group delay of:[8]

τg(ω)=ωoω2+ωo2.

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:

τg(ωωo)1ωo=RC.

Similarly, right at the cutoff frequency, τg(ω=ωo)=12ωo=RC2.

As frequencies get even larger, the group delay decreases with the inverse square of the frequency and approaches zero as frequency approaches infinity.

Negative group delay

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 Template:Fraction). 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.[9] Circuits with negative group delay (e.g., Figure 2) are possible, though causality is not violated.[10]

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.[11]

Group delay in audio

Group delay has some importance in the audio field and especially in the sound reproduction field.[12][13] Many components of an audio reproduction chain, notably loudspeakers and multiway loudspeaker crossover networks, introduce group delay in the audio signal.[2][13] It is therefore important to know the threshold of audibility of group delay with respect to frequency,[14][15][16] especially if the audio chain is supposed to provide high fidelity reproduction. The best thresholds of audibility table has been provided by Blauert and Laws.[17]

Frequency
(kHz)
Threshold
(ms)
Periods
(Cycles)
0.5 3.2 1.6
1 2 2
2 1 2
4 1.5 6
8 2 16

Flanagan, Moore and Stone conclude that at 1, 2 and 4 kHz, a group delay of about 1.6 ms is audible with headphones in a non-reverberant condition.[18] Other experimental results suggest that when the group delay in the frequency range from 300 Hz to 1 kHz is below 1.0 ms, it is inaudible.[15]

The waveform of any signal can be reproduced exactly by a system that has a flat frequency response and group delay over the bandwidth of the signal. Leach[19] introduced the concept of differential time-delay distortion, defined as the difference between the phase delay and the group delay:

Δτ=τϕτg.

An ideal system should exhibit zero or negligible differential time-delay distortion.[19]

It is possible to use digital signal processing techniques to correct the group delay distortion that arises due to the use of crossover networks in multi-way loudspeaker systems.[20] This involves considerable computational modeling of loudspeaker systems in order to successfully apply delay equalization,[21] using the Parks-McClellan FIR equiripple filter design algorithm.[1][4][22][23]

Group delay in optics

Group delay is important in physics, and in particular in optics.

In an optical fiber, group delay is the transit time required for optical power, traveling at a given mode's group velocity, to travel a given distance. For optical fiber dispersion measurement purposes, the quantity of interest is group delay per unit length, which is the reciprocal of the group velocity of a particular mode. The measured group delay of a signal through an optical fiber exhibits a wavelength dependence due to the various dispersion mechanisms present in the fiber.

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 τg(ω)=dϕdω, 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., ϕ(ω)=ϕ(0)τgω where the group delay τg is a constant). The degree of nonlinearity of the phase indicates the deviation of the group delay from a constant value.

Template:AnchorThe 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 ET,total is the combination of the transmitted signals of both x and y modes.

ET=(Ei,xtx)2+(Ei,yty)2

The differential group delay Dt is defined as the difference in propagation time between the eigenmodes: Dt = |tt,x − tt,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.[24][25] 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. Template:Slink reveals that signals propagate through them at a speed of 1/LC for a distributed inductance Template:Mvar and capacitance Template:Mvar. Hence, any signal's propagation delay through the line simply equals the length of the line divided by this speed.

Group delay from transfer function polynomials

If a transfer function or Sij of a scattering parameter, is in a polynomial Laplace transform form, then the mathematical definition for group delay above may be solved analytically in closed form. A polynomial transfer function P(S) may be taken along the jω axis and defined as P(jω). ϕ(ω) may be determined from P(jω), and then the group delay may be determined by solving for dϕ(ω)|/dω.

to determine ϕ(ω) from P(jω), use the definition of ϕ(ω)=tan1(P(jω)imag/P(jω)real). Given that j2N is always real, and j2N+1 is always imaginary, ϕ(ω) may be redefined as ϕ(ω)=tan1(jP(jω)odd/P(jω)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ω)odd numerator to a real value, since P(jω)odd by itself is purely imaginary.

dtan1(f(x))dx=df(x)/dx1+f(x)2f(x)=jP(jω)oddP(jω)evendf(x)dx=P(jω)evend(P(jω)odd)dxjP(jω)oddd(jP(jω)even)dxP(jω)even2

The above expressions contain four terms to calculate:

Se=P(jω)even=k=0N/2P2k(jω)2k=k=0N/2P2k(1)k(ω)2kSo=P(jω)odd=jk=1(N+1)/2P2k1(jω)2k1=k=1(N+1)/2P2k1(1)k1(ω)2k1De=d(P(jω)even)dx=jk=1N/22kP2k(jω)2k1=k=1N/22kP2k(1)k1(ω)2k1Do=d(P(jω)odd)dx=k=1(N+1)/2(2k1)P2k1(jω)2k2=k=1(N+1)/2(2k1)P2k1(1)k1(ω)2k2df(x)dx=SeDoSoDeSe2

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.

Group Delay=gd(P(jω))=dϕ(ω)dω=(So*De+Se*Do)(Se2+So2) sec

Polynomial ratio

A polynomial ratio of the form P2(S)=Pnum(S)/Pden(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, ϕ(P1/P2)=ϕ(P1)ϕ(P2).

Group Delay=gd(P2)=gd(P2num)gd(P2den)sec

Simple filter example

A four pole Legendre filter transfer function used in the Legendre filter example is shown below.

T4(jω)=12.4494897(jω)4+3.8282201(jω)3+4.6244874(jω)2+3.0412127(jω)+1

The numerator group delay by inspection is zero, so only the denominator group delay need be determined.

Peden=2.4494897ω44.6244874ω2+1Poden=3.8282201ω3+3.0412127ωDeden=4(2.4494897)ω32(4.6244874)ωDoden=3(3.8282201)ω2+3.0412127

Evaluating at ω = 1 rad/sec:

Peden=1.1749977Poden=0.7870074Deden=0.548984Doden=8.4434476

Group Delay=gd(T4(jω))=dϕ(ω)dω=[0((0.7870074*0.548984)+(1.1749977*8.4434476))((1.1749977)2+(0.7870074)2)]=5.1765430 secat ω=1 rad/sec

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, ϕ(ω), using a small delta Δω of +/-1.e-04 rad/sec.

Group Delay=gd(T4(jω))=dϕ(ω)dω=(ϕ(1+1e04)ϕ(1.1e04))/2e04=5.1765432 secat ω=1 rad/sec

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.

Deviation from Linear Phase

Deviation from Linear Phase, ϕDLP(ω), sometimes referred to as just, "phase deviation", is the difference between the phase response, ϕ(ω), and the linear portion of the phase response ϕL(ω),[26] and is a useful measurement to determine the linearity of ϕ(ω).

A convenient means to measure ϕDLP(ω) is to take the simple linear regression of ϕ(ω) sampled over a frequency range of interest, and subtract it from the actual ϕ(ω). The ϕDLP(ω) of an ideal linear phase response would be expected to have a value of 0 across the frequency range of interest (such as the pass band of a filter), while the ϕDLP(ω) of a real-world approximately linear phase response may deviate from 0 by a small finite amount across the frequency range of interest.

Advantage over group delay

An advantage of measuring or calculating ϕDLP(ω) over measuring or calculating group delay, gd(ω), is ϕDLP(ω) always converges to 0 as the phase becomes linear, whereas gd(ω) 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 ϕDLP(ω)=0 goal than with a gd(ω)=constant goal when the value for constant is not necessarily already known.

See also

References

Template:FS1037C

Template:Reflist

Template:Authority control

  1. 1.0 1.1 1.2 Cite error: Invalid <ref> tag; no text was provided for refs named RabinerGold1975
  2. 2.0 2.1 Cite error: Invalid <ref> tag; no text was provided for refs named Preis1982
  3. Cite error: Invalid <ref> tag; no text was provided for refs named OppenheimSchaferBuck1999
  4. 4.0 4.1 Cite error: Invalid <ref> tag; no text was provided for refs named OppenheimSchafer2014
  5. Cite error: Invalid <ref> tag; no text was provided for refs named Ambardar1999
  6. Cite error: Invalid <ref> tag; no text was provided for refs named OppenheimWillskyNawab1997
  7. https://www.tedpavlic.com/teaching/osu/ece209/lab3_opamp_FO/lab3_opamp_FO_phase_shift.pdf Template:Bare URL PDF
  8. Cite error: Invalid <ref> tag; no text was provided for refs named aolson
  9. Cite error: Invalid <ref> tag; no text was provided for refs named Bariska
  10. Cite error: Invalid <ref> tag; no text was provided for refs named NakanishiSugiyamaKitan2002
  11. Cite error: Invalid <ref> tag; no text was provided for refs named CastorPerry
  12. Cite error: Invalid <ref> tag; no text was provided for refs named PlompSteeneken1969
  13. 13.0 13.1 Cite error: Invalid <ref> tag; no text was provided for refs named Ashley1980
  14. Cite error: Invalid <ref> tag; no text was provided for refs named Moller1975
  15. 15.0 15.1 Cite error: Invalid <ref> tag; no text was provided for refs named Liski2018
  16. Cite error: Invalid <ref> tag; no text was provided for refs named Liski2021
  17. Cite error: Invalid <ref> tag; no text was provided for refs named BlauertLaws1978
  18. Cite error: Invalid <ref> tag; no text was provided for refs named FlanaganMooreStone2005
  19. 19.0 19.1 Cite error: Invalid <ref> tag; no text was provided for refs named Leach1989
  20. Cite error: Invalid <ref> tag; no text was provided for refs named Adam2007
  21. Cite error: Invalid <ref> tag; no text was provided for refs named Makivirta2018
  22. Cite error: Invalid <ref> tag; no text was provided for refs named McClellanParksRabiner1973
  23. Cite error: Invalid <ref> tag; no text was provided for refs named OppenheimSchafer2010
  24. Cite error: Invalid <ref> tag; no text was provided for refs named TrueTimeDelay
  25. Cite error: Invalid <ref> tag; no text was provided for refs named Smith
  26. Cite error: Invalid <ref> tag; no text was provided for refs named Keysight
  27. Template:Cite web