Forgive me; I am new to learning statistics. I am trying to understand OLS simple linear regression better and gain an intuition for the associated assumptions. Upon my research, I have identified four neccesary assumptions about the $\epsilon$ term in $Y = \beta_0 + \beta_1$X + $\epsilon$:
$\epsilon$ is assumed to be a random variable that....
- Has a mean of 0
- Normally distributed
- Constant variance at every value of X ($\sigma^2$)
- Independent between observations
My problem has to do with the first two assumptions. Most textbooks and online resources do not clarify the first two assumptions. That is, is the assumption that $\epsilon$ has a mean of 0 at every value of X or across values of X? Likewise, is the assumption that $\epsilon$ is normally distributed at every value of X or accross values of X? Any help would be much appreciated.
Based on my own understanding, I believe that both of these assumptions should apply to every value of X and not across values of X, seeing as we want to use these assumptions to create a distribution where $Y = \beta_0 + \beta_1X + \epsilon$ is normally distributed with a mean of $\beta_0 + \beta_1X$ and variance of $\sigma^2$ at each X value. If the first two assumptions apply to values across X values, we cannot be certain that every value of X has a mean of 0 and is normally distributed.
lm
object in R, you will get four graphs, e.g.,set.seed(2024); N <- 99; x <- rnorm(N); y <- x + rnorm(N); L <- lm(y ~ x); plot(L)
. (None of those plots will be histograms, which speak to the fact that looking at the histogram might not be as obvious of a regression diagnostic as it first seems or often is presented.) $\endgroup$