The median is a statistical measure used to find the middle value in a set of data when the data points are arranged in order. To calculate the median, the data is first arranged in ascending or descending order, and then the middle value is determined.
If there is an odd number of data points, the median is the middle value.
If there is an even number of data points, the median is the average of the two middle values. The median is a useful measure of central tendency, particularly when dealing with skewed or non-normally distributed data.