Linear Regression Residual Calculation Formula

In linear regression analysis, testing residuals is a very common practice. One crucial assumption in linear regression using the least squares method is that the residuals must be normally distributed.