Hello anolo,
Welcome to Physics Forums!
Well, it's been over a day, and nobody replied, so I'll give it a bite.
anolo said:
Homework Statement
A noisy but slowly-shifting sensor signal is being filtered with a low-pass, finite impulse response filter. What is the mean delay and expected SNR boost (noise standard deviation of output compared to input) for two filter variations:
N filter taps uniformly weighted: y[n] = (x[n] + ... + x[n - N + 1])/N
M filter taps harmonically weighted: z[n] = (M*x[n] + (M-1)*x[n-1] ... 1*x[n - M + 1])/(M*(M+1)/2)
What depths (N and M) for each setup are needed to boost the SNR by a factor of 5?
Which setup a) or b) has the lowest mean delay at the required depth?
Which setup would you recommend gives the best tradeoff between SNR and delay?
Homework Equations
The Attempt at a Solution
I believe that the width of each FIR filter would correspond to a specific gain for the output signal, would I be correct in assuming that the summation of the co-efficients would give me said answer?
Summing the coefficients turns out to be one small part of what needs to be done, but no, that alone will not give you your final answer.
It will however give you the signal gain at DC (i.e., 0 Hz). Imagine for a moment that the signal, ignoring noise, is a constant value of 1.
s[
n] = 1 for all
n. If you then wanted to calculate the signal gain at the output of the filter, you would simply add up the filter coefficients. Since these are both lowpass filers, that's something you'll want to do, perhaps as a first step.
Go ahead and do this. You'll find that both filters are unity gain at DC. (Don't take my word for it, go ahead and do it yourself).
We also need to make an assumption here, that the bandwidth of the signal is close to DC. If the signal's bandwidth is greater than the filter's bandwidth, the filter would cut into the signal power, reducing the signal somewhat, along with the noise. But the problem statement never specified what the signal bandwidth was, so we have to assume it's close to DC, otherwise there wouldn't be enough information to solve our problem. The problem statement did say however, "slowly-shifting sensor signal," which equivalent to saying that the signal has a small bandwidth. So that justifies our assumption.
So now you can easily make a conclusion about the, the RMS signal amplitude at the output of each filter relative to the RMS signal amplitude at the input. [Edit: Hint: both filters are unity gain at DC. And by that I mean, since the signal power has low bandwidth, the signal power (and RMS amplitude) at the output of the filter is equal to the signal power (and RMS amplitude) at the input of the filter. But you should show this to yourself.

]
Noise is a bit different though. Using superposition, treat each
x[
n] as the sum of a signal sample, and a noise sample.
x[
n] =
s[
n] +
xn[
n],
where
xn[
n] is a random variable representing the noise. (I chose the variable
xn[
n] to represent the noise, but you should choose the variable that your coursework uses).
Note that
xn[
n],
xn[
n+1],
xn[
n+2], ... are independent of one another. (we're making another assumption here about the noise being white noise. But again, since the problem statement didn't say anything about the noise characteristics either, it's all we can do).
xn has a mean,
μ and standard deviation,
σ. Let's make another assumption that the average value of the noise is zero, making
μ = 0. But we can't do that with the standard deviation though.
-----------------
Now here are some math that you are going to need to to solve the rest of this problem. When you add together random variables, the result has a mean which is the sum of the random variables' means. In other words,
xn[
n] +
xn[
n+1] +
xn[
n+2]
has a mean of
μ +
μ +
μ = 3
μ.
Of course this doesn't matter to us, since we already assumed that
μ = 0.
The
variances also add together. The sum of those three random variables gives a result having a variance of
σ2 +
σ2 +
σ2 = 3
σ2.
The standard deviations
do not simply add like that though. You need to calculate the variance of the sum first, and then take the square root to get the standard deviation of the result. [Edit: So in this case, summing together the three random variables like we did gives a result having the standard deviation of \sqrt{\sigma^2 + \sigma^2 + \sigma^2} = (√3)
σ].
----
Even more math:
In the process of solving this problem, you might find these relationships useful:
1 + 2 + 3 + 4 + ... + (
n-1) +
n =
n(
n+1)/2
1
2 + 2
2 + 3
2 + 4
2 + ... + (
n-1)
2 +
n2 =
n(
n+1)(2
n+1)/6