← Questions

Derive the least-squares solution for linear regression

0
MetaML designLast asked Feb 2026

Derive the closed-form solution of ordinary least-squares linear regression from the loss function, and explain each step. Then discuss when the closed form is a bad idea (cost, conditioning, a singular matrix), what regularisation changes in the formula, and how gradient descent compares.

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing