What is it?
Estimating derivatives from function values: has error . Too large an gives truncation error, too small an rounding error; the best for central differences in double precision is around .
Formulas
- the stencil behind the discrete Laplacian
Where it shows up in computing
Finite-difference solvers replace by the stencil on a grid.
Sobel and Prewitt filters are smoothed finite differences of pixel intensities.
Grid-based fluid solvers discretize derivatives with finite differences on staggered grids.
Where it shows up in AI
"Gradient checking" compares autodiff gradients against finite differences to catch bugs.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
ℒ AI and machine learning
- Automatic differentiation★★★★★
- Automatic differentiation→Backpropagation★★★★★
- Automatic differentiation→Backpropagation→Deep learning★★★★★
- Automatic differentiation→Backpropagation→Deep learning→Convolutional networks (CNNs)★★★★★
- Automatic differentiation→Backpropagation→Deep learning→Generative models★★★★★
- Automatic differentiation→Backpropagation→Deep learning→Neural ODEs★★★★★
This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.