 #jsDisabledContent { display:none; } My Account |  Register |  Help Flag as Inappropriate This article will be permanently flagged as inappropriate and made unaccessible to everyone. Are you certain this article is inappropriate?          Excessive Violence          Sexual Content          Political / Social Email this Article Email Address:

# Spectral density

Article Id: WHEBN0000202672
Reproduction Date:

 Title: Spectral density Author: World Heritage Encyclopedia Language: English Subject: Collection: Publisher: World Heritage Encyclopedia Publication Date:

### Spectral density The spectral density of a fluorescent light as a function of optical wavelength shows peaks at atomic transitions, indicated by the numbered arrows. The voice waveform over time (left) has a broad audio power spectrum (right).

The power spectrum of a time series x(t) describes how the variance of the data x(t) is distributed over the frequency domain, into spectral components which the series x(t) may be decomposed. This distribution of the variance may be described either by a measure \mu or by a statistical cumulative distribution function S(f)=the power contributed by frequencies from 0 up to f. Given a band of frequencies [a,b), the amount of variance contributed to x(t) by frequencies lying within the interval [a,b) is given by S(b)-S(a). Then S is called the spectral distribution function of x. Provided S is an absolutely continuous function, then there exists a spectral density function S'. In this case, the data or signal is said to possess an absolutely continuous spectrum. The spectral density at a frequency f gives the rate of variance contributed by frequencies in the immediate neighbourhood of f to the variance of x per unit frequency.

The nature of the spectrum of a function x gives useful information about the nature of x, for example, whether it is periodic or not. The study of the power spectrum is a kind of generalisation of Fourier analysis and applies to functions which do not possess Fourier transforms.

An analogous definition applies to a stochastic process X(t). Furthermore, time may be either continuous or discrete.

Intuitively, the spectrum decomposes the content of a signal or of a stochastic process into the different frequencies present in that process, and helps identify periodicities. More specific terms which are used are the power spectrum, spectral density, power spectral density, or energy spectral density.

The variance of x has units which are the square of the units of x. Therefore, these are also the units of \mu or S, and so the units of the spectral density are the square of the units of x per unit frequency. In the case of the voltage of an electric signal, x^2 is proportional, except that it has the wrong units, to the power of the signal (implicitly assuming a constant resistance), and so even in statistical applications which use different units, the spectral distribution function and density function are often referred to as the power spectral distribution function and the power spectral density function, although the word power is often omitted for brevity in contexts where no misunderstanding will arise. The use of the power spectrum is most important in statistical signal processing and in the branch of statistics consisting of the analysis of time series. It is, however, useful in many other branches of physics and engineering, and may involve other units. Usually the data is a function of time but they may be a function of spatial variables instead.

## Contents

• Explanation 1
• Preliminary conventions on notations for time series 2
• Motivating example 3
• Definition 4
• Energy spectral density 4.1
• Power spectral density 4.2
• Properties of the power spectral density 4.2.1
• Cross-spectral density 4.3
• Estimation 5
• Properties 6
• Related concepts 7
• Applications 8
• Electrical engineering 8.1
• Notes 10
• References 11

## Explanation

Any signal that can be represented as an amplitude that varies with time has a corresponding frequency spectrum. This includes familiar concepts such as visible light (color), musical notes, radio/TV channels, and even the regular rotation of the earth. When these physical phenomena are represented in the form of a frequency spectrum, certain physical descriptions of their internal processes become much simpler. Often, the frequency spectrum clearly shows harmonics, visible as distinct spikes or lines at particular frequencies, that provide insight into the mechanisms that generate the entire signal.

In physics, the signal is usually a wave, such as an electromagnetic wave, random vibration, or an acoustic wave. The power spectral density (PSD) of the signal, when multiplied by the appropriate factor, describes the power contributed to the wave, by a frequency, per unit frequency. Power spectral density is commonly expressed in watts per hertz (W/Hz).

