22.2.2 Median
Biostatistics
The median is a measure of central tendency that represents the middle value in a dataset when the data is arranged in order. If the number of values in data set is odd, the median is the middle values. If the number of values in data set is even, the median is the average of the two middle numbers. From a biological perspective, it provides a better representation of the central tendency in cases like population size, disease prevalence, or body measurements, where data might not be normally distributed.
Formula
There is no single formula to calculate the median but there are steps to calculate it.
Steps to calculate the Median
Step 1: Arrange the dataset in ascending or descending order.
Step 2: Count the total number of values in the dataset.
Step 3: If the number of values in the dataset is odd, the median is the value at the position ((n + 1)/2)ᵗʰ.
Step 4: If the number of values in the dataset is even, the median is the average of values at the positions (n/2)ᵗʰ and ((n + 1)/2)ᵗʰ