Remember that confidence intervals are intervals that will contain the population parameter on a certain proportion of times. In this example we will walk through the simulation that was presented in Section @ref{confidence-intervals} to show that this actually works properly. Here we will use a function called do() that lets us