weighted Logistic regression in MATLAB?

3 ビュー (過去 30 日間)
jack
jack 2016 年 5 月 16 日
コメント済み: Alessio Atzori 2020 年 9 月 15 日
hello,
Is there a way to apply weighted logistic regression where the weights are on the Data which we are trying to fit? Can this be done with glmfit or mnrfit?
Please advice and thanks in advance.
  2 件のコメント
Junkun Ren
Junkun Ren 2020 年 8 月 29 日
I have the same question!
Alessio Atzori
Alessio Atzori 2020 年 9 月 15 日
Same question here!
Also: could be possible to weight the features in the linear combination using something like the inverse variance? Maybe something like the weighted average where the more precise is a measurement the more is its influence on the average....
For the logistic regression it would be something like this
where P is the probability of belonging to the positive class and are the weights.
In the case of weigthed average we are summing features with the same dimensions and the weights have the same dimension inversely squared.
For the logistic regression the sum is between different dimension and the necessarly is expressed as the inverse dimension of because the exponent have to be dimensionless. Considering this assumption have to be dimensionless, right?
I think that a feasible choice for the weigths could be the relative error of the feature which is dimensionless.
Thank you!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by