Errors and residuals in statistics
A residual (or fitting error), on the other hand, is an observable estimate of the unobservable statistical error.  The simplest case involves a random sample of n men whose heights are measured.  The sample mean is used as an estimate of the population mean.  Then we have: