If I have understood correctly, averaging $N$ noisy independent segments or signals increases the signal-to-noise $\sqrt{N}$-fold.
How does one derive this result?
Signal Processing Stack Exchange is a question and answer site for practitioners of the art and science of signal, image and video processing. It only takes a minute to sign up.
Sign up to join this communityIf I have understood correctly, averaging $N$ noisy independent segments or signals increases the signal-to-noise $\sqrt{N}$-fold.
How does one derive this result?
I will show how to calculate the SNR for the case of $N=2$ measurements; it is easy to extend the result to general $N$. Assume a signal $s(t)$ has power $S$, and the noise $n(t)$ has variance $\sigma^2$ and zero mean. Then, the signal $s(t)+n(t)$ has SNR equal to $S/\sigma^2$.
Now assume you observe $s(t)$ twice, each time with different, uncorrelated noise, $n_1(t)$ and $n_2(t)$, each with zero mean and variance $\sigma^2$. You average the two observations to get $$\frac{2s(t)+n_1(t)+n_2(t)}2 = s(t)+\frac{n_1(t)}2+\frac{n_2(t)}2.$$
The variance of both $n_1(t)/2$ and $n_2(t)/2$ is $\sigma^2/4$, so the total noise variance is $\sigma^2/2$ and the SNR is $2S/\sigma^2$, for an improvement of 2.
For some reason I don't understand, the wikipedia page on signal averaging defines the SNR as $S/\sigma$. Under that definition, the improvement will indeed be $\sqrt{N}$.
First, let's properly define the problem. Given $N$ observations $\left \{ x_i \right \}^{N}_{i=1}$ whereas $x_i \overset{i.i.d.}{\sim} {\mathcal{N}}(0, \sigma^2), \forall i \in \left [ 1,2,\dots, N \right ]$ we wish to find the variance of the sample mean estimator compared to a single sample variance.
Obviously, a single sample variance is $\sigma^2$, now let's see how averaging the samples will decrease this variance:
\begin{equation} {\mathrm{Var}}\left [ \frac{1}{N} \sum_{i=1}^{N} x_i\right ]\overset{i.i.d}{=} \frac{1}{N^2} \sum_{i=1}^{N} {\mathrm{Var}}\left ( x_i \right ) = \frac{1}{N^2}N\sigma^2 = \frac{\sigma^2}{N}. \end{equation}
So the error is inversely proportional to the sample size $N$. In fact, just by adding one more sample you increase your SNR by 3dB.
Note that $\sigma^2/N$ is also the Cramer Rao (lower) Bound (CRB) for the sample mean in a linear Gaussian problem, so this is in fact the best unbiased estimator for this problem.
A slightly different calculation is: $\frac{S}{N}=\frac{s+s}{\sqrt{\sigma^{2}+\sigma^{2}}}=\sqrt{2}\cdot\frac{s}{\sigma}$
Where $\frac{s}{\sigma}$ is the signal/noise for each reading
Two signals add: $s_{1}+s_{2}$
The two noises add and normalize: $\sqrt{\sigma_{1}^{2}+\sigma_{2}^{2}}$