The median of 4 and 7 is the value in the middle of 4 and 7. This value is between
5 and 6 as you can see in the list below.
4 5 6 7
Since 5.5 is the value between 5 and 6, the median of 4 and 7 is 5.5
If there are two numbers, just take the average of the two numbers to find the median.
From 1 to 10, the dataset is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.
The median is 5.5 or the value between 5 and 6.
The median is the middle value of a set of numbers after the set has been ordered from least to greatest or from greatest to least.
Suppose you have a list of numbers.
First, order the list.
Then, find the value in the middle of the list.
If there is an odd amount of numbers in the list, the median is the number in the middle of the list.
If there is an even amount of numbers in the list, the median is the average of the two numbers in the middle of the list.
Unless you have only two values in the dataset, outliers have no effect on the median.
For example, suppose the dataset is 4, 6, 10, 200. Since you are using 6 and 10 to find the median, the outlier 200 has no effect.
Suppose the dataset has only two numbers such as 10, 200. Since you are using 10 and 200 to find the median, the outlier 200 will have an effect.
When looking for the average salary, statisticians prefer to find the median salary instead of using the mean. This ensures that those who are making millions do not skew or distort the data.