Supervised Machine Learning
- 97Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
97 questions
- 1Supervised machine learning uses a data set of predictors, denoted by X or x, to predict or detect an association with a response called_____.
Hint
This is the outcome or target variable being predicted.
Answer
y
- 2The two major categories of machine learning are supervised learning and_____learning.
Hint
This type of learning does not require an observed response variable.
Answer
unsupervised
- 3In supervised learning, regression is used when the response is_____.
Hint
Blood pressure, cholesterol level, and tumor size are examples.
Answer
quantitative
- 4In supervised learning, classification is used when the response is_____or qualitative.
Hint
Tumor versus normal tissue is an example of this type of response.
Answer
categorical
- 5Unsupervised learning attempts to discover signal in a matrix X when_____is available.
Hint
Unlike supervised learning, there is no observed outcome variable.
Answer
no y
- 6The distinction between regression and classification depends on the type of the_____response, not on the type of predictor matrix.
Hint
The response determines whether the task is numerical prediction or category prediction.
Answer
y
- 7A supervised learning problem with a possibly censored survival time is a different_____of supervised learning.
Hint
The lecture uses this word to describe regression, classification, and survival modeling.
Answer
flavor
- 8The main objective emphasized throughout supervised machine learning is achieving low_____error on new observations.
Hint
This error measures performance on data not used to fit the model.
Answer
test
- 9In a linear model, the response for observation i is represented as an intercept plus feature coefficients and a_____term.
Hint
This term represents unexplained variation associated with an observation.
Answer
noise
- 10For observation i, the values of the P predictors are called its_____.
Hint
These measurements are used to predict the response.
Answer
features
- 11The unknown quantities that must be estimated when fitting a linear model are the regression_____.
Hint
They include the intercept and the terms multiplying the features.
Answer
coefficients
- 12A fitted or estimated coefficient is indicated by placing a small_____over the coefficient.
Hint
For example, an estimated coefficient may be verbally called beta one hat.
Answer
hat
- 13Least squares chooses coefficient estimates so that the sum of_____errors is as small as possible.
Hint
The residual for each observation is squared before summing.
Answer
squared
- 14The sum of squared errors is also called the residual sum of_____.
Hint
This is commonly abbreviated as RSS.
Answer
squares
- 15The fitted value for observation i, denoted by y with a hat, is the model's_____for that observation.
Hint
It is obtained by plugging the estimated coefficients and features into the model.
Answer
prediction
- 16Least squares tends to work especially well when the number of observations n is large and the number of predictors P is_____.
Hint
This describes the traditional setting with only a few measured variables.
Answer
really small
- 17With two predictors, the least squares fit is represented geometrically as a_____rather than a line.
Hint
Two predictor dimensions require a flat surface in three-dimensional space.
Answer
plane
- 18The training set is the data used to actually_____the model.
Hint
It is contrasted with a test set that evaluates the finished model.
Answer
fit
- 19Training error is typically measured using the_____squared error on the training observations.
Hint
It is the residual sum of squares divided by n.
Answer
mean
- 20Least squares guarantees a relatively small training mean squared error because its coefficients are chosen to make that quantity as_____as possible.
Hint
The optimization objective directly targets the training error.
Answer
small
- 21Training error measures how well a model fits the data used to fit it, but it does not measure performance on_____data.
Hint
This data was not used during model fitting.
Answer
new
- 22The coefficient of determination R2 is closely related to the model's_____error.
Hint
A large value of R2 corresponds to a small value of this error.
Answer
training
- 23As the number of variables in a fitted model increases, R2 will always_____or stay the same.
Hint
Adding variables cannot worsen the in-sample least squares fit.
Answer
increase
- 24As model complexity increases, training error will always_____or stay the same.
Hint
This is the opposite movement from training R2.
Answer
decrease
- 25A sufficiently complex model can achieve a perfect fit to the training data with_____error.
Hint
This means every training observation is fitted exactly.
Answer
0
- 26The test set consists of observations that were not used to_____the model.
Hint
Its purpose is to evaluate prediction on unseen data.
Answer
fit
- 27The test error is the average of the_____differences between test responses and their predictions.
Hint
The same type of loss used in mean squared error is averaged over test observations.
Answer
squared
- 28A model with low training error but high test error has_____the training data.
Hint
It has learned the training sample too specifically.
Answer
overfit
- 29Model complexity is more general than simply counting the number of_____in a model.
Hint
Ridge regression can use all variables while still controlling complexity.
Answer
variables
- 30As model complexity increases, training error generally_____.
Hint
More flexible models can fit the training observations more closely.
Answer
decreases
- 31Bias is the average difference between the true coefficient, beta, and its estimate, beta_____.
Hint
Bias describes average accuracy across repeated experiments.
Answer
hat
- 32Variance measures how much an estimated coefficient changes across repeated_____.
Hint
Imagine collecting new samples and refitting the model many times.
Answer
experiments
- 33Increasing model complexity generally decreases bias but_____variance.
Hint
More flexible models are more sensitive to the particular training sample.
Answer
increases
- 34The test error is described as the sum of the squared bias and the_____.
Hint
This is the central bias-variance decomposition presented in the lecture.
Answer
variance
- 35A model with very low complexity typically has high bias and_____variance.
Hint
A rigid model changes little across different samples.
Answer
small
- 36The best model complexity is often an intermediate level that makes both bias and variance relatively_____.
Hint
This balance is called the bias-variance trade-off sweet spot.
Answer
small
- 37In the validation set approach, the observations are split into a training set and a_____set.
Hint
The second subset evaluates the model after it is fitted on the first.
Answer
test
- 38A weakness of the validation set approach is that a different arbitrary data split may produce a different estimate of_____error.
Hint
The quantity being estimated is performance on unseen observations.
Answer
test
- 39In leave-one-out cross-validation, the model is trained on all observations except_____observation.
Hint
Each observation takes a turn being held out.
Answer
one
- 40Leave-one-out cross-validation repeats the training and testing process_____times for n observations.
Hint
Every observation is held out exactly once.
Answer
n
- 41The final estimate in leave-one-out cross-validation is obtained by averaging the individual_____rates.
Hint
Each held-out observation contributes one prediction error.
Answer
error
- 42The main disadvantage of leave-one-out cross-validation is that fitting n models can be computationally_____.
Hint
This becomes problematic when the sample size is very large.
Answer
undesirable
- 43In k-fold cross-validation, the data are divided into k_____.
Hint
For five-fold cross-validation, there are five such groups.
Answer
sets
- 44In five-fold cross-validation, the model is trained on four folds and evaluated on the_____fold.
Hint
One fold is held out while the other four are used for training.
Answer
fifth
- 45The cross-validation estimate is formed by averaging the error rates from the different_____.
Hint
Each partitioned group serves as a test set in turn.
Answer
folds
- 46The main purpose of validation and cross-validation is to estimate_____error and select model complexity.
Hint
This is the error that matters for prediction on new data.
Answer
test
- 47In high-dimensional biomedical data, least squares is often too complex because there are too many features relative to the number of_____.
Hint
This is the sample-size quantity usually denoted by n.
Answer
observations
- 48A model with low training error and high test error is an example of_____.
Hint
The model fits the observed sample too specifically.
Answer
overfitting
- 49Ridge regression and the lasso are alternatives to_____for fitting linear models.
Hint
They modify the familiar residual-sum-of-squares optimization.
Answer
least squares
- 50Ridge regression and the lasso reduce model complexity by_____the regression coefficients.
Hint
The coefficients are pulled toward zero.
Answer
shrinking
- 51Ridge regression and the lasso are examples of regularization or_____approaches.
Hint
These methods add a penalty term to the fitting objective.
Answer
penalization
- 52In ridge regression, the penalty is based on the sum of the squared regression_____.
Hint
The penalty contains terms of the form beta squared.
Answer
coefficients
- 53The nonnegative tuning parameter that controls the strength of the ridge penalty is called_____.
Hint
It is commonly represented by the Greek letter bb.
Answer
lambda
- 54When ridge regression uses lambda equal to zero, it reduces to_____regression.
Hint
With no penalty, only the residual sum of squares remains.
Answer
least squares
- 55As lambda becomes very large in ridge regression, the coefficient estimates approach_____.
Hint
A strong squared-coefficient penalty pulls estimates toward the origin.
Answer
0
- 56Unlike the lasso, ridge regression generally does not make coefficient estimates exactly_____.
Hint
Ridge produces shrinkage but not sparse coefficient estimates.
Answer
0
- 57The lasso differs from ridge regression by penalizing the sum of the_____values of the coefficients.
Hint
Its penalty uses the magnitude of each coefficient rather than its square.
Answer
absolute
- 58A major consequence of the lasso penalty is that some coefficient estimates can be exactly_____.
Hint
This property allows the method to eliminate predictors.
Answer
0
- 59Because it sets some coefficients to zero, the lasso performs feature_____.
Hint
It chooses a subset of predictors for the final model.
Answer
selection
- 60A model containing mostly zero coefficients is described as_____.
Hint
This term means that only a small subset of possible predictors is active.
Answer
sparse
- 61For both ridge regression and the lasso, the tuning parameter lambda is typically selected by choosing the value with the smallest estimated_____error.
Hint
Cross-validation can estimate this quantity.
Answer
test
- 62After selecting lambda using a validation procedure, ridge regression or the lasso should be refit on the_____data.
Hint
The selected tuning value is reused after all observations become available for fitting.
Answer
full
- 63Principal components regression is a type of dimension_____approach.
Hint
It replaces many original predictors with fewer constructed dimensions.
Answer
reduction
- 64Highly correlated features may create dimensions that are completely_____with one another.
Hint
Such dimensions provide overlapping information.
Answer
redundant
- 65Dimensions corresponding to noise features are considered_____.
Hint
They do not provide useful signal for the data.
Answer
uninformative
- 66In principal components regression, the new predictors are linear combinations of the original_____.
Hint
They are constructed from the original feature measurements.
Answer
predictors
- 67Principal components are linear combinations of variables that capture as much_____of the data as possible.
Hint
The first component points in the direction where the observations vary most.
Answer
variability
- 68Principal components regression fits least squares using the first m principal components instead of the original_____features.
Hint
The original predictor space has P dimensions.
Answer
P
- 69When the number of principal components m equals P, principal components regression reduces to_____.
Hint
All original dimensions are retained.
Answer
least squares
- 70When m is less than P, principal components regression produces a model that is generally_____complex than least squares.
Hint
Fewer dimensions are used in the fitted model.
Answer
less
- 71Principal components regression does not perform feature selection because all original_____remain involved in the final transformed model.
Hint
The predictors are combined rather than individually removed.
Answer
predictors
- 72A limitation of principal components regression is that components explaining large predictor variability are not necessarily_____of the response.
Hint
Variation in X does not guarantee association with y.
Answer
predictive
- 73A model can be made more complex by adding new features, combinations of features, or_____of existing features.
Hint
Examples include squares, cubes, and exponentials.
Answer
transformations
- 74Products such as the product of feature x and feature z are examples of_____between features.
Hint
The lecture suggests multiplying two features to create a new predictor.
Answer
combinations
- 75Classification uses a categorical response, but the same model-fitting and test-error ideas discussed for_____apply to it.
Hint
The lecture focuses on this numerical-response setting first.
Answer
regression
- 76A decision tree partitions the range of the predictors into_____and makes a prediction within each one.
Hint
The lecture uses an informal geometric term for the partitioned regions.
Answer
boxes
- 77In the decision-tree example, a yes answer at a split sends the observation to the_____.
Hint
A no answer sends it in the opposite direction.
Answer
left
- 78For a regression tree, the prediction within a region is the_____of the observed responses in that region.
Hint
The regional prediction summarizes all training observations assigned there.
Answer
average
- 79Decision trees are especially useful when_____is important.
Hint
Their branching rules can be displayed and understood without much mathematics.
Answer
interpretability
- 80Compared with many other supervised learning methods, regression trees are typically less_____.
Hint
Their main advantage is ease of interpretation rather than predictive performance.
Answer
accurate
- 81A large decision tree tends to_____the data.
Hint
Too many splits make the tree highly sensitive to the training sample.
Answer
overfit
- 82A very small decision tree tends to_____the data.
Hint
It may be too simple to represent the underlying relationship.
Answer
underfit
- 83The best size of a decision tree is typically chosen by estimating its_____error.
Hint
Tree size should be selected based on performance on unseen data.
Answer
test
- 84Batch effects are sources of variability caused by_____factors rather than biological factors.
Hint
They may arise from differences in processing, laboratories, or experimental runs.
Answer
nonbiological
- 85To reduce batch effects, researchers should randomize sample_____times.
Hint
Cases and controls should not be processed in separate sequential groups.
Answer
run
- 86A study should avoid running all cases first and all_____afterward.
Hint
Both biological groups should be distributed across experimental batches.
Answer
controls
- 87One way to reduce batch effects is to reduce extraneous sources of_____in the experiment.
Hint
This refers to unwanted differences unrelated to the biological question.
Answer
variation
- 88Models are generally more robust when trained on multiple data sets from different labs or_____rather than one data set.
Hint
Independent collection settings can expose site-specific technical effects.
Answer
institutions
- 89Results should be validated on independent data collected in a different lab or_____.
Hint
The validation setting should be separate from the original data-collection setting.
Answer
institution
- 90There is no single_____approach to supervised machine learning.
Hint
Different methods can perform better in different settings.
Answer
best
- 91Although no approach is always best, some approaches are_____because they produce invalid conclusions.
Hint
Incorrect cross-validation is given as an example.
Answer
wrong
- 92Using an incorrect cross-validation procedure can produce an incorrect estimate of_____error.
Hint
This is the error used to assess generalization.
Answer
test
- 93The normality of errors is usually not a major issue when the sample size is_____.
Hint
The lecture says nonnormal errors are often acceptable with enough observations.
Answer
big
- 94When the sample size is small relative to the number of features or model complexity, the model may be unreliable regardless of the data's_____.
Hint
Gaussianity does not solve a model that is too complex for the available data.
Answer
distribution
- 95The curse of dimensionality describes how increasing complexity or measuring more variables can lead to high_____error.
Hint
More predictors can encourage overfitting rather than improve generalization.
Answer
test
- 96For ordinary least squares, model complexity can be approximated by counting the number of variables, which corresponds to the number of degrees of_____used.
Hint
A least squares model with ten variables uses ten of this quantity.
Answer
freedom
- 97For ridge regression, the lasso, principal components regression, and decision trees, model complexity cannot be determined simply by counting_____.
Hint
Ridge can use all predictors while still shrinking them substantially.
Answer
variables

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