For residuals in the context of statistics, see errors and residuals in statistics.
In mathematics, a residual set is the complement of a meager set. A meager set is one which is the countable union of nowhere dense sets. Also, loosely speaking, a residual is the error in a result. To be precise, suppose we want to find x such that
- <math>f(x)=b.\,</math>
Given an approximation of x0 of x, the residual is
- <math>b-f(x_0)\,</math>
whereas the error is
- <math>x_0 - x.\,</math>
If we do not know x, we cannot compute the error but we can compute the residual. Residuals appear in many areas in mathematics, from iterative solvers such as the generalized minimal residual method, which seeks solutions to equations by systematically minimizing the residual, to statistics.
External links
- Jonathan Richard Shewchuk. An Introduction to the Conjugate Gradient Method Without the Agonizing Pain, p. 6.


