In signal processing, signal averaging is a time domain technique applied to repetitive signals, used to recover waveforms that are obscured by random noise. By averaging a set of repeated measurements of the same signal, the signal-to-noise ratio (SNR) increases, ideally in proportion to the square root of the number of repetitions.
Deriving the SNR for averaged signals Assumed that
Signal s(t) is uncorrelated to noise, and noise z(t) is uncorrelated : E[z(t)z(t−τ)]=0=E[z(t)s(t−τ)]∀t,τ. Signal power Psignal=E[s2] is constant in the replicate measurements. Noise is random, with a mean of zero and constant variance in the replicate measurements: E[z]=0=μ and 0<E[(z−μ)2]=E[z2]=Pnoise=σ2. We (canonically) define Signal-to-Noise ratio as SNR=PsignalPnoise=E[s2]σ2.
Noise power for sampled signals Assuming we sample the noise, we get a per-sample variance of Var(z)=E[z2]=σ2. Averaging a random variable leads to the following variance: Var(1n∑i=1nzi)=1n2Var(∑i=1nzi)=1n2∑i=1nVar(zi). Since noise variance is constant σ2: Var(Navg)=Var(1n∑i=1nzi)=1n2nσ2=1nσ2, demonstrating that averaging n realizations of the same, uncorrelated noise reduces noise power by a factor of n, and reduces noise level by a factor of n.
Signal power for sampled signals Considering n vectors Vi,i∈{1,…,n} of signal samples of length T: Vi=[si,1,…,si,T],si,k∈𝕂T, the power Pi of such a vector simply is Pi=∑k=1Tsi,k2=|Vi|2. Again, averaging the n vectors Vi,i=1,…,n, yields the following averaged vector Vavg=1n∑k=1T∑i=1nsi,k=1n∑i=1n∑k=1Tsi,k. In the case where Vn≡Vm∀m,n∈{1,…,n}, we see that Vavg reaches a maximum of Vavg, identical signals=Pi. In this case, the ratio of signal to noise also reaches a maximum, SNRavg, identical signals=Vavg, identical signalsNavg=nSNR. This is the oversampling case, where the observed signal is correlated (because oversampling implies that the signal observations are strongly correlated).
Time-locked signals Averaging is applied to enhance a time-locked signal component in noisy measurements; time-locking implies that the signal is observation-periodic, so we end up in the maximum case above.
Averaging odd and even trials A specific way of obtaining replicates is to average all the odd and even trials in separate buffers. This has the advantage of allowing for comparison of even and odd results from interleaved trials. An average of odd and even averages generates the completed averaged result, while the difference between the odd and even averages, divided by two, constitutes an estimate of the noise.
Algorithmic implementation The following is a MATLAB simulation of the averaging process:
The averaging process above, and in general, results in an estimate of the signal. When compared with the raw trace, the averaged noise component is reduced with every averaged trial. When averaging real signals, the underlying component may not always be as clear, resulting in repeated averages in a search for consistent components in two or three replicates. It is unlikely that two or more consistent results will be produced by chance alone.
Correlated noise Signal averaging typically relies heavily on the assumption that the noise component of a signal is random, having zero mean, and being unrelated to the signal. However, there are instances in which the noise is not uncorrelated. A common example of correlated noise is quantization noise (e.g. the noise created when converting from an analog to a digital signal).
References