Linear Regression
Linear Regression
A) Classification
B) Clustering
C) Regression
D) Dimensionality Reduction
Answer: C) Regression
2. Which of the following is the correct formula for Simple Linear Regression?
A)
y=mx+b
B)
y=mx−b
C)
�
x=my+b
D)
x=my−b
Answer: A)
y=mx+b
4. Which method is used to find the best-fitting line in Simple Linear Regression?
A) Gradient Descent
B) Proportion of the variance in the dependent variable that is predictable from the independent
variables
Answer: B) Proportion of the variance in the dependent variable that is predictable from the
independent variables
6. In the equation
A) Intercept
B) Slope
C) Residual
D) Variance
Answer: B) Slope
7. Which assumption ensures that the model's errors are normally distributed?
A) Homoscedasticity
B) Multicollinearity
D) Independence of errors
8. What will be the value of R-squared if all the predicted values exactly match the observed values?
A) 0
B) 1
C) 0.5
Answer: B) 1
9. Which of the following metrics can be used to evaluate a linear regression model?
A) Accuracy
B) Precision
D) F1-Score
10. What happens if the linear regression model is trained with multicollinear features?
12. In multiple linear regression, what does the equation look like?
A)
=
�
y=m
+m
+…+m
n
+b
B)
y=m
x
1
−m
+…+m
+b
C)
�
�
y=m
+m
+…+m
−b
D)
1
⋅
y=m
⋅m
⋅…⋅m
n
+b
Answer: A)
y=m
+m
2
x
+…+m
+b
13. Which of the following graphs best represents the residuals in a well-fitted linear regression
model?
A) U-Shaped Pattern
B) Horizontal Line
D) Exponential Growth
14. Ridge Regression is a technique for dealing with what problem in linear regression?
A) Underfitting
B) Overfitting
C) High Bias
D) High Variance
Answer: B) Overfitting
15. In Ridge Regression, what happens as the regularization parameter approaches infinity?
16. What is the primary difference between Ridge Regression and Lasso Regression?
A) Inefficient Estimators
B) Biased Estimators
C) Inconsistent Estimators
D) Unbiased Estimators
A) Linearity
B) Homoscedasticity
C) Independence of observations
19. If you plot the residuals against the predicted values, what pattern would you expect to see for a
well-fitted linear regression model?
D) No clear pattern
A) 1
B) 0
C) -1
D) 10
Answer: B) 0
21. What is a potential issue with having outliers in a dataset when performing linear regression?
22. How can you check the linearity assumption in linear regression?
A) The phenomenon where predictor variables are in a linear relationship with each other
D) When all predictor variables have a strong linear relationship with the response variable
Answer: A) The phenomenon where predictor variables are in a linear relationship with each other
B) Gradient Descent
C) Both A and B
D) Neither A nor B
28. Which of the following is true for the coefficients of variables in Lasso Regression?
A) The model fits the training data very well but performs poorly on unseen data
B) The model doesn't fit the training data well and also performs poorly on unseen data
C) The model fits both the training and test data perfectly
Answer: B) The model doesn't fit the training data well and also performs poorly on unseen data
C) Can either increase or decrease as more predictor variables are added, depending on their
relevance
Answer: C) Can either increase or decrease as more predictor variables are added, depending on
their relevance