Assumptions and where they fail
The usual tests rely on these assumptions:
- The relation between X and Y is linear in the parameters.
- The residuals average zero and are unrelated to X, which is measured without error.
- The residuals have a constant variance at every level of X (homoskedasticity).
- The residuals are independent of one another; in time series, no serial correlation.
- The residuals are normally distributed, which matters most for tests in small samples.
When residual spread grows or shrinks with X (heteroskedasticity), or residuals follow each other over time, the coefficients are still unbiased but the standard errors are wrong, so t-tests mislead. A curved pattern in the residuals means the straight line is the wrong form; a transformation such as taking the log of Y, X or both may fit. A few outliers can drive the whole line. R-squared can be high even when the line is the wrong shape, so look at a residual plot as well. And a strong fit shows association, not that X causes Y.