1. Home
  2. Explore
  3. Computer Science
  4. Multi-Output Linear Prediction

Study methods

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

Multi-Output Linear Prediction

  • 27Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Multiple Inputs and Outputs
When extending linear prediction from two variables to multiple variables, the input x is represented as a
.

27 questions

  1. 1
    When extending linear prediction from two variables to multiple variables, the input x is represented as a
    _____
    .
    Hint

    Think about the structure that can hold multiple values organized in rows and columns.

    Answer

    matrix

  2. 2
    For one input x and multiple outputs y1, y2, y3, you can use
    _____
    separate prediction formulas.
    Hint

    Consider how many formulas are needed for each output.

    Answer

    multiple

  3. 3
    In the machine learning framework, the input data is organized as a matrix where each
    _____
    represents a different example or person.
    Hint

    In a table, each horizontal line corresponds to one record.

    Answer

    row

  4. 4
    The output y can have multiple columns, meaning there are multiple
    _____
    to predict simultaneously.
    Hint

    Think about what each column in y represents.

    Answer

    outputs

  5. 5
    To handle categorical text values in the input, they are either converted to numbers or
    _____
    .
    Hint

    What can you do with a column that cannot be easily converted to numbers?

    Answer

    discarded

  6. 6
    An extra column of
    _____
    is added to the input matrix X to incorporate the bias term.
    Hint

    What constant value is used in that column to allow the bias to be learned?

    Answer

    ones

  7. 7
    The bias term corresponds to the
    _____
    in simple linear regression.
    Hint

    In the equation y = mx + b, what does b represent?

    Answer

    y-intercept

  8. 8
    The parameter w0 is multiplied by the constant column of
    _____
    in the matrix multiplication.
    Hint

    The column consists of a single repeated number.

    Answer

    ones

  9. 9
    The process of calculating w from the available data is called
    _____
    or learning.
    Hint

    What term describes using labeled data to fit a model?

    Answer

    training

  10. 10
    The error for a single prediction is the difference between the predicted y and the
    _____
    y.
    Hint

    What is the real observed value called?

    Answer

    actual

  11. 11
    To avoid positive and negative errors canceling each other out, we use the
    _____
    of the error.
    Hint

    What mathematical operation makes all errors positive?

    Answer

    square

  12. 12
    The average of squared errors is called the
    _____
    error.
    Hint

    This metric is often abbreviated as MSE.

    Answer

    mean square

  13. 13
    To find the optimal w that minimizes the mean square error, we take the
    _____
    of the error function.
    Hint

    What calculus operation finds the direction of steepest ascent?

    Answer

    gradient

  14. 14
    Setting the gradient to zero and solving gives the
    _____
    equation: w=(XTX)−1XTyw = (X^T X)^{-1} X^T yw=(XTX)−1XTy.
    Hint

    This equation provides a closed-form solution for linear regression.

    Answer

    normal

  15. 15
    The matrix XTXX^T XXTX has dimensions ddd x
    _____
    , where ddd is the number of features.
    Hint

    The result of multiplying a d×nd \times nd×n matrix by an n×dn \times dn×d matrix.

    Answer

    ddd

  16. 16
    The product XTyX^T yXTy results in a matrix of size ddd x
    _____
    , where mmm is the number of outputs.
    Hint

    Multiply a d×nd \times nd×n matrix by an n×mn \times mn×m matrix.

    Answer

    mmm

  17. 17
    The number of rows in the weight matrix w is equal to the number of
    _____
    in the input.
    Hint

    Each row corresponds to a column in the input matrix X.

    Answer

    features

  18. 18
    In the example, the bias term w0 gives a base credit score of
    _____
    points.
    Hint

    This is the constant term when all other inputs are zero.

    Answer

    426

  19. 19
    For each additional year of age, the credit score changes by
    _____
    points.
    Hint

    This coefficient is negative, indicating a decrease in score with age.

    Answer

    -60

  20. 20
    Each additional year with the current employer adds
    _____
    points to the credit score.
    Hint

    This coefficient is positive and relatively large.

    Answer

    149

  21. 21
    Each extra thousand dollars of income increases the credit score by
    _____
    points.
    Hint

    This coefficient is small but positive.

    Answer

    3.7

  22. 22
    In the machine learning framework, the predictor function is denoted as
    _____
    of x.
    Hint

    This is a letter used to represent the learned function.

    Answer

    ggg

  23. 23
    The ideal, perfect predictor function is denoted as
    _____
    of x.
    Hint

    This function would give the exact output with no error.

    Answer

    fff

  24. 24
    In linear regression, the optimal w can be
    _____
    directly using the normal equation.
    Hint

    This contrasts with methods that require iteration.

    Answer

    calculated

  25. 25
    When the parameters cannot be calculated directly, we can use an
    _____
    process of guessing and adjusting.
    Hint

    This process repeats steps to gradually improve the estimate.

    Answer

    iterative

  26. 26
    Through iterations, we try different versions of g until the
    _____
    becomes small enough.
    Hint

    This is the difference between predictions and actual values.

    Answer

    error

  27. 27
    A good predictor g(x) approximates the unknown
    _____
    function f(x).
    Hint

    This is the perfect but unknown mapping from inputs to outputs.

    Answer

    ideal

1 of 27
Question 1 of 27

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent