r/learndatascience • • 7d ago

Question Order of Operations

Recently, while reading the data-processing steps in some papers, I came across something that confused me: whether certain data-processing orders can be swapped. For example, when calculating the trend of the zonal mean of some variable (using a nonlinear method), should the zonal averaging come before the trend calculation, or the other way around? Or is the error so small that either order is actually fine?

I would be very grateful if someone could share their insights with me.

1 Upvotes

1 comment sorted by

1

u/data4lyfe 6d ago

if you want the trend of the zonal mean, i'd average first. take a simple example with percent change. two equal-weight cells go from 10 to 20 and 100 to 100. average the two % changes and you get 50%. average the values first and you go from 55 to 60, about 9%. i'd run your method both ways on the same cells and weights to see how far apart they are on your data.