MATLAB: Does ‘fitglm’ use least squares or maximum likelihood to form the fit

glmleast squaresMATLABmaximum likelihood

When I run test code, it appears to me that 'fitglm' is using least squares and NOT maximum likelihood. Can you confirm?

Best Answer

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:
Related Question