Concept

Averaging — where it appears

Taking the mean of a block of samples to reduce the noise on an estimate, whose spread falls as the square root of the count for independent samples. It stops working when they are not: a pink sequence's spread falls as the count to a power near a tenth rather than a half.

Named by 12 essays across 2 fields — each of them below, with the objects they name alongside it.

The usable range of one stage, in a 10 kHz measurement. computed by solving, not by drawing. The floor is the Johnson noise of a 1 kΩ source in the measurement's own noise bandwidth — 501.6 nV, using 15.7 kHz rather than the 10 kHz corner. The ceiling is the drive at which an exponential's distortion reaches one per cent, 1.03 mV. Between them is 66.3 dB, and nothing a designer does moves either number without changing the circuit.

A floor and a ceiling

Every other boundary these essays measure is a ceiling. This one puts a floor underneath and measures the distance between them — 4.00 nanovolts per root hertz at the bottom, one per cent of harmonic distortion at 1.03 millivolts at the top, and 66.3 decibels of range in a ten-kilohertz measurement. Both ends are computed, neither is on a datasheet, and the arrangement of the stages decides which one moves.

noise · Dynamic range
Averaging a white sequence, and averaging a pink one. computed by solving, not by drawing. Both sequences are the same seeded white stream, one of them put through the 1/f network. Averaged in non-overlapping blocks, the white one's spread falls as n to the -0.510 ± 0.006 across five seeds — the √N law — and the pink one's as n to the -0.087 ± 0.013, which is very nearly not at all. A thousand-sample average buys a factor of 36.9 on the first and 2.1 on the second.

The corner where averaging stops working

Average N samples and the noise falls by √N. That is a statement about independent samples, and flicker noise's samples are not independent — its correlation extends over every time scale, which is what a spectrum with no bottom means. Measured on the same seeded stream filtered and not: the white sequence falls as the −0.510 power of the block length and the pink one as the −0.087 power, so a thousand-sample average buys a factor of 36.9 on one and 2.1 on the other.

noise · Device noise
A true-RMS reading of a sine: ripple a second filter removes, and a bias it cannot. An explicit converter — square, average through a one-pole of τ = 100 ms, take the root — in steady state on a sine of unit root-mean-square value, integrated exactly over a period at 91 frequencies and by a fourth-order march of its own equation at 6, which agree to 1.9e-8. The upper curve is half the ripple on the reading and the lower one the amount by which its mean is low. The reading is low at every frequency, because the square root is concave; it is 1% low below 1.86 Hz, while the ripple is inside ±1% only above 39.8 Hz. The dashed curve is the small-ripple form, an eighth of the averaged square's ripple power, which the bias approaches as the ripple shrinks.

The average a square root pulls low

A true-RMS converter squares, averages and takes the root, and the root of a quantity that ripples averages below the root of its mean. With a hundred-millisecond averager a sine is read one per cent low below 1.86 hertz, where the ripple is still ±20 per cent — and a second filter that steadies the display takes the ripple away and leaves the reading exactly as low as it was. A square wave is read exactly at any averaging time; a rectifier current conducting for twenty degrees needs 2.41 times the averaging a sine does. The implicit converter is the explicit one at half the time constant, and a reading falls 1.38 times slower than it rises.

power · Rms and average
Three averagers passing the same noise, and three different half-power points. Integrated by eight-point quadrature on every lobe, with the tail past the last lobe in closed form. A mean over 20 ms has the response sin(πfT)/(πfT), and the area under its square is 25.000000 Hz against the 25 Hz of 1/(2T) — the brick wall drawn shaded. A mean over the window passes half its power at 22.147 Hz, so the noise bandwidth is 1.12880 times that frequency; A one-pole averager passes half its power at 15.915 Hz, so the noise bandwidth is 1.57080 times that frequency; Two means in cascade pass half their power at 23.919 Hz, so the noise bandwidth is 1.04521 times that frequency. Every curve drawn encloses the same area; they differ in where they spend it.

The filter an average is

A mean taken over a window is a filter, and the area under its squared response is exactly one over twice the window — 25 hertz of noise bandwidth for twenty milliseconds, passing half its power at 22.15. Built to the same noise, a one-pole averager passes half its power at 15.92 hertz and takes 2.33 times as long to settle to one per cent, and two means in cascade pass half at 23.92 and take 1.25 times as long. Between its nulls a mean rejects the mains no better than the one-pole does, and one per cent off a null it rejects it by forty decibels however many cycles the window holds.

