I have some time course data which I would like obtain the first derivative of. As it seems quite difficult to model, I do not intend to fit a function to it, but rather compute the first derivative numerically (taking the difference of each measure from the one before via the numpy.diff
function).
Now, I also want to down-sample my data to get rid of some noise. I have tried to calculate whether it makes a difference if I derive first and downscale that or downscale first and derive that. But however I try to look at it I can't seem to put the same variables on both sides of my equation (first side - how I believe differentiation and subsequent down-sampling work, and on the second side the converse).
$ \frac{(b-a)+(c-b)}{2} = \frac{c+d}{2}-\frac{b+a}{2} $
Could you help me out determine whether it matters in what order I perform my operations?