The difference between observed and calculated values, such as of the position of a planet or comet in its orbit. They can result from observational errors and perturbations not included in the calculations; in the case of comets, such perturbations include non-gravitational forces. From a study of residuals in the orbit of Uranus the existence of the then unknown planet Neptune was calculated.