
The power spectrum
of a
time series
In mathematics, a time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time. Thus it is a sequence of discrete-time data. E ...
describes the distribution of
power into frequency components composing that signal.
According to
Fourier analysis, any physical signal can be decomposed into a number of discrete frequencies, or a spectrum of frequencies over a continuous range. The statistical average of a certain signal or sort of signal (including
noise) as analyzed in terms of its frequency content, is called its
spectrum
A spectrum (plural ''spectra'' or ''spectrums'') is a condition that is not limited to a specific set of values but can vary, without gaps, across a continuum. The word was first used scientifically in optics to describe the rainbow of color ...
.
When the energy of the signal is concentrated around a finite time interval, especially if its total energy is finite, one may compute the energy spectral density. More commonly used is the power spectral density (or simply power spectrum), which applies to signals existing over ''all'' time, or over a time period large enough (especially in relation to the duration of a measurement) that it could as well have been over an infinite time interval. The power spectral density (PSD) then refers to the spectral energy distribution that would be found per unit time, since the total energy of such a signal over all time would generally be infinite.
Summation
In mathematics, summation is the addition of a sequence of any kind of numbers, called ''addends'' or ''summands''; the result is their ''sum'' or ''total''. Beside numbers, other types of values can be summed as well: functions, vectors, mat ...
or integration of the spectral components yields the total power (for a physical process) or variance (in a statistical process), identical to what would be obtained by integrating
over the time domain, as dictated by
Parseval's theorem.
The spectrum of a physical process
often contains essential information about the nature of
. For instance, the
pitch and
timbre of a musical instrument are immediately determined from a spectral analysis. The
color
Color (American English) or colour (British English) is the visual perceptual property deriving from the spectrum of light interacting with the photoreceptor cells of the eyes. Color categories and physical specifications of color are assoc ...
of a light source is determined by the spectrum of the electromagnetic wave's electric field
as it fluctuates at an extremely high frequency. Obtaining a spectrum from time series such as these involves the
Fourier transform, and generalizations based on Fourier analysis. In many cases the time domain is not specifically employed in practice, such as when a
dispersive prism is used to obtain a spectrum of light in a
spectrograph
An optical spectrometer (spectrophotometer, spectrograph or spectroscope) is an instrument used to measure properties of light over a specific portion of the electromagnetic spectrum, typically used in spectroscopic analysis to identify mate ...
, or when a sound is perceived through its effect on the auditory receptors of the inner ear, each of which is sensitive to a particular frequency.
However this article concentrates on situations in which the time series is known (at least in a statistical sense) or directly measured (such as by a microphone sampled by a computer). The power spectrum is important in
statistical signal processing and in the statistical study of
stochastic process
In probability theory and related fields, a stochastic () or random process is a mathematical object usually defined as a family of random variables. Stochastic processes are widely used as mathematical models of systems and phenomena that app ...
es, as well as in many other branches of
physics
Physics is the natural science that studies matter, its fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge which rel ...
and
engineering
Engineering is the use of scientific method, scientific principles to design and build machines, structures, and other items, including bridges, tunnels, roads, vehicles, and buildings. The discipline of engineering encompasses a broad rang ...
. Typically the process is a function of time, but one can similarly discuss data in the spatial domain being decomposed in terms of
spatial frequency.
Explanation
Any signal that can be represented as a variable that varies in time has a corresponding frequency spectrum. This includes familiar entities such as
visible light (perceived as
color
Color (American English) or colour (British English) is the visual perceptual property deriving from the spectrum of light interacting with the photoreceptor cells of the eyes. Color categories and physical specifications of color are assoc ...
), musical notes (perceived as
pitch),
radio/TV (specified by their frequency, or sometimes
wavelength) and even the regular rotation of the earth. When these signals are viewed in the form of a frequency spectrum, certain aspects of the received signals or the underlying processes producing them are revealed. In some cases the frequency spectrum may include a distinct peak corresponding to a
sine wave
A sine wave, sinusoidal wave, or just sinusoid is a curve, mathematical curve defined in terms of the ''sine'' trigonometric function, of which it is the graph of a function, graph. It is a type of continuous wave and also a Smoothness, smooth p ...
component. And additionally there may be peaks corresponding to
harmonics of a fundamental peak, indicating a periodic signal which is ''not'' simply sinusoidal. Or a continuous spectrum may show narrow frequency intervals which are strongly enhanced corresponding to resonances, or frequency intervals containing almost zero power as would be produced by a
notch filter.
In
physics
Physics is the natural science that studies matter, its fundamental constituents, its motion and behavior through space and time, and the related entities of energy and force. "Physical science is that department of knowledge which rel ...
, the signal might be a wave, such as an
electromagnetic wave
In physics, electromagnetic radiation (EMR) consists of waves of the electromagnetic (EM) field, which propagate through space and carry momentum and electromagnetic radiant energy. It includes radio waves, microwaves, infrared, (visible ...
, an
acoustic wave, or the vibration of a mechanism. The ''power spectral density'' (PSD) of the signal describes the
power present in the signal as a function of frequency, per unit frequency. Power spectral density is commonly expressed in
watt
The watt (symbol: W) is the unit of power or radiant flux in the International System of Units (SI), equal to 1 joule per second or 1 kg⋅m2⋅s−3. It is used to quantify the rate of energy transfer. The watt is named after James Wa ...
s per
hertz
The hertz (symbol: Hz) is the unit of frequency in the International System of Units (SI), equivalent to one event (or cycle) per second. The hertz is an SI derived unit whose expression in terms of SI base units is s−1, meaning that one her ...
(W/Hz).
When a signal is defined in terms only of a
voltage, for instance, there is no unique power associated with the stated amplitude. In this case "power" is simply reckoned in terms of the square of the signal, as this would always be ''proportional'' to the actual power delivered by that signal into a given
impedance. So one might use units of V
2 Hz
−1 for the PSD. ''Energy spectral density'' (ESD) would have units would be V
2 s Hz
−1, since
energy
In physics, energy (from Ancient Greek: ἐνέργεια, ''enérgeia'', “activity”) is the quantitative property that is transferred to a body or to a physical system, recognizable in the performance of work and in the form of hea ...
has units of power multiplied by time (e.g.,
watt-hour).
In the general case, the units of PSD will be the ratio of units of variance per unit of frequency; so, for example, a series of displacement values (in meters) over time (in seconds) will have PSD in units of meters squared per hertz, m
2/Hz.
In the analysis of random
vibrations, units of ''g''
2 Hz
−1 are frequently used for the PSD of
acceleration
In mechanics, acceleration is the rate of change of the velocity of an object with respect to time. Accelerations are vector quantities (in that they have magnitude and direction). The orientation of an object's acceleration is given by ...
, where ''g'' denotes the
g-force.
Mathematically, it is not necessary to assign physical dimensions to the signal or to the independent variable. In the following discussion the meaning of ''x(t)'' will remain unspecified, but the independent variable will be assumed to be that of time.
Definition
Energy spectral density
Energy spectral density describes how the
energy
In physics, energy (from Ancient Greek: ἐνέργεια, ''enérgeia'', “activity”) is the quantitative property that is transferred to a body or to a physical system, recognizable in the performance of work and in the form of hea ...
of a signal or a
time series
In mathematics, a time series is a series of data points indexed (or listed or graphed) in time order. Most commonly, a time series is a sequence taken at successive equally spaced points in time. Thus it is a sequence of discrete-time data. E ...
is distributed with frequency. Here, the term
energy
In physics, energy (from Ancient Greek: ἐνέργεια, ''enérgeia'', “activity”) is the quantitative property that is transferred to a body or to a physical system, recognizable in the performance of work and in the form of hea ...
is used in the generalized sense of signal processing;
that is, the energy
of a signal
is:
:
The energy spectral density is most suitable for transients—that is, pulse-like signals—having a finite total energy. Finite or not,
Parseval's theorem (or Plancherel's theorem) gives us an alternate expression for the energy of the signal:
:
where:
:
is the value of the
Fourier transform of
at
frequency
Frequency is the number of occurrences of a repeating event per unit of time. It is also occasionally referred to as ''temporal frequency'' for clarity, and is distinct from '' angular frequency''. Frequency is measured in hertz (Hz) which is ...
(in
Hz). The theorem also holds true in the discrete-time cases. Since the integral on the right-hand side is the energy of the signal, the value of
can be interpreted as a
density function multiplied by an infinitesimally small frequency interval, describing the energy contained in the signal at frequency
in the frequency interval
.
Therefore, the energy spectral density of
is defined as:
The function
and the
autocorrelation
Autocorrelation, sometimes known as serial correlation in the discrete time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations of a random variable ...
of
form a Fourier transform pair, a result also known as the
Wiener–Khinchin theorem (see also
Periodogram).
As a physical example of how one might measure the energy spectral density of a signal, suppose
represents the
potential (in
volts) of an electrical pulse propagating along a
transmission line of
impedance , and suppose the line is terminated with a
matched resistor (so that all of the pulse energy is delivered to the resistor and none is reflected back). By
Ohm's law
Ohm's law states that the current through a conductor between two points is directly proportional to the voltage across the two points. Introducing the constant of proportionality, the resistance, one arrives at the usual mathematical equat ...
, the power delivered to the resistor at time
is equal to
, so the total energy is found by integrating
with respect to time over the duration of the pulse. To find the value of the energy spectral density
at frequency
, one could insert between the transmission line and the resistor a
bandpass filter which passes only a narrow range of frequencies (
, say) near the frequency of interest and then measure the total energy
dissipated across the resistor. The value of the energy spectral density at
is then estimated to be
. In this example, since the power
has units of V
2 Ω
−1, the energy
has units of V
2 s Ω
−1 = J, and hence the estimate
of the energy spectral density has units of J Hz
−1, as required. In many situations, it is common to forget the step of dividing by
so that the energy spectral density instead has units of V
2 Hz
−2.
This definition generalizes in a straightforward manner to a discrete signal with a countably infinite number of values
such as a signal sampled at discrete times
:
:
where
is the
discrete-time Fourier transform of
The sampling interval
is needed to keep the correct physical units and to ensure that we recover the continuous case in the limit
But in the mathematical sciences the interval is often set to 1, which simplifies the results at the expense of generality. (also see
normalized frequency)
Power spectral density
The above definition of energy spectral density is suitable for transients (pulse-like signals) whose energy is concentrated around one time window; then the Fourier transforms of the signals generally exist. For continuous signals over all time, one must rather define the ''power spectral density'' (PSD) which exists for
stationary processes; this describes how the
power of a signal or time series is distributed over frequency, as in the simple example given previously. Here, power can be the actual physical power, or more often, for convenience with abstract signals, is simply identified with the squared value of the signal. For example, statisticians study the
variance
In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of number ...
of a function over time
(or over another independent variable), and using an analogy with electrical signals (among other physical processes), it is customary to refer to it as the ''power spectrum'' even when there is no physical power involved. If one were to create a physical
voltage source which followed
and applied it to the terminals of a one
ohm resistor
A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias active el ...
, then indeed the instantaneous power dissipated in that resistor would be given by
watt
The watt (symbol: W) is the unit of power or radiant flux in the International System of Units (SI), equal to 1 joule per second or 1 kg⋅m2⋅s−3. It is used to quantify the rate of energy transfer. The watt is named after James Wa ...
s.
The average power
of a signal
over all time is therefore given by the following time average, where the period
is centered about some arbitrary time
:
:
However, for the sake of dealing with the math that follows, it is more convenient to deal with time limits in the signal itself rather than time limits in the bounds of the integral. As such, we have an alternative representation of the average power, where
and
is unity within the arbitrary period and zero elsewhere.
:
Clearly in cases where the above expression for P is non-zero (even as T grows without bound) the integral itself must also grow without bound. That is the reason that we cannot use the energy spectral density itself, which ''is'' that diverging integral, in such cases.
In analyzing the frequency content of the signal
, one might like to compute the ordinary Fourier transform
; however, for many signals of interest the Fourier transform does not formally exist. Regardless,
Parseval's theorem tells us that we can re-write the average power as follows.
:
Then the power spectral density is simply defined as the integrand above.
From here, we can also view
as the
Fourier transform of the time
convolution of
and
:
Now, if we divide the time convolution above by the period
and take the limit as
, it becomes the
autocorrelation
Autocorrelation, sometimes known as serial correlation in the discrete time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations of a random variable ...
function of the non-windowed signal
, which is denoted as
, provided that
is
ergodic, which is true in most, but not all, practical cases..
:
From here we see, again assuming the ergodicity of
, that the power spectral density can be found as the Fourier transform of the autocorrelation function (
Wiener–Khinchin theorem).
Many authors use this equality to actually ''define'' the power spectral density.
The power of the signal in a given frequency band