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.
Q2↑abcLowerhalfdefgUpperhalf
The median of the lower half is the first quartile Q1, and the median of the upper half is the third quartile Q3.
Q2↑abcLowerhalfdefgUpperhalf↓↓Q1Q3
Moreover, the first quartile is also called lower quartile, and the third quartile is also called upper quartile. The difference between the upper and lower quartiles is the interquartile range. To find the quartiles, the corresponding data set must first be written in order.