Multiple linear regression with constraint
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
abdoulaye thiam
am 7 Feb. 2014
Bearbeitet: abdoulaye thiam
am 8 Feb. 2014
I need to run a multiple linear regression such that all of the coefficients are positive, and their sum = 1 . I have 7 variables, so i need 7 seven coefficients.
Thanks !
0 Kommentare
Akzeptierte Antwort
Amit
am 8 Feb. 2014
6 Kommentare
John D'Errico
am 8 Feb. 2014
Bearbeitet: John D'Errico
am 8 Feb. 2014
Note that most likely, some of the coefficients MIGHT go negative by an amount on the order of eps. Look at the numbers. If they are -1.e-13, why do you care? Just set them to ZERO afterwards.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear Regression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!