A statistical sample is a dataset formed by repeatedly selecting individuals from a population through a random sampling mechanism. Each selection follows the same procedure, and selections are independent when the sample is IID. section 2.3.1
Treat a sample as IID when:
- Every data point is sampled in the same way. section 2.3.1
- Whether one individual is selected does not affect another selection. section 2.3.1
- All observations come from the same population distribution. section 2.3.1
Generating an IID sample
A probabilistic model can represent the population process and then generate repeated observations from it. In Pyro, pyro.plate("IID", 10) marks ten conditionally repeated samples; pgmpy can generate a requested sample size. section 2.3.1






