Learning objectives
What you will be able to explain
- What does least squares minimize?
- Fit a line through two points
- Predict with the fitted line
- Compute a residual
- Compute the gradient of a small squared-error objective
- Which formula gives the normal-equation solution?
Section 01
What does least squares minimize? to Predict with the fitted line
01
What does least squares minimize?
Guided checkpoint
Choose the standard objective.
02
Fit a line through two points
Guided checkpoint
Consider the model . Find parameters that exactly fit the two points and .
03
Predict with the fitted line
Guided checkpoint
Using , compute the prediction for .
Section 02
Compute a residual to Which formula gives the normal-equation solution?
01
Compute a residual
Guided checkpoint
Define the residual as . If the true target is and the prediction is , what is the residual?
02
Compute the gradient of a small squared-error objective
Guided checkpoint
Use the model and the loss on data and . Compute the gradient at .
03
Which formula gives the normal-equation solution?
Guided checkpoint
Choose the closed-form least-squares solution when is invertible.
Section 03
Compute entries of to Linear regression facts: true or false
01
Compute entries of
Guided checkpoint
Let the design matrix be . Compute the distinct entries of .
02
What is the geometric meaning of least squares?
Guided checkpoint
Choose the best interpretation.
03
Linear regression facts: true or false
Guided checkpoint
Mark each statement as true or false.
Section 04
Differentiate an penalty to What issue appears when the columns of are linearly dependent?
01
Differentiate an penalty
Guided checkpoint
Let the regularization term be with and . Compute .
02
What issue appears when the columns of are linearly dependent?
Guided checkpoint
Choose the best answer.
Knowledge check
Turn understanding into recall.
The quiz now follows the same concepts in scored form. You can return to this lesson from the quiz whenever a gap appears.