MATLAB Answers

Does 'fitglm' use least squares or maximum likelihood to form the fit?

2 views (last 30 days)
Richard
Richard on 23 Sep 2020
Commented: Richard on 28 Sep 2020
When I run test code, it appears to me that 'fitglm' is using least squares and NOT maximum likelihood. Can you confirm?

  0 Comments

Sign in to comment.

Accepted Answer

Pratyush Roy
Pratyush Roy on 28 Sep 2020
The 'fitglm' function makes use of the “Iteratively Reweighted Least Squares” method to find the regression coefficients in the maximum likelihood stage of the function.
The MATLAB documentation link of 'fitglm' lists a few reference books which have more information regarding this:

  1 Comment

Richard
Richard on 28 Sep 2020
Thanks very much for the confirmation. I was surprised that the fitting method was not at least mentioned in the documentation (with references).

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!