Chapter 17 Simulation

17.1 Simulation of discrete probability models

17.1.1 How many girls in 400 births?

17.1.2 Accounting for twins

17.2 Simulation of continuous and mixed discrete/continuous models

17.2.1 Simulation in R using custom-made functions

17.3 Summarizing a set of simulations using median and median absolute deviation

17.4 Bootstrapping to simulate a sampling distribution

17.4.1 Choices in defining the bootstrap distribution

17.4.1.1 Time series

17.4.1.2 Multilevel structure

17.4.1.3 Discrete data

17.4.2 Limitations of bootstrapping

17.5 Fake-data simulation as a way of life