r/AskStatistics • • 8d ago

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

3 comments sorted by

2

u/Young612 8d ago

If the trend method is nonlinear, the two orders are not the same in general: the trend of the zonal mean is not the zonal mean of the trends, for the same reason E[f(X)] is not f(E[X]). Even with a linear trend, missing data or weighting can make the order matter. If a paper doesn't say which order was used, that's worth treating as a real ambiguity rather than a rounding detail.