1. Home
  2. Explore
  3. Computer Science
  4. Linear Regression Introduction

Study methods

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

Linear Regression Introduction

  • 33Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Supervised Learning Basics
In supervised learning, the function output by the learning algorithm to make predictions is called the
.

33 questions

  1. 1
    In supervised learning, the function output by the learning algorithm to make predictions is called the
    _____
    .
    Hint

    Think of the term used for the model's prediction function.

    Answer

    hypothesis

  2. 2
    When the output variable Y is a continuous value, the supervised learning problem is called
    _____
    .
    Hint

    Consider whether the output is a number on a continuous scale.

    Answer

    regression

  3. 3
    When the output variable Y is a discrete value, the supervised learning problem is called
    _____
    .
    Hint

    Think about predicting categories or labels.

    Answer

    classification

  4. 4
    In the ALVINN self-driving car example, the output Y (steering direction) is a
    _____
    value, making it a regression problem.
    Hint

    Contrast with a discrete output like speed category.

    Answer

    continuous

  5. 5
    The inputs to a supervised learning algorithm are often called
    _____
    or input attributes.
    Hint

    These are the variables used to describe the data.

    Answer

    features

  6. 6
    The output variable in supervised learning is sometimes called the
    _____
    variable.
    Hint

    It is the variable we aim to predict.

    Answer

    target

  7. 7
    The number of training examples is denoted by
    _____
    .
    Hint

    Think of the size of the training dataset.

    Answer

    mmm

  8. 8
    The number of features in a supervised learning problem is denoted by
    _____
    .
    Hint

    Consider the dimensionality of the input.

    Answer

    nnn

  9. 9
    The iii-th training example is denoted by (x(i),y(i))(x^{(i)}, y^{(i)})(x(i),y(i)), where x(i)x^{(i)}x(i) is the
    _____
    and y(i)y^{(i)}y(i) is the output.
    Hint

    It is what you feed into the hypothesis.

    Answer

    input

  10. 10
    The superscript (i)(i)(i) in x(i)x^{(i)}x(i) is an
    _____
    into the training set, not exponentiation.
    Hint

    It identifies which example you are referring to.

    Answer

    index

  11. 11
    The design matrix XXX is built by stacking the training examples' feature vectors as
    _____
    .
    Hint

    Think of how we organize the data matrix.

    Answer

    rows

  12. 12
    The squared error cost function is also known as ordinary
    _____
    squares.
    Hint

    This is the full name of the method.

    Answer

    least

  13. 13
    For linear regression, the cost function J(θ)J(\theta)J(θ) is a
    _____
    function, which has no local optima.
    Hint

    It is a bowl-shaped surface.

    Answer

    quadratic

  14. 14
    In gradient descent, the learning rate α\alphaα controls the
    _____
    of the update steps.
    Hint

    Think of how far you move in each iteration.

    Answer

    size

  15. 15
    In batch gradient descent, each update to the parameters uses
    _____
    training examples.
    Hint

    Consider how many examples are used per step.

    Answer

    all

  16. 16
    If the learning rate is too large, gradient descent may
    _____
    the minimum.
    Hint

    What happens when you take steps that are too big?

    Answer

    overshoot

  17. 17
    If J(θ)J(\theta)J(θ) increases during gradient descent, it is a sign that the learning rate is too
    _____
    .
    Hint

    The cost function should decrease.

    Answer

    large

  18. 18
    In practice, to choose a learning rate, one often tries values on an
    _____
    scale, such as 0.01,0.02,0.040.01, 0.02, 0.040.01,0.02,0.04, etc.
    Hint

    Think of doubling or tripling the value each time.

    Answer

    exponential

  19. 19
    In stochastic gradient descent, the parameters are updated using
    _____
    training example at a time.
    Hint

    Opposite of batch gradient descent.

    Answer

    one

  20. 20
    Stochastic gradient descent is preferred over batch gradient descent when the dataset is very
    _____
    .
    Hint

    Consider computational efficiency.

    Answer

    large

  21. 21
    Unlike batch gradient descent, stochastic gradient descent never quite
    _____
    but oscillates around the minimum.
    Hint

    Think about the behavior near the optimum.

    Answer

    converges

  22. 22
    To reduce oscillations in stochastic gradient descent, one common technique is to gradually
    _____
    the learning rate.
    Hint

    Make steps smaller over time.

    Answer

    decrease

  23. 23
    In stochastic gradient descent, the update for each parameter is based on the gradient computed from a single
    _____
    example.
    Hint

    It uses one data point at a time.

    Answer

    training

  24. 24
    The closed-form solution for linear regression is θ=(XTX)−1XTy\theta = (X^T X)^{-1} X^T yθ=(XTX)−1XTy, known as the
    _____
    equations.
    Hint

    This is a specific name for the system of equations.

    Answer

    normal

  25. 25
    The matrix XXX used in the normal equations is called the
    _____
    matrix.
    Hint

    It contains the feature data.

    Answer

    design

  26. 26
    The normal equation requires computing the inverse of the matrix
    _____
    .
    Hint

    This matrix product must be invertible.

    Answer

    XTXX^T XXTX

  27. 27
    If XTXX^T XXTX is non-invertible, it often indicates that the features are
    _____
    dependent.
    Hint

    Think about redundancy among features.

    Answer

    linearly

  28. 28
    The trace of a matrix is defined as the sum of its
    _____
    entries.
    Hint

    Which entries are summed?

    Answer

    diagonal

  29. 29
    One property of trace is that tr(AB)=tr(\text{tr}(AB) = \text{tr}(tr(AB)=tr(
    _____
    .
    Hint

    The order of multiplication can be cyclically permuted.

    Answer

    BABABA

  30. 30
    The derivative of a function fff with respect to a matrix AAA is a matrix where each element is the
    _____
    derivative of fff with respect to the corresponding element of AAA.
    Hint

    This is a generalization of the gradient.

    Answer

    partial

  31. 31
    In the derivation of the normal equation, the expression Xθ−yX \theta - yXθ−y represents the vector of
    _____
    between predictions and actual values.
    Hint

    Think about the difference.

    Answer

    errors

  32. 32
    The normal equation gives the optimal θ\thetaθ in one step without requiring an
    _____
    algorithm.
    Hint

    Contrast with gradient descent.

    Answer

    iterative

  33. 33
    The normal equation is specific to
    _____
    and does not apply to most other learning algorithms.
    Hint

    This is the simplest model.

    Answer

    linear regression

1 of 33
Question 1 of 33

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent