R: Experiment 1: How does the measured data differ from the expected data?

for (i in 1:length(To_Chip_RTP$Time)) {
Time_difference[i]=
(To_Chip_RTP$Time[i]-To_Chip_RTP$Time[1])-((as.numeric(To_Chip_RTP_clock[i])-as.numeric(To_Chip_RTP_clock[1]))/8000)
}
plot( Time_difference[800:
      length(Time_difference)] , pch=20, cex=0.25)

Scale the bullet to ¼ size

How does the measured data differ from the expected data?
How does the measured data differ from the expected data?

Since delay can not be negative, the real difference can be found by subtracting the min() ⇒

hist( Time_difference[800:length(Time_difference)]-min(Time_difference[800:
length(Time_difference)] ), breaks=100)

Histogram of the differences


Transcript

So, if I plot the measured data versus the expected data, I get a plot like this. You can see it has these distributions that are over the whole set of values.

We can compute it now as a histogram of the differences.