# How to calculate median of data

In statistics, the median is a measure of central tendency that represents the midpoint of a dataset. It is a value that separates the lower half of a dataset from the higher half. In other words, half of the values in the dataset are below the median, while the other half are above the median.

The median is often used as an alternative to the mean (average) when the data is skewed (not symmetrical) or when there are extreme values (outliers) in the dataset. This is because the median is not affected by outliers in the same way that the mean is.

To find the median of a dataset, you need to first arrange the data in numerical order. If the dataset has an odd number of values, the median is simply the middle value. For example, in the dataset {3, 5, 7, 9, 11}, the median is 7 because it is the middle value.

If the dataset has an even number of values, the median is found by taking the mean of the two middle values. For example, in the dataset {2, 4, 6, 8, 10, 12}, the median is (6 + 8) / 2 = 7.

It’s important to note that the median is not necessarily a value that appears in the dataset. In other words, it is not necessarily one of the observations in the sample. For example, in the dataset {1, 3, 5, 7, 9}, the median is 5, which is not an actual value in the dataset.

The median is often used in statistical analysis because it is less affected by extreme values (outliers) than the mean. For example, consider the following two datasets:

Dataset 1: {1, 2, 3, 4, 5, 6, 7, 8, 9}

Dataset 2: {1, 2, 3, 4, 5, 6, 7, 8, 100}

The mean of Dataset 1 is (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9) / 9 = 5. The mean of Dataset 2 is (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 100) / 9 = 22. However, the median of both datasets is 5. As you can see, the mean of Dataset 2 is greatly affected by the extreme value (100), while the median is not.

The median is also useful when the data is skewed (not symmetrical). For example, consider the following two datasets:

Dataset 3: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

Dataset 4: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}

The mean of Dataset 3 is (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10) / 10 = 5.5. The mean of Dataset 4 is (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15) / 15 = 8. However, the median of both datasets is 5.5. As you can see, the mean of Dataset 4 is affected by the larger number of higher values, while the median is not.

There are several properties of the median that make it a useful measure of central tendency in statistical analysis:

1. The median is not affected by extreme values (outliers). As mentioned earlier, the median is not sensitive to the presence of extreme values in a dataset, making it a more robust measure of central tendency than the mean.
2. The median is not affected by changes in the scale of the data. Multiplying or dividing all the values in a dataset by a constant will not affect the median.
3. The median is a better measure of central tendency when the data is skewed. If a dataset is skewed (not symmetrical), the median is often a better measure of central tendency than the mean because it is not affected by the skewness of the data.
4. The median is easy to understand and interpret. Unlike some other statistical measures, the median is easy to understand and interpret, even for those with little statistical knowledge.
5. The median is resistant to sampling error. Because the median is not affected by extreme values, it is less sensitive to sampling error than the mean. This makes it a more reliable measure of central tendency when working with small samples.
6. The median is a useful measure of central tendency for ordinal data. The median is often used to summarize ordinal data, which is data that is ranked or ordered but not necessarily numerical.
7. The median is not sensitive to changes in the distribution of the data. The median is not affected by changes in the shape or distribution of the data, which makes it a useful measure of central tendency for data that does not follow a normal distribution.

Overall, the median is a useful measure of central tendency that is resistant to the influence of extreme values and is easy to understand and interpret. It is often used in statistical analysis as an alternative to the mean when the data is skewed or when there are extreme values present.

error: Content is protected !!
Scroll to Top