Aliasing Created 2026-10-14 Updated 2026-10-20
Aliasing is the inability to distinguish different continuous frequencies from sampled values. The identity above says that frequencies separated by an integer multiple of the sampling rate give identical samples of a complex Fourier mode. For real cosines, changing the sign of a frequency also gives the same waveform, explaining the -versus- example at rate . The Nyquist–Shannon sampling theorem prevents this ambiguity within its specified class of bandlimited functions. Before sampling, unwanted higher frequencies must be suppressed if they would violate that assumption; once two waveforms give the same samples, those samples cannot identify which was present.
Aliasing of discrete Fourier modes 2026-10-14
For integers , adding to a frequency index changes the complex exponential by . Thus different continuous Fourier modes become identical discrete Fourier modes on the sampling grid. This is aliasing, caused by sampling before any discrete Fourier transform is computed.
For , compare the continuous functions and with and , sampled at , . With , both cosines give exactly the first row and both sines give exactly the second:The nine-cycle sine agrees in sign as well as magnitude with the one-cycle sine: the frequency indices differ by , rather than by a sign reversal. Consequently, either cosine produces the same discrete Fourier transform, with all other coefficients zero; either sine produces , , with all other coefficients zero.
One-cycle and nine-cycle cosine and sine waves have exactly the same eight samples
. Details. An observed low frequency therefore does not establish that physical high frequencies are absent. To exclude such alternatives, the Nyquist–Shannon sampling theorem requires a specified class of bandlimited functions. For arbitrary pure sinusoids with frequencies at most , choose sampling rate ; equality needs care because vanishes at every . The finite-energy L2 space version of the Nyquist–Shannon sampling theorem permits equality under its own hypotheses. In either case, exact continuous reconstruction generally requires the entire infinite sample sequence; eight observed samples alone do not supply it. Demanet derives the grid aliasing condition as a difference by an integer multiple of the sampling angular frequency.[ref]
https://math.mit.edu/icg/resources/teaching/18.330/18.330-Mar21.pdf. Laurent Demanet, MIT 18.330 notes, §6.2, Definition 11, p. 57: aliases on a grid, 2012
Anti-aliasing filter Created 2026-10-18 Updated 2026-10-25
An anti-aliasing filter suppresses signal components outside the intended acquisition band before sampling. For voltage recording it is an analogue filter ahead of the analog-to-digital converter, with a transition band allowed below half the sampling rate. Once two frequencies have become indistinguishable through aliasing, a digital filter generally cannot recover the lost distinction. The Nyquist–Shannon sampling theorem concerns an already bandlimited function; a physical filter approximates that prerequisite.
Bandlimited function 2026-10-06
A bandlimited function has Fourier transform supported in a bounded frequency interval. An integrable bandlimited function has a bounded continuous representative when its Fourier transform is integrable, and that representative extends analytically using the compact-frequency integral. Scaling arguments scales its frequency support inversely, while multiplying two such functions adds their support intervals through convolution.
For a nonzero nonnegative integrable bandlimited function with frequency support in , the displayed construction is even, nonnegative and normalizable. Each factor has half-width frequency support, so their product retains width . Boundedness gives . Thus a positive-time tail estimate becomes a two-sided estimate after evenization, with a rescaled decay constant. A simple average with would not establish this from an uncontrolled negative tail.
Flat-top kernel for density estimation 2026-10-14
Choose a real even smooth compactly supported Fourier transform equal to one near zero and let be its inverse Fourier transform. Repeated integration by parts makes a Schwartz function. It is real, integrable and square-integrable, with unit integral. Moment differentiation of the Fourier transform gives for every positive integer . Such a kernel for density estimation therefore satisfies arbitrary finite-order moment cancellation, and necessarily takes negative values. If the transform plateau contains the frequency support of a bandlimited function , the convolution theorem proves .
Nyquist–Shannon sampling theorem Created 2026-10-05 Updated 2026-10-14
The Nyquist–Shannon sampling theorem says that a bandlimited function can be recovered exactly from equally spaced samples, provided the sampling rate is high enough. It is the bridge between a continuous waveform and a sequence of numbers: the missing values between samples are determined by the restriction on its frequencies.
Here is a precise finite-energy version. Let , meaning , and suppose its Fourier transform, defined through the Plancherel theorem, is zero outside . Thus is the largest allowed ordinary frequency, in cycles per second, rather than an angular frequency. Set , where is the number of samples per second. If , the continuous representative of is recovered byThe quotient is the normalized sinc function, with value one when its argument is zero. Each shifted sinc function is one at its own sampling time and zero at every other sampling time. Its coefficient is therefore exactly the required sample value. For this L2 space formulation, the reconstruction converges in the L2 space norm and uniformly in . The critical rate is allowed for this class; choosing leaves a gap between the occupied frequencies and the sampling boundary.
For a numerical example, a bandlimited function with no frequencies above cycles per second can be reconstructed from its samples every seconds: . Exact reconstruction uses the whole sequence indexed by . A finite recording and a finite sum of sinc functions introduce truncation error; joining adjacent samples by straight lines is generally a different reconstruction.
The obstruction is aliasing. At sampling rate , the two distinct waveformshave identical samples at , becauseThe samples alone cannot tell whether the waveform oscillates twice or eight times per second. If we know in advance that all frequencies are below , the -cycle waveform is excluded and the ambiguity disappears. These pure cosines are an illustrative aliasing example, rather than members of the finite-energy L2 space class in the stated theorem.
Exactly at a sampling boundary, the function class matters. At rate , the sine has zero values at every . It is a nonzero waveform indistinguishable from zero on that grid, but has infinite energy and is excluded by the finite-energy hypothesis above. This explains why a rule intended to cover arbitrary pure sinusoids should demand a strict inequality. For spatial data, replace seconds by distance: the Nyquist spatial frequency is for sample pitch .
The proof idea is short: the samples are Fourier coefficients of the Fourier transform restricted to a sampling-sized frequency interval. Because a bandlimited function has no contribution outside that interval, its Fourier series determines the whole Fourier transform; Fourier inversion then gives the sinc function expansion. See sampling expansion by periodic Fourier projection for this connection.
Claude E. Shannon's Communication in the Presence of Noise (1949), Section II, Theorem 1 and equation (7), gives the sampling statement and reconstruction using shifted sinc functions in a communication setting. Shannon explicitly notes earlier mathematical forms and credits Nyquist with emphasizing the sampling interval in telegraphy.[ref]
https://fab.cba.mit.edu/classes/S62.12/docs/Shannon_noise.pdf. Shannon 1949, Proceedings of the IRE 37(1), pp. 10–21; sampling theorem on pp. 11–12
Uniform samples at cannot distinguish frequencies separated by integer multiples of :For a real cosine, opposite frequencies also coincide. Thus an unknown high-frequency component can appear in the sampled record at its folded frequency . For example, 2 Hz and 8 Hz cosines give identical samples at 10 samples per second. This ambiguity is aliasing, rather than uniform quantization error.
The Nyquist–Shannon sampling theorem permits reconstruction of an ideally bandlimited function of bandwidth when . Use an analogue anti-aliasing filter before conversion and allow a transition band between the desired passband and the frequencies that fold into it. Sampling faster relaxes the filter requirement. Digital filtering after undersampling cannot separate already identical sample sequences. Finite observation time, clock jitter, noise and imperfect filter rejection impose further practical limits.
Digital acquisition converts a continuous voltage signal into timed numerical samples. A practical chain is a suitably buffered and amplified sensor signal, an analogue anti-aliasing filter, a sampling or sample-and-hold stage, an analog-to-digital converter, and a clocked data-storage system. Choose the gain so that the interesting variation uses the available input range without clipping. Finite input impedance can load a sensor, so an appropriate buffer or operational amplifier may be needed.
Sampling makes time discrete. If the conditioned signal is confined below frequency , choose a sampling rate , allowing a transition band for the physical filter. The Nyquist–Shannon sampling theorem permits ideal reconstruction of a suitably bandlimited function from exact samples. Without filtering, components separated by integer multiples of have identical samples; in particular real sinusoids at and can be indistinguishable. This aliasing cannot generally be undone by later digital filtering. Oversampling can ease filter design, but does not replace the requirement to suppress unwanted high-frequency content before sampling.
Amplitude quantization is separate from sampling. A uniform -bit converter covering voltage span has step . Rounding an in-range input gives the uniform-quantization error bound . If the rounding errors can additionally be modeled as uniform and uncorrelated, their standard deviation is . This statistical estimate is not a guarantee for a constant input or a coherent periodic signal. More bits increase resolution, but accuracy also depends on voltage-reference calibration, offset, gain error, nonlinearity and electronic noise. Out-of-range signals clip and invalidate the rounding bound.
Clock quality matters too. Timing jitter gives a voltage error approximately ; for a sinusoid its scale grows with . A clock calibration error biases measured frequencies and time intervals. Simultaneous multichannel signals need known relative timing, and the sampling and analogue settling times must be appropriate to the signal bandwidth.
For channels the raw recording rate is approximately bits per second, before overhead, so storage and sustained transfer speed must prevent missing data. Store units, channel identities, timestamps, sampling rate, input ranges and calibration information along with the readings. Preserve the original samples when applying digital filters or other processing. Averaging can improve precision for independent fluctuating errors, but cannot restore aliased frequencies, clipped peaks or a fixed rounding bias. Digital recording makes reproducible analysis and transmission possible when its sampling, amplitude and timing limitations are all controlled.
Periodization of a Schwartz function Created 2026-10-05 Updated 2026-10-14
For a Schwartz function on the real numbers, its periodization is a smooth periodic function of period of a function one. Rapid decay gives uniform convergence on of the defining series and each differentiated series. Its th Fourier coefficient isThe change of variable uses . Rapidly decreasing Fourier coefficients give the absolutely and uniformly convergent Fourier series . Evaluation at proves the Poisson summation formula.[ref]
Lecture 17: The functional equation. Lecture 17, §17.1, Theorem 17.8 and proof, printed p. 3: periodization and Fourier coefficients
The same identity explains aliasing in the Nyquist–Shannon sampling theorem: applying the Poisson summation formula to the Schwartz function givesThe sampled spectrum is periodic in frequency, and shifted copies of the continuous Fourier transform add together. When those copies overlap, the samples cannot separate their contributions. The Nyquist–Shannon sampling theorem adds a bandlimited function hypothesis to make reconstruction possible.
Spatial sampling of a wave 2026-10-14
In spatial sampling of a wave, a detector records a wave at positions separated by pitch . Angular wavenumbers differing by , with integers , give identical samples of a complex Fourier mode:This is spatial aliasing. To distinguish arbitrary sinusoids within a prescribed band, require , equivalently , the Nyquist spatial frequency. Thus for the shortest allowed wavelength. At equality a sine can vanish at every sample, so phase information can be lost. The Nyquist–Shannon sampling theorem states the precise reconstruction conditions for a bandlimited function; a finite scan introduces further limitations.
The synthetic two-tone snapshot iswhere both count cycles per metre. The component wavelengths are and . With , both lie below the Nyquist spatial frequency of cycles per metre. With , the -cycle component aliases to the -cycle component: at every , . The sampled sum is therefore indistinguishable from , although the continuous curves differ between samples. Drawing lines between sample points cannot resolve this ambiguity.
Synthetic two-tone spatial waveform: fine samples distinguish the components, coarse samples hide the shorter wavelength
. Details. Uniform-quantization error bound 2026-10-18
Rounding a voltage to the nearest level in a uniform grid of spacing gives a quantization error of magnitude at most , provided the input is within the converter's range. This follows because each grid point represents the interval bounded by the midpoints to its two neighbors. Clipping invalidates the bound.
The bound concerns recorded samples, whereas the Nyquist–Shannon sampling theorem concerns reconstruction from exact samples of a bandlimited function. If a reconstruction is , its error is , so a general bound involves , not simply . Thus sampling bandwidth and per-sample rounding precision are distinct specifications. Under an additional uniform independent-error model, the quantization-noise standard deviation is , an rms statement rather than a worst-case reconstruction guarantee.



