Lesson 5: Generative modeling and parametric inference