# How does the fact that the residuals are dependent affect the model diagnostics, such as normality tests?

In linear regression, we are usually required to run the model diagnostics to see whether the assumptions such as normality assumption, independence assumption, homoskedasticity assumption, are properly met. I am just worried about these tests are designed for independent data, but the residuals are dependent. Why people just use these tests without any explanations of validation? Does the dependent nature of residuals affect the results of the tests? Thanks!

$$\mathbb{Corr}(\mathbf{R}) = \mathbf{I} - \mathbf{h} = \mathbf{I} - \mathbf{x}(\mathbf{x}^\text{T} \mathbf{x})^{-1} \mathbf{x}^\text{T},$$
where the matrix $$\mathbf{h} = \mathbf{x}(\mathbf{x}^\text{T} \mathbf{x})^{-1} \mathbf{x}^\text{T}$$ is known as the hat matrix. Now, if the number of data points $$n$$ is large, we may appeal to asymptotic results for the hat matrix to approximate the correlation of the residual vector. These asymptotic results depend on conditions for the limits of the design matrix, which of course depends on the underlying sampling distribution for the explanatory data. In some broad cases (e.g., if the underlying explanatory vectors for the data points are themselves IID) we can establish that $$\mathbf{h} \rightarrow \mathbf{0}$$ so that the residual variables are asymptotically uncorrelated. (This relates closely to the Grenander conditions for consistency of the OLS estimator.)