Linear regression objective and gradient
Problem
For , , and , use
Compute , its gradient, and one gradient-descent update with learning rate .
Reveal answer or reference solution
. The gradient is
so the update is .
Local history
Loading attempts saved in this browser…
Use with your agent
Share this URL and your attempt. Ask the agent to start with a clarifying question or the smallest useful hint.
Tutor me on https://mlprep.iwase.dev/machine-learning/diagnostic/original-ml-regression/. If window.mlPrepAgent is available, read attempts for item original-ml-regression before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record and read it back.