In many examples in data science and machine learning, the training data and the target is assumed to be generated in an i.i.d. fashion.
Example:
On the importance of the i.i.d. assumption in statistical learning
https://ai.stackexchange.com/questions/10839/why-exactly-do-neural-networks-require-i-i-d-data
I'm not curious as to why we need the data to be i.i.d. This is obviously to simplify the math.
But how can this assumption be satisfied in real life? How do I ensure that the data set that I generate use for training is i.i.d.