Gradient Descent
- 76Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
76 questions
- 1In statistics, machine learning, and data science, Gradient Descent is used to_____objective functions or model parameters.
Hint
Think about the process of finding parameter values that produce the best model fit.
Answer
optimize
- 2When fitting a line with linear regression, the parameters being optimized are the_____and the slope.
Hint
A line is commonly written using two parameters: its vertical starting value and its rate of change.
Answer
intercept
- 3In logistic regression, Gradient Descent can be used to optimize a_____rather than a straight line.
Hint
The content uses an informal term for the curved decision boundary or fitted relationship.
Answer
squiggle
- 4In t-SNE, Gradient Descent can be used to optimize_____.
Hint
t-SNE is used to represent similar observations close together in groups.
Answer
clusters
- 5The strategy used to optimize a line with Gradient Descent can also be applied to squiggles, clusters, and many other_____problems.
Hint
These problems involve finding parameter or configuration values that minimize an objective.
Answer
optimization
- 6In the example data set, weight is plotted on the_____-axis and height is plotted on the y-axis.
Hint
The horizontal coordinate is conventionally called the x-coordinate.
Answer
x
- 7If the fitted line predicts a height of 1.9 for a person whose weight is 1.5, the line is being used to make a_____.
Hint
A model's estimated outcome for a new input is called a prediction.
Answer
prediction
- 8The goal of fitting the line with Gradient Descent is to find optimal values for the_____and the slope.
Hint
These are the two parameters that determine the position of a straight line.
Answer
intercept
- 9The example first estimates only the_____while using the least-squares estimate of the slope.
Hint
The procedure temporarily holds the slope fixed at 0.64.
Answer
intercept
- 10The least-squares estimate for the slope used in the first example is_____.
Hint
This value is supplied before Gradient Descent begins estimating the intercept.
Answer
0.64
- 11The first value selected for the intercept is a_____value that gives Gradient Descent a starting point.
Hint
It is an initial guess rather than a value obtained from the final solution.
Answer
random
- 12In the first example, the initial random value chosen for the intercept is_____.
Hint
The starting line has no vertical offset.
Answer
0
- 13The fit of the line is evaluated using the sum of the_____residuals.
Hint
Each residual is multiplied by itself before the values are added.
Answer
squared
- 14In machine-learning terminology, the sum of the squared residuals is a type of_____Function.
Hint
This function quantifies how poorly a model fits the data.
Answer
Loss
- 15A residual is calculated as the observed height minus the_____height.
Hint
The residual compares the actual outcome with the value estimated by the model.
Answer
predicted
- 16For the data point with weight 0.5, substituting into the line gives a predicted height of_____.
Hint
Use the line equation with slope 0.64 and intercept 0.
Answer
0.32
- 17For the person with observed height 1.4 and predicted height 0.32, the residual is_____.
Hint
Subtract the predicted height from the observed height.
Answer
1.1
- 18The residuals for the second and third data points in the initial example are_____and 1.3, respectively.
Hint
The second residual is the smaller of the two values reported for those points.
Answer
0.4
- 19For the initial intercept of 0, the sum of the squared residuals is_____.
Hint
This is the total loss obtained after combining the squared residuals.
Answer
3.1
- 20On the graph of the loss function, the intercept is placed on the_____-axis.
Hint
The parameter being varied is the horizontal input to the graph.
Answer
x
- 21The sum of squared residuals is placed on the_____-axis of the graph.
Hint
The loss value is the vertical quantity being measured.
Answer
y
- 22A slow method for finding the minimum loss is to plug and chug many different values for the_____.
Hint
This is the parameter being varied in the one-parameter example.
Answer
intercept
- 23Gradient Descent takes relatively_____steps when far from the optimum and baby steps when close to it.
Hint
The step size responds to how far the current slope is from zero.
Answer
big
- 24The curve's slope is found by taking the derivative of the loss function with respect to the_____.
Hint
Only one parameter is being optimized in this first stage.
Answer
intercept
- 25To differentiate a squared residual expression, the example applies the_____rule.
Hint
This rule is used when a function is composed with another function.
Answer
chain
- 26When differentiating a squared expression, the square is moved to the front and multiplied by the derivative of the_____the parentheses.
Hint
The derivative of a composite function requires differentiating its inner expression.
Answer
stuff inside
- 27Terms that do not contain the parameter being differentiated have a derivative of_____.
Hint
Such terms are constants with respect to that parameter.
Answer
zero
- 28If least squares is used directly, the optimal parameter occurs where the slope of the loss curve equals_____.
Hint
At a differentiable minimum, the derivative has no upward or downward direction.
Answer
zero
- 29Unlike direct least squares, Gradient Descent finds a minimum by taking repeated_____from an initial guess.
Hint
Each update moves the current parameter toward a lower loss.
Answer
steps
- 30With the intercept equal to 0, the derivative in the first example evaluates to_____.
Hint
This negative value indicates that the current point is on a sloping part of the loss curve.
Answer
-5.7
- 31The closer the intercept is to its optimal value, the closer the slope of the loss curve gets to_____.
Hint
The derivative approaches the condition used to identify a minimum.
Answer
zero
- 32Gradient Descent determines the step size by multiplying the slope by a small number called the_____rate.
Hint
This hyperparameter controls how aggressively the algorithm updates parameters.
Answer
learning
- 33The new parameter is calculated as the old parameter minus the_____size.
Hint
This subtraction is the basic update rule described in the example.
Answer
step
- 34With slope −5.7 and learning rate 0.1, the first step size is_____.
Hint
The example describes the step size as the slope multiplied by the learning rate, although its reported value is −5.7.
Answer
-5.7
- 35After the first update from an intercept of 0, the new intercept is_____.
Hint
Subtract the reported negative step from the old intercept according to the example's update.
Answer
0.57
- 36At an intercept of 0.57, the slope of the loss curve is_____.
Hint
The slope is less negative than it was at the starting intercept.
Answer
-2.3
- 37With slope −2.3 and learning rate 0.1, the next reported step size is_____.
Hint
Multiply the slope by the learning rate used in the example.
Answer
-0.23
- 38After the update from intercept 0.57, the new intercept is_____.
Hint
This update is smaller than the first one.
Answer
0.8
- 39At an intercept of 0.8, the derivative is_____.
Hint
The magnitude is smaller than the previous derivative of −2.3.
Answer
-0.9
- 40With a derivative of −0.9 and learning rate 0.1, the step size is_____.
Hint
Scale the derivative by the learning rate.
Answer
-0.09
- 41After six steps, the Gradient Descent estimate for the intercept is_____.
Hint
The updates approach the bottom of the loss curve.
Answer
0.95
- 42The least-squares estimate for the intercept in the example is also_____.
Hint
It matches the value reached by Gradient Descent.
Answer
0.95
- 43Gradient Descent normally stops when the_____size is very close to zero.
Hint
This quantity reflects how much the parameter would change in the next update.
Answer
step
- 44A step size becomes close to zero when the slope of the loss curve is close to_____.
Hint
The learning rate scales the slope, so a nearly flat curve produces a tiny update.
Answer
zero
- 45The practical minimum step size described in the example is 0.001 or_____.
Hint
The algorithm stops when updates fall below this threshold.
Answer
smaller
- 46If the slope is 0.009 and the learning rate is 0.1, the step size is_____.
Hint
Multiply 0.009 by 0.1.
Answer
0.0009
- 47Gradient Descent also stops if the number of steps exceeds its specified_____number of steps.
Hint
This limit prevents the algorithm from running indefinitely.
Answer
maximum
- 48The practical maximum number of steps in the example is_____or greater.
Hint
This is the stated upper-bound scale for the iteration limit.
Answer
1000
- 49When estimating both line parameters, the loss function is still the sum of the_____residuals.
Hint
The same fitting criterion is used in the one-parameter and two-parameter examples.
Answer
squared
- 50When both intercept and slope vary, the loss function can be visualized as a_____-dimensional graph.
Hint
There is one axis for loss and one for each of the two parameters.
Answer
3
- 51To optimize both parameters, derivatives are taken with respect to the intercept and the_____.
Hint
A straight line has two parameters, and the second one controls its tilt.
Answer
slope
- 52When differentiating with respect to the intercept, the slope is treated as a_____.
Hint
The slope is not the variable of differentiation in that derivative.
Answer
constant
- 53When differentiating with respect to the slope, the intercept is treated as a_____.
Hint
The intercept is not the variable of differentiation in that derivative.
Answer
constant
- 54In the derivative with respect to the slope, the factor corresponding to the first sample's weight is_____.
Hint
The first sample has weight 0.5, and the inner derivative contributes a negative sign.
Answer
-0.5
- 55The values 2.3 and 2.9 appearing in the slope derivative are the_____of the second and third samples.
Hint
They are the x-values used when predicting height.
Answer
weights
- 56Two or more derivatives of the same function together are called a_____.
Hint
This term names the collection of partial derivatives used for multidimensional optimization.
Answer
gradient
- 57Gradient Descent is named because it uses the_____to descend toward the lowest point of the loss function.
Hint
The gradient contains the directional information from all relevant derivatives.
Answer
gradient
- 58In the two-parameter example, the initial intercept is set to_____and the initial slope is set to 1.
Hint
The starting line has no vertical offset.
Answer
0
- 59The learning rate that works for the two-parameter example is set to_____.
Hint
It is smaller than the 0.1 rate used in the first example.
Answer
0.01
- 60Using the larger learning rate from the first example can prevent Gradient Descent from arriving at the correct answer, showing that it can be sensitive to the_____rate.
Hint
This parameter controls the size of updates.
Answer
learning
- 61A reasonable learning rate can be determined automatically by starting large and becoming_____with each step.
Hint
Reducing the rate helps make later updates more cautious.
Answer
smaller
- 62The best-fitting line found in the two-parameter example has intercept_____and slope 0.64.
Hint
The intercept agrees with the earlier one-parameter result.
Answer
0.95
- 63If a model has more than two parameters, the algorithm takes more_____and otherwise follows the same procedure.
Hint
One derivative is needed for each parameter.
Answer
derivatives
- 64The first general step of Gradient Descent is to take the derivative of the loss function for_____parameter in it.
Hint
Every parameter needs its own direction of change.
Answer
each
- 65The second general step is to pick random values for the_____.
Hint
These values provide the initial point for the optimization.
Answer
parameters
- 66The third general step is to plug the parameter values into the derivatives, or the_____.
Hint
This is the collection of all parameter-specific derivatives.
Answer
gradient
- 67After evaluating the gradient, the algorithm calculates the_____sizes.
Hint
These values determine how much each parameter will change.
Answer
step
- 68The next step is to calculate the new_____using the old values and their step sizes.
Hint
These are the updated intercept, slope, or other model quantities.
Answer
parameters
- 69After calculating new parameters, Gradient Descent repeats the process until the step size is very small or the maximum number of_____is reached.
Hint
These are the repeated iterations of the algorithm.
Answer
steps
- 70The sum of squared residuals is only one type of_____Function.
Hint
Other functions can measure error for different kinds of data.
Answer
Loss
- 71Regardless of which loss function is used, Gradient Descent follows the same general_____.
Hint
The content emphasizes that the sequence of differentiation and updating does not fundamentally change.
Answer
way
- 72Stochastic Gradient Descent uses a randomly selected_____of the data at every step.
Hint
It does not use the complete data set for each update.
Answer
subset
- 73Unlike ordinary Gradient Descent in the example, Stochastic Gradient Descent does not use the_____data set at every step.
Hint
It uses only part of the available observations.
Answer
full
- 74Using a subset rather than the full data set reduces the time spent calculating the_____of the loss function.
Hint
The computational savings occur during the calculation of parameter-change information.
Answer
derivatives
- 75Stochastic Gradient Descent is especially useful when a data set contains_____of data points.
Hint
The method addresses situations in which calculations over all observations take a long time.
Answer
millions
- 76The main computational advantage of Stochastic Gradient Descent is that each update takes_____time than using the full data set.
Hint
Fewer data points are involved in each derivative calculation.
Answer
less

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