Last updated 5 years ago
Assuming data follows a gaussian distribution, the IQR covers the range between the Q1 and Q3. It's very easily to compute: IQR=Q3−Q1\text{IQR} = \text{Q3} - \text{Q1}IQR=Q3−Q1.
Once the IQR is known, we can classify as anomaly every value:
Higher than Q3+1.5 IQRQ3 + 1.5 \text{ IQR}Q3+1.5 IQR
Lower than Q1−1.5 IQRQ1 - 1.5 \text{ IQR}Q1−1.5 IQR