Supervised Machine Learning
- 74Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the defining goal of supervised learning?
What is the defining goal of supervised learning?
74 questions
- 1
What is the defining goal of supervised learning?
- A
Generating new observations from an estimated probability distribution
- B
Reducing the number of observations without modeling a response
- C
Discovering structure in predictors when no response is available
- D
Using predictors to predict or detect an association with a known response
Correct answer
DUsing predictors to predict or detect an association with a known response
Explanation
Supervised learning uses a data set of predictors, X, to predict or detect an association with a response, Y.
- A
- 2
Which situation best represents unsupervised learning?
- A
Predicting blood pressure from biomarkers with measured blood pressure values
- B
Estimating salary from player characteristics and known salaries
- C
Predicting disease subtype from gene-expression measurements
- D
Discovering signal in a data matrix when no response variable is available
Correct answer
DDiscovering signal in a data matrix when no response variable is available
Explanation
Unsupervised learning seeks to discover signal in X when no response variable, Y, is available.
- A
- 3
What type of response defines a regression problem?
- A
A quantitative response such as blood pressure or tumor size
- B
A response that contains only missing values
- C
A categorical response such as disease subtype
- D
A response that is always a binary indicator
Correct answer
AA quantitative response such as blood pressure or tumor size
Explanation
Regression is supervised learning used to predict a quantitative response, such as blood pressure, cholesterol level, or tumor size.
- A
- 4
What type of response defines a classification problem?
- A
A response consisting only of censored survival times
- B
A categorical or qualitative response such as tumor status
- C
A continuous numerical response such as cholesterol level
- D
A response formed by averaging all predictor variables
Correct answer
BA categorical or qualitative response such as tumor status
Explanation
Classification predicts a categorical or qualitative response, such as tumor versus normal tissue or disease subtype.
- A
- 5
A study uses categorical predictors to predict a numerical cholesterol level. How should the problem be categorized?
- A
As unsupervised learning because the predictors are nonnumeric
- B
As regression because the response is quantitative
- C
As survival analysis because cholesterol is measured over time
- D
As classification because the predictors are categorical
Correct answer
BAs regression because the response is quantitative
Explanation
The type of supervised-learning problem is determined by the response, not by the data type of the predictor matrix. A quantitative response makes this regression.
- A
- 6
A study uses numerical predictors to predict whether tissue is tumorous or normal. How should the problem be categorized?
- A
As classification because the response is categorical
- B
As unsupervised learning because tissue status is qualitative
- C
As regression because the predictors are numerical
- D
As dimension reduction because the predictors are measurements
Correct answer
AAs classification because the response is categorical
Explanation
A categorical response makes the problem classification, regardless of whether the predictors are numerical or categorical.
- A
- 7
Which response represents a distinct supervised-learning setting mentioned in the content?
- A
A categorical feature with several levels
- B
A principal component with high variability
- C
A survival time that may be censored
- D
A predictor matrix with highly correlated variables
Correct answer
CA survival time that may be censored
Explanation
Survival time, especially when it may be censored because participants die or leave the study, is another flavor of supervised learning.
- A
- 8
What is the central difference between regression and classification?
- A
The type of response being predicted
- B
Whether the model is fitted using a computer
- C
The number of predictors in the data matrix
- D
Whether the predictors are biological measurements
Correct answer
AThe type of response being predicted
Explanation
Regression predicts quantitative responses, whereas classification predicts categorical responses. The predictor matrix can have either type of data in both settings.
- A
- 9
In a linear model, what does the coefficient βj​ represent?
- A
The coefficient multiplying the jth feature
- B
The fitted response for the jth observation
- C
The total number of observations in the data set
- D
The error associated with the jth observation
Correct answer
AThe coefficient multiplying the jth feature
Explanation
In the model yi​=β0​+β1​xi1​+⋯+βP​xiP​+ϵi​, βj​ multiplies the jth feature.
- A
- 10
What is the role of the term ϵi​ in a linear model?
- A
It represents noise associated with observation i
- B
It represents the first predictor for observation i
- C
It represents the intercept of the fitted model
- D
It represents the average response across all observations
Correct answer
AIt represents noise associated with observation i
Explanation
The term ϵi​ is the noise term associated with the ith observation.
- A
- 11
What does a hat on a coefficient, such as β^​j​, indicate?
- A
That the coefficient is known to equal zero
- B
That the coefficient is the true population parameter
- C
That the coefficient is a categorical variable
- D
That the coefficient is an estimate obtained by fitting the model
Correct answer
DThat the coefficient is an estimate obtained by fitting the model
Explanation
A hat indicates an estimated quantity, such as a coefficient estimate obtained from the data.
- A
- 12
What objective does least squares use to fit a linear model?
- A
It minimizes the sum of squared differences between observed and fitted responses
- B
It minimizes the number of observations used for training
- C
It maximizes the number of predictors included in the model
- D
It forces every coefficient estimate to equal exactly zero
Correct answer
AIt minimizes the sum of squared differences between observed and fitted responses
Explanation
Least squares chooses coefficient estimates to minimize the residual sum of squares, ∑i​(yi​−y^​i​)2.
- A
- 13
Which expression is the residual sum of squares for fitted responses y^​i​?
- A
∑i​∣yi​−y^​i​∣
- B
∑i​(yi​−y^​i​)2
- C
∑i​(yi​+y^​i​)2
- D
n1​∑i​yi​y^​i​
Correct answer
B∑i​(yi​−y^​i​)2
Explanation
The residual sum of squares is the sum of squared residuals, ∑i​(yi​−y^​i​)2.
- A
- 14
Why is a least squares fit with two predictors represented as a plane?
- A
Because every data set with two predictors must be perfectly fitted
- B
Because least squares can only be used with exactly two predictors
- C
Because the fitted response is a linear function of two features
- D
Because the response is necessarily a two-dimensional vector
Correct answer
CBecause the fitted response is a linear function of two features
Explanation
With two predictors, a linear model defines a plane in the three-dimensional space formed by the two predictors and the response.
- A
- 15
What do the vertical distances from observations to a fitted least squares plane represent?
- A
The number of variables in the model
- B
The coefficient estimates β^​j​
- C
The residuals yi​−y^​i​
- D
The predictor values xij​
Correct answer
CThe residuals yi​−y^​i​
Explanation
The vertical distance between an observed response and its fitted value is the residual, yi​−y^​i​.
- A
- 16
When does ordinary least squares tend to work especially well according to the content?
- A
When the sample size is large and the number of predictors is small
- B
When only two observations are available for many predictors
- C
When the number of predictors greatly exceeds the sample size
- D
When the model is deliberately made more complex than the data
Correct answer
AWhen the sample size is large and the number of predictors is small
Explanation
Least squares works particularly well in the traditional setting where n is large and P is small.
- A
- 17
What is a training set?
- A
A collection of coefficient estimates from repeated experiments
- B
The data used to fit the model
- C
A separate data set used only for final validation
- D
A set containing predictors but no responses
Correct answer
BThe data used to fit the model
Explanation
The training set is the data used to estimate the model parameters and fit the model.
- A
- 18
How is training mean squared error related to residual sum of squares?
- A
It is the residual sum of squares divided by n
- B
It is the residual sum of squares multiplied by n
- C
It is the square root of the residual sum of squares
- D
It is the residual sum of squares plus the number of predictors
Correct answer
AIt is the residual sum of squares divided by n
Explanation
Training mean squared error is n1​∑i​(yi​−y^​i​)2, which is the residual sum of squares divided by n.
- A
- 19
Why is training error not a reliable measure of performance on new observations?
- A
It is always calculated using a categorical response
- B
It can only be calculated when the model has no predictors
- C
It ignores the fitted values produced by the model
- D
It measures fit to data used for fitting rather than to unseen data
Correct answer
DIt measures fit to data used for fitting rather than to unseen data
Explanation
Training error evaluates the model on observations already used to fit it, so it does not directly measure performance on new observations.
- A
- 20
What happens to training error when variables are added to a least squares model?
- A
It is guaranteed to increase with every added variable
- B
It becomes impossible to calculate after one variable is added
- C
It remains exactly constant regardless of the variables
- D
It is guaranteed to decrease or remain unchanged
Correct answer
DIt is guaranteed to decrease or remain unchanged
Explanation
Adding variables gives least squares more flexibility, so the training error cannot increase; it decreases or stays the same.
- A
- 21
What happens to R2 when additional variables are added to a least squares model?
- A
It is forced to equal zero for complex models
- B
It is guaranteed to increase or remain unchanged
- C
It is guaranteed to decrease with every added variable
- D
It becomes unrelated to the training error
Correct answer
BIt is guaranteed to increase or remain unchanged
Explanation
For a least squares model, R2 increases or remains unchanged as predictors are added, just as training error decreases or remains unchanged.
- A
- 22
What is the main purpose of evaluating test error?
- A
To guarantee that every coefficient is statistically significant
- B
To maximize the number of predictors in the final model
- C
To estimate how well the model predicts responses for unseen observations
- D
To determine whether the training observations were measured correctly
Correct answer
CTo estimate how well the model predicts responses for unseen observations
Explanation
Test error measures predictive performance on observations not used to fit the model, which is the relevant goal in supervised machine learning.
- A
- 23
What pattern typically describes test error as model complexity increases?
- A
It decreases continuously regardless of model complexity
- B
It decreases initially, reaches a minimum, and then increases
- C
It remains identical to training error at every complexity level
- D
It increases continuously from the simplest to the most complex model
Correct answer
BIt decreases initially, reaches a minimum, and then increases
Explanation
Test error often follows a U-shaped pattern: it decreases at first, reaches its minimum at an intermediate complexity, and then rises because of overfitting.
- A
- 24
Why can a model with zero training error still have poor predictive performance?
- A
It may have overfit the training observations and generalize poorly
- B
Zero training error proves that the model has excessive bias
- C
Zero training error means that the test set was used incorrectly
- D
A perfect training fit guarantees a perfect test fit only for nonlinear models
Correct answer
AIt may have overfit the training observations and generalize poorly
Explanation
A highly flexible model can fit the training data perfectly while capturing noise rather than general patterns, resulting in high test error.
- A
- 25
Why can fitting a linear model to only two observations be misleading?
- A
It necessarily produces a large training error because linear models need many predictors
- B
It guarantees that the estimated slope has low variance
- C
It prevents the calculation of fitted values for the observed responses
- D
It can produce a perfect training fit that does not generalize to new observations
Correct answer
DIt can produce a perfect training fit that does not generalize to new observations
Explanation
With only two observations, a line can fit the training data perfectly, but the fitted relationship may be unstable and have very high test error.
- A
- 26
Which statement best describes model complexity?
- A
It is determined solely by the sample size
- B
It refers only to whether predictors are numerical or categorical
- C
It is exactly equal to the number of predictors for every modeling method
- D
It is a general measure of model flexibility, not merely the number of predictors
Correct answer
DIt is a general measure of model flexibility, not merely the number of predictors
Explanation
Model complexity is broader than predictor count. Regularization strength, tree size, and other factors can affect flexibility even when all predictors remain included.
- A
- 27
What happens to bias as model complexity increases?
- A
Bias remains exactly constant
- B
Bias generally decreases
- C
Bias becomes undefined whenever predictors are correlated
- D
Bias generally increases
Correct answer
BBias generally decreases
Explanation
More complex models generally fit the underlying patterns more flexibly, reducing bias.
- A
- 28
What does variance refer to in the bias-variance discussion?
- A
The total number of response values in the training set
- B
The average difference between the true coefficients and estimated coefficients
- C
How much coefficient estimates vary across repeated experiments
- D
The proportion of predictors with categorical measurements
Correct answer
CHow much coefficient estimates vary across repeated experiments
Explanation
Variance describes how much estimates such as β^​ differ across repeated samples or experiments.
- A
- 29
According to the content, how is test error related to bias and variance?
- A
It is determined only by the number of predictors
- B
It is associated with squared bias plus variance
- C
It is determined only by the training error
- D
It is associated with bias minus variance
Correct answer
BIt is associated with squared bias plus variance
Explanation
The content describes the test error as the sum of squared bias and variance, emphasizing the tradeoff between them.
- A
- 30
What is the typical bias-variance pattern for a very simple model?
- A
Low bias and high variance
- B
Zero bias and zero variance in every case
- C
High bias and low variance
- D
High bias and high variance in every case
Correct answer
CHigh bias and low variance
Explanation
A very simple model is stable but may be too inflexible, producing high bias and relatively low variance.
- A
- 31
What is the typical bias-variance pattern for an extremely complex model?
- A
Zero bias and zero variance
- B
High bias with variance that cannot be measured
- C
High bias and low variance
- D
Low bias and high variance
Correct answer
DLow bias and high variance
Explanation
A highly complex model can closely fit patterns in the data, reducing bias, but its estimates may vary substantially across samples, increasing variance.
- A
- 32
What is the purpose of the validation-set approach?
- A
To train on one subset and estimate error on a separate subset
- B
To remove all predictors before fitting the model
- C
To replace the response with a principal component
- D
To train and evaluate the model on every observation simultaneously
Correct answer
ATo train on one subset and estimate error on a separate subset
Explanation
The validation-set approach splits the observations into two groups, fits the model on one, and evaluates its error on the other.
- A
- 33
What is a limitation of the validation-set approach?
- A
It requires fitting one model for every individual observation
- B
It always produces a higher error than training evaluation
- C
The estimated error can depend on the arbitrary data split
- D
It cannot estimate error for quantitative responses
Correct answer
CThe estimated error can depend on the arbitrary data split
Explanation
Because the data are split arbitrarily, a different split may produce a different estimate of test error.
- A
- 34
How does leave-one-out cross-validation evaluate a model?
- A
It leaves out each observation once, fits on the rest, and averages the resulting errors
- B
It leaves out half the observations once and uses the remaining half for all evaluations
- C
It randomly removes predictors rather than observations
- D
It fits one model on all observations without evaluating prediction error
Correct answer
AIt leaves out each observation once, fits on the rest, and averages the resulting errors
Explanation
Leave-one-out cross-validation fits n models, each time leaving out one observation and evaluating the prediction for that observation, then averages the errors.
- A
- 35
Why can leave-one-out cross-validation be computationally undesirable?
- A
It requires fitting n separate models
- B
It requires discarding all but one observation
- C
It cannot be used with linear models
- D
It estimates only training error
Correct answer
AIt requires fitting n separate models
Explanation
Leave-one-out cross-validation requires a separate model fit for every observation, which can be expensive when n is large.
- A
- 36
What happens in five-fold cross-validation?
- A
Five predictors are selected and all others are discarded
- B
Five observations are removed permanently before fitting one model
- C
The data are split into five sets, and all five are used only for training
- D
The data are split into five sets, with each set serving once as the evaluation set
Correct answer
DThe data are split into five sets, with each set serving once as the evaluation set
Explanation
In five-fold cross-validation, the model is trained on four folds and evaluated on the fifth, repeating this so every fold serves as the evaluation set.
- A
- 37
Why is cross-validation useful when selecting model complexity?
- A
It makes training error and test error identical
- B
It eliminates the need for independent observations
- C
It guarantees that the most complex model will be selected
- D
It provides an estimate of test error for comparing candidate models
Correct answer
DIt provides an estimate of test error for comparing candidate models
Explanation
Cross-validation estimates out-of-sample error, allowing different complexity levels or tuning parameters to be compared.
- A
- 38
Why can least squares overfit biomedical big-data problems?
- A
The number of features may be very large relative to the number of observations
- B
Least squares cannot use gene-expression measurements as predictors
- C
Biomedical data never contain enough predictors to fit a model
- D
The response is always categorical in biomedical studies
Correct answer
AThe number of features may be very large relative to the number of observations
Explanation
When there are many features, such as thousands of genes or proteins, relative to the sample size, least squares can fit noise and produce high test error.
- A
- 39
What is overfitting?
- A
Obtaining low training error but high test error
- B
Using a model with no predictors and no fitted values
- C
Obtaining high training error and high test error
- D
Using a model whose training and test errors are both minimal
Correct answer
AObtaining low training error but high test error
Explanation
Overfitting occurs when a model fits the training data very well but performs poorly on unseen data.
- A
- 40
What is the main purpose of ridge regression and the lasso?
- A
To fit linear models with reduced complexity by shrinking coefficients
- B
To guarantee zero training error for every data set
- C
To increase model complexity by adding every possible interaction
- D
To remove the response variable before estimating coefficients
Correct answer
ATo fit linear models with reduced complexity by shrinking coefficients
Explanation
Ridge regression and the lasso are regularization methods that penalize coefficient size and thereby reduce effective model complexity.
- A
- 41
What does the tuning parameter λ control in ridge regression?
- A
The categorical levels of the response
- B
The number of observations in the training set
- C
The strength of the penalty on the squared coefficients
- D
The number of folds used in cross-validation
Correct answer
CThe strength of the penalty on the squared coefficients
Explanation
Ridge regression minimizes the residual sum of squares plus λ∑j​βj2​. Thus, λ controls the strength of coefficient shrinkage.
- A
- 42
What does ridge regression become when λ=0?
- A
Ordinary least squares
- B
A model containing no predictors
- C
A classification tree
- D
Principal components regression with one component
Correct answer
AOrdinary least squares
Explanation
When λ=0, the penalty disappears, leaving the ordinary least squares objective.
- A
- 43
What happens to ridge-regression coefficients as λ becomes very large?
- A
They become exactly zero for every predictor
- B
They become larger without bound
- C
They approach zero but generally are not exactly zero
- D
They remain identical to the least squares estimates
Correct answer
CThey approach zero but generally are not exactly zero
Explanation
A large ridge penalty shrinks coefficients toward zero, but ridge regression generally does not make them exactly zero.
- A
- 44
Which statement correctly contrasts ridge regression and the lasso?
- A
Ridge uses squared coefficients, whereas the lasso uses absolute coefficient values
- B
Both methods use identical penalties and always produce identical models
- C
Ridge uses absolute coefficients, whereas the lasso uses squared coefficient values
- D
Ridge has a tuning parameter, whereas the lasso has no tuning parameter
Correct answer
ARidge uses squared coefficients, whereas the lasso uses absolute coefficient values
Explanation
Ridge uses a penalty such as λ∑j​βj2​, while the lasso uses λ∑j​∣βj​∣.
- A
- 45
Why is the lasso useful when a final model should use only a subset of features?
- A
It can set some coefficient estimates exactly equal to zero
- B
It removes the response from the optimization objective
- C
It increases every coefficient until only one feature remains
- D
It guarantees that every feature remains in the final model
Correct answer
AIt can set some coefficient estimates exactly equal to zero
Explanation
The lasso can produce exactly zero coefficients, yielding a sparse model and performing feature selection.
- A
- 46
What is meant by saying that the lasso produces a sparse model?
- A
All of its coefficients have the same nonzero value
- B
Many of its coefficient estimates are exactly zero
- C
Its predictors are transformed into principal components
- D
It uses fewer observations than the training set contains
Correct answer
BMany of its coefficient estimates are exactly zero
Explanation
A sparse model has many zero coefficients, so only a subset of the available features contributes to the prediction.
- A
- 47
How should λ typically be selected for ridge regression or the lasso?
- A
Choose the value producing the largest training error
- B
Choose the value producing the smallest estimated test error
- C
Choose zero whenever the number of predictors is large
- D
Choose the largest value regardless of predictive performance
Correct answer
BChoose the value producing the smallest estimated test error
Explanation
The tuning parameter is generally selected using validation or cross-validation to minimize estimated test error.
- A
- 48
After selecting λ using a validation subset, what should be done before obtaining the final ridge or lasso model?
- A
Set λ back to zero before fitting the final model
- B
Discard the validation observations permanently
- C
Fit the final model using only the observations that were held out
- D
Refit the model on all observations using the selected λ
Correct answer
DRefit the model on all observations using the selected λ
Explanation
After selecting λ, the model should be refit on the full data set using that same tuning-parameter value.
- A
- 49
Which statement about feature inclusion is true for ridge regression?
- A
It always sets all but one predictor coefficient exactly to zero
- B
It generally retains all predictors, even when it strongly shrinks their coefficients
- C
It includes only predictors selected by principal components
- D
It removes every predictor whose coefficient is smaller than the intercept
Correct answer
BIt generally retains all predictors, even when it strongly shrinks their coefficients
Explanation
Ridge regression shrinks coefficients but generally retains all P variables in the final model.
- A
- 50
What is the main idea of principal components regression?
- A
Fit least squares using selected principal components instead of the original predictors
- B
Fit ordinary least squares without estimating an intercept
- C
Set all correlated predictors to zero before fitting least squares
- D
Fit a decision tree using the original response as a predictor
Correct answer
AFit least squares using selected principal components instead of the original predictors
Explanation
Principal components regression first creates principal components, then fits least squares using a selected number of those components as predictors.
- A
- 51
What are principal components?
- A
Individual observations with the smallest response values
- B
Regression coefficients forced to be exactly zero
- C
Linear combinations of variables that capture large amounts of data variability
- D
Random subsets of predictors selected without regard to variability
Correct answer
CLinear combinations of variables that capture large amounts of data variability
Explanation
Principal components are linear combinations of the original variables designed to capture as much variability in the predictors as possible.
- A
- 52
Why can dimension reduction be useful with many predictors?
- A
Some dimensions may be redundant or uninformative
- B
Every dimension is guaranteed to contain unique predictive information
- C
It converts every categorical response into a quantitative one
- D
Reducing dimensions always lowers training error to zero
Correct answer
ASome dimensions may be redundant or uninformative
Explanation
Highly correlated predictors can create redundant dimensions, and noise features can contribute uninformative dimensions.
- A
- 53
What happens in principal components regression when the number of selected components equals the number of original predictors?
- A
All original predictors are removed from the model
- B
The method becomes identical to the lasso with maximum penalty
- C
The model becomes a decision tree
- D
The method is effectively back at least squares
Correct answer
DThe method is effectively back at least squares
Explanation
When m=P, all principal-component dimensions are used, so principal components regression is equivalent to least squares in the original predictor space.
- A
- 54
Does principal components regression perform feature selection in the original predictor space?
- A
No, all original predictors generally contribute to the selected components
- B
No, because it does not use any predictors in the final model
- C
Yes, it always sets unselected original predictors exactly to zero
- D
Yes, it retains only the predictor with the greatest variance
Correct answer
ANo, all original predictors generally contribute to the selected components
Explanation
Principal components are combinations of the original predictors, so all original predictors can remain involved even when only a subset of components is used.
- A
- 55
Why might principal components regression fail to predict the response well?
- A
Principal components cannot be calculated when predictors are correlated
- B
The method always uses more parameters than least squares
- C
The response is necessarily discarded during component construction
- D
The components explaining predictor variability may not be predictive of the response
Correct answer
DThe components explaining predictor variability may not be predictive of the response
Explanation
Principal components maximize variability in the predictors, not necessarily association with the response. High-variance components may therefore be weak predictors.
- A
- 56
How can a more complex linear model be created when least squares is too simple?
- A
By reducing the number of observations used for training
- B
By removing all nonlinear terms from the predictors
- C
By adding transformations, powers, or products of the original features
- D
By replacing the response with the training error
Correct answer
CBy adding transformations, powers, or products of the original features
Explanation
A linear model can include transformed features such as xj2​, xj3​, exponentials, or products such as xj​xk​, and then be fitted using least squares or regularization.
- A
- 57
What is the basic strategy of a decision tree for regression?
- A
Replace all predictors with one principal component
- B
Fit one global plane that must pass through every observation
- C
Assign every observation the same prediction regardless of its predictors
- D
Partition predictor space into regions and make a prediction within each region
Correct answer
DPartition predictor space into regions and make a prediction within each region
Explanation
A regression tree divides the predictor space into boxes or regions and assigns a prediction to each region.
- A
- 58
How is the prediction for a region in a regression tree usually obtained?
- A
By taking the largest predictor value in that region
- B
By using the coefficient of the first principal component
- C
By taking the average response of observations in that region
- D
By setting the prediction equal to the global maximum response
Correct answer
CBy taking the average response of observations in that region
Explanation
For regression trees, the prediction within each region is the average of the observed responses belonging to that region.
- A
- 59
What is a major advantage of decision trees?
- A
They eliminate the need to evaluate test error
- B
They provide highly interpretable rules for making predictions
- C
They always achieve lower test error than regularized linear models
- D
They require every predictor to have a linear relationship with the response
Correct answer
BThey provide highly interpretable rules for making predictions
Explanation
Decision trees can be read as a sequence of simple splits and are therefore easy to explain and apply.
- A
- 60
What is a typical disadvantage of regression trees compared with other supervised-learning methods?
- A
They cannot make predictions for quantitative responses
- B
They always have higher bias and lower variance than every other method
- C
They require all predictors to be principal components
- D
They are often less accurate even though they are more interpretable
Correct answer
DThey are often less accurate even though they are more interpretable
Explanation
Regression trees are attractive for interpretability, but they are typically less accurate than alternative supervised-learning approaches.
- A
- 61
What is the usual bias-variance pattern for a large decision tree?
- A
Low bias and high variance
- B
High bias and low variance
- C
High bias and high variance by definition
- D
Zero bias and zero variance
Correct answer
ALow bias and high variance
Explanation
A large tree is flexible and can overfit, giving low bias but high variance.
- A
- 62
What is the usual bias-variance pattern for a small decision tree?
- A
High variance caused only by categorical predictors
- B
Zero variance and zero bias
- C
Low variance and potentially high bias
- D
High variance and necessarily zero bias
Correct answer
CLow variance and potentially high bias
Explanation
A small tree is less flexible, so it tends to have low variance but may underfit and therefore have high bias.
- A
- 63
How should tree size generally be selected?
- A
By always choosing the smallest possible tree
- B
By always choosing the largest possible tree
- C
By selecting the tree with the smallest training error only
- D
By estimating test error for candidate tree sizes
Correct answer
DBy estimating test error for candidate tree sizes
Explanation
Tree size should be chosen using estimated test error because large trees can overfit and small trees can underfit.
- A
- 64
What are batch effects?
- A
Random error introduced only by using principal components
- B
Changes in model complexity caused by adding predictors
- C
Variability caused by nonbiological factors in data collection
- D
Biological variation caused by the response variable itself
Correct answer
CVariability caused by nonbiological factors in data collection
Explanation
Batch effects are unwanted variation arising from nonbiological aspects of data collection or processing.
- A
- 65
Which experimental-design practice helps prevent batch effects?
- A
Choosing the model with the largest number of predictors
- B
Randomizing sample run times rather than processing cases before controls
- C
Collecting all samples in one batch without randomization
- D
Processing all cases first and all controls afterward
Correct answer
BRandomizing sample run times rather than processing cases before controls
Explanation
Randomizing run times helps prevent biological groups from becoming confounded with processing batches.
- A
- 66
Why is it useful to fit a model using data from multiple laboratories or institutions?
- A
It eliminates the need for any test-set evaluation
- B
It guarantees that the model will have zero training error
- C
It ensures that all predictors become statistically independent
- D
It can reduce dependence on idiosyncratic variation from one data source
Correct answer
DIt can reduce dependence on idiosyncratic variation from one data source
Explanation
Using multiple data sources can make a model less dependent on site-specific effects and improve the assessment of generalizability.
- A
- 67
How should biomedical machine-learning results ideally be validated?
- A
On the same observations used to fit the final model
- B
On an independent data set collected in a different laboratory or institution
- C
By checking whether the model contains every available feature
- D
Only through the model's training error
Correct answer
BOn an independent data set collected in a different laboratory or institution
Explanation
Independent validation from a different laboratory or institution can reveal whether apparent performance was caused by batch effects or other site-specific factors.
- A
- 68
Why can batch effects make a model appear more successful than it really is?
- A
They can create patterns that improve apparent test performance without reflecting biology
- B
They prevent the model from fitting the training data at all
- C
They force every coefficient estimate to be exactly zero
- D
They always increase the model's bias while leaving all predictions unchanged
Correct answer
AThey can create patterns that improve apparent test performance without reflecting biology
Explanation
Batch-related variation can create misleading associations, so even test error may look good unless evaluation uses appropriately independent data.
- A
- 69
What was the main point about normally distributed errors in large-sample settings?
- A
Normality matters more than the ratio of sample size to model complexity
- B
Non-normal errors automatically make every supervised model invalid
- C
Normality is always required regardless of sample size or model complexity
- D
Non-normal errors are often not a major problem when the sample size is sufficiently large
Correct answer
DNon-normal errors are often not a major problem when the sample size is sufficiently large
Explanation
The content emphasized that non-normal errors are often tolerable with a large sample size; excessive model complexity relative to the data is the more serious concern.
- A
- 70
What is the primary danger described by the curse of dimensionality?
- A
Adding variables always reduces both training and test error
- B
Adding many measured variables can encourage overly complex models with high test error
- C
High-dimensional data cannot be analyzed using any supervised method
- D
More variables automatically guarantee better biological information
Correct answer
BAdding many measured variables can encourage overly complex models with high test error
Explanation
The curse of dimensionality refers to the danger that many features, especially with limited observations, lead to excessive complexity and poor generalization.
- A
- 71
Why is counting predictors insufficient for comparing the complexity of different modeling methods?
- A
Methods such as ridge regression can use all predictors while having different effective complexity
- B
Decision trees and lasso models cannot contain predictors
- C
Predictor count is meaningful only for classification problems
- D
Every method uses exactly the same number of effective parameters
Correct answer
AMethods such as ridge regression can use all predictors while having different effective complexity
Explanation
For ridge regression, all P predictors remain in the model even when shrinkage makes it less flexible. Thus, raw predictor count does not capture effective complexity across methods.
- A
- 72
How should two very different supervised-learning models generally be compared?
- A
Choose the model with the larger training R2
- B
Compare only the number of predictors they contain
- C
Choose the model with the most complicated mathematical form
- D
Compare their estimated test errors
Correct answer
DCompare their estimated test errors
Explanation
Test error is a common quantity that can be compared across models with different structures, such as trees, lasso models, and ridge models.
- A
- 73
Which statement best summarizes the lecture's view of supervised-learning methods?
- A
There is no universally best method, but methods can be applied incorrectly
- B
Decision trees are always superior because they are interpretable
- C
One method is always best if it has the smallest training error
- D
Least squares is always best when the number of predictors is large
Correct answer
AThere is no universally best method, but methods can be applied incorrectly
Explanation
Different methods perform better in different settings. There is no universally best approach, but incorrect procedures, such as incorrect cross-validation, can produce invalid conclusions.
- A
- 74
What is the most important quantity to focus on when evaluating a predictive model?
- A
Correctly estimated test error
- B
The apparent statistical significance of the fitted model
- C
The number of predictors included
- D
The training error alone
Correct answer
ACorrectly estimated test error
Explanation
The central message is that predictive usefulness depends on low, correctly estimated test error rather than merely excellent training fit or model significance.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.