1.3.4Basic Data & Probability

Mean, median, mode — calculation for raw and grouped data

3,404 words15 min readdifficulty · medium2 backlinks

Overview

The three measures of central tendency tell us where the "center" of a dataset lives. Each answers a different question: mean is the arithmetic average, median is the middle value when sorted, and mode is the most frequent value. Understanding when to use each and how they differ for raw vs. grouped data is crucial for interpreting real-world datasets.


Core Intuition


Raw Data (Ungrouped)

Mean (Arithmetic Average)

Median (Middle Value)

Mode (Most Frequent)


Grouped Data (Frequency Distribution)

When data is organized into class intervals (e.g., 0-10, 10-20), we can't see individual values. We use class marks (midpoints) and frequencies (counts).

Figure — Mean, median, mode — calculation for raw and grouped data

Mean for Grouped Data

Median for Grouped Data

Mode for Grouped Data


Common Mistakes


Step-by-Step Algorithms

Raw Data

  1. Mean: Sum all values → divide by count
  2. Median: Sort data → if odd, pick middle; if even, average two middle values
  3. Mode: Count frequencies → pick most frequent (or identify none/multiple modes)

Grouped Data

  1. Mean: Compute class marks → multiply by frequencies → sum → divide by NN
  2. Median: Compute cumulative frequency → find median class (where CFN2CF \geq \frac{N}{2}) → apply interpolation formula
  3. Mode: Find modal class (highest ff) → apply interpolation formula using neighbors

When to Use Each Measure

Measure Best For Limitation
Mean Symmetric data, when you need total/sum Sensitive to outliers
Median Skewed data, outliers present Ignores actual values, only position
Mode Categorical data, finding "typical" value May not exist or be multiple

Feynman Explanation

Recall Explain to a 12-year-old

Imagine you and4 friends got these chocolate bars:2, 3, 5, 6 and 9 bars.

Mean (average): If you pooled all chocolates (2+3+5+6+9 = 25) and shared equally, everyone gets 25÷5 = 5 bars. It's fair, but if one friend got 100 bars (lucky!), suddenly the average becomes 20, even though most of you still have fewer than 10. Mean is pulled by extremes.

Median (middle): Line up in order: {2, 3, 5, 6, 9}. The person in the middle has 5 bars. Even if the last friend had 1000 bars, the middle person still has 5. Median doesn't care about extremes!

Mode (most popular): If 3 friends had 5 bars,1 had 2, 1 had 9, then 5 is the mode—it appears most. It tells you what's "normal" in your group.

For grouped data (like "5 friends have 0-5 bars, 3 friends have 5-10 bars"), you can't see exact numbers. So you pretend everyone in the 0-5 group has 2.5 bars (the middle of0 and 5) and calculate. It's like estimating!


Mnemonic


Connections Measures of Dispersion — after finding the center, we measure spread (range, variance, standard deviation)

  • Cumulative Frequency Graphs — ogives help visualize median and quartiles
  • Frequency Distributions — foundation for grouped data calculations
  • Box Plots — visual summary using median and quartiles
  • Skewness — relationship between mean, median, mode in skewed distributions (mean > median > mode for right skew)
  • Weighted Mean — generalization where each value has a weight (similar to fxf \cdot x in grouped data)

Flashcards

#flashcards/maths

What is the formula for mean of raw data? :: xˉ=xin\bar{x} = \frac{\sum x_i}{n} where nn is the count of observations.

