#1 Data Analytics Program in India
₹2,499₹1,499Enroll Now
Module 1
5 min read

Measures of Center

Learn mean, median, and mode - your first step into statistics

What Are Measures of Center?

When someone asks "What's your typical sale?" — you need ONE number to represent all your data. That's what measures of center do.

Three ways to find the center:

  • Mean = Average
  • Median = Middle value
  • Mode = Most common value

1. Mean (Average)

How: Add all numbers → Divide by count

Mean Calculation

Example: Sales: ₹100, ₹150, ₹200, ₹250, ₹300

Mean = (100 + 150 + 200 + 250 + 300) ÷ 5 = ₹200

Excel: =AVERAGE(A1:A5)

Python:

sales = [100, 150, 200, 250, 300]
mean = sum(sales) / len(sales)  # sum() adds, len() counts
print(mean)  # Output: 200.0

2. Median (Middle Value)

How: Sort numbers → Pick the middle one

Median - Middle Value

Example (odd count): ₹100, ₹150, ₹200, ₹250, ₹300 → Median = ₹200

Example (even count): ₹100, ₹150, ₹250, ₹300 → Median = (150 + 250) ÷ 2 = ₹200

Excel: =MEDIAN(A1:A5)

Python:

import statistics
sales = [100, 150, 200, 250, 300]
print(statistics.median(sales))  # Output: 200

3. Mode (Most Common)

How: Find the value that appears most often

Mode - Most Common Value

Example: Ratings: 4, 5, 4, 3, 4, 5, 4 → Mode = 4 (appears 4 times)

Excel: =MODE.SNGL(A1:A7)

Python:

import statistics
ratings = [4, 5, 4, 3, 4, 5, 4]
print(statistics.mode(ratings))  # Output: 4

When to Use Which?

UseWhenExample
MeanNo extreme valuesTest scores
MedianHas outliersSalaries, house prices
ModeCategories/popularitySurvey answers, favorite items
3 rows

Why Median Beats Mean (Sometimes)

Mean vs Median Salary

Salaries: ₹30k, ₹35k, ₹40k, ₹45k, ₹5,00,000 (CEO)

  • Mean = ₹1,30,000 (misleading!)
  • Median = ₹40,000 (honest)

The CEO's salary pulls mean way up. Median ignores outliers.


Quick Practice

Data: 10, 20, 30, 40, 50

  • Mean = 30
  • Median = 30
  • Mode = None (all unique)

Data: 5, 10, 15, 20, 1000

  • Mean = 210 (outlier effect!)
  • Median = 15 (better representation)

Cheat Sheet

MeasureFormulaExcelPython
MeanSum ÷ Count=AVERAGE()statistics.mean()
MedianMiddle value=MEDIAN()statistics.median()
ModeMost frequent=MODE.SNGL()statistics.mode()
3 rows

Tip: Always check both mean AND median to spot outliers!

SkillsetMaster - AI, Web Development & Data Analytics Courses