Quartiles are special percentiles: the 1st quartile, , is equal to the 25th percentile; the 3rd quartile, , is equal to the 75th percentile. The Median is both the 2nd quartile () and the 50th Percentile.
To calculate quartiles, the data must be ordered from smallest to largest.
Median is a number that measures the center of the data. It can be thought of as the middle value, but is not necessarily one of the observed values.
It separates ordered data into halves.
median
The Median is the value of a sample such that the probability of getting a value less than the median is equal to the prbability of getting a value greater than the median and is equal to 0.5.