Exercise

# Challenge (3)

Lastly, we can construct the confidence intervals and plot them. In this exercise, you will have to calculate the 95% confidence intervals.

If you don't remember, here is the formula for the lower and upper bound respectively:

$$ \overline{x} - 1.96 \times \frac{\sigma}{\sqrt(n)} $$

$$ \overline{x} + 1.96 \times \frac{\sigma}{\sqrt(n)} $$

You can use this formula to calculate the lower and upper bounds with just two lines.

As a hint: `samp_mean * 2`

in R will multiply all 50 of the means with 2.

Instructions

**100 XP**

- Calculate
`lower`

and`upper`

bounds using the formula described above. - Inspect the plot that was generated with the provided custom function
`plot_ci()`

.