In this lab, we get to try working with *bootstrap distributions* to estimate the standard error of sample statistics and construct confidence intervals.

**Setting a seed:** We will take some random samples and build bootstrap distributions in this lab, which means you should set a seed on top of each chunk. Using the command `set.seed(x)`

, where *x* is a number of your choosing.

In this lab we will explore the data using the `dplyr`

package and visualize it using the `ggplot2`

package for data visualization. We will also do some sampling with replacement using the `mosaic`

package. The data can be found in thecompanion package for OpenIntro labs, `oilabs`

. Finally, we will use a new package called `infer`

.

Letâ€™s load the packages.

```
library(dplyr)
library(ggplot2)
library(oilabs)
library(mosaic)
```