Real Analysis
The rules for limits, continuity and proof that make calculus honest, so loss curves and convergence claims mean what they say.
Why Does This Exist?
Training is full of sentences like "the loss converges" or "the gradient goes to zero". Without real analysis those are wishes. With it they are checkable claims: a sequence converges when its tail stays arbitrarily close to a limit, a function is continuous when small input changes give small output changes, and proofs use the completeness of the reals.
It matters because ML reuses the same few analytic moves everywhere. A learning-rate schedule assumes a series converges. A universal-approximation claim assumes continuous functions can be approached uniformly on compacts. Early stopping assumes a monitored sequence actually settles.
This page covers the core objects: sequences, limits, suprema, continuity and completeness. Neighbours teach the pieces that build on them, such as derivatives and partial derivatives and integration and area.
The one idea you need first
A limit is a promise about tails. To say means: pick any tolerance , and there is a point after which every . The number may depend on . Smaller tolerance usually needs larger .
Think of It Like This
A fence that closes in on a sheep
A sheep stands at position in a field. You build a fence with two rails, and . A sequence of sheepdogs runs in from far away, one after another. Convergence means: no matter how narrow you make the fence, all but finitely many dogs end up inside it.
The fence is the epsilon band in the diagram. The dogs are . The guarantee fails if even one straggler keeps stepping outside infinitely often. Where the analogy stops: real proofs also need completeness, the fact that the field has no missing holes where a Cauchy herd could aim at nothing.
How It Actually Works
A sequence is an ordered list of real numbers. It converges to when the epsilon condition above holds. A series converges when its partial sums converge as a sequence.
The supremum is the least upper bound of a set . For , values are , bounded above by , and even though is never attained. Completeness says every nonempty bounded-above set of reals has a supremum. Rationals lack this: has no rational supremum.
Continuity at means : the epsilon-delta version says for every there is with implying .
Worked example
Take : . Claim . Fix . Need , so . Take . Every satisfies . For , take . Since such exists for every , . The series has partial sums , converging to .
Watch Out For
Confusing bounded with convergent
Bounded means the sequence stays in some interval. Convergent means it settles on one number. The symptom: treating oscillation as convergence because values look stable in range. The sequence is bounded in but never settles. Fix: check the tail against a candidate with shrinking , not just the range.
Assuming the limit can be moved inside
Writing is only legal when is continuous at the limit. The symptom: passing a limit through a step or indicator and getting 0 versus 1 wrong. Fix: verify continuity at that point first, or keep the limit outside.
The Quick Version
- Real analysis turns "converges" into a check: tails stay inside every epsilon band.
- Supremum is the least upper bound; completeness guarantees it exists for bounded real sets.
- Continuity lets limits pass through functions, and only then.
- Series converge when partial sums converge, as with .
- No convergence claim in training means anything without the epsilon- test behind it.