Unit 2 - Practice Quiz

INT234 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 reduce the dimensionality of the dataset
C. To classify data into discrete categories
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 y-intercept
B. The dependent variable
C. The slope of the line
D. The error term

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

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

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 slope of the regression line
D. The square of the correlation coefficient

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

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

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

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

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

A. 85% of the errors are zero
B. 85% of the variance in the dependent variable is explained by the independent variables
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. MSE
C. MAE
D. RMSE

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

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

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

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

11 Polynomial Regression is best used when:

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

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

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

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

A. You want to penalize outliers less
B. You want a value between 0 and 1
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. RMSE
B. MAE
C. R-squared
D. MSE

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

A. The residuals follow a normal distribution
B. The residuals have constant variance across all levels of the independent variable
C. The relationship is non-linear
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. -1 to 1
B. 0 to 1
C. -infinity to 1
D. 0 to infinity

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. Multicollinearity usually present
B. Independence of errors
C. Linearity
D. Normality of residuals

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

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

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

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

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

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

23 Which cost function is primarily used for Logistic Regression?

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

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

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

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

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

26 The 'Dummy Variable Trap' occurs when:

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

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. Histogram
D. Box Plot

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

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

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

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

30 Which algorithm minimizes the sum of squared residuals?

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

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

A. 0.1
B. 0.5
C. 1.0
D. 0.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. Classification (e.g., Logistic Regression)
D. K-Means

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

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

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

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

36 Which of the following indicates the strongest relationship?

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

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

A. To reduce the sample size
B. To turn it into a categorical variable
C. To make the distribution more normal or linearize a relationship
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. The model is underfitting
B. The model is perfect
C. RMSE is calculated incorrectly
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. Underfitted
B. Ideally fitted
C. Linear
D. Overfitted

40 The decision boundary in Logistic Regression is:

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

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

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

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

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

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

A. Histogram of the target
B. Bar chart
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. Complex models have high bias
C. Simple models have high variance
D. We want high bias and high variance

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

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

46 If R-squared is 1.0:

A. The model predicts the mean for every observation
B. The model explains 100% of the variability in the data
C. The correlation is 0
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. Student ID
B. Study time
C. Subject
D. Exam scores

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

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

49 The correlation coefficient ranges between:

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

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

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