Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 9 MCQsRegression Models
ECAP792 ·
60 questions. Pick an option to check it.
Question 1 of 60 · Introduction to regression · Easy
What is the main purpose of regression analysis?
Not quite. Try another option.
Answer: To predict a numerical outcome
Regression models relationships between variables and commonly predicts a continuous numerical outcome.
Question 2 of 60 · Introduction to regression · Easy
In regression, what is the variable being predicted called?
Not quite. Try another option.
Answer: Dependent variable
The dependent variable is the outcome or target that a regression model predicts.
Question 3 of 60 · Introduction to regression · Easy
Which task is most suitable for a regression model?
Not quite. Try another option.
Answer: Predicting the price of a house
A house price is a continuous numerical value, making it suitable for regression.
Question 4 of 60 · Types of regression · Easy
What does simple linear regression use to predict an outcome?
Not quite. Try another option.
Answer: One predictor variable
Simple linear regression uses one predictor variable and one dependent variable.
Question 5 of 60 · Types of regression · Easy
Which regression type uses two or more predictor variables?
Not quite. Try another option.
Answer: Multiple linear regression
Multiple linear regression predicts an outcome using two or more predictor variables.
Question 6 of 60 · Types of regression · Easy
Which type of regression can represent a curved relationship by including powers of a predictor?
Not quite. Try another option.
Answer: Polynomial regression
Polynomial regression includes terms such as or to represent curved relationships.
Question 7 of 60 · Machine linear regression · Easy
Which equation represents a simple linear regression model?
Not quite. Try another option.
Answer:
A simple linear regression model represents a straight line using slope and intercept .
Question 8 of 60 · Machine linear regression · Easy
In the equation , what does represent?
Not quite. Try another option.
Answer: The line's slope
The slope describes how much is expected to change when increases by one unit.
Question 9 of 60 · Machine linear regression · Easy
What is a residual in linear regression?
Not quite. Try another option.
Answer: The observed value minus the predicted value
A residual is the difference between an observed value and the value predicted by the model.
Question 10 of 60 · Machine linear regression · Easy
What does fitting a linear regression model usually try to minimize?
Not quite. Try another option.
Answer: Prediction errors
Model fitting selects coefficients that make prediction errors as small as possible.
Question 11 of 60 · Machine logistic regression · Easy
Logistic regression is mainly used for which kind of task?
Not quite. Try another option.
Answer: Classification
Logistic regression estimates class probabilities and is commonly used for classification.
Question 12 of 60 · Machine logistic regression · Easy
What range of values does the sigmoid function produce?
Not quite. Try another option.
Answer: Between and
The sigmoid function maps its input to a value between and , which can represent a probability.
Question 13 of 60 · Machine logistic regression · Easy
In binary logistic regression, how many possible target classes are there?
Not quite. Try another option.
Answer: Two
Binary logistic regression predicts one of two classes, such as yes or no.
Question 14 of 60 · Regularization · Easy
What is the main purpose of regularization?
Not quite. Try another option.
Answer: To reduce overfitting
Regularization discourages overly complex models and can improve performance on unseen data.
Question 15 of 60 · Regularization · Easy
Which regularization method uses the absolute values of model coefficients?
Not quite. Try another option.
Answer: L1 regularization
L1 regularization adds a penalty based on the absolute values of the coefficients.
Question 16 of 60 · Regularization · Easy
Which regularization method uses squared model coefficients in its penalty?
Not quite. Try another option.
Answer: L2 regularization
L2 regularization applies a penalty based on the squares of the model coefficients.
Question 17 of 60 · Performance metrics · Easy
What does Mean Absolute Error (MAE) measure?
Not quite. Try another option.
Answer: The average absolute prediction error
MAE is the average of the absolute differences between observed and predicted values.
Question 18 of 60 · Performance metrics · Easy
Which metric gives larger errors more weight by squaring them?
Not quite. Try another option.
Answer: Mean Squared Error
Mean Squared Error squares prediction errors, so larger errors have a greater effect.
Question 19 of 60 · Performance metrics · Easy
What does an value close to generally indicate?
Not quite. Try another option.
Answer: The model explains much of the outcome's variation
An value close to indicates that the model explains a large proportion of the outcome's variation.
Question 20 of 60 · Performance metrics · Easy
Which metric is commonly used to measure the proportion of correct logistic regression classifications?
Not quite. Try another option.
Answer: Accuracy
Accuracy is the proportion of predictions for which the predicted class matches the actual class.
Question 21 of 60 · Introduction to regression · Medium
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?
Not quite. Try another option.
Answer:
The residual is .
Question 22 of 60 · Introduction to regression · Medium
A residual plot shows residuals forming a clear curved pattern around zero. What does this most strongly suggest?
Not quite. Try another option.
Answer: The relationship is nonlinear
A systematic curve in the residuals indicates that a linear model has not captured the relationship adequately.
Question 23 of 60 · Types of regression · Medium
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?
Not quite. Try another option.
Answer: Multiple linear regression
Multiple linear regression predicts a continuous response using two or more predictor variables.
Question 24 of 60 · Types of regression · Medium
The relationship between temperature and electricity demand is U-shaped. Which model can represent this pattern directly?
Not quite. Try another option.
Answer:
A quadratic polynomial term allows the fitted relationship to bend and represent a U-shaped pattern.
Question 25 of 60 · Types of regression · Medium
Why is polynomial regression considered a form of linear regression?
Not quite. Try another option.
Answer: It is linear in its coefficients
Polynomial regression may be nonlinear in , but the coefficients enter the model linearly.
Question 26 of 60 · Machine linear regression · Medium
A fitted model is . What prediction does it produce when ?
Not quite. Try another option.
Answer:
Substituting gives .
Question 27 of 60 · Machine linear regression · Medium
In the model , how should the coefficient of be interpreted?
Not quite. Try another option.
Answer: A one-unit increase in raises predicted by , holding fixed
A linear coefficient measures the change in the predicted response per unit change in that predictor, with other predictors held constant.
Question 28 of 60 · Machine linear regression · Medium
Two predictors have ranges to and to . Why might standardizing them help when fitting linear regression with gradient descent?
Not quite. Try another option.
Answer: It can improve convergence speed
Standardization places features on comparable scales, which can make gradient descent more stable and faster.
Question 29 of 60 · Machine linear regression · Medium
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?
Not quite. Try another option.
Answer: Overfitting
Irrelevant predictors can cause the model to learn training-specific noise, reducing its ability to generalize.
Question 30 of 60 · Machine logistic regression · Medium
A logistic regression model outputs for a customer. What does this value normally represent?
Not quite. Try another option.
Answer: The estimated probability of the positive class
Logistic regression maps its linear score to an estimated probability between and .
Question 31 of 60 · Machine logistic regression · Medium
Using a classification threshold of , which class is assigned to an observation with predicted probability ?
Not quite. Try another option.
Answer: Negative class
Because , the observation is assigned to the negative class.
Question 32 of 60 · Machine logistic regression · Medium
In logistic regression, a predictor has coefficient . Holding other variables constant, how does a one-unit increase in that predictor affect the odds?
Not quite. Try another option.
Answer: It doubles the odds
The odds multiplier is , so the odds double.
Question 33 of 60 · Machine logistic regression · Medium
A fraud detector misses too many fraudulent transactions. Which threshold change is most likely to increase recall for the fraud class?
Not quite. Try another option.
Answer: Lower the classification threshold
Lowering the threshold labels more cases as positive, usually reducing false negatives and increasing recall.
Question 34 of 60 · Regularization · Medium
Which regularization method is most suitable when the goal is to shrink coefficients while generally retaining all predictors?
Not quite. Try another option.
Answer: Ridge regression
Ridge applies an penalty that shrinks coefficients toward zero but usually does not set them exactly to zero.
Question 35 of 60 · Regularization · Medium
A dataset contains many predictors, but only a small subset is believed to be useful. Which method can perform implicit feature selection?
Not quite. Try another option.
Answer: Lasso regression
The penalty used by lasso can force some coefficients to exactly zero, effectively selecting features.
Question 36 of 60 · Regularization · Medium
As the regularization parameter becomes very large, what usually happens to a regularized regression model?
Not quite. Try another option.
Answer: Coefficient magnitudes decrease
A larger imposes a stronger penalty, causing coefficient estimates to shrink more.
Question 37 of 60 · Performance metrics · Medium
A regression model produces errors , , and . What is its mean absolute error?
Not quite. Try another option.
Answer:
The MAE is .
Question 38 of 60 · Performance metrics · Medium
A model has on a test set. Which interpretation is most appropriate?
Not quite. Try another option.
Answer: It explains about of the response variance in that test set
measures the proportion of response variance explained relative to a baseline that predicts the mean.
Question 39 of 60 · Performance metrics · Medium
A classifier has true positives and false positives. What is its precision?
Not quite. Try another option.
Answer:
Precision is .
Question 40 of 60 · Performance metrics · Medium
Two regression models have similar MAE values, but Model A has a much larger RMSE. What is the most likely explanation?
Not quite. Try another option.
Answer: Model A has some unusually large errors
RMSE squares errors before averaging, so it is more sensitive than MAE to a small number of large errors.
Question 41 of 60 · Introduction to regression · Hard
In the population model , suppose . A researcher omits and regresses only on . When is the resulting slope for unbiased for ?
Not quite. Try another option.
Answer: or
The omitted-variable bias is . It vanishes if has no effect or is uncorrelated with .
Question 42 of 60 · Introduction to regression · Hard
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?
Not quite. Try another option.
Answer: The model may predict well without identifying the causal effect
Predictive accuracy does not establish causal identification. An omitted confounder can bias the estimated effect even when predictions remain accurate.
Question 43 of 60 · Types of regression · Hard
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?
Not quite. Try another option.
Answer: Negative binomial regression with a log link
Negative binomial regression introduces a dispersion parameter and is designed for overdispersed count data.
Question 44 of 60 · Types of regression · Hard
Which regression method estimates the conditional median of given and is comparatively resistant to extreme response values?
Not quite. Try another option.
Answer: Median quantile regression using absolute loss
Quantile regression at minimizes absolute loss and estimates the conditional median rather than the conditional mean.
Question 45 of 60 · Types of regression · Hard
A model is written as . How should it be classified?
Not quite. Try another option.
Answer: Linear because it is linear in the coefficients
A regression is linear when the coefficients enter linearly. Polynomial transformations of predictors do not make it nonlinear in the parameters.
Question 46 of 60 · Machine linear regression · Hard
In an ordinary least-squares model, one predictor is an exact linear combination of two others. Which statement is correct?
Not quite. Try another option.
Answer: The coefficients are non-unique, but fitted values can be unique
Rank deficiency prevents unique coefficient estimates, but every least-squares solution can produce the same projection and therefore the same fitted values.
Question 47 of 60 · Machine linear regression · Hard
Assume , but varies with . Under otherwise standard conditions, what is true of ordinary least squares?
Not quite. Try another option.
Answer: Its coefficients are unbiased and its usual standard errors may fail
Heteroscedasticity does not bias OLS coefficients under conditional mean independence, but conventional homoscedastic standard errors are generally incorrect.
Question 48 of 60 · Machine linear regression · Hard
A linear model includes , , and their interaction . After replacing by while retaining all corresponding terms, what remains unchanged?
Not quite. Try another option.
Answer: The fitted values for all observations
Centering changes the parameterization and some coefficient interpretations, but the transformed design spans the same model space, leaving fitted values unchanged.
Question 49 of 60 · Machine linear regression · Hard
A model for has residuals . If the fitted log-response is , what estimates the conditional mean under this assumption?
Not quite. Try another option.
Answer:
For a log-normal response, . Direct exponentiation estimates the conditional median instead.
Question 50 of 60 · Machine logistic regression · Hard
In a logistic model , what does represent?
Not quite. Try another option.
Answer: The odds ratio for a two-unit increase in
A two-unit increase changes the log-odds by , so it multiplies the odds by .
Question 51 of 60 · Machine logistic regression · Hard
A predictor perfectly separates the two outcome classes in unregularized logistic regression. What typically happens to its maximum-likelihood coefficient estimate?
Not quite. Try another option.
Answer: It diverges toward positive or negative infinity
Under complete separation, increasingly large coefficient magnitudes continually improve the likelihood, so no finite maximum-likelihood estimate exists.
Question 52 of 60 · Machine logistic regression · Hard
A calibrated classifier outputs . A false positive costs , a false negative costs , and correct decisions cost . At what threshold should class be predicted?
Not quite. Try another option.
Answer: Predict class when
Predict class when , which simplifies to .
Question 53 of 60 · Machine logistic regression · Hard
A fitted logistic model assigns every observation the same probability equal to the sample prevalence. Which property does it have on that same sample?
Not quite. Try another option.
Answer: No ranking ability but calibration in the large
Constant predictions cannot rank positive cases above negative cases, but their average equals the observed prevalence, giving calibration in the large.
Question 54 of 60 · Regularization · Hard
Two predictors use different measurement scales, and ridge regression applies one common penalty parameter without standardizing them. What is the main consequence?
Not quite. Try another option.
Answer: Shrinkage depends on the arbitrary measurement scales
A coefficient's magnitude depends on its predictor's units. Without standardization, the ridge penalty treats equivalent effects differently across scales.
Question 55 of 60 · Regularization · Hard
When several predictors are strongly correlated and all carry signal, which behavior most clearly distinguishes elastic net from pure lasso?
Not quite. Try another option.
Answer: It tends to retain correlated predictors as a group
The component of elastic net encourages a grouping effect, whereas lasso often selects one predictor from a correlated set.
Question 56 of 60 · Regularization · Hard
As the ridge penalty parameter increases from while the intercept remains unpenalized, which change is generally expected?
Not quite. Try another option.
Answer: Training error increases and coefficient variance decreases
Stronger shrinkage restricts the fitted model, typically increasing training error while reducing coefficient variance and potentially improving test error.
Question 57 of 60 · Regularization · Hard
Why can lasso produce exactly zero coefficients while ridge generally does not?
Not quite. Try another option.
Answer: The constraint has corners where optima can occur
The geometry and non-differentiability of the penalty at zero allow solutions to land exactly on coordinate axes.
Question 58 of 60 · Performance metrics · Hard
An ordinary least-squares model with an intercept is evaluated on a separate test set and has . What does this mean?
Not quite. Try another option.
Answer: Its test MSE exceeds predicting the test-set mean
Negative test means the model's squared prediction error exceeds the baseline error obtained by always predicting the test response mean.
Question 59 of 60 · Performance metrics · Hard
For a nested ordinary least-squares model, adding one predictor increases adjusted precisely when which condition holds?
Not quite. Try another option.
Answer: The predictor's partial statistic exceeds
Adjusted rewards the reduction in residual error only when it exceeds the degrees-of-freedom penalty; for one added predictor, this is equivalent to partial .
Question 60 of 60 · Performance metrics · Hard
A binary classifier has ROC-AUC on a population with no tied scores. Which interpretation is correct?
Not quite. Try another option.
Answer: It ranks a random positive above a random negative with probability
ROC-AUC is the probability that a randomly chosen positive receives a higher score than a randomly chosen negative, assuming no ties.
That's unit 9
Answer a few questions and your score shows up here.
Nearly through. Did unit 9 of ECAP792 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 9 of ECAP792 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.