Unit 2: SUPERVISED LEARNING: REGRESSION - Practice Quiz

INT234 — Predictive Analytics 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 What is the primary goal of Simple Linear Regression?

A. To group similar data points together
B. To classify data into discrete categories
C. To reduce the dimensionality of the dataset
D. To find the relationship between two continuous variables using a straight line

2 In the linear regression equation Y = mx + c, what does 'c' represent?

A. The error term
B. The slope of the line
C. The y-intercept
D. The dependent variable

3 Which method is commonly used to estimate the coefficients in linear regression?

A. Ordinary Least Squares (OLS)
B. Principal Component Analysis
C. K-Means Clustering
D. Maximum Likelihood Estimation

4 What is a 'residual' in the context of regression?

A. The value of the independent variable
B. The difference between the observed value and the predicted value
C. The square of the correlation coefficient
D. The slope of the regression line

5 Which of the following values indicates a perfect negative correlation?

A. 1
B. 0.5
C. 0
D. -1

6 Multiple Linear Regression differs from Simple Linear Regression because it involves:

A. Categorical outputs
B. Multiple dependent variables
C. Polynomial terms
D. Multiple independent variables

7 In a regression model, if the R-squared value is 0.85, what does this mean?

A. 85% of the variance in the dependent variable is explained by the independent variables
B. 85% of the errors are zero
C. The correlation coefficient is 0.85
D. The model is 85% accurate in classification

8 Which evaluation metric is calculated by taking the average of the squared differences between predicted and actual values?

A. R-squared
B. RMSE
C. MAE
D. MSE

9 Which regression algorithm is specifically designed to predict the probability of a categorical outcome (e.g., Yes/No)?

A. Ridge Regression
B. Simple Linear Regression
C. Polynomial Regression
D. Logistic Regression

10 What function is used in Logistic Regression to map predicted values to probabilities between 0 and 1?

A. Sigmoid (Logistic) function
B. Linear function
C. ReLU function
D. Polynomial function

11 Polynomial Regression is best used when:

A. There are too many independent variables
B. The dependent variable is categorical
C. The relationship between variables is linear
D. The relationship between variables is non-linear

12 What is a potential risk of using a high-degree polynomial in Polynomial Regression?

A. Linearity
B. Underfitting
C. Overfitting
D. High bias

13 Root Mean Squared Error (RMSE) is preferred over MSE when:

A. You want a value between 0 and 1
B. You want to penalize outliers less
C. You have a classification problem
D. You want the error metric to be in the same units as the target variable

14 Which metric is less sensitive to outliers?

A. MAE
B. RMSE
C. MSE
D. R-squared

15 In OLS estimation, the assumption of 'Homoscedasticity' implies that:

A. The residuals have constant variance across all levels of the independent variable
B. The relationship is non-linear
C. The residuals follow a normal distribution
D. There is no correlation between independent variables

16 Multicollinearity in Multiple Linear Regression refers to:

A. A high correlation between two or more independent variables
B. A high correlation between the dependent and independent variables
C. The lack of a linear relationship
D. Measurement errors in the target variable

17 The range of the R-squared (R²) score is typically:

A. 0 to 1
B. -1 to 1
C. 0 to infinity
D. -infinity to 1

18 In the equation Y = b0 + b1x1 + b2x2 + ... + bn*xn, what are b1, b2, ... bn called?

A. Dependent variables
B. Residuals
C. Regression coefficients
D. Intercepts

19 Which of the following is NOT an assumption of Linear Regression?

A. Linearity
B. Multicollinearity usually present
C. Normality of residuals
D. Independence of errors

20 What is the primary advantage of Adjusted R-squared over R-squared?

A. It is easier to calculate
B. It penalizes the addition of irrelevant independent variables
C. It is always higher than R-squared
D. It can handle non-linear data

21 In Logistic Regression, the 'Logit' is defined as:

A. The square root of the variance
B. The natural logarithm of the odds ratio
C. The sum of squared errors
D. The probability of success

22 If the Pearson correlation coefficient between X and Y is 0, it implies:

A. X causes Y
B. There is no linear relationship between X and Y
C. There is a strong non-linear relationship
D. X and Y are identical

23 Which cost function is primarily used for Logistic Regression?

A. Mean Absolute Error
B. Mean Squared Error
C. Hinge Loss
D. Log Loss (Cross-Entropy)

24 When evaluating a regression model, a lower MAE indicates:

A. Worse performance
B. Overfitting
C. High variance
D. Better performance