For voltage signals, it is customary to use units of V2 Hz−1 for the PSD and V2 s Hz−1 for the ESD (energy spectral density). Often it is convenient to work with an amplitude spectral density (ASD), which is the square root of the PSD; the ASD of a voltage signal has units of V Hz−1/2. For random vibration analysis, units of g2 Hz−1 are frequently used for the PSD of acceleration. Here g denotes the g-force.

Although it is not necessary to assign physical dimensions to the signal or its argument, in the following discussion the terms used will assume that the signal varies in time.

## Preliminary conventions on notations for time series

The phrase time series has been defined as "... a collection of observations made sequentially in time." But it is also used to refer to a stochastic process that functions as the underlying theoretical model for the process that generated the data (and thus includes consideration of all the other possible sequences of data that could have been observed, but were not). Furthermore, the 'time' can be either continuous or discrete. There are, therefore, four different but closely related definitions and formulas for the power spectrum of a time series.

If X_n (discrete time) or X_t (continuous time) is a stochastic process, we will refer to a possible time series of data coming from it as a sample or path or signal of the stochastic process. To avoid confusion, we will reserve the word process for a stochastic process, and use one of the words signal, or sample, to refer to a time series of data. However, the reader should be aware that in the engineering literature especially, this distinction is often conveyed instead by speaking of a deterministic signal (for the sample) but of a random signal for the process. Hence the value at a point in time of the deterministic signal is a number, denoted by x(t), but the value at a point in time of a random signal is a random variable, denoted by the same symbol, x(t). Nevertheless, this article will preserve the distinction and use capital letters for the random variables and processes.

For any random variable X, standard notations of angle brackets or \operatorname{E} will be used for ensemble average, also known as statistical expectation, and \operatorname{Var} for the theoretical variance.

## Motivating example

Suppose x_n, from n=0 to N-1 is a time series (discrete time) with zero mean. Suppose that it is a sum of a finite number of periodic components (all frequencies are positive):

\begin{align} x_n &= \sum_k A_k\cdot \sin(2\pi \nu_k n + \phi_k)\\ &= \sum_k \left(\overbrace{a_k}^{A_k \sin(\phi_k)} \cos(2\pi \nu_k n) + \overbrace{b_k}^{A_k \cos(\phi_k)} \sin(2\pi \nu_k n)\right) \end{align}

The variance of x_n is, for a zero-mean function as above, given by \frac 1N \sum_{n=0}^{N-1} x_n^2. If these data were samples taken from an electrical signal, this would be its average power (power is energy per unit time, so it is analogous to variance if energy is analogous to the amplitude squared).

Now, for simplicity, suppose the signal extends infinitely in time, so we pass to the limit as N\rightarrow \infty. If the average power is bounded, which is almost always the case in reality, then the following limit exists and is the variance of the data.

\lim _ {N\rightarrow \infty} \frac 1N \sum_{n=0}^{N-1} x_n^2.

Again, for simplicity, we will pass to continuous time, and assume that the signal extends infinitely in time in both directions. Then these two formulas become

x(t) = \sum_k A_k\cdot \sin(2\pi \nu_k t + \phi_k)

and

\lim _ {T\rightarrow\infty} \frac 1{2T} \int_{-T}^T x(t)^2 dt.

The root mean square of \sin is 1/\sqrt{2}, so the variance of A_k \sin(2\pi \nu_k t + \phi_k) is A_k^2 / 2 . Hence, the contribution to the average power of x(t) coming from the component with frequency \nu_k is A_k^2 / 2.. All these contributions add up to the average power of x(t).

Then the power as a function of frequency is A_k^2/ 2, and its statistical cumulative distribution function S(\nu) will be

S(\nu) = \sum _ {k : \nu_k < \nu} A_k^2/ 2.

S is a step function, monotonically non-decreasing. Its jumps occur at the frequencies of the periodic components of x, and the value of each jump is the power or variance of that component.

The variance is the covariance of the data with itself. If we now consider the same data but with a lag of \tau, we can take the covariance of x(t) with x(t+\tau), and define this to be the autocorrelation function c of the signal (or data) x:

c (\tau) = \lim _ {T\rightarrow\infty} \frac 1{2T} \int_{-T}^T x(t) x(t+\tau) dt.

