Bắt đầu ngayBắt đầu miễn phí

Difference between median and mean

On the right is Amazon's quarterly revenue from their first year - 1996 - and a more recent year - 2017. Let's compare the mean and the median revenue between the two quarters to see how the data is distributed. The median is more robust to outliers, unlike the mean. So if your dataset has a lot of outliers, the mean will be pulled in the direction of the outliers.

Recall that for an odd number of observations, a median is the middle value in the data. With an even number of observations, the median is the mean of the two middle values. To manually calculate a median, the data needs to be sorted (unlike if you are using the MEDIAN() function). This data is naturally ascending, so no sorting is necessary.

Bài tập này là một phần của khóa học

Nhập môn Thống kê với Google Sheets

Xem khóa học

Hướng dẫn bài tập

  • In cell G2, calculate the AVERAGE() for the middle observations, D5 and D6.
  • Now use MEDIAN() in H2 passing in all revenue amounts, D2:D9.
  • In cell I2, calculate the AVERAGE() of D2:D9. How different is it from the median?

Bài tập tương tác thực hành

Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi

Bắt đầu bài tập