25 To handle categorical independent variables in regression, one should usually:

A. Assign random numbers
B. Ignore them
C. Convert them using One-Hot Encoding (Dummy variables)
D. Use the text directly

26 The 'Dummy Variable Trap' occurs when:

A. One dummy variable can be predicted perfectly from the others (perfect multicollinearity)
B. Categorical variables are missing
C. There are too many categories
D. The variables are not scaled

27 Which of the following plots is best for visualizing a Simple Linear Regression?

A. Pie Chart
B. Scatter Plot with a line of best fit
C. Box Plot
D. Histogram

28 If a polynomial regression model has degree 1, it behaves like:

A. A Logistic Regression
B. An Exponential Regression
C. A Quadratic Regression
D. A Simple Linear Regression

29 In the context of MSE, what is the effect of squaring the errors?

A. It penalizes larger errors more severely than smaller errors
B. It reduces the impact of outliers
C. It cancels out positive and negative errors
D. It makes the calculation faster

30 Which algorithm minimizes the sum of squared residuals?

A. Decision Trees
B. Ordinary Least Squares
C. Gradient Boosting
D. Logistic Regression

31 What is the typical threshold used in Logistic Regression to classify a probability as '1' (or Positive)?

A. 0.1
B. 0.0
C. 0.5
D. 1.0

32 Predicting the price of a house based on size, location, and age is a problem of:

A. Dimensionality Reduction
B. Clustering
C. Regression
D. Classification

33 Predicting whether an email is 'Spam' or 'Not Spam' is a problem of:

A. Polynomial Regression
B. Linear Regression
C. K-Means
D. Classification (e.g., Logistic Regression)

34 In the equation Y = b0 + b1*X + e, what does 'e' represent?

A. The intercept
B. The error term (noise)
C. The correlation
D. The predicted value

35 If the correlation coefficient (r) is 0.9, the Coefficient of Determination (R²) is:

A. 0.45
B. 0.18
C. 0.9
D. 0.81

36 Which of the following indicates the strongest relationship?

A. Correlation = 0.5
B. Correlation = 0.7
C. Correlation = 0.1
D. Correlation = -0.8

37 Why might one perform a log transformation on the dependent variable in regression?

A. To make the distribution more normal or linearize a relationship
B. To reduce the sample size
C. To turn it into a categorical variable
D. To increase the number of outliers

38 If a model has an RMSE of 10 and an MAE of 2, what does this suggest?

A. RMSE is calculated incorrectly
B. The model is underfitting
C. The model is perfect
D. There are likely large outliers in the errors

39 In polynomial regression, if the curve passes through every single data point perfectly, the model is likely:

A. Overfitted
B. Linear
C. Ideally fitted
D. Underfitted

40 The decision boundary in Logistic Regression is:

A. Linear (in the feature space)
B. Curved
C. Undefined
D. Circular

41 What is the slope of the line y = 3x + 5?

A. 0
B. 8
C. 5
D. 3

42 When comparing two regression models on the same dataset, the one with the ___ is generally preferred.

A. Higher R-squared and Lower RMSE
B. Lower R-squared
C. Higher MAE
D. Higher RMSE

43 Which technique helps checks for 'Linearity' in a regression model?

A. Bar chart
B. Histogram of the target
C. Residuals vs Predicted Values plot
D. Correlation matrix

44 The 'Bias-Variance Tradeoff' implies that:

A. As we increase model complexity, bias decreases but variance increases
B. We want high bias and high variance
C. Complex models have high bias
D. Simple models have high variance

45 Feature scaling (normalization/standardization) is particularly important for:

A. Simple Linear Regression with one variable
B. Ordinary Least Squares solution
C. Decision Trees
D. Regression using Gradient Descent optimization

46 If R-squared is 1.0:

A. The model explains 100% of the variability in the data
B. The correlation is 0
C. The model predicts the mean for every observation
D. The model is completely wrong

47 Which of the following is a dependent variable in a study of how study time affects exam scores?

A. Study time
B. Exam scores
C. Subject
D. Student ID

48 In the context of regression, 'extrapolation' refers to:

A. Predicting values outside the range of the training data
B. Removing outliers
C. Predicting values within the range of training data
D. Calculating the mean

49 The correlation coefficient ranges between:

A. 0 and 1
B. -infinity and infinity
C. 0 and 100
D. -1 and 1

50 Which of the following is NOT a metric for Regression?

A. MAE
B. MSE
C. Accuracy
D. R-squared