Chapter 21 Simulation

21.1 Simulation of discrete probability models

21.1.1 How many girls in 400 births?

21.1.2 Accounting for twins

21.2 Simulation of continuous and mixed discrete/continuous models

21.2.1 Simulation in R using custom-made functions

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

21.4 Bootstrapping to simulate a sampling distribution

21.4.1 Choices in defining the bootstrap distribution

21.4.1.1 Time series

21.4.1.2 Multilevel structure

21.4.1.3 Discrete data

21.4.2 Limitations of bootstrapping

21.5 Fake-data simulation as a way of life