Quartiles are three values that divide a data set into four equal parts. The quartiles are denoted as Q1,Q2, and Q3. The second quartile Q2, also known as the median, divides the ordered data set into two halves.
LowerhalfabcQ2↑dUpperhalfefg
The median of the lower half is the first quartile Q1, while the median of the upper half is the third quartile Q3.
Lowerhalfabc↓Q1Q2↑dUpperhalfefg↓Q3
The first quartile is also called lower quartile, and the third quartile is also called upper quartile. To find the quartiles of a data set, the values must first be written in numerical order.
The difference between the upper and lower quartiles is the interquartile range.