Chapter 18 Simulation

18.1 Simulation of discrete probability models

18.1.1 How many girls in 400 births?

18.1.2 Accounting for twins

18.2 Simulation of continuous and mixed discrete/continuous models

18.2.1 Simulation in R using custom-made functions

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

18.4 Bootstrapping to simulate a sampling distribution

18.4.1 Choices in defining the bootstrap distribution

18.4.1.1 Time series

18.4.1.2 Multilevel structure

18.4.1.3 Discrete data

18.4.2 Limitations of bootstrapping

18.5 Fake-data simulation as a way of life