If it exists, it is an even function of \tau. If the average power is bounded, then c exists everywhere, is finite, and is bounded by c(0), which is the average power or variance of the data.

It can be shown that c can be decomposed into periodic components with the same periods as x:

c(\tau) = \sum_k \frac 12 A_k^2 \cos (2\pi \nu_k \tau).

This is in fact the spectral decomposition of c over the different frequencies, and is related to the distribution of power of x over the frequencies: the amplitude of a frequency component of c is its contribution to the average power of the signal.

The power spectrum of this example is not continuous, and therefore does not have a derivative, and therefore this signal does not have a power spectral density function. In general, the power spectrum will usually be the sum of two parts: a line spectrum such as in this example, which is not continuous and does not have a density function, and a residue, which is absolutely continuous and does have a density function.

## Definition

### Energy spectral density

Energy spectral density describes how the energy of a signal or a time series is distributed with frequency. Here, the term energy is used in the generalized sense of signal processing; that is, the energy of a signal x(t) is

\int\limits_{-\infty}^\infty |x(t)|^2\, dt.

The energy spectral density is most suitable for transients—that is, pulse-like signals—having a finite total energy. In this case, Parseval's theorem  gives us an alternate expression for the energy of the signal in terms of its Fourier transform, \hat{x}(f)=\int\limits_{-\infty}^\infty e^{-2\pi ift}x(t) dt.

\int\limits_{-\infty}^\infty |x(t)|^2\, dt = \int\limits_{-\infty}^\infty |\hat{x}(f)|^2\, df.

Here f is the frequency in Hz, i.e., cycles per second. Often used is the angular frequency \omega=2\pi f. Since the integral on the right-hand side is the energy of the signal, the integrand |\hat{x}(f)|^2 can be interpreted as a density function describing the energy per unit frequency contained in the signal at the frequency f. In light of this, the energy spectral density of a signal x(t) is defined as

S_{xx}(f) = |\hat{x}(f)|^2

As a physical example of how one might measure the energy spectral density of a signal, suppose V(t) represents the discrete Fourier transform of x_n and \hat x_d^*(f) is the complex conjugate of \hat x_d(f) . The sampling interval \Delta t is needed to keep the correct physical units and to ensure that we recover the continuous case in the limit \Delta t\rightarrow 0; however, in the mathematical sciences, the interval is often set to 1.

### Power spectral density

The above definition of energy spectral density is most suitable for transients, i.e., pulse-like signals, for which the Fourier transforms of the signals exist. For continued signals that describe, for example, stationary physical processes, it makes more sense to define a power spectral density (PSD), which describes how the power of a signal or time series is distributed over the different frequencies, as in the simple example given previously. Here, power can be the actual physical power, or more often, for convenience with abstract signals, can be defined as the squared value of the signal. For example, statisticians study the variance of a set of data, but because of the analogy with electrical signals, it is customary to refer to it as the power spectrum even when it is not, physically speaking, power. The average power P of a signal x(t) is the following time average:

P = \lim_{T\rightarrow \infty} \frac 1 {2T} \int_{-T}^T x(t)^2\,dt.

The power of a signal may be finite even if the energy is infinite. For example, a 10-volt power supply connected to a 1 kΩ resistor delivers (10 V)2 / (1 kΩ) = 0.1 W of power at any given time; however, if the supply is allowed to operate for an infinite amount of time, it will deliver an infinite amount of energy (0.1 J each second for an infinite number of seconds).

In analyzing the frequency content of the signal x(t), one might like to compute the ordinary Fourier transform \hat{x}(\omega); however, for many signals of interest this Fourier transform does not exist.[N 1] Because of this, it is advantageous to work with a truncated Fourier transform \hat{x}_T(\omega), where the signal is integrated only over a finite interval [0, T]:

\hat{x}_T(\omega) = \frac{1}{\sqrt{2\pi T}} \int_0^T x(t) e^{-i\omega t}\, dt.

Note that \hat{x}_T(\omega) = \hat{x}_T(f)/\sqrt{2\pi} .

Then the power spectral density can be defined as

