Multiple linear regression with constraint
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
abdoulaye thiam
il 7 Feb 2014
Modificato: abdoulaye thiam
il 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 Commenti
Risposta accettata
Amit
il 8 Feb 2014
6 Commenti
John D'Errico
il 8 Feb 2014
Modificato: John D'Errico
il 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Linear Regression in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!