noise · Noise bandwidth
A true-RMS converter reads noise low by 1/(16Bτ): 0.600% at Bτ = 10 and 672 ppm at 100, where a sine at fτ = 100 is 0.0396 ppm. Seeded, and measured. An explicit true-RMS converter — square, one-pole average of time constant τ, root — reading Gaussian noise of unit power, against the product of the noise's bandwidth and τ, from 1 to 100. Each point is 2²¹ samples at eight times the bandwidth, with the reading compared against the record's own root-mean-square and its standard error from batch means. Bτ = 1: 4.550% ± 150 ppm (band from zero), 4.081% (band of the same width about 3B). Bτ = 2: 2.598% ± 114 ppm (band from zero), 2.411% (band of the same width about 3B). Bτ = 5: 1.149% ± 75.4 ppm (band from zero), 1.098% (band of the same width about 3B). Bτ = 10: 0.600% ± 53.1 ppm (band from zero), 0.576% (band of the same width about 3B). Bτ = 20: 0.309% ± 39.1 ppm (band from zero), 0.295% (band of the same width about 3B). Bτ = 50: 0.127% ± 26.3 ppm (band from zero), 0.119% (band of the same width about 3B). Bτ = 100: 672 ppm ± 19 ppm (band from zero), 623 ppm (band of the same width about 3B). The dashed line is 1/(16Bτ), an eighth of the averaged square's variance, which the readings approach above Bτ = 10 and fall short of below it. A sine read by the same converter at the same product of frequency and τ is low by 3.96 ppm at 10 and 0.0396 ppm at 100 — the square of the noise's rate rather than its first power.

The noise a true-RMS meter reads low

A true-RMS converter reads a sine low by an amount that falls as the square of its frequency, and for anything but a slow sine that amount vanishes: 3.96 parts per million at ten times the averager's corner. Noise is not a sine. Its square fluctuates at every frequency down to zero, and the averager passes a share of that set by its own bandwidth against the noise's, so the reading is low by 1/(16Bτ) — the first power, not the second. Measured on seeded noise at Bτ = 10 it is 0.600 per cent low against a predicted 0.625; at 100, 672 parts per million. One reading scatters by eighteen times that, so no single reading shows the bias and the mean of a few hundred is nothing but bias.

power · Rms and average
Where "the noise is the density over twice the window" is true for a mean of 600 samples. The exact sampled autocorrelation of a one-pole front end, summed in closed form and checked against seeded samples through the same filter. The solid curve is the reading's noise power divided by what the rule gives. It crosses one at 0.1355 of half the sample rate and nowhere else, so the rule is right at one front-end bandwidth rather than over a range: it is within one per cent from 0.0712 to 0.205 of half the sample rate, a window a factor of 2.88 wide. Above it the front end admits noise from past half the sample rate and the sampler folds it in, the ratio tending to (x/2)·coth(x/2) with x = 1/(τ·fₛ), which has no N in it — so the sample rate must be 9.7 times the front end's noise bandwidth for one per cent, not twice it. Below it the front end has already removed noise the rule charges for, and the faint curve — the √N law's own error, which is a claim about the samples rather than about a density — shows why: consecutive samples are correlated by ρ = e^(−1/(τ·fₛ)) and a mean of 600 of them is a mean of fewer things.

The window the square-root law has

Averaging N readings divides the noise power by N only if the readings are independent, and samples of a filtered noise are independent only over a band. Measured on the exact sampled autocorrelation, the rule that a reading's noise is the density over twice the window is right at one front-end bandwidth and wrong on both sides — a factor of three wide at six hundred samples, asking the sample rate to exceed the front end's noise bandwidth by about ten rather than by two. Above it the folded noise arrives at full amplitude; below it the front end has removed noise the rule is still charging for.

