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 encrypt sensitive records
B. To sort data alphabetically
C. To remove every missing value
D. To predict a numerical outcome

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

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

3 Which task is most suitable for a regression model?

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

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

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

5 Which regression type uses two or more predictor variables?

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

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

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

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 error total
B. The line's slope
C. The sample size
D. The predicted class

9 What is a residual in linear regression?

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

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

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

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

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

12 What range of values does the sigmoid function produce?

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

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

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

14 What is the main purpose of regularization?

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

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

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

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

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

17 What does Mean Absolute Error (MAE) measure?

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

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

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

19 What does an value close to generally indicate?

Performance metrics Easy
A. The model has no predictor variables
B. The model explains much of the outcome's variation
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. Range
B. Mean
C. Variance
D. Accuracy

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 errors have zero mean
B. The model is over-regularized
C. The response variable should always be replaced with a categorical variable
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. Binary logistic regression
B. Multiple linear regression
C. Univariate polynomial regression
D. Simple 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 is linear in its coefficients
B. It always produces a straight line
C. It requires every polynomial feature to have a linear relationship with the original response
D. It uses only one predictor value

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 raises predicted by , holding fixed
D. A one-unit increase in guarantees that the observed response rises by exactly in every case

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 guarantees zero training error
B. It can improve convergence speed
C. It converts the response into classes
D. It removes all correlated features

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. Overfitting
C. Response normalization
D. Perfect calibration

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. Positive class
D. Negative 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 probability for every observation regardless of its original predicted probability
B. It doubles the odds
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. Raise the classification threshold
B. Lower the classification threshold
C. Keep only true negatives
D. Replace probabilities with residuals

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

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

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. Ridge regression
B. Unpenalized least squares
C. Lasso regression
D. Simple averaging

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

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

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. Its average prediction error is response units
B. It explains about of the response variance in that test set
C. It proves that every predictor causes a change in the response variable
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 has some unusually large errors
B. Model A converts all continuous predictions into binary class labels before calculating both metrics
C. Model A has fewer predictor variables
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.
C. or
D. and

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. The model estimates the causal effect because prediction is accurate
B. The model may predict well without identifying the causal effect
C. The confounder matters only when residuals are non-normal
D. Cross-validation removes bias caused by the confounder

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. Ridge regression using an penalty
C. Ordinary least squares using squared loss
D. Poisson regression using deviance loss

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

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

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. Both coefficients and fitted values must be non-unique
C. Both coefficients and fitted values remain unique automatically
D. The coefficients are unique, but fitted values are not

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

Machine linear regression Hard
A. Its coefficients are unbiased and its usual standard errors may fail
B. Its coefficients are inconsistent and robust errors restore consistency
C. Its coefficients are efficient and its residuals become homoscedastic
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. Every individual coefficient estimate
C. The fitted values for all observations
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 probability increase for a two-unit increase in
B. The log-odds change for a one-unit increase in
C. The odds ratio 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 converges to exactly zero
B. It equals the corresponding linear-regression coefficient
C. It remains finite but has zero standard error
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 and necessarily zero likelihood
C. No ranking ability but calibration in the large
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. Ridge becomes equivalent to best-subset selection
B. The penalty becomes invariant to predictor units
C. Shrinkage depends on the arbitrary measurement scales
D. The intercept is forced to equal the response mean

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 guarantees identical coefficients for correlated predictors
B. It always selects exactly one correlated predictor
C. It leaves all nonzero coefficients completely unshrunk
D. It tends to retain correlated predictors as a group

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

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

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 has corners where optima can occur
D. The constraint removes all coefficient correlations

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 residual sum of squares must be negative
B. Its test MSE exceeds predicting the test-set mean
C. Its fitted coefficients must all have incorrect signs
D. Its test correlation with the response 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 identifies of positives with no false positives
B. Its accuracy is at every classification threshold
C. It ranks a random positive above a random negative with probability
D. Its predicted probabilities are correct in of cases