# How to calculate the variation of delay?

I have 1 transmitted signal transmits to the receiver. Every time transmit, I collect data from the receiver, I use the transmitted which I just transmitted and received data, correlate them, then I can get the delay using xcorr tool in MATLAB.

I repeat 10 times periodically, they are different because every time transmit, noise which is added, has to be exist. I have this delay vector :

delay =

Columns 1 through 2

0.010346125000000   0.010349000000000

Columns 3 through 4

0.010349875000000   0.010349000000000

Columns 5 through 6

0.010349750000000   0.010349750000000

Columns 7 through 8

0.010349750000000   0.010349750000000

Columns 9 through 10

0.010348875000000   0.010348875000000


from this vector, how much variation in delay do I know?

• If that is a vector of delays, then don't you just calculate the standard deviation? Note if the noise is white (meaning uncorrelated and also should add identically distributed), your processing gain in dB is 10Log(N) where N is the number of samples- that should give you an idea on how to predict the delay variation (standard deviation) you are seeing relative to your input SNR – Dan Boschen Apr 12 '17 at 21:49
• @DanBoschen : Average tells you the central part distribution where that is? and Standard-deviation tells you how wide of distribution. As you mentioned, "N is the number of samples", but I've never known the value of N, but I know the gain between 0 to 60dB. Since I know the gain, How to predict delay variation? – Nate Duong Apr 13 '17 at 0:45
• @DanBoschen: I am computing the time delay by interpolating between sample, and compute xcorr. So, I should not see when I am doing that identical value, just slight changed. I can take standard-deviation of those values, I have number in nanosecond, and each nanosecond that I have correspond to this much variation, so that should be possible for me to determine what the accuracy of my measurements in meters? Therefore, I need to compute the variation of delay. – Nate Duong Apr 13 '17 at 0:55
• @DanBoschen: if I take 10 measurements (as I mentioned in previous topic: I have 10 seconds of data and cut off 10 windows, and do 10 time xcorr to get vector of delay 1x10), I compute standard deviation, and I have number in seconds. they are very small number seconds (like a few nanoseconds). I can multiply that with speed of light, and I have the accuracy of measurement in meter. That is my goal. – Nate Duong Apr 13 '17 at 1:02
• I would I just want to make sure I really understand what you were asking as a question. So was the issue that you did not know that the standard deviation is how you measure the "noise" for an arbitrary signal or set of data? – Dan Boschen Apr 13 '17 at 14:50