Do you include the median when finding the upper and lower quartiles?
Solution:
In statistics, the median is the value separating the higher half from the lower half of a data sample, a population, or a probability distribution. This is an important parameter that is used to extract various kinds of information from a given dataset. These are also used in important predictions of different parameters. Let's take the example of a dataset with an even number of data items:
1 4 9 16 25 36
For finding the lower quartile, we take the median of the lower 50% (lower half) of the dataset.
Therefore, lower quartile = median of {1, 4, 9} = 4
For finding the upper quartile, we take the median of the upper 50% (upper half) of the dataset.Therefore, upper quartile = median of {16 ,25, 36} = 25
Case 1: When the data set is odd:
Now let's take an example of the dataset with an odd number of items:
1 4 9 16 25 36 64
Here median = 16
We calculate the quartiles without including the median
Hence, the lower quartile = median of {1, 4, 9} = 4
The upper quartile = median of {25, 36, 64} = 36
Case 2: When the data set is even:
1, 4, 9, 16, 25, 28, 36, 64
here median = 20.5
Hence, the lower quartile = median of {1, 4, 9, 16} = (4 + 9) / 2 = 6.5
The upper quartile = median of {25, 28, 36, 64} = (28 + 36) / 2 = 32
Thus in both the cases, we don't include the median when finding the upper and the lower quartiles in a dataset.
Do you include the median when finding the upper and lower quartiles?
Summary:
We exclude the median when finding the upper and the lower quartiles in a dataset.
visual curriculum