Weighted fit using fmincon
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Chris Angeloni
le 3 Mar 2020
Modifié(e) : Chris Angeloni
le 3 Mar 2020
I am trying to fit a logistic function to some data, and I've been using fmincon with success. One thing that I would like to implement in my fitting procedure is to fit the data in a weighted fashion... that is, if I have fewer observations for one of the data points I'm trying to fit, the fitting procedure will be less sensitive to that data point.
nlinfit in matlab has this functionality, but in general I find that function too hard to customize and have had better results with fmincon. I'm relatively unfamiliar with adding constraints to fmincon, but maybe there is an easy way to implement this? I appreciate any ideas!
0 commentaires
Réponse acceptée
Fabio Freschi
le 3 Mar 2020
How about to repeat the samples of the points you want to weight more?
3 commentaires
Fabio Freschi
le 3 Mar 2020
Can you share (part of) the data, and show what's wrong with the result?
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Least Squares dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!