Statistics⏱ 5 min read

Mean, Median & Mode

x̄ = (Σx) / n

📊 Mean (Average)

The mean is the sum of all values divided by the count of values. It's the most common measure of central tendency.

x̄ = (x₁ + x₂ + ... + xₙ) / n

Example: data set {4, 7, 2, 9, 3} → Mean = (4+7+2+9+3)/5 = 25/5 = 5

📊 Median (Middle Value)

The median is the middle value when data is sorted. It is resistant to outliers.

1
Sort the data{2, 3, 4, 7, 9}
2
Odd count: pick the middle valueMedian = 4 (3rd of 5)
3
Even count: average the two middle values{2,3,4,7} → Median = (3+4)/2 = 3.5

📊 Mode (Most Frequent)

The mode is the value that appears most often. A dataset can have one mode, multiple modes, or no mode.

Example: {3, 5, 3, 7, 5, 3} → Mode = 3 (appears 3 times)

🧮 Mean Calculator

Enter comma-separated numbers to calculate the mean

Result will appear here

💡 When to Use Each Measure

Mean — best for symmetric data without extreme outliers
Median — best when data has outliers (e.g. income, house prices)
Mode — best for categorical data (e.g. favourite colour, shoe size)