I'm wondering if someone can give me a brief explanation of what residual analysis is and what it's used for. I know it can be used to test for normality, and for detecting outliers, but I'm not sure how. My book doesn't really help.

Any help would be greatly appreciated.