Unit 9: Regression Models - Practice Quiz

ECAP792 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the main purpose of regression analysis?

Introduction to regression Easy
A. To predict a numerical outcome
B. To sort data alphabetically
C. To remove every missing value
D. To encrypt sensitive records

2 In regression, what is the variable being predicted called?

Introduction to regression Easy
A. Independent variable
B. Control variable
C. Dependent variable
D. A variable used only to divide the dataset into several unrelated categories

3 Which task is most suitable for a regression model?

Introduction to regression Easy
A. Sorting names in a directory
B. Predicting the price of a house
C. Identifying an email as spam
D. Grouping customers into clusters

4 What does simple linear regression use to predict an outcome?

Types of regression Easy
A. Two target variables
B. One predictor variable
C. Many classification labels
D. No predictor variables

5 Which regression type uses two or more predictor variables?

Types of regression Easy
A. Simple linear regression
B. Univariate polynomial regression
C. Binary logistic regression
D. Multiple linear regression

6 Which type of regression can represent a curved relationship by including powers of a predictor?

Types of regression Easy
A. A classification method that assigns observations to labels using only a fixed threshold
B. Polynomial regression
C. Logistic regression
D. Multiple regression

7 Which equation represents a simple linear regression model?

Machine linear regression Easy
A.
B.
C.
D.

8 In the equation , what does represent?

Machine linear regression Easy
A. The predicted class
B. The line's slope
C. The sample size
D. The error total

9 What is a residual in linear regression?

Machine linear regression Easy
A. The number of predictors
B. The observed value minus the predicted value
C. The model's intercept
D. The average of all predictor values

10 What does fitting a linear regression model usually try to minimize?

Machine linear regression Easy
A. Prediction errors
B. Category labels
C. Predictor names
D. Dataset columns

11 Logistic regression is mainly used for which kind of task?

Machine logistic regression Easy
A. Classification
B. Data sorting
C. Clustering
D. File compression

12 What range of values does the sigmoid function produce?

Machine logistic regression Easy
A. Between and
B. Between and
C. Between and
D. Between negative infinity and positive infinity, with no limits on the resulting value

13 In binary logistic regression, how many possible target classes are there?

Machine logistic regression Easy
A. Three
B. Two
C. Four
D. One

14 What is the main purpose of regularization?

Regularization Easy
A. To rename model features
B. To reduce overfitting
C. To increase missing data
D. To duplicate observations

15 Which regularization method uses the absolute values of model coefficients?

Regularization Easy
A. L1 regularization
B. Linear interpolation
C. Logistic transformation
D. L2 regularization

16 Which regularization method uses squared model coefficients in its penalty?

Regularization Easy
A. Feature scaling
B. L1 regularization
C. A sampling process that repeatedly creates larger copies of the original training dataset
D. L2 regularization

17 What does Mean Absolute Error (MAE) measure?

Performance metrics Easy
A. The number of model features
B. The largest predictor value
C. The average absolute prediction error
D. The percentage of missing records

18 Which metric gives larger errors more weight by squaring them?

Performance metrics Easy
A. Classification accuracy
B. Mean Squared Error
C. Mean Absolute Error
D. Coefficient count

19 What does an value close to generally indicate?

Performance metrics Easy
A. The model explains much of the outcome's variation
B. The model has no predictor variables
C. The model always predicts the same class label
D. The dataset contains only one observation

20 Which metric is commonly used to measure the proportion of correct logistic regression classifications?

Performance metrics Easy
A. Accuracy
B. Mean
C. Variance
D. Range

21 A regression model predicts a house price of , while the actual price is . If the residual is defined as actual minus predicted, what is the residual?

Introduction to regression Medium
A.
B.
C.
D.

22 A residual plot shows residuals forming a clear curved pattern around zero. What does this most strongly suggest?

Introduction to regression Medium
A. The model is over-regularized
B. The response variable should always be replaced with a categorical variable
C. The errors have zero mean
D. The relationship is nonlinear

23 A researcher wants to predict salary using years of experience, education level, and number of certifications. Which regression type is most appropriate if the response is continuous?

Types of regression Medium
A. Univariate polynomial regression
B. Binary logistic regression
C. Simple linear regression
D. Multiple linear regression

24 The relationship between temperature and electricity demand is U-shaped. Which model can represent this pattern directly?

Types of regression Medium
A.
B.
C.
D.

25 Why is polynomial regression considered a form of linear regression?

Types of regression Medium
A. It always produces a straight line
B. It is linear in its coefficients
C. It uses only one predictor value
D. It requires every polynomial feature to have a linear relationship with the original response

