Course contentsShow
← Machine Learning and Deep Learning
Lesson 76 of 3,5381. Mathematical Foundations for Machine LearningFree lesson

Descriptive Statistics: Central Tendency

Computing mean, median, and mode to characterize the center of data distributions.

Descriptive Statistics: Central Tendency

What You'll Learn

You'll learn how to summarize the "center" or "typical value" of a dataset using three fundamental measures: mean, median, and mode.

The Core Idea

When you have a collection of numbers (a dataset), you often want to describe what's "typical" or "central" about it. Central tendency gives you a single representative number that captures where most of your data clusters.

Think of it like describing the "typical" temperature in your city. Instead of listing every single day's temperature, you'd say something like "it's usually around 70°F." That's central tendency in action.

The Three Measures

Mean (Average): Add all values and divide by the count. It's the "balance point" of your data.

  • Example: Heights of 5, 6, and 7 feet → Mean = (5+6+7)/3 = 6 feet

Median (Middle Value): Sort your data and pick the middle number. If there's an even count, average the two middle values. The median isn't affected by extreme outliers.

  • Example: Ages 20, 25, 30, 35, 100 → Median = 30 (the middle value)
  • Notice the 100 doesn't skew it like it would the mean (42)!

Mode (Most Frequent): The value that appears most often. Useful for categorical data.

  • Example: Shoe sizes 7, 8, 8, 8, 9, 10 → Mode = 8

When to Use Each

  • Mean: Best for symmetrical distributions without extreme outliers
  • Median: Better when data has outliers or is skewed
  • Mode: Ideal for categorical data or finding the most common occurrence

Key Takeaway: Mean, median, and mode each describe the "center" of your data differently—mean uses all values equally, median focuses on position, and mode identifies the most common value. Choosing the right one depends on your data's shape and what story you want to tell.