How do you find the median for an odd number of raw data values?
Sort the data, then pick the (n+12)th\left(\frac{n+1}{2}\right)^{\text{th}} term.
How do you find the median for an even number of raw data values?
Sort the data, then average the (n2)th\left(\frac{n}{2}\right)^{\text{th}} and (n2+1)th\left(\frac{n}{2}+1\right)^{\text{th}} terms.
What is the mode of a dataset?
The value that appears most frequently. A dataset can have no mode, one mode, or multiple modes (e.g., bimodal if two values tie for highest frequency).
What is the class mark (midpoint) of a class interval 30-40?
30+402=35\frac{30+40}{2} = 35
Formula for mean of grouped data?
xˉ=fxN\bar{x} = \frac{\sum f \cdot x}{N} where ff is frequency, xx is class mark, NN is total frequency.
Formula for median of grouped data?
Median=L+(N2CFf)×h\text{Median} = L + \left( \frac{\frac{N}{2} - CF}{f} \right) \times h where LL is lower boundary of median class, CFCF is cumulative frequency before it, ff is its frequency, hh is class width.
How do you identify the median class in grouped data?
Find the class where cumulative frequency first equals or exceeds N2\frac{N}{2}.
Formula for mode of grouped data?
Mode=L+(f1f02f1f0f2)×h\text{Mode} = L + \left( \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \right) \times h where LL is lower boundary of modal class, f1f_1 is its frequency, f0f_0 is before, f2f_2 is frequency after, hh is class width.
How do you identify the modal class?
The class with the highest frequency.
Why must you sort data before finding the median?
Median is defined as the middle value in ordered data; without sorting, you cannot identify the true middle position.
Why do we use class marks instead of class boundaries for mean in grouped data?
We assume all values in a class are uniformly distributed, so the midpoint (class mark) is the best estimate of the typical value in that class.
If mean< median < mode, the distribution is __ skewed.
Left-skewed (negatively skewed).
If mean > median > mode, the distribution is ___ skewed.
Right-skewed (positively skewed).
Why is median better than mean for data with outliers?
Median depends only on the middle position(s), not actual values, so extreme outliers don't distort it.

Concept Map

includes

includes

includes

sum over n

requires

applied to

based on

applied to

pulls

ignored by

adapts for

adapts for

adapts for

Measures of Central Tendency

Mean - arithmetic average

Median - middle value

Mode - most frequent

Raw Data ungrouped

Grouped Data

Extreme Values / Outliers

Sorting Ascending

Frequency Count

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho yaar, central tendency ka matlab hai dataset ka "center" kahan hai — aur yahan sabse important baat ye hai ki humein teen alag-alag averages ki zaroorat kyun padti hai. Mean total ko sabme barabar baant deta hai, lekin ye extreme values (outliers) se kheench jaata hai. Jaise agar ek student ne 95 marks laaye aur baaki 60-70 range mein hain, toh mean upar chala jaata hai. Median middle wala value hota hai jab data sort kiya jaaye — ye outliers ko ignore karta hai, isliye zyada "resistant" hai. Aur mode batata hai ki sabse frequent ya "typical" value kaun si hai. Har dataset ki apni shape hoti hai, isliye ek hi average pe bharosa karna galat ho sakta hai.

Calculation ka logic simple hai — mean ke liye saare values ka sum karke count se divide karo (matlab total ko equally distribute karna). Median ke liye pehle data ko ascending order mein sort karo, phir odd count hone par middle term le lo, aur even count hone par do middle terms ka average nikaalo — kyunki tab ek single middle value hoti hi nahi. Mode ke liye bas frequencies count karo aur jo sabse zyada baar aaye wo mode. Yaad rakhna, kabhi-kabhi do values tie ho jaati hain (bimodal), toh dono ko mode maanenge.

Ab grouped data mein thoda twist hai — jab data class intervals (jaise 0-10, 10-20) mein diya ho, tab humein individual values dikhti hi nahi. Isliye har class ka class mark (midpoint = lower+upper limit ka average) nikaalte hain aur usko us class ki frequency se multiply karte hain. Ye isliye important hai kyunki real-world mein zyadatar data grouped form mein hi milta hai — survey results, exam scores ki ranges, income brackets sab. Toh in dono cases (raw aur grouped) ko samajhna aapke liye practical data interpret karne mein bahut kaam aayega, aur exams mein bhi ye topic guaranteed aata hai.

Go deeper — visual, from zero

Test yourself — Basic Data & Probability

Connections