215 views
1 1 vote

Kevin is trying to fit a simple linear regression model $\hat{y}=\theta_0+\theta_1 x$ on a dataset with 900 observations.
After determining $\hat{\theta_0}$ and $\hat{\theta_1}$ by minimizing mean squared error, Kevin found the following:
- For 250 inputs, his predicted value $\hat{y}$ was 1 more than the actual value $y$.
- For another 500 inputs, his predicted value $\hat{y}$ was 0.5 less than the actual value $y$.
- All other points were predicted perfectly.

Calculate the mean squared error of Kevin's model. Select the closest answer. (Note that this question is not asking about mean nearest squared error.)

  1. 0
  2. 0.25
  3. 0.35
  4. 0.42

1 Answer

0 0 votes

D. 0.42

MSE = (1/900) × [250·(1)² + 500·(0.5)² + 150·(0)²]
= (1/900) × [250 + 125 + 0]
= 375/900
≈ 0.417 ≈ 0.42

Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
501
501 views
GO Classes asked Mar 18, 2025
501 views
Consider linear regression and logistic regression. They both use linear functions.They both can be used to solve regression prob-They both use the logistic activation fu...
1 1 vote
1 1 answer
244
244 views
GO Classes asked Mar 13, 2025
244 views
Consider a simple classification task with features $x_i \in \mathbb{R}^d$ and $k$ classes. Suppose we train a linear classifier to minimize the regularized least squared...
1 1 vote
1 1 answer
241
241 views
GO Classes asked Mar 13, 2025
241 views
Consider just the general shape of the following plots.For each of the following possible interpretations of the quantities being plotted on the $X$ and $Y$ axes, indicat...
1 1 vote
0 0 answers
184
184 views
GO Classes asked Mar 13, 2025
184 views
Consider the following training data: xy132130.5Suppose the data comes from a model $y=c x^\beta$ , for unknown constants $c$ and $\beta$. Use least squares linear regres...