Lab
Lab
All the interactive visualizations in one place. Each one also lives on the page of its topic.
Derivative
is the instantaneous rate of change of at : the slope of the tangent line to the graph, defined as the limit of slopes of secant lines.
Riemann sums
Approximate the area under a curve by thin rectangles, . As the sum converges to the integral — slowly for the left/right rule (), faster for the midpoint ().
Newton's method
To solve , replace by its tangent line at the current guess and jump to where the tangent hits zero: . Near a simple root the number of correct digits doubles every step.
| k | xk | f(xk) | |xk − x*| | digits |
|---|
Taylor polynomial
The polynomial of degree that matches and its first derivatives at a point . Degree 1 is the tangent line, degree 2 adds curvature; the higher the degree, the wider the region where it is a good approximation. At it is called a Maclaurin polynomial.
Gradient descent
Repeat : take a small step against the gradient. Cauchy proposed it in 1847; today it (and its stochastic, adaptive variants) trains essentially every neural network.
Backpropagation
The algorithm that computes and for every layer of a network: one forward pass storing intermediate values, then one backward pass applying the chain rule from the loss down to the inputs. Cost: about twice the forward pass, whatever the number of parameters.
forward value ·gradient ∂L/∂· flowing backwards