Clear Filters
Clear Filters

Nonlinear fit to median instead of mean values?

2 views (last 30 days)
Phil
Phil on 24 Sep 2020
Commented: Sindar on 24 Sep 2020
Hey,
my question might be more theoretical. The datasets I currently analyse are not normally distributed (according to shapiro-wilk and kolgomorov-smirnov @ p = 0.05). Therefore, I prefer plotting them as boxplots. However, I would actually like to fit a nonlinear model (in that case a hill equation) to the (non-existing) mean in order to extract some parameters.
So, is there any way and is it allowed to fit my function to the median instead of the mean values? I haven't found publications where this is done and I assume that this is for a good reason. I just don't know why and what else to do with my data.
Thanks for your help!
Philipp
  1 Comment
Sindar
Sindar on 24 Sep 2020
I'm not an expert, but I don't think it's accurate to describe standard fitting as fitting to the mean.
Regardless, can you share an image of your data and discuss what you think a median-fit would look like? There may be some method of optimization that can replicate your goal (standard fitting minimizes summed-squares distance. Maybe you want summed-abs to suppress the importance of outliers?)

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!