The Weighted Mean and the Median

In the previous lesson discussing the mean, we learned about the mean and worked with a dataset that describes characteristics of houses sold between 2006 and 2010 in Ames, Iowa.

In this lesson, we'll explore a few edge cases where it's either impossible to compute the mean, or it's possible but not theoretically sound. You will also learn about the weighted mean, how to calculate the weighted mean, and another value to summarize the distribution: the median. You'll learn how to find the median with an even set of values, and how to find the median for ordinal scales. You'll find out why the median is known as a robust statistic, and why the median is an ideal value to summarize the entire distribution.

While exploring the weighted mean and how the median can be used to summarize a distribution, we'll be working with a dataset that describes characteristics of houses sold between 2006 and 2010 in Ames.

As you work through each concept, you’ll apply what you’ve learned from within your browser; there's no need to use your own machine to do the exercises. The Python environment inside of this course includes answer-checking to ensure you've fully mastered each concept before moving on to the next.


  • Understand what the weighted mean is.
  • Learn how and when to use the weighted mean.
  • Understand what the median is.
  • Learn how and when to use the median.

Mission Outline

1. Introduction
2. Different Weights
3. The Weighted Mean
4. The Median for Open-ended Distributions
5. Distributions with Even Number of Values
6. The Median as a Resistant Statistic
7. The Median for Ordinal Scales
8. Sensitivity to Changes
9. Next steps
10. Takeaways


Course Info:


The median completion time for this course is 7.4 hours. View Details

This course requires a basic subscription. It includes five missions, and one guided project. It is the 16th course in the Data Analyst in Python and Data Scientist in Python path.


Take a Look Inside