Course contentsShow
← Data Science
Lesson 43 of 2,1452. Descriptive Statistics FoundationsFree lesson

Weighted Mean and Its Applications

Calculating weighted averages when observations have different levels of importance or frequency.

Weighted Mean and Its Applications

What you'll learn: How to calculate an average when some values matter more than others.

The Core Idea

You already know how to calculate a regular mean—add up all values and divide by the count. But what if not all observations deserve equal say in the final average?

A weighted mean assigns each observation a weight that reflects its importance or frequency. Instead of treating all data points equally, you multiply each value by its weight, sum those products, then divide by the sum of all weights.

The Formula in Plain English

Weighted Mean = (value₁ × weight₁ + value₂ × weight₂ + ... + valueₙ × weightₙ) / (weight₁ + weight₂ + ... + weightₙ)

Real-World Analogy

Imagine calculating your course grade. A midterm worth 30% and a final worth 70% shouldn't be averaged equally. If you scored 80 on the midterm and 90 on the final:

  • Simple mean: (80 + 90) / 2 = 85
  • Weighted mean: (80 × 0.3 + 90 × 0.7) / (0.3 + 0.7) = (24 + 63) / 1 = 87

The weighted version properly reflects that the final matters more.

Common Applications

  • Survey data: When respondents represent different population sizes
  • Financial portfolios: Assets with different investment amounts
  • Quality metrics: Products manufactured in different batch sizes
  • Academic scores: Assignments with varying point values
  • Demographic statistics: Regions with different population counts

The weighted mean prevents distortion when your data naturally comes with different levels of importance, frequency, or representation.

Key Takeaway: The weighted mean adjusts the arithmetic average to account for varying importance by multiplying each value by its weight before averaging—essential when observations shouldn't contribute equally.