S_{xx}(\omega) = \lim_{T \rightarrow \infty} \mathbf{E} \left[ | \hat{x}_T(\omega) | ^ 2 \right].

Here E denotes the expected value; explicitly, we have

\mathbf{E} \left[ | \hat{x}_T(\omega) |^2 \right] = \mathbf{E} \left[ \frac{1}{T} \int\limits_0^T x^*(t) e^{i\omega t}\, dt \int\limits_0^T x(t') e^{-i\omega t'}\, dt' \right] = \frac{1}{T} \int\limits_0^T \int\limits_0^T \mathbf{E}\left[x^*(t) x(t')\right] e^{i\omega (t-t')}\, dt\, dt'.

Using such formal reasoning, one may already guess that for a stationary random process, the power spectral density S_{xx}(\omega) and the autocorrelation function of this signal \gamma(\tau)=\langle X(t) X(t+\tau)\rangle should be a Fourier transform pair. Provided that \gamma(\tau) is absolutely integrable, which is not always true, then

S_{xx}(\omega)=\int_{-\infty}^\infty \,\gamma(\tau)\,e^{-i\omega\tau}\,d \tau=\hat \gamma(\omega).

The Wiener–Khinchin theorem makes sense of this formula for any wide-sense stationary process under weaker hypotheses: \gamma does not need to be absolutely integrable, it only needs to exist. But the integral can no longer be interpreted as usual. The formula also makes sense if interpreted as involving distributions (in the sense of Laurent Schwartz, not in the sense of a statistical Cumulative distribution function) instead of functions. If \gamma is continuous, Bochner's theorem can be used to prove that its Fourier transform exists as a positive measure, whose distribution function is F (but not necessarily as a function and not necessarily possessing a probability density).

Many authors use this equality to actually define the power spectral density.

The power of the signal in a given frequency band [\omega_1,\omega_2] can be calculated by integrating over positive and negative frequencies,

\int_{\omega_1}^{\omega_2}\,S_{xx}(\omega)+S_{xx}(-\omega) \,d \omega = F(\omega_2) - F(-\omega_2)

where F is the integrated spectrum whose derivative is S_{xx}.

More generally, similar techniques may be used to estimate a time-varying spectral density.

The definition of the power spectral density generalizes in a straightforward manner to finite time series x_n with 1\le n\le N, such as a signal sampled at discrete times x_n=x(n\Delta t) for a total measurement period T=N \Delta t.

S_{xx}(\omega)=\frac{(\Delta t)^2}{T}\left|\sum_{n=1}^N x_n e^{-i\omega n}\right|^2.

In a real-world application, one would typically average this single-measurement PSD over several repetitions of the measurement to obtain a more accurate estimate of the theoretical PSD of the physical process underlying the individual measurements. This computed PSD is sometimes called periodogram. One can prove that this periodogram converges to the true PSD when the averaging time interval T goes to infinity (Brown & Hwang) to approach the Power Spectral Density (PSD).

If two signals both possess power spectral densities, then a cross-spectral density can be calculated by using their cross-correlation function.

#### Properties of the power spectral density

Some properties of the PSD include:

• The spectrum of a real valued process is an even function of frequency: S_{xx}(-\omega) = S_{xx}(\omega).
• If the process is continuous and purely indeterministic, the autocovariance function can be reconstructed by using the Inverse Fourier transform
• it describes the distribution of the variance over frequency. In particular,
\text{Var}(X_n) = \gamma_0 = 2 \int_0^{\infty} S_{xx}(\omega) d\omega.
• It is a linear function of the autocovariance function in the sense that if \gamma is decomposed into two functions \gamma(\tau) = \alpha_1 \gamma_1(\tau) + \alpha_2 \gamma_2(\tau), then
f = \alpha_1 S_{xx,1} + \alpha_2 S_{xx,2}.

The integrated spectrum or power spectral distribution F(\omega) is defined as

F(\omega)= \int _{-\infty}^\omega S_{xx}(\omega')\, d\omega'.

### Cross-spectral density

Given two signals x(t) and y(t), each of which possess power spectral densities S_{xx}(\omega) and S_{yy}(\omega), it is possible to define a cross-spectral density (CSD) given by

S_{xy}(\omega) = \lim_{T\rightarrow\infty} \mathbf{E}\left\{\left[F_x^T(\omega)\right]^*F_y^T(\omega)\right\}.

The cross-spectral density (or 'cross power spectrum') is thus the Fourier transform of the cross-correlation function.

S_{xy}(\omega) = \int_{-\infty}^{\infty} R_{xy}(t) e^{-j \omega t} dt = \int_{-\infty}^{\infty} \left[ \int_{-\infty}^{\infty} x(\tau) \cdot y(\tau+t) d\tau \right] \, e^{-j \omega t} dt,

where R_{xy}(t) is the cross-correlation of x(t) and y(t).

By an extension of the Wiener–Khinchin theorem, the Fourier transform of the cross-spectral density S_{xy}(\omega) is the cross-covariance function. In light of this, the PSD is seen to be a special case of the CSD for x(t) = y(t).

For discrete signals xn and yn, the relationship between the cross-spectral density and the cross-covariance is

S_{xy}(\omega)=\frac{1}{2\pi}\sum_{n=-\infty}^\infty R_{xy}(n)e^{-j\omega n}

## Estimation

The goal of spectral density estimation is to estimate the spectral density of a random signal from a sequence of time samples. Depending on what is known about the signal, estimation techniques can involve parametric or non-parametric approaches, and may be based on time-domain or frequency-domain analysis. For example, a common parametric technique involves fitting the observations to an autoregressive model. A common non-parametric technique is the periodogram.

The spectral density is usually estimated using Fourier transform methods (such as the Welch method), but other techniques such as the maximum entropy method can also be used.

## Properties

• The spectral density of f(t) and the autocorrelation of f(t) form a Fourier transform pair (for PSD versus ESD, different definitions of autocorrelation function are used). This result is known as Wiener–Khinchin theorem.
• One of the results of Fourier analysis is Parseval's theorem which states that the area under the energy spectral density curve is equal to the area under the square of the magnitude of the signal, the total energy:
\int_{-\infty}^\infty \left| f(t) \right|^2\, dt = \int_{-\infty}^\infty ESD(\omega)\, d\omega.
The above theorem holds true in the discrete cases as well. A similar result holds for power: the area under the power spectral density curve is equal to the total signal power, which is R(0) , the autocorrelation function at zero lag. This is also (up to a constant which depends on the normalization factors chosen in the definitions employed) the variance of the data comprising the signal.

## Related concepts

• Most spectrum graphs really display only the power spectral density. Sometimes (e.g., Bode plot, chirp) the complete frequency spectrum is graphed in two parts, amplitude versus frequency and phase versus frequency (which contains the rest of the information from the frequency spectrum). The original function f(t) cannot be recovered from the amplitude spectral density part alone — information about the phase is lost. See spectral phase and phase noise.
• The spectral centroid of a signal is the midpoint of its spectral density function, i.e. the frequency that divides the distribution into two equal parts.
• The spectral edge frequency of a signal is an extension of the previous concept to any proportion instead of two equal parts.
• The spectral density is a function of frequency, not a function of time. However, the spectral density of small windows of a longer signal may be calculated, and plotted versus time associated with the window. Such a graph is called a spectrogram. This is the basis of a number of spectral analysis techniques such as the short-time Fourier transform and wavelets.

## Applications

### Electrical engineering Spectrogram of an FM radio signal with frequency on the horizontal axis and time increasing upwards on the vertical axis.

The concept and use of the power spectrum of a signal is fundamental in electrical engineering, especially in electronic communication systems, including radio communications, radars, and related systems, plus passive remote sensing technology. Electronic instruments called spectrum analyzers are used to observe and measure the power spectra of signals.

The spectrum analyzer measures the magnitude of the short-time Fourier transform (STFT) of an input signal. If the signal being analyzed can be considered a stationary process, the STFT is a good smoothed estimate of its power spectral density. These devices work in low frequencies and with small bandwidths.