Regression models relationships between variables and commonly predicts a continuous numerical outcome.
Incorrect! Try again.
2In 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
Correct Answer: Dependent variable
Explanation:
The dependent variable is the outcome or target that a regression model predicts.
Incorrect! Try again.
3Which 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
Correct Answer: Predicting the price of a house
Explanation:
A house price is a continuous numerical value, making it suitable for regression.
Incorrect! Try again.
4What 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
Correct Answer: One predictor variable
Explanation:
Simple linear regression uses one predictor variable and one dependent variable.
Incorrect! Try again.
5Which 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
Correct Answer: Multiple linear regression
Explanation:
Multiple linear regression predicts an outcome using two or more predictor variables.
Incorrect! Try again.
6Which 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
Correct Answer: Polynomial regression
Explanation:
Polynomial regression includes terms such as or to represent curved relationships.
Incorrect! Try again.
7Which equation represents a simple linear regression model?
Machine linear regression
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
A simple linear regression model represents a straight line using slope and intercept .
Incorrect! Try again.
8In 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
Correct Answer: The line's slope
Explanation:
The slope describes how much is expected to change when increases by one unit.
Incorrect! Try again.
9What 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
Correct Answer: The observed value minus the predicted value
Explanation:
A residual is the difference between an observed value and the value predicted by the model.
Incorrect! Try again.
10What 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
Correct Answer: Prediction errors
Explanation:
Model fitting selects coefficients that make prediction errors as small as possible.
Incorrect! Try again.
11Logistic regression is mainly used for which kind of task?
Machine logistic regression
Easy
A.Classification
B.Data sorting
C.Clustering
D.File compression
Correct Answer: Classification
Explanation:
Logistic regression estimates class probabilities and is commonly used for classification.
Incorrect! Try again.
12What 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
Correct Answer: Between and
Explanation:
The sigmoid function maps its input to a value between and , which can represent a probability.
Incorrect! Try again.
13In binary logistic regression, how many possible target classes are there?
Machine logistic regression
Easy
A.Three
B.Two
C.Four
D.One
Correct Answer: Two
Explanation:
Binary logistic regression predicts one of two classes, such as yes or no.
Incorrect! Try again.
14What 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
Correct Answer: To reduce overfitting
Explanation:
Regularization discourages overly complex models and can improve performance on unseen data.
Incorrect! Try again.
15Which regularization method uses the absolute values of model coefficients?
Regularization
Easy
A.L1 regularization
B.Linear interpolation
C.Logistic transformation
D.L2 regularization
Correct Answer: L1 regularization
Explanation:
L1 regularization adds a penalty based on the absolute values of the coefficients.
Incorrect! Try again.
16Which 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
Correct Answer: L2 regularization
Explanation:
L2 regularization applies a penalty based on the squares of the model coefficients.
Incorrect! Try again.
17What 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
Correct Answer: The average absolute prediction error
Explanation:
MAE is the average of the absolute differences between observed and predicted values.
Incorrect! Try again.
18Which 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
Correct Answer: Mean Squared Error
Explanation:
Mean Squared Error squares prediction errors, so larger errors have a greater effect.
Incorrect! Try again.
19What 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
Correct Answer: The model explains much of the outcome's variation
Explanation:
An value close to indicates that the model explains a large proportion of the outcome's variation.
Incorrect! Try again.
20Which metric is commonly used to measure the proportion of correct logistic regression classifications?
Performance metrics
Easy
A.Accuracy
B.Mean
C.Variance
D.Range
Correct Answer: Accuracy
Explanation:
Accuracy is the proportion of predictions for which the predicted class matches the actual class.
Incorrect! Try again.
21A 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.
Correct Answer:
Explanation:
The residual is .
Incorrect! Try again.
22A 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
Correct Answer: The relationship is nonlinear
Explanation:
A systematic curve in the residuals indicates that a linear model has not captured the relationship adequately.
Incorrect! Try again.
23A 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
Correct Answer: Multiple linear regression
Explanation:
Multiple linear regression predicts a continuous response using two or more predictor variables.
Incorrect! Try again.
24The relationship between temperature and electricity demand is U-shaped. Which model can represent this pattern directly?
Types of regression
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A quadratic polynomial term allows the fitted relationship to bend and represent a U-shaped pattern.
Incorrect! Try again.
25Why 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
Correct Answer: It is linear in its coefficients
Explanation:
Polynomial regression may be nonlinear in , but the coefficients enter the model linearly.
Incorrect! Try again.
26A fitted model is . What prediction does it produce when ?
Machine linear regression
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Substituting gives .
Incorrect! Try again.
27In 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
Correct Answer: A one-unit increase in raises predicted by , holding fixed
Explanation:
A linear coefficient measures the change in the predicted response per unit change in that predictor, with other predictors held constant.
Incorrect! Try again.
28Two 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
Correct Answer: It can improve convergence speed
Explanation:
Standardization places features on comparable scales, which can make gradient descent more stable and faster.
Incorrect! Try again.
29A 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
Correct Answer: Overfitting
Explanation:
Irrelevant predictors can cause the model to learn training-specific noise, reducing its ability to generalize.
Incorrect! Try again.
30A 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
Correct Answer: The estimated probability of the positive class
Explanation:
Logistic regression maps its linear score to an estimated probability between and .
Incorrect! Try again.
31Using 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
Correct Answer: Negative class
Explanation:
Because , the observation is assigned to the negative class.
Incorrect! Try again.
32In 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
Correct Answer: It doubles the odds
Explanation:
The odds multiplier is , so the odds double.
Incorrect! Try again.
33A 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
Correct Answer: Lower the classification threshold
Explanation:
Lowering the threshold labels more cases as positive, usually reducing false negatives and increasing recall.
Incorrect! Try again.
34Which 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
Correct Answer: Ridge regression
Explanation:
Ridge applies an penalty that shrinks coefficients toward zero but usually does not set them exactly to zero.
Incorrect! Try again.
35A 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
Correct Answer: Lasso regression
Explanation:
The penalty used by lasso can force some coefficients to exactly zero, effectively selecting features.
Incorrect! Try again.
36As 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
Correct Answer: Coefficient magnitudes decrease
Explanation:
A larger imposes a stronger penalty, causing coefficient estimates to shrink more.
Incorrect! Try again.
37A regression model produces errors , , and . What is its mean absolute error?
Performance metrics
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The MAE is .
Incorrect! Try again.
38A 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
Correct Answer: It explains about of the response variance in that test set
Explanation:
measures the proportion of response variance explained relative to a baseline that predicts the mean.
Incorrect! Try again.
39A classifier has true positives and false positives. What is its precision?
Performance metrics
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Precision is .
Incorrect! Try again.
40Two 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
Correct Answer: Model A has some unusually large errors
Explanation:
RMSE squares errors before averaging, so it is more sensitive than MAE to a small number of large errors.
Incorrect! Try again.
41In 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
Correct Answer: or
Explanation:
The omitted-variable bias is . It vanishes if has no effect or is uncorrelated with .
Incorrect! Try again.
42A 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
Correct Answer: The model may predict well without identifying the causal effect
Explanation:
Predictive accuracy does not establish causal identification. An omitted confounder can bias the estimated effect even when predictions remain accurate.
Incorrect! Try again.
43A 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
Correct Answer: Negative binomial regression with a log link
Explanation:
Negative binomial regression introduces a dispersion parameter and is designed for overdispersed count data.
Incorrect! Try again.
44Which 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
Correct Answer: Median quantile regression using absolute loss
Explanation:
Quantile regression at minimizes absolute loss and estimates the conditional median rather than the conditional mean.
Incorrect! Try again.
45A 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
Correct Answer: Linear because it is linear in the coefficients
Explanation:
A regression is linear when the coefficients enter linearly. Polynomial transformations of predictors do not make it nonlinear in the parameters.
Incorrect! Try again.
46In 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
Correct Answer: The coefficients are non-unique, but fitted values can be unique
Explanation:
Rank deficiency prevents unique coefficient estimates, but every least-squares solution can produce the same projection and therefore the same fitted values.
Incorrect! Try again.
47Assume , 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
Correct Answer: Its coefficients are unbiased and its usual standard errors may fail
Explanation:
Heteroscedasticity does not bias OLS coefficients under conditional mean independence, but conventional homoscedastic standard errors are generally incorrect.
Incorrect! Try again.
48A 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
Correct Answer: The fitted values for all observations
Explanation:
Centering changes the parameterization and some coefficient interpretations, but the transformed design spans the same model space, leaving fitted values unchanged.
Incorrect! Try again.
49A 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.
Correct Answer:
Explanation:
For a log-normal response, . Direct exponentiation estimates the conditional median instead.
Incorrect! Try again.
50In 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
Correct Answer: The odds ratio for a two-unit increase in
Explanation:
A two-unit increase changes the log-odds by , so it multiplies the odds by .
Incorrect! Try again.
51A 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
Correct Answer: It diverges toward positive or negative infinity
Explanation:
Under complete separation, increasingly large coefficient magnitudes continually improve the likelihood, so no finite maximum-likelihood estimate exists.
Incorrect! Try again.
52A 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
Correct Answer: Predict class when
Explanation:
Predict class when , which simplifies to .
Incorrect! Try again.
53A 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
Correct Answer: No ranking ability but calibration in the large
Explanation:
Constant predictions cannot rank positive cases above negative cases, but their average equals the observed prevalence, giving calibration in the large.
Incorrect! Try again.
54Two 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
Correct Answer: Shrinkage depends on the arbitrary measurement scales
Explanation:
A coefficient's magnitude depends on its predictor's units. Without standardization, the ridge penalty treats equivalent effects differently across scales.
Incorrect! Try again.
55When 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
Correct Answer: It tends to retain correlated predictors as a group
Explanation:
The component of elastic net encourages a grouping effect, whereas lasso often selects one predictor from a correlated set.
Incorrect! Try again.
56As 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
Correct Answer: Training error increases and coefficient variance decreases
Explanation:
Stronger shrinkage restricts the fitted model, typically increasing training error while reducing coefficient variance and potentially improving test error.
Incorrect! Try again.
57Why 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
Correct Answer: The constraint has corners where optima can occur
Explanation:
The geometry and non-differentiability of the penalty at zero allow solutions to land exactly on coordinate axes.
Incorrect! Try again.
58An 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
Correct Answer: Its test MSE exceeds predicting the test-set mean
Explanation:
Negative test means the model's squared prediction error exceeds the baseline error obtained by always predicting the test response mean.
Incorrect! Try again.
59For 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
Correct Answer: The predictor's partial statistic exceeds
Explanation:
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 .
Incorrect! Try again.
60A 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
Correct Answer: It ranks a random positive above a random negative with probability
Explanation:
ROC-AUC is the probability that a randomly chosen positive receives a higher score than a randomly chosen negative, assuming no ties.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →