This question is less about programming than it is about mathematics, but I would like some opinions.
I'm trying to model the exponential decay behavior of this curve but as you can see there is a certain level of fluctuations/noise at the lower values. How could I eliminate/damp this noise so that my fit isn't as dependent on it?
I work with the log of this curve so I use linear regressions to do the fit. I've used the least squares method, but the slope of the straight line varies significantly (by about 20%) depending on the time interval I choose.
I've heard about 2 other methods that could help:
- Weighted least squares method, but I don't know how I would go about weighing my points.
- Least absolute deviations, apparently small values tend to be less relevant using this method.
I would like to avoid the trial and error phase. Do you have any ideas?
Edit: The code is done using python