Which task is a regression problem?
4 Regression Online Quiz Questions
Use this free practice quiz with 20 questions to review 4 Regression, test your knowledge, and prepare for your next test or exam.
Lasso regularization can shrink some coefficients to .
True or false: If a linear regression coefficient says predicted rent rises with floor area, that alone proves that increasing floor area causes rent to rise.
- A
True
- B
False
How does a mean baseline make predictions in a regression task?
- A
It predicts a separate average for every feature combination.
- B
It predicts the average target observed in training for every example.
- C
It divides examples into groups and predicts a value for each group.
For the model rent=700+18(area in m2), what is the predicted change in rent for each additional square meter? Enter the numerical coefficient only.
A regression model predicts 47 when the actual target is 52. Using residual =y−y^, the residual is .
What objective does ordinary least squares use to choose coefficients in linear regression?
- A
The largest absolute prediction error
- B
The number of input features
- C
The sum of squared differences between observed and predicted targets
Select all statements that correctly describe regularized linear regression.
- A
Ridge and Lasso add penalties on coefficient size.
- B
Regularization can help when features overlap in the information they provide.
- C
Lasso can shrink some coefficients to zero.
- D
Regularization guarantees better performance on every unseen example.
What is the term for the difference y−y^ between an actual target and a model’s prediction?
Select all statements that accurately describe ensemble regression methods.
- A
A random forest averages predictions from many trees.
- B
Gradient-boosted trees build trees in sequence to improve predictions.
- C
Ensemble regression can capture complex relationships.
- D
Both methods are always easier to interpret than a small linear model.
True or false: A linear model’s prediction far outside the range of its training data is necessarily realistic because the model has a linear equation.
- A
True
- B
False
Which approach provides evidence about how well a regression model generalizes to new examples?
- A
Evaluate the model only on the training examples and treat that score as proof of generalization.
- B
Compare its predictions with the training targets after fitting.
- C
Assess its performance on held-out data not used to train it.
A model was trained on homes with areas from 40m2 to 160m2, but it predicts rent for a 500m2 home. Explain why this prediction deserves caution and identify at least one check that could help assess its reliability.
A team wants to predict the number of minutes each delivery will take. Which statement best explains why this is a regression task?
- A
Predicting whether a delivery will be early, on time, or late
- B
Predicting how many minutes a delivery will take
- C
Assigning each delivery to a customer segment
- D
Identifying which delivery method was used
A team uses a mean baseline for a regression problem. What does this model predict for each example?
- A
The most frequent target from the training data
- B
The target value of the closest training example
- C
The average target in the training data
- D
A different randomly chosen target for each example
Which statement correctly distinguishes random forests from gradient-boosted trees in regression?
- A
Both methods use only one tree, but with different feature sets.
- B
Random forests average predictions from many trees; gradient boosting builds trees in sequence.
- C
Random forests build trees in sequence; gradient boosting averages independent tree predictions.
- D
Both methods predict the average target from the training data.
A regression model has many overlapping features. Which statement about Ridge and Lasso is supported by the material?
- A
They ensure every feature has a nonzero coefficient.
- B
They make a model predict the same value for every example.
- C
They penalize coefficient size, and Lasso can shrink some coefficients to zero.
- D
They remove the need to assess a model on unseen data.
True or false: A regression model's prediction is guaranteed to be reliable even when important input features are missing.
- A
True
- B
False
A simplified rent model is rent=700+18(area in m2). What rent does it predict for an area of 10m2?
What is the regression term for a prediction made far outside the range of the training data?