The median is the middle value in a dataset when the numbers are arranged in ascending or descending order. Unlike the mean (average), the median is not affected by extremely large or small values, making it a robust measure of central tendency. To find the median, first sort all numbers from lowest to highest. If there is an odd count of numbers, the median is the middle number. If there is an even count, the median is the average of the two middle numbers. For example, in the set {1, 3, 5}, the median is 3. In the set {1, 3, 5, 7}, the median is (3+5)/2 = 4. The median is widely used in statistics, economics, and data analysis, especially when dealing with income distributions, house prices, or test scores where outliers could skew the average.