Q. In which scenario would you prefer linear regression over other algorithms?
-
A.
When the relationship between variables is non-linear
-
B.
When you need to classify data into categories
-
C.
When you want to predict a continuous outcome with a linear relationship
-
D.
When the dataset is very small
Solution
Linear regression is preferred when predicting a continuous outcome variable that has a linear relationship with the independent variables.
Correct Answer:
C
— When you want to predict a continuous outcome with a linear relationship
Learn More →
Q. In which scenario would you prefer using a linear regression model?
-
A.
When the outcome variable is categorical
-
B.
When the relationship between variables is non-linear
-
C.
When you need to predict a continuous variable based on other continuous variables
-
D.
When you have a small dataset
Solution
Linear regression is preferred when predicting a continuous outcome variable based on one or more continuous predictor variables.
Correct Answer:
C
— When you need to predict a continuous variable based on other continuous variables
Learn More →
Q. What does R-squared measure in a linear regression model?
-
A.
The strength of the relationship between the independent and dependent variables
-
B.
The average error of the predictions
-
C.
The number of predictors in the model
-
D.
The slope of the regression line
Solution
R-squared measures the proportion of variance in the dependent variable that can be explained by the independent variable(s) in the model.
Correct Answer:
A
— The strength of the relationship between the independent and dependent variables
Learn More →
Q. What is the purpose of using a training and test set in linear regression?
-
A.
To increase the size of the dataset
-
B.
To validate the model's performance on unseen data
-
C.
To reduce the complexity of the model
-
D.
To improve the accuracy of predictions
Solution
Using a training and test set allows for the evaluation of the model's performance on unseen data, helping to prevent overfitting.
Correct Answer:
B
— To validate the model's performance on unseen data
Learn More →
Showing 1 to 4 of 4 (1 Pages)