Exercise 4. Error impact on SD
In the previous exercise we saw how a simple mistake in 1 out of over 900 observations can result in the average of our data increasing more than half an inch, which is a large difference in practical terms. Now let's explore the effect this outlier has on the standard deviation.
This exercise is part of the course
Data Science Visualization - Module 2
Exercise instructions
Report how many inches the SD grows after this mistake. Specifically, report the difference between the SD of the data with the mistake x_with_error
and the data without the mistake x
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
x_with_error <- x
x_with_error[1] <- x_with_error[1]*10