noise · Noise bandwidth
Summed over whole periods 1.3% too long, a sine is read to ±0.65% for up to 38 periods, whatever their number. Integrated exactly over each window, the worst over every starting phase. The error in a root-mean-square summed over N assumed periods 1.3% too long, against N, for a sine and a 60° rectifier current, beside an explicit converter averaging over a comparable time, τ of N/2 periods. For the sine the worst error is 0.643% at one period and stays near δ/2 until N approaches 1/(2δ) = 38; it vanishes where Nδ is a whole number of half-periods of the square, and beyond it is bounded by 1/(4πN). The rectifier current's is 1.274% at one period, near δ(CF² − 1)/2 with a crest factor of 1.732. The converter at τ = N/2 periods is low by 15.8 ppm on the sine at N = 10, with a ripple of ±0.796%; on the rectifier current, low by 46.3 ppm with ±1.665%.

The cycle a converter has to know

Summing a waveform's square over a whole number of periods reads its root-mean-square exactly: no averager, no ripple, no bias. It needs the period, and a period known one per cent long puts a hundredth of a period too much into the window. Wherever that extra piece falls, the reading moves — on a sine by up to 0.50 per cent over one period, and by 0.46 per cent over ten, because the extra piece grows with the window as fast as the window does. The worst error is δ(CF² − 1)/2, set by the crest factor and the period error and not by how many periods are summed, until the excess reaches half a period. A square wave is read exactly from any window, and a 60° rectifier current twice as badly as a sine.

power · Rms and average
What widens a null: the order of the zero, not the placement of two. Integrated by quadrature on the union of both windows' nulls, at a fixed total length of 40 ms so that every arrangement settles in the same time. One mean of 40 ms holds -40 dB over 2.002 per cent of 50 Hz and passes 12.50 Hz of noise. Two means of 20 ms in cascade — a second-order null in the same place — hold it over 20.59 per cent — a factor of 10.3, which is 10^(−dB/40) because a first-order null rises linearly through the target and a second-order one quadratically — for 1.333 times the noise bandwidth. Splitting the two lengths puts two first-order nulls either side instead, and the widest trough is at a split of 10.12 per cent — 17.98 and 22.02 ms — holding 29.93 per cent for 16.53 Hz — which is exactly √2 times the equal pair's band, at every depth, for slightly LESS noise. It is also a cliff: a split of 10.118 per cent — 0.01 per cent further — leaves no band at 50 Hz at all, because the peak between the two nulls has climbed through the target.

The order of the null, not the number of them

A mean rejects the mains exactly and rejects it one per cent off frequency by forty decibels, whatever the window length. Two means in cascade of the same total length settle in the same time, cost a third more noise bandwidth and hold that forty decibels over ten times the band — the factor being ten raised to minus the depth in decibels over forty, because a first-order null rises linearly through a target and a second-order one quadratically. Splitting the two lengths to straddle the frequency buys a further factor of exactly root two, for no noise at all, and puts the design two parts in ten thousand from a cliff.

noise · Noise bandwidth
With 1 RC of tracking, sixteen samples average like 7.8 independent ones. computed by solving, not by drawing. The rms noise on the average of N consecutive held samples of a 1 pF capacitor, against N, for track times of 0.25, 1, 3 and 10 RC between samples, with the 1/√N law for independent samples dotted. A sample shares exp(−Tₜ/RC) of its value with the one before, so at 1 RC the correlation is 0.368 and sixteen samples are worth 7.81 independent ones; 1,024 are worth 473.6. The closed form is checked against a seeded march of the held sequence.

The average that is not N times quieter

Averaging sixteen samples of a 1 pF capacitor is supposed to take its 63.3 µV of kT/C noise down by four. With one RC of tracking between samples it takes it down by 2.8: the switch has not been closed long enough for the capacitor to forget the last sample, each shares 37 per cent of its value with the one before, and sixteen samples are worth 7.8 independent ones. At a quarter of an RC they are worth 2.6. Sampling faster never helps past a ceiling: however quickly the samples come, an average gathers at most one independent sample per 2RC of time — the continuous average's own limit. And a sampler that settles its signal to 8 bits has already waited long enough for its noise.

