Prepare a box-and-whisker plot for the following data: 36 43 28 52 41 59 47 61 24 55 63 73 32 25 35 49 31 22 61 42 58 65 98 34
Does this data set contain any outliers?
Solution: We can use R software to plot the boxplot. The R script is given below:
data =
c(36,43,28,52,41,59,47,61,24,55,63,73,32,25,35,49,31,22,61,42,58,65,98,34)
summary(data)
boxplot(data)
The summary output and boxplot is given below:
To find whether there is any outlier, we need to find the lower and upper fence:
We clearly see there is no data value in the given data, which lies outside the below lower fence and above upper fence, therefore, there are no outliers in the given data.
Get Answers For Free
Most questions answered within 1 hours.