Closed-form maximum likelihood weights for linear regression
Question
You observe pairs , with , and model each response as with i.i.d. Gaussian noise , so responses are conditionally independent given their inputs. Stack the inputs as rows of a design matrix and the responses into a vector . Rather than using gradient descent, derive a closed-form expression for the maximum likelihood estimate
Hint: work with the log-likelihood.
Short answer
. The log-likelihood is a constant minus , so maximising it is least squares. Setting the gradient to zero gives the normal equations , solvable when is invertible (full column rank).
Adapted from OpenQuant; question and answer rewritten by SelfMadeQuant.com.
See the hint and the full worked solution in the question bank (free account).
Open the worked solutionLessons behind this question
- Maximum Likelihood Estimation: Score and Log-Likelihood
- Conditional Probability, Total Probability, and Bayes' Rule
- Worked Examples — Probability Trees, Monty Hall, and Bayesian Updating
Start with a free lesson: Basic Statistics and Regression is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.
Read it free