Linear regression has two assumptions about the residuals :
The residuals should have constant variance (for every level of the predictor).
The residuals should follow a normal distribution.
Is it possible to visualize how would the data itself, not the residuals, look like if one of these assumptions is violated?
I am seeking a visual example that would demonstrate clearly why these assumptions are necessary.


set.seed(1234); e = c(rexp(20,.2), rexp(20, .1)); x = seq(1, 20, len=40); y = 5 + 2*x + e; plot(x,y). – BruceET Oct 10 '21 at 08:48