Linear Regression: Test Your Knowledge

  1. Which of these is an example of a parameter that is calculated during training for a linear regression model?

  2. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    Suppose you are building a linear regression model to predict the sale price of a used car. The training dataset includes the following information: sale price (label), model year (feature), MSRP (feature), odometer mileage (feature), gas mileage (feature). How many weights will there be for this model? ___

  3. Fill-in-the-blanks

    Enter one or more words to complete the sentence.

    Review the graph below. What is the mean squared error? ___

    A plot of a line on a Cartesian coordinate plane that runs through the coordinates (0, 2) and (10, 7). There are also 10 data points plotted on the graph with the coordinates (1, 2.5), (2, 3), (3, 3.5), (4, 6), (5, 4.5), (6, 5), (7, 5.5), (8, 4), (9, 6.5), and (10, 7). The line runs through all these points except (4, 6) and (8, 4).
  4. Which of these controls the size of the steps of the gradient descent algorithm?

  5. Suppose you are training a linear regression model and after about 100 iterations you notice that the loss is high and trending downward, but not by a significant amount. What is likely to be the problem?