1. Home
  2. Explore
  3. Computer Science
  4. Supervised Machine Learning

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Supervised Machine Learning

  • 97Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Foundations
Supervised machine learning uses a data set of predictors, denoted by XXX or xxx, to predict or detect an association with a response called
.

97 questions

  1. 1
    Supervised machine learning uses a data set of predictors, denoted by XXX or xxx, to predict or detect an association with a response called
    _____
    .
    Hint

    This is the outcome or target variable being predicted.

    Answer

    y

  2. 2
    The 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

  3. 3
    In supervised learning, regression is used when the response is
    _____
    .
    Hint

    Blood pressure, cholesterol level, and tumor size are examples.

    Answer

    quantitative

  4. 4
    In 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

  5. 5
    Unsupervised learning attempts to discover signal in a matrix XXX when
    _____
    is available.
    Hint

    Unlike supervised learning, there is no observed outcome variable.

    Answer

    no y

  6. 6
    The 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

  7. 7
    A 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

  8. 8
    The 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

  9. 9
    In a linear model, the response for observation iii is represented as an intercept plus feature coefficients and a
    _____
    term.
    Hint

    This term represents unexplained variation associated with an observation.

    Answer

    noise

  10. 10
    For observation iii, the values of the PPP predictors are called its
    _____
    .
    Hint

    These measurements are used to predict the response.

    Answer

    features

  11. 11
    The 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

  12. 12
    A 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

  13. 13
    Least 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

  14. 14
    The sum of squared errors is also called the residual sum of
    _____
    .
    Hint

    This is commonly abbreviated as RSS.

    Answer

    squares

  15. 15
    The fitted value for observation iii, denoted by yyy 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

  16. 16
    Least squares tends to work especially well when the number of observations nnn is large and the number of predictors PPP is
    _____
    .
    Hint

    This describes the traditional setting with only a few measured variables.

    Answer

    really small

  17. 17
    With 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

  18. 18
    The 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

  19. 19
    Training error is typically measured using the
    _____
    squared error on the training observations.
    Hint

    It is the residual sum of squares divided by nnn.

    Answer

    mean

  20. 20
    Least 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

  21. 21
    Training 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

  22. 22
    The coefficient of determination R2R^2R2 is closely related to the model's
    _____
    error.
    Hint

    A large value of R2R^2R2 corresponds to a small value of this error.

    Answer

    training

  23. 23
    As the number of variables in a fitted model increases, R2R^2R2 will always
    _____
    or stay the same.
    Hint

    Adding variables cannot worsen the in-sample least squares fit.

    Answer

    increase

  24. 24
    As model complexity increases, training error will always
    _____
    or stay the same.
    Hint

    This is the opposite movement from training R2R^2R2.

    Answer

    decrease

  25. 25
    A 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

  26. 26
    The test set consists of observations that were not used to
    _____
    the model.
    Hint

    Its purpose is to evaluate prediction on unseen data.

    Answer

    fit

  27. 27
    The 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

  28. 28
    A model with low training error but high test error has
    _____
    the training data.
    Hint

    It has learned the training sample too specifically.

    Answer

    overfit

  29. 29
    Model 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

  30. 30
    As model complexity increases, training error generally
    _____
    .
    Hint

    More flexible models can fit the training observations more closely.

    Answer

    decreases

  31. 31
    Bias is the average difference between the true coefficient, beta, and its estimate, beta
    _____
    .
    Hint

    Bias describes average accuracy across repeated experiments.

    Answer

    hat

  32. 32
    Variance measures how much an estimated coefficient changes across repeated
    _____
    .
    Hint

    Imagine collecting new samples and refitting the model many times.

    Answer

    experiments

  33. 33
    Increasing model complexity generally decreases bias but
    _____
    variance.
    Hint

    More flexible models are more sensitive to the particular training sample.

    Answer

    increases

  34. 34
    The 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

  35. 35
    A model with very low complexity typically has high bias and
    _____
    variance.
    Hint

    A rigid model changes little across different samples.

    Answer

    small

  36. 36
    The 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

  37. 37
    In 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

  38. 38
    A 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

  39. 39
    In 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

  40. 40
    Leave-one-out cross-validation repeats the training and testing process
    _____
    times for nnn observations.
    Hint

    Every observation is held out exactly once.

    Answer

    n

  41. 41
    The 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

  42. 42
    The main disadvantage of leave-one-out cross-validation is that fitting nnn models can be computationally
    _____
    .
    Hint

    This becomes problematic when the sample size is very large.

    Answer

    undesirable

  43. 43
    In kkk-fold cross-validation, the data are divided into kkk
    _____
    .
    Hint

    For five-fold cross-validation, there are five such groups.

    Answer

    sets

  44. 44
    In 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

  45. 45
    The 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

  46. 46
    The 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

  47. 47
    In 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 nnn.

    Answer

    observations

  48. 48
    A model with low training error and high test error is an example of
    _____
    .
    Hint

    The model fits the observed sample too specifically.

    Answer

    overfitting

  49. 49
    Ridge regression and the lasso are alternatives to
    _____
    for fitting linear models.
    Hint

    They modify the familiar residual-sum-of-squares optimization.

    Answer

    least squares

  50. 50
    Ridge regression and the lasso reduce model complexity by
    _____
    the regression coefficients.
    Hint

    The coefficients are pulled toward zero.

    Answer

    shrinking

  51. 51
    Ridge regression and the lasso are examples of regularization or
    _____
    approaches.
    Hint

    These methods add a penalty term to the fitting objective.

    Answer

    penalization

  52. 52
    In 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

  53. 53
    The 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

  54. 54
    When 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

  55. 55
    As lambda becomes very large in ridge regression, the coefficient estimates approach
    _____
    .
    Hint

    A strong squared-coefficient penalty pulls estimates toward the origin.

    Answer

    0

  56. 56
    Unlike the lasso, ridge regression generally does not make coefficient estimates exactly
    _____
    .
    Hint

    Ridge produces shrinkage but not sparse coefficient estimates.

    Answer

    0

  57. 57
    The 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

  58. 58
    A 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

  59. 59
    Because it sets some coefficients to zero, the lasso performs feature
    _____
    .
    Hint

    It chooses a subset of predictors for the final model.

    Answer

    selection

  60. 60
    A model containing mostly zero coefficients is described as
    _____
    .
    Hint

    This term means that only a small subset of possible predictors is active.

    Answer

    sparse

  61. 61
    For 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

  62. 62
    After 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

  63. 63
    Principal components regression is a type of dimension
    _____
    approach.
    Hint

    It replaces many original predictors with fewer constructed dimensions.

    Answer

    reduction

  64. 64
    Highly correlated features may create dimensions that are completely
    _____
    with one another.
    Hint

    Such dimensions provide overlapping information.

    Answer

    redundant

  65. 65
    Dimensions corresponding to noise features are considered
    _____
    .
    Hint

    They do not provide useful signal for the data.

    Answer

    uninformative

  66. 66
    In principal components regression, the new predictors are linear combinations of the original
    _____
    .
    Hint

    They are constructed from the original feature measurements.

    Answer

    predictors

  67. 67
    Principal 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

  68. 68
    Principal components regression fits least squares using the first mmm principal components instead of the original
    _____
    features.
    Hint

    The original predictor space has PPP dimensions.

    Answer

    P

  69. 69
    When the number of principal components mmm equals PPP, principal components regression reduces to
    _____
    .
    Hint

    All original dimensions are retained.

    Answer

    least squares

  70. 70
    When mmm is less than PPP, principal components regression produces a model that is generally
    _____
    complex than least squares.
    Hint

    Fewer dimensions are used in the fitted model.

    Answer

    less

  71. 71
    Principal 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

  72. 72
    A limitation of principal components regression is that components explaining large predictor variability are not necessarily
    _____
    of the response.
    Hint

    Variation in XXX does not guarantee association with yyy.

    Answer

    predictive

  73. 73
    A 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

  74. 74
    Products such as the product of feature xxx and feature zzz are examples of
    _____
    between features.
    Hint

    The lecture suggests multiplying two features to create a new predictor.

    Answer

    combinations

  75. 75
    Classification 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

  76. 76
    A 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

  77. 77
    In 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

  78. 78
    For 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

  79. 79
    Decision trees are especially useful when
    _____
    is important.
    Hint

    Their branching rules can be displayed and understood without much mathematics.

    Answer

    interpretability

  80. 80
    Compared 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

  81. 81
    A large decision tree tends to
    _____
    the data.
    Hint

    Too many splits make the tree highly sensitive to the training sample.

    Answer

    overfit

  82. 82
    A very small decision tree tends to
    _____
    the data.
    Hint

    It may be too simple to represent the underlying relationship.

    Answer

    underfit

  83. 83
    The 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

  84. 84
    Batch 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

  85. 85
    To reduce batch effects, researchers should randomize sample
    _____
    times.
    Hint

    Cases and controls should not be processed in separate sequential groups.

    Answer

    run

  86. 86
    A study should avoid running all cases first and all
    _____
    afterward.
    Hint

    Both biological groups should be distributed across experimental batches.

    Answer

    controls

  87. 87
    One 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

  88. 88
    Models 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

  89. 89
    Results 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

  90. 90
    There is no single
    _____
    approach to supervised machine learning.
    Hint

    Different methods can perform better in different settings.

    Answer

    best

  91. 91
    Although no approach is always best, some approaches are
    _____
    because they produce invalid conclusions.
    Hint

    Incorrect cross-validation is given as an example.

    Answer

    wrong

  92. 92
    Using an incorrect cross-validation procedure can produce an incorrect estimate of
    _____
    error.
    Hint

    This is the error used to assess generalization.

    Answer

    test

  93. 93
    The 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

  94. 94
    When 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

  95. 95
    The 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

  96. 96
    For 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

  97. 97
    For 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

1 of 97
Question 1 of 97

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent