Often the question *is the events independent*? is the wrong question. The observation we want to analyze are represented in some model as random variables, and if we should model them as independent is a modeling decision. 

A better question to ask is often: *is the events exchangeable*? This means that the random variables **plays a symmetric role**, there is apriori (given our state of knowledge) any reason to believe that, say,  $X_1$ should probably be larger than $X_2$ or the opposite. This is typically the case in experiments, say, where the variables represents observations on randomly drawn people that we do not know much about (decidedly not to distinguish between them).  Simple random sampling without replacement is a typical example which leads to exchangeability (but not independence). 

The clue now is that there is a theorem, the de Finetti representation theorem, which says that exchangeable random variables **can be represented as independent random variables conditional on a latent variable**. You can take that latent variable as a parameter in some parametric model, which now is a typical IID model.$^\dagger$

But say that you enlarge the experiment, instead of doing the experiment only with students from your class, you do it also with students from some other class at another university. Now, the complete sample is no longer exchangeable, because you might know there are some demographic differences between the student bodies, say. But the two subsamples are still separately exchangeable. But then, constructing a model which contains an indicator variable coding for university, the arguments above again leads to an IID-based model (this is known as *partial exchangeability*). With partial exchangeability, the *residuals* are exchangeable. 

**Conclusion**: It is better to ask oneself: *Are my random variables exchangeable*? than asking about independence directly. A book taking this route to construction of statistical models (within the Bayesian paradigm) is [Bernardo & Smith](https://www.amazon.com/Bayesian-Theory-Jos%C3%A9-M-Bernardo/dp/047149464X).

$^\dagger$ There are some technical points we left out.  See for instance https://stats.stackexchange.com/questions/3520/can-someone-explain-the-concept-of-exchangeability