The final piece of a boxplot is the representation of outliers. An outlier is a point in the dataset that falls outside of the whiskers. Outliers are usually represented with a dot or an asterisk.
We’ve given you a small dataset. Let’s find the outliers in it! We’ve calculated the ends of the whiskers for you. Run the code to see where the whiskers extend to.
Look at the values in the array and find the outliers. Create a variable for each outlier and set it equal to the value of the outlier.
For example, if there are three outliers and their values are
7, then you should create three variables named
outlier_three and set each variable equal to