Chapter 16 Simulation

16.1 Simulation of discrete probability models

16.1.1 How many girls in 400 births?

16.1.2 Accounting for twins

16.2 Simulation of continuous and mixed discrete/continuous models

16.2.1 Simulation in R using custom-made functions

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

16.4 Bootstrapping to simulate a sampling distribution

16.4.1 Choices in defining the bootstrap distribution

16.4.1.1 Time series

16.4.1.2 Multilevel structure

16.4.1.3 Discrete data

16.4.2 Limitations of bootstrapping

16.5 Fake-data simulation as a way of life