February 16, 2020
IQR - INTERQUARTILE RANGE
The interquartile range (IQR) is the difference between the first and third quartile.
Q1 separates the 1st 25% of the data.
Q3 separates the 1st 75% of the data.
In SciPy, the iqr( ) function takes a dataset as a parameter and returns the interquartile range.
The main takeaway of the IQR is that it is a statistic, like the range, that helps describe the spread of the center of the data. Unlike the range, the IQR is robust.
A statistic is robust when outliers have little impact on it.
BOXPLOTS
One of the most commonly used methods of drawing the whiskers of a boxplot is the extend them 1.5 times the interquartile range from the first and third quartile.
Q3 - Q1 = IQR
An outlier is a point in the dataset that falls outside of the whiskers.