Lab
Central limit theorem
Flip a coin forty times and count the heads. You rarely get exactly twenty — but you almost never get four. The count drifts around twenty in a predictable way: too-high and too-low results thin out symmetrically, and the shape of that thinning is one of the most famous curves in mathematics.
The central limit theorem says why. Add up enough small, independent, finite-variance random influences — …
Confidence interval coverage
A 95% confidence interval is a promise about a procedure, not about any one interval. Use the method correctly and, over the long run of many experiments, about 95 of every 100 intervals you build will trap the true parameter. The other five will not. You never know which experiment you are in.
Coverage is the name for how well a procedure keeps that promise. Claim 95%, then simulate a thousand …
Gibbs phenomenon
Build a square wave out of sines and cosines, and something stubborn happens near the jumps. However many terms you add — ten, a hundred, ten thousand — the approximation overshoots the corner by roughly nine percent of the jump height, then rings. Fewer terms widen the wobble; more terms squeeze it toward the jump, but the overshoot itself never disappears.
This is the Gibbs phenomenon, and it is …
Difference quotient / numerical differentiation
The derivative is defined as a limit of slopes: pull a secant line tighter until its two points fuse, and its slope becomes the tangent slope. A computer cannot fuse points. Subtract two nearly equal floating-point numbers and most of the significant digits cancel, leaving rounding noise; shrink the step further and the noise eats the answer. Numerical differentiation is the craft of living with …
Riemann sum
Area by exhaustion: chop the region under a curve into thin vertical strips, approximate each strip by a rectangle, and add. That is the whole of integration, and it is two thousand years old. The integral is what the sum becomes when the strips refuse to stop thinning.
The Riemann sum makes the idea computable. Pick sample points — always the left edge, always the right, or the midpoint — …