noise · kT/C noise
An amplifier gain of 1000 caps a switched-capacitor integration at 8000 cycles' worth of averaging. computed by solving, not by drawing. The noise, referred to the input, of the estimate a switched-capacitor integrator makes by integrating a steady input for N cycles, with 1 pF sampling and 4 pF feedback capacitors, against N, for amplifier gains of 100, 1,000, 10,000 and infinity. Each cycle adds 2kT/Cs — 89.5 µV rms — and an ideal integrator averages it as 1/√N without limit. A finite gain leaks, and the noise stops falling at √(kT/(A·Cf)) = 1.000 µV for A = 1000, reached after about 8000 cycles. The closed form is checked against a seeded march.

The average an integrator can hold

A switched-capacitor integrator is an averager whose samples are exactly independent, because every cycle resets the sampling capacitor — and it pays for that with two switch phases, 2kT/Cs a cycle, 89.5 µV rms with a picofarad. An ideal integrator averages that as 1/√N without end. A real one leaks through its amplifier's finite gain, and the leak caps the average at 2A·Cf/Cs cycles: 8,000 for a gain of a thousand and a 4 pF feedback capacitor, where the noise stops at √(kT/(A·Cf)) = 1.00 µV. That floor contains the feedback capacitor and the gain and not the sampling capacitor at all, which decides only how long the integration takes to reach it.

noise · kT/C noise
One, two, three and four means of twenty milliseconds in cascade: the response, and the band each holds forty decibels down. computed by solving, not by drawing: |sin(πfT)/(πfT)|ⁿ with T = 20 ms, held against running means on samples at three frequencies. Each mean nulls 50 Hz, so n of them null it to order n, and their first sidelobe sits at −13.26 dB a mean. Forty decibels down, one mean holds 49.50–50.51 Hz, two 45.40–55.69, three 40.71–69.49 — its sidelobe at −39.78 dB just above the line — and four everything above 36.90 Hz: the null has become a stopband.

The mean that makes a stopband

A cascade of n means of one mains period holds, at a depth D, exactly the band a single mean holds at D/n — to a part in a million, because the cascade's response is the single mean's raised to the nth power. That one identity answers whether the third mean pays. Forty decibels down, two means hold 45.4 to 55.7 Hz, three 40.7 to 69.5, and four hold everything above 36.9 Hz: once D/n is shallower than one mean's first sidelobe, 13.26 dB, the null stops being a null and becomes a stopband. The price is a mains period of settling per mean and a noise bandwidth that exceeds a single mean of the same length by √(3n/π) — a factor that never stops growing.

noise · Noise bandwidth
Averaging an input that drifts 1 µV a cycle through a 1 pF switched-capacitor averager: too short a memory keeps the noise, too long a lag, and the best is 16.5 cycles at 27.2 µV. computed by solving, not by drawing, and seeded. A switched-capacitor exponential averager — 1 pF sampling capacitor, an equal damping capacitor for unity gain, memory set by the feedback capacitor — fed a ramp of 1 µV a cycle. The rms error against the input (solid) is the lag (dashed), (a/(1 − a))·r, and the switch noise (dotted), 2kT(Cs + Cd)/(Cf²(1 − a²)), together; seeded marches of sixty thousand cycles (dots) agree to 5%. The best memory is 16.55 cycles against (kT/(Cs·r²))^(1/3) = 15.88, with 27.2 µV of error: 15.5 µV of lag and 22.3 µV of noise.

The leak worth building in

An integrator that never forgets cannot follow an input that moves. Give a switched-capacitor integrator a deliberate leak — a damping capacitor that samples the output each cycle and takes its charge away — and it becomes an exponential average with a memory of Cf/Cd cycles. Fed an input drifting 1 µV a cycle, through a 1 pF sampling capacitor, too short a memory passes the switch noise and too long a memory lags the drift; the best, on the exact closed form and on seeded marches of sixty thousand cycles, is 16.5 cycles, for 27.2 µV of error against 89.5 µV in a single sample. The best memory follows a cube-root law, the cube root of kT/(Cs·r²), ten times the drift for a memory 4.64 times shorter, and at it the noise variance is twice the squared lag. And the leak is not free: the damping capacitor is switched too, and at unity gain it samples half of the averager's noise.

noise · kT/C noise

Named alongside it

The objects these essays reach for when they reach for this one.

Seeded generatorSettling timeEquivalent noise bandwidthModel rangeIntegrationkT/C noiseMeasurement conditionMonte carloTrue-rmsBrick wall filterConduction angleCorrelation time

All concepts