Interquartile range

In statistics, the interquartile range (IQR) is a number that indicates how spread out the data are, and tells us what the range is in the middle of a set of scores. 
The interquartile range IQR is defined as:
That is, it is calculated as the range of the middle half of the scores. The scores are divided into four equal parts, separated by the quartiles formula_2 and formula_3, after the scores have been arranged in ascending order (becoming bigger as one goes further). The second quartile formula_4 is also known as the median.
The interquartile range is not sensitive to outliers (scores that are much higher or much lower than the other scores). In fact, it eliminates them.
Example.
Given the following 20 scores arranged from the smallest to the largest: 
We can put them into four different groups of five numbers each:
The groups are thus separated by:
Hence the interquartile range is:
If the observation 29 has accidentally been written down as 92 instead, then this number is an outlier. Notice that the interquartile range is not affected in that case.