How to calculate standard deviation from the delay?

Click For Summary

Discussion Overview

The discussion revolves around calculating the standard deviation and unit vector from delay measurements derived from signal processing in a two-channel system. Participants explore methods for computing these values based on given parameters and equations, focusing on both theoretical and practical aspects of the calculations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant outlines a method to calculate the unit vector using cosine and sine of the delay values.
  • Another participant suggests accumulating sums of delays and their squares to compute the average delay and sample standard deviation.
  • Further contributions emphasize the need to square the sums in the standard deviation formula and discuss the implications of calculating means and standard deviations for both x and y axes independently.
  • There is mention of using a method that avoids storing the entire dataset until the mean is known, which could be advantageous in certain applications.

Areas of Agreement / Disagreement

Participants generally agree on the equations for calculating mean and standard deviation, but there are nuances regarding the application to independent x and y axes that remain less clear. The discussion does not reach a consensus on the implications of certain calculations.

Contextual Notes

Some participants express uncertainty about the signal implications of certain summations, indicating that further exploration may be needed to fully understand the relationships between the variables involved.

Who May Find This Useful

This discussion may be useful for individuals interested in signal processing, statistical analysis of data, and those working with complex signals in engineering or physics contexts.

Nate Duong
Messages
125
Reaction score
4
I am trying to calculate the unit vector and standard deviation of the signal. I hope everyone can give me ideas.

Here is my scenario:

I have 2 rx channels: - f is channel 1 with the length 1x256 complex, then FFT. - g is channel 2 with the length 1x256 complex, then FFT. - from f and g, I can calculate the spectrum density S_fg = f * conj(g), with the length 1x256 complex

S_fg = f * conj(g)
t_0 = 1 / f_0;
r_0 = t_0 / (2 * pi);
delay = angle(S_fg) * r_0 * 1e12; % in pico second
d = median(delay);

since I have those parameters, How can i calculate the unit vector (x,y), and standard deviation?

The unit vector maybe calculated by the equation:
x = 1*cos(delay); % 1x256
y = 1*sin(delay); % 1x256

but I do not know how to get the standard deviation?

Hope anyone can help?
 
Engineering news on Phys.org
I think you have gone too far. Find the delays, x, then accumulate the sums of x and of x2.
For i = 1 to 256
Sum_x += x(i)
Sum_xx += x(i)2
Next i

The average delay is; mean_delay = Sum_x / n
The sample standard deviation is; Ssd = √( (Sum_xx – (sum_x)2 / n ) / (n – 1) )
 
  • Like
Likes   Reactions: Nate Duong, jim hardy and dlgoff
Baluncore said:
I think you have gone too far. Find the delays, x, then accumulate the sums of x and of x2.
For i = 1 to 256
Sum_x += x(i)
Sum_xx += x(i)2
Next i

The average delay is; mean_delay = Sum_x / n
The sample standard deviation is; Ssd = √( (Sum_xx – (sum_x)2 / n ) / (n – 1) )

@Baluncore: I agree with your equations, is it going to be the same when I calculate for y and xy values?
The average delay is; mean_delay = Sum_y / n
The sample standard deviation is; Ssd = √( (Sum_yy – (sum_y) / n ) / (n – 1) )
 
Nate Duong said:
The sample standard deviation is; Ssd = √( (Sum_yy – (sum_y) / n ) / (n – 1) )
Don't forget to square the Sum_y in the Ssd equation. (sum_y)2 / n.

The application to independent x and y axes is not a problem.
The resulting means Mx and My make a mean vector M. Likewise, SDx and SDy make an SD vector.
I have not thought through the signal implications of ∑(xy) and ∑(x2y2), but I see no reason why it cannot be done.

The mean and SD equations I gave are the same as those used in HPs RPN calculators by the ∑+ and ∑– key functions. Counting the number of samples n, and the accumulation of ∑x, ∑x2, ∑y and ∑y2 can all be done for the independent x and y axes in a single pass. The method has the huge advantage of not needing to store the input data set until the mean is known.
 
  • Like
Likes   Reactions: Nate Duong
Baluncore said:
Don't forget to square the Sum_y in the Ssd equation. (sum_y)2 / n.

The application to independent x and y axes is not a problem.
The resulting means Mx and My make a mean vector M. Likewise, SDx and SDy make an SD vector.
I have not thought through the signal implications of ∑(xy) and ∑(x2y2), but I see no reason why it cannot be done.

The mean and SD equations I gave are the same as those used in HPs RPN calculators by the ∑+ and ∑– key functions. Counting the number of samples n, and the accumulation of ∑x, ∑x2, ∑y and ∑y2 can all be done for the independent x and y axes in a single pass. The method has the huge advantage of not needing to store the input data set until the mean is known.
@Baluncore: thank you very much for this thread, Baluncore !
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
Replies
24
Views
3K
  • · Replies 7 ·
Replies
7
Views
1K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 43 ·
2
Replies
43
Views
6K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K