Linear Regression Introduction
- 33Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
33 questions
- 1In 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
- 2When 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
- 3When the output variable Y is a discrete value, the supervised learning problem is called_____.
Hint
Think about predicting categories or labels.
Answer
classification
- 4In 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
- 5The inputs to a supervised learning algorithm are often called_____or input attributes.
Hint
These are the variables used to describe the data.
Answer
features
- 6The output variable in supervised learning is sometimes called the_____variable.
Hint
It is the variable we aim to predict.
Answer
target
- 7The number of training examples is denoted by_____.
Hint
Think of the size of the training dataset.
Answer
m
- 8The number of features in a supervised learning problem is denoted by_____.
Hint
Consider the dimensionality of the input.
Answer
n
- 9The i-th training example is denoted by (x(i),y(i)), where x(i) is the_____and y(i) is the output.
Hint
It is what you feed into the hypothesis.
Answer
input
- 10The superscript (i) in x(i) is an_____into the training set, not exponentiation.
Hint
It identifies which example you are referring to.
Answer
index
- 11The design matrix X is built by stacking the training examples' feature vectors as_____.
Hint
Think of how we organize the data matrix.
Answer
rows
- 12The squared error cost function is also known as ordinary_____squares.
Hint
This is the full name of the method.
Answer
least
- 13For linear regression, the cost function J(θ) is a_____function, which has no local optima.
Hint
It is a bowl-shaped surface.
Answer
quadratic
- 14In gradient descent, the learning rate α controls the_____of the update steps.
Hint
Think of how far you move in each iteration.
Answer
size
- 15In batch gradient descent, each update to the parameters uses_____training examples.
Hint
Consider how many examples are used per step.
Answer
all
- 16If the learning rate is too large, gradient descent may_____the minimum.
Hint
What happens when you take steps that are too big?
Answer
overshoot
- 17If J(θ) increases during gradient descent, it is a sign that the learning rate is too_____.
Hint
The cost function should decrease.
Answer
large
- 18In practice, to choose a learning rate, one often tries values on an_____scale, such as 0.01,0.02,0.04, etc.
Hint
Think of doubling or tripling the value each time.
Answer
exponential
- 19In stochastic gradient descent, the parameters are updated using_____training example at a time.
Hint
Opposite of batch gradient descent.
Answer
one
- 20Stochastic gradient descent is preferred over batch gradient descent when the dataset is very_____.
Hint
Consider computational efficiency.
Answer
large
- 21Unlike batch gradient descent, stochastic gradient descent never quite_____but oscillates around the minimum.
Hint
Think about the behavior near the optimum.
Answer
converges
- 22To reduce oscillations in stochastic gradient descent, one common technique is to gradually_____the learning rate.
Hint
Make steps smaller over time.
Answer
decrease
- 23In 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
- 24The closed-form solution for linear regression is θ=(XTX)−1XTy, known as the_____equations.
Hint
This is a specific name for the system of equations.
Answer
normal
- 25The matrix X used in the normal equations is called the_____matrix.
Hint
It contains the feature data.
Answer
design
- 26The normal equation requires computing the inverse of the matrix_____.
Hint
This matrix product must be invertible.
Answer
XTX
- 27If XTX is non-invertible, it often indicates that the features are_____dependent.
Hint
Think about redundancy among features.
Answer
linearly
- 28The trace of a matrix is defined as the sum of its_____entries.
Hint
Which entries are summed?
Answer
diagonal
- 29One property of trace is that tr(AB)=tr(_____.
Hint
The order of multiplication can be cyclically permuted.
Answer
BA
- 30The derivative of a function f with respect to a matrix A is a matrix where each element is the_____derivative of f with respect to the corresponding element of A.
Hint
This is a generalization of the gradient.
Answer
partial
- 31In the derivation of the normal equation, the expression Xθ−y represents the vector of_____between predictions and actual values.
Hint
Think about the difference.
Answer
errors
- 32The normal equation gives the optimal θ in one step without requiring an_____algorithm.
Hint
Contrast with gradient descent.
Answer
iterative
- 33The normal equation is specific to_____and does not apply to most other learning algorithms.
Hint
This is the simplest model.
Answer
linear regression

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