Measurement and Units

Signal and Noise: How Averaging Pulls a Measurement Out of the Static

Why random noise shrinks with the square root of the number of readings, when averaging works and when it fools you.

Key takeaways

  • Signal is the part of a reading you want, and noise is the unwanted fluctuation that hides it.
  • For independent random noise, the standard deviation of an average falls as one over the square root of the number of readings.
  • Each further improvement costs more: ten times less noise requires a hundred times more data.
  • Averaging cannot remove bias, and slow drift or correlated noise can stop it from helping at all.

Averaging works because a steady signal adds up consistently while random noise partly cancels. Combine many independent readings and the noise in their average shrinks in proportion to the square root of how many you took. Four readings cut it in half, and a hundred cut it to a tenth.

The method is powerful and cheap, but it has conditions. The noise must vary independently from reading to reading, the quantity you want must hold still or repeat faithfully and any consistent offset passes straight through.

Signal, noise and their ratio

A signal is the information you are after: a voltage from a sensor, the brightness of a star, the height of a tide. Noise is variation that carries no information about it. Thermal agitation of electrons, vibration, flickering light and the random arrival of individual photons are all sources.

The signal-to-noise ratio compares the size of the signal with the size of the noise, often using the standard deviation of the noise. A ratio of 10 means the signal stands ten times above the typical fluctuation. Near 1 or below, a single reading tells you very little. Engineers often express power ratios in decibels.

Why the square root appears

Each reading equals the true value plus a random disturbance with standard deviation s. Add N readings. The true value adds N times. The disturbances have random signs, so their variances add, giving a total variance of N × s² and a standard deviation of √N × s.

signal in the sum     grows as  N
noise in the sum      grows as  √N
signal ÷ noise        grows as  N ÷ √N = √N

noise in the average  = s ÷ √N

The quantity s/√N is called the standard error of the mean. It describes how well the average is known, while s describes how much individual readings scatter. The first shrinks with more data, and the second does not.

What it costs

Readings averaged Noise relative to one reading
1 1
4 1/2
16 1/4
100 1/10
10,000 1/100

Here is a planning example. A signal is 1.0 mV and each reading carries random noise with a standard deviation of 5 mV, so the ratio starts at 0.2. You want a ratio of 5.

improvement needed = 5 ÷ 0.2 = 25
readings needed    = 25² = 625

At 100 readings per second, that is about 6 seconds. Wanting a ratio of 50 would take 62,500 readings, a little over 10 minutes, and the instrument had better stay stable for all of it.

A small worked average

Say a sensor gives nine readings of a steady voltage, in millivolts: 52, 47, 55, 49, 50, 46, 53, 48 and 50.

sum   = 450
mean  = 450 ÷ 9 = 50.0 mV

squared deviations: 4, 9, 25, 1, 0, 16, 9, 4, 0    sum = 68
sample variance    = 68 ÷ 8 = 8.5
s                  ≈ 2.9 mV
standard error     = s ÷ √9 ≈ 0.97 mV

A single reading wanders by about 3 mV, while the mean of nine is good to about 1 mV from random noise. To reach roughly 0.5 mV you would need about four times as many readings, 36 in all. With only nine points, the value of s is itself approximate, so treat the plan as a guide and recheck once the data are in.

Before averaging, plot the readings in the order taken. If they climb steadily or jump partway through, a single mean describes nothing real.

Averaging signals that change

A single average of a changing quantity flattens the change. Two methods get around this.

Synchronous averaging applies when an event can be repeated or occurs periodically. Record a short trace after each trigger, line the traces up by the trigger time and average them point by point. Features locked to the trigger survive, and unrelated noise fades. Many oscilloscopes offer this, and researchers use it to extract small brain responses to repeated sounds. Poor alignment smears the result.

Moving averages replace each point with the mean of its neighbors. They calm the trace, at a price: sharp peaks become lower and wider, and a window wider than a feature can nearly erase it. Show the raw data alongside the smoothed line, and state the window.

Synchronous averaging of a repeating signal
1 Trigger Mark the start of each repeat 2 Record Capture a trace after each mark 3 Align Line traces up on the trigger 4 Average Take the mean at each instant 5 Inspect Compare halves of the data Trigger Mark the start of each repeat 1 Record Capture a trace after each mark 2 Align Line traces up on the trigger 3 Average Take the mean at each instant 4 Inspect Compare halves of the data 5

When more data stops helping

The square root rule assumes that readings are independent. Real measurements often break this.

  • Correlated readings. If you sample much faster than the noise changes, neighboring values are nearly copies. A thousand of them may carry the information of only a few dozen.
  • Low-frequency noise. Many electronic and natural systems have fluctuations that grow at long time scales, often described as 1/f or flicker noise. Averaging longer stops improving things.
  • Drift. A slowly sliding baseline eventually dominates, and a longer run can make the average worse.
  • Bias. A calibration offset is identical in every reading and averages to itself, as discussed in how instruments go wrong.
  • Outliers. A few huge spikes can drag a mean far off. A median resists them better, though it behaves differently and any rejection rule should be set in advance.

You can test for this. Average in blocks of 1, 4, 16 and 64 and see whether the scatter of the block means really halves at each step. Where it flattens, you have reached the floor. Clock specialists use a refined form of this idea called Allan deviation.

Moving the signal away from the noise

When noise is worst at low frequencies, you can shift the measurement elsewhere. Switch the source on and off at a chosen rate and look only for changes at that rate. Astronomers and laboratory physicists use versions of this by alternating between target and background. A lock-in amplifier does it electronically with great selectivity.

Other tools help too. Shielding and grounding keep interference out. A filter removes frequencies the signal does not occupy. Cooling a detector reduces thermal noise. It is usually wise to reduce noise at the source before collecting mountains of data.

The surprising help of a little noise

An instrument with coarse steps may report exactly the same number every time. Averaging identical values gains nothing. If the input carries random noise comparable to a step or larger, readings flip between neighboring values in proportion to where the true value lies, and the average can resolve a fraction of a step.

Suppose a display shows only whole units, and out of 100 readings it shows 7 sixty times and 8 forty times. The average is 7.4. Deliberately adding such noise is called dithering. It improves resolution only. It cannot correct a converter whose steps are in the wrong places.

Photons and counting noise

Some noise is built into the signal. When independent events arrive at random, as photons or radioactive decays often do, a count of N has a typical fluctuation of about √N. A count of 100 is uncertain by about 10, or 10 percent. A count of 10,000 is uncertain by about 100, or 1 percent.

The same square root governs the result. Collecting longer or using a larger collecting area improves the ratio. The devices that do the counting are described in photon detectors.

Averaging across space and instruments

Time is not the only direction to average in. A camera can combine neighboring pixels, trading sharpness for less noise. Astronomers stack many exposures of one patch of sky, which reveals faint objects that no single frame shows. Several sensors placed side by side can be averaged, and independent noise again falls as the square root of their number.

The same conditions follow along. Noise shared by all the sensors, such as a common power supply ripple or a room-wide temperature swing, does not average down. Frames that are slightly misaligned blur the very detail you wanted. Combining pixels erases anything smaller than the combined block.

Weighting can help when sources differ in quality. Giving each measurement a weight of one over its noise variance makes the best use of independent data, provided those variances are known reasonably well. A very noisy channel then contributes little, though it still adds something.

Guarding against wishful averaging

Averaging can also manufacture confidence. Keep a few safeguards.

  1. Decide how much data to collect, or what rule ends the run, before looking for the effect.
  2. Split the data into independent halves and see whether the feature appears in both.
  3. Run the same procedure with the source blocked. Anything that still appears is an artifact.
  4. Change the switching rate or the order of conditions and confirm the result persists.
  5. Report the number of readings, how they were spaced and any that were excluded.

Keep the unaveraged readings as well. They let you or someone else repeat the analysis with a different window, a different rejection rule or a better model of the noise, and they show whether a surprising feature came from many readings or from a handful of large spikes.

Stopping the moment the curve looks right is a well-known way to fool yourself. A real signal should grow clearer as independent data accumulate, while a chance bump tends to shrink.

Written for 4Sciences with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 51 articles in Measurement and Units →

Latest news on this topic