IID data form a random sample when each observation is sampled from the same population distribution and each selection occurs independently of the others. section 2.3.1
The assumption separates two properties:
- Identically distributed means every observation is sampled in the same way from the same population distribution. section 2.3.1
- Independent means selecting one observation does not affect whether another observation is selected. section 2.3.1
- Generating observations from a population model can emulate IID sampling, although machine-learning data is often not IID. section 2.3.1
Generating IID observations
In Pyro, pyro.plate marks repeated IID sampling: with pyro.plate("IID", 10), the model samples ten Bernoulli observations conditioned on the same generated quantity. section 2.3.1
Figure 2.19 Creating a random sample by random selection from a population. Individuals are randomly selected from the population such that the sample distribution resembles the population distribution. The sample is identically and independently distributed (IID), meaning that sample members are selected the same way, and whether an individual is selected doesn’t depend on whether another individual was selected.
Visualizes random selection from a population and shows how identical sampling and independent selection produce an IID sample. section 2.3.1