26 A fitted model is . What prediction does it produce when ?

Machine linear regression Medium
A.
B.
C.
D.

27 In the model , how should the coefficient of be interpreted?

Machine linear regression Medium
A. A one-unit increase in raises predicted by , holding fixed
B. A one-unit increase in lowers predicted by , holding fixed
C. A one-unit increase in guarantees that the observed response rises by exactly in every case
D. A one-unit increase in raises predicted by , holding fixed

28 Two predictors have ranges to and to . Why might standardizing them help when fitting linear regression with gradient descent?

Machine linear regression Medium
A. It converts the response into classes
B. It guarantees zero training error
C. It removes all correlated features
D. It can improve convergence speed

29 A linear model performs well on training data but poorly on validation data after many irrelevant predictors are added. What is the most likely issue?

Machine linear regression Medium
A. Underfitting
B. Perfect calibration
C. Overfitting
D. Response normalization

30 A logistic regression model outputs for a customer. What does this value normally represent?

Machine logistic regression Medium
A. The number of classification errors
B. The estimated probability of the positive class
C. The exact odds ratio for every predictor in the fitted model
D. The predicted value of a continuous response

31 Using a classification threshold of , which class is assigned to an observation with predicted probability ?

Machine logistic regression Medium
A. No class
B. Both classes
C. Negative class
D. Positive class

32 In logistic regression, a predictor has coefficient . Holding other variables constant, how does a one-unit increase in that predictor affect the odds?

Machine logistic regression Medium
A. It doubles the odds
B. It doubles the probability for every observation regardless of its original predicted probability
C. It halves the odds
D. It adds two to the probability

33 A fraud detector misses too many fraudulent transactions. Which threshold change is most likely to increase recall for the fraud class?

Machine logistic regression Medium
A. Lower the classification threshold
B. Raise the classification threshold
C. Replace probabilities with residuals
D. Keep only true negatives

34 Which regularization method is most suitable when the goal is to shrink coefficients while generally retaining all predictors?

Regularization Medium
A. Ordinary least squares
B. Lasso regression
C. Ridge regression
D. Unregularized polynomial regression with additional high-degree terms

35 A dataset contains many predictors, but only a small subset is believed to be useful. Which method can perform implicit feature selection?

Regularization Medium
A. Unpenalized least squares
B. Simple averaging
C. Ridge regression
D. Lasso regression

36 As the regularization parameter becomes very large, what usually happens to a regularized regression model?

Regularization Medium
A. Coefficient magnitudes decrease
B. Training error becomes exactly zero
C. Coefficient magnitudes increase
D. Every predictor receives the same positive coefficient regardless of its relationship with the response

37 A regression model produces errors , , and . What is its mean absolute error?

Performance metrics Medium
A.
B.
C.
D.

38 A model has on a test set. Which interpretation is most appropriate?

Performance metrics Medium
A. It proves that every predictor causes a change in the response variable
B. It explains about of the response variance in that test set
C. Its average prediction error is response units
D. It predicts exactly of observations without error

39 A classifier has true positives and false positives. What is its precision?

Performance metrics Medium
A.
B.
C.
D.

40 Two regression models have similar MAE values, but Model A has a much larger RMSE. What is the most likely explanation?

Performance metrics Medium
A. Model A converts all continuous predictions into binary class labels before calculating both metrics
B. Model A has fewer predictor variables
C. Model A has some unusually large errors
D. Model A has perfectly uniform errors

41 In the population model , suppose . A researcher omits and regresses only on . When is the resulting slope for unbiased for ?

Introduction to regression Hard
A. or
B. and
C.
D. or

42 A regression model has excellent out-of-sample predictive accuracy, but the training data are observational and contain an unmeasured confounder affecting both and . Which conclusion is justified?

Introduction to regression Hard
A. Cross-validation removes bias caused by the confounder
B. The confounder matters only when residuals are non-normal
C. The model may predict well without identifying the causal effect
D. The model estimates the causal effect because prediction is accurate

43 A response is a nonnegative count with conditional variance substantially larger than its conditional mean, even after relevant predictors are included. Which model is most directly appropriate?

Types of regression Hard
A. Ordinary least squares on the raw count
B. Poisson regression with an identity link
C. Binary logistic regression with a logit link
D. Negative binomial regression with a log link

44 Which regression method estimates the conditional median of given and is comparatively resistant to extreme response values?

Types of regression Hard
A. Median quantile regression using absolute loss
B. Poisson regression using deviance loss
C. Ridge regression using an penalty
D. Ordinary least squares using squared loss

45 A model is written as . How should it be classified?

Types of regression Hard
A. Nonparametric because it uses a transformed predictor
B. Logistic because its fitted curve is nonlinear
C. Nonlinear because the predictor is squared
D. Linear because it is linear in the coefficients

46 In an ordinary least-squares model, one predictor is an exact linear combination of two others. Which statement is correct?

Machine linear regression Hard
A. The coefficients are non-unique, but fitted values can be unique
B. The coefficients are unique, but fitted values are not
C. Both coefficients and fitted values must be non-unique
D. Both coefficients and fitted values remain unique automatically

47 Assume , but varies with . Under otherwise standard conditions, what is true of ordinary least squares?

Machine linear regression Hard
A. Its coefficients are inconsistent and robust errors restore consistency
B. Its coefficients are efficient and its residuals become homoscedastic
C. Its coefficients are unbiased and its usual standard errors may fail
D. Its coefficients are biased and its usual standard errors are valid

48 A linear model includes , , and their interaction . After replacing by while retaining all corresponding terms, what remains unchanged?

Machine linear regression Hard
A. The coefficient of only
B. The fitted values for all observations
C. Every individual coefficient estimate
D. The coefficient of only

49 A model for has residuals . If the fitted log-response is , what estimates the conditional mean under this assumption?

Machine linear regression Hard
A.
B.
C.
D.

50 In a logistic model , what does represent?

Machine logistic regression Hard
A. The odds ratio for a two-unit increase in
B. The log-odds change for a one-unit increase in
C. The probability increase for a two-unit increase in
D. The probability ratio for a two-unit increase in

51 A predictor perfectly separates the two outcome classes in unregularized logistic regression. What typically happens to its maximum-likelihood coefficient estimate?

Machine logistic regression Hard
A. It remains finite but has zero standard error
B. It converges to exactly zero
C. It equals the corresponding linear-regression coefficient
D. It diverges toward positive or negative infinity

52 A calibrated classifier outputs . A false positive costs , a false negative costs , and correct decisions cost . At what threshold should class be predicted?

Machine logistic regression Hard
A. Predict class when
B. Predict class when
C. Predict class when
D. Predict class when

53 A fitted logistic model assigns every observation the same probability equal to the sample prevalence. Which property does it have on that same sample?

Machine logistic regression Hard
A. Perfect ranking but poor calibration
B. No ranking ability but calibration in the large
C. No ranking ability and necessarily zero likelihood
D. Perfect ranking and perfect calibration

54 Two predictors use different measurement scales, and ridge regression applies one common penalty parameter without standardizing them. What is the main consequence?

Regularization Hard
A. The intercept is forced to equal the response mean
B. Shrinkage depends on the arbitrary measurement scales
C. Ridge becomes equivalent to best-subset selection
D. The penalty becomes invariant to predictor units

55 When several predictors are strongly correlated and all carry signal, which behavior most clearly distinguishes elastic net from pure lasso?

Regularization Hard
A. It always selects exactly one correlated predictor
B. It leaves all nonzero coefficients completely unshrunk
C. It tends to retain correlated predictors as a group
D. It guarantees identical coefficients for correlated predictors

56 As the ridge penalty parameter increases from while the intercept remains unpenalized, which change is generally expected?

Regularization Hard
A. Training error and coefficient variance both decrease
B. Training error decreases and coefficient variance increases
C. Training error and coefficient variance both increase
D. Training error increases and coefficient variance decreases

57 Why can lasso produce exactly zero coefficients while ridge generally does not?

Regularization Hard
A. The penalty makes the loss function differentiable at zero
B. The penalty assigns no cost to small coefficients
C. The constraint removes all coefficient correlations
D. The constraint has corners where optima can occur

58 An ordinary least-squares model with an intercept is evaluated on a separate test set and has . What does this mean?

Performance metrics Hard
A. Its test MSE exceeds predicting the test-set mean
B. Its fitted coefficients must all have incorrect signs
C. Its test correlation with the response must be negative
D. Its residual sum of squares must be negative

59 For a nested ordinary least-squares model, adding one predictor increases adjusted precisely when which condition holds?

Performance metrics Hard
A. The ordinary remains exactly unchanged
B. The predictor's partial statistic exceeds
C. The predictor's coefficient is positive
D. The predictor's partial statistic exceeds

60 A binary classifier has ROC-AUC on a population with no tied scores. Which interpretation is correct?

Performance metrics Hard
A. It ranks a random positive above a random negative with probability
B. Its accuracy is at every classification threshold
C. Its predicted probabilities are correct in of cases
D. It identifies of positives with no false positives