For various reasons we often assume that there is independence across observations in linear regression models. When does that assumption hold? Only when the data is collected by random sampling?
I could only find descriptions of it here on stackexchange. But I am interested in the condition. Is random sampling a necessary condition to talk about i.i.d. random variables?