# Detrend data with no clear secular trend prior to Fourier analysis?

I am completing Fourier analysis on many different time series of sediment particle flux exiting an experimental flume. Data is collected at a resolution of 1 Hz for durations ranging from ~5,000 to 50,000 seconds. Flux ranges from 0 to over 1,000 particles. The figure below shows an example time series that I am analyzing - the x-axis has units of seconds and the y-axis has units of particles/second:

I am familiar with time series and Fourier analyses, but I am not an expert. A colleague told me that I should detrend all of my time series before performing the Fourier analysis. I have completed the analysis without, and with detrending the time series and I see no obvious difference in the resultant spectra; this does not surprise me because I see no secular trend, for example, in the data shown in the example figure above. This leaves me with several questions. First, should I detrend the example time series shown in the figure above? If I should, why (or why not)? Second, there are at least several ways I can think of to detrend the example time series (e.g. subtracting a polynomial fit, subtracting the series mean, etc.), do people have any suggestions for a time series like the example one shown above? Last, are there clear criteria I can work with in making a decision of whether detrending is necessary prior to completing a Fourier analysis? Thanks.

• Time series have two broad qualities: Trend and Periodicity. But beyond that, there are no hard definitions about them. To an extend they depend on the problem (conceptually) and the time scales involved. And as you say, you can remove a simple drift or the trend in the moving-average sense, or fit an ARMA model and then remove its output and so on. I cannot see why would the flow of particles of a certain size down a canal would vary periodically though. Is the canal shaped in such a way as to form "tuned cavities" for particles of certain size? Can you talk a bit more about the problem? – A_A Jan 25 '19 at 7:07
• Here are some more details about the problem @A_A. I ran experiments that produced different riverbed shapes. Different shapes affect how sediment moves along the river bed. Some shapes produce sediment motions as well defined waves, with periodic behavior. Other shapes produce sediment motions that are random in time and space. I am using the spectral analysis to understand of my data sets reflect how riverbed shape is thought to affect sediment motions. I have an unusually rich data set so I am in a good position to explore these ideas. – SurfProc Jan 25 '19 at 16:37
• A clarification on the second to last sentence of my comment above: "I am using spectral analysis to understand the coupling between riverbed shape and sediment motions" – SurfProc Jan 25 '19 at 16:53
• Very interesting. But by the sound of it and assuming that you start with a flat river bed, any detrending would be interfering with the observations from the phenomenon itself. Besides that, you might also want to have a look at some non-linear techniques for discovering more complex periodicities – A_A Jan 27 '19 at 23:09
• The sediment flux measurements are separate from bed elevation measurements, and the analysis discussed here does not interfere with the phenomenon itself. The analysis described here is trying to understand if and what kind of relationship exists between a particular bed elevation state and a finite time series of sediment flux. I will take a look at the suggested links, which look promising by the way. I am quite interested in nonlinear dynamics. – SurfProc Jan 28 '19 at 0:28