🏠 Home
Introduction to Statistics
Unit II Β· Lectures 11–12

BDS113 β€” Introduction to Statistics

Median, Mode & Empirical Relationship

Positional Averages Β· Grouped & Ungrouped Data Β· Mean–Median–Mode Link


Unit II Β· Lectures 11–12 of 40 Β· B.Sc. Data Science, 1st Year, Semester II

Introduction to Statistics
Unit II Β· Lectures 11–12

The Journey β€” Lectures 11 & 12


πŸ“
Lecture 11 β€” Median
Definition Β· Median for ungrouped data (odd & even n) Β· Median for grouped data Β· Formula & derivation Β· Graphical method (ogive)
πŸ†
Lecture 12 β€” Mode & Empirical Relationship
Definition Β· Mode for ungrouped & grouped data Β· Modal class Β· Empirical formula Β· Comparison of Mean, Median, Mode Β· When to use which
Introduction to Statistics
Unit II Β· Lecture 11

πŸ“ Median β€” Definition


πŸ“– Formal Definition

The median is the middle value of a dataset when the observations are arranged in ascending (or descending) order. It divides the data into two equal halves β€” exactly 50% of observations fall below the median and 50% fall above it. It is a positional average, denoted by M or Me.


πŸ’‘ Analogy: The Centre Seat

Imagine 7 students standing in a line, arranged by height (shortest to tallest). The student standing in the 4th position (the middle) represents the median height. Three students are shorter and three are taller β€” the median person perfectly splits the group in half.


πŸ’¬ Key Insight: The median is not affected by extreme values. If the tallest student's height doubles, the median student's position doesn't change. This makes the median robust against outliers β€” a major advantage over the mean.
Introduction to Statistics
Unit II Β· Lecture 11

πŸ“ Median β€” Ungrouped Data (Odd n)


Formula β€” When n is ODD

Median = Value at position (n + 1) / 2
First arrange data in ascending order, then pick the middle value.

πŸ“ Example 1: Odd number of observations

Find the median of: 23, 18, 45, 12, 31, 27, 38


πŸ“ Step-by-Step Solution

Step 1: Arrange in ascending order:
12, 18, 23, 27, 31, 38, 45

Step 2: Count: n = 7 (odd)

Step 3: Position of median = (n+1)/2 = (7+1)/2 = 4th value

Step 4: The 4th value in the ordered list is 27.

∴ Median = 27


πŸ“Š Verification

Values below 27: 12, 18, 23 β†’ 3 values (left half) βœ“
Values above 27: 31, 38, 45 β†’ 3 values (right half) βœ“
Equal halves confirmed. The median is correct.

Introduction to Statistics
Unit II Β· Lecture 11

πŸ“ Median β€” Ungrouped Data (Even n)


Formula β€” When n is EVEN

Median = Average of values at positions n/2 and (n/2 + 1)
There is no single middle value β€” take the average of the two middle values.

πŸ“ Example 2: Even number of observations

Find the median of: 15, 22, 38, 27, 41, 33


πŸ“ Step-by-Step Solution

Step 1: Arrange in ascending order:
15, 22, 27, 33, 38, 41

Step 2: Count: n = 6 (even)

Step 3: Positions = n/2 = 3rd and n/2 + 1 = 4th

Step 4: 3rd value = 27, 4th value = 33

Step 5: Median = (27 + 33) / 2 = 60 / 2 = 30

∴ Median = 30 (Note: 30 is not an actual observation!)


πŸ’‘ Key Difference from Mean: The median may not be an actual data point β€” it can fall between two observations. The mean can also be a non-observed value. Neither is guaranteed to be in the dataset.
Introduction to Statistics
Unit II Β· Lecture 11

🎬 Visual: Find the Median on a Number Line


Select Odd or Even n, then click "Find Median":


Introduction to Statistics
Unit II Β· Lecture 11

πŸ“Š Median for Grouped (Frequency) Data


πŸ“– Logic

For grouped data, we do not know individual observations. We know that N/2 observations lie below the median. The median lies in the class where the cumulative frequency first reaches or exceeds N/2. This class is called the median class.


Median Formula β€” Grouped Data

Median = L + [(N/2 βˆ’ CF) / f] Γ— h
L = lower limit of the median class
N = total frequency (Ξ£f)
CF = cumulative frequency of the class preceding the median class
f = frequency of the median class
h = class width of the median class

πŸ’‘ Analogy: Finding Your Seat in a Theatre

Imagine rows of seats (classes) with people (frequency). You are person number N/2. You count people row by row (cumulative frequency). When you find the row where you belong β€” that is your median class. Your exact seat within that row is the median value.

Introduction to Statistics
Unit II Β· Lecture 11

πŸ“ Median β€” Grouped Data: Worked Example


πŸ“ Problem

Find the median from the following distribution:

Class10–2020–3030–4040–5050–6060–70
f58121073

πŸ“ Step-by-Step Solution

Step 1: Calculate N = Ξ£f = 5+8+12+10+7+3 = 45

Step 2: N/2 = 45/2 = 22.5

Step 3: Build the cumulative frequency (Less Than type):

ClassfCF (Less Than)
10–2055
20–30813
30–401225 ← first CF β‰₯ 22.5
40–501035
50–60742
60–70345

Step 4: Identify the median class: 30–40 (first class where CF β‰₯ 22.5)

Step 5: Identify the values:
L = 30 (lower limit of median class)
CF = 13 (CF of the class before the median class, i.e., 20–30)
f = 12 (frequency of the median class)
h = 10 (class width)

Step 6: Apply the formula:
Median = L + [(N/2 βˆ’ CF) / f] Γ— h
Median = 30 + [(22.5 βˆ’ 13) / 12] Γ— 10
Median = 30 + [9.5 / 12] Γ— 10
Median = 30 + 0.7917 Γ— 10
Median = 30 + 7.917
Median = 37.92


πŸ’‘ Interpretation: 50% of students scored below 37.92 marks, and 50% scored above. The median falls inside the class 30–40, approximately 79% of the way through that class.
Introduction to Statistics
Unit II Β· Lecture 11

🎬 Visual: Median from Grouped Data


Click "Find Median" to see the median class identified and the value calculated on a number line:


Marks Cumulative Frequency 10 20 30 40 50 60 70 0 10 20 30 40 5 13 25 35 42 45 22.5 β‰ˆ 37.9 Median class: 30–40 | Median β‰ˆ 37.92 marks
Introduction to Statistics
Unit II Β· Lecture 11

βœ… Merits & ⚠️ Limitations of Median


βœ… Merits

1. Not affected by extreme values β€” robust against outliers.

2. Can be used for open-end distributions β€” only needs position, not exact values.

3. Can be determined graphically β€” from the ogive (at N/2 on Y-axis).

4. Suitable for qualitative data β€” can find median of ordinal data (e.g., rating: Low, Medium, High).

5. Easy to understand β€” the "middle value" concept is intuitive.

⚠️ Limitations

1. Does not use all observations β€” only the middle value matters; extreme values are ignored.

2. Not algebraically tractable β€” cannot be used in further calculations like variance.

3. Not unique for grouped data β€” depends on the interpolation assumption.

4. Requires ordering β€” data must be arranged in order first (tedious for large datasets).

5. Affected by sampling fluctuations β€” the median varies more across samples than the mean.

Introduction to Statistics
Unit II Β· Lecture 12

β€” Lecture 12 β€”

Mode & Empirical Relationship

Most Frequent Value Β· Modal Class Β· Mean–Median–Mode Link

Introduction to Statistics
Unit II Β· Lecture 12

πŸ† Mode β€” Definition


πŸ“– Formal Definition

The mode is the value that occurs most frequently in a dataset β€” the observation with the highest frequency. It is the value around which the data tends to cluster most densely. Denoted by Z or Mo.


πŸ’‘ Analogy: Most Popular Choice

If a class votes for their favourite colour and the results are: Red (8), Blue (12), Green (5), Yellow (3) β€” Blue is the mode because it was chosen most often (12 times). The mode tells you what is most popular or most common.


πŸ“– Special Cases

Unimodal: One mode. E.g., 2, 3, 3, 5, 7 β†’ Mode = 3
Bimodal: Two modes. E.g., 2, 3, 3, 5, 5, 7 β†’ Modes = 3, 5
Trimodal: Three modes.
No mode: All values occur equally. E.g., 1, 2, 3, 4, 5 β†’ No mode

πŸ“– Real-Life Examples

β€’ Most common shoe size sold in a shop
β€’ Most frequent daily temperature in a month
β€’ Most popular product in a store
β€’ Peak traffic hour on a road
β€’ Most common blood group in a population

Introduction to Statistics
Unit II Β· Lecture 12

πŸ“ Mode β€” Ungrouped Data


πŸ“– Method

For ungrouped data, the mode is found by inspection β€” simply count the frequency of each value and pick the one that occurs most often. No formula is needed.


πŸ“ Example 1: Single Mode

Data: 4, 6, 2, 6, 8, 6, 3, 5, 6, 7

ValueFrequency
21
31
41
51
64
71
81

∴ Mode = 6 (occurs 4 times β€” highest frequency)

πŸ“ Example 2: Bimodal

Data: 3, 5, 3, 7, 5, 8, 3, 5, 9

ValueFrequency
33
53
71
81
91

∴ Modes = 3 and 5 (bimodal β€” both occur 3 times)


πŸ’‘ Important: Mode can be found for qualitative (nominal) data too. E.g., if fruits sold are: Apple (50), Banana (80), Orange (30) β€” Mode = Banana. This is something the mean and median cannot do for nominal data.
Introduction to Statistics
Unit II Β· Lecture 12

πŸ“Š Mode for Grouped (Frequency) Data


πŸ“– Identifying the Modal Class

For grouped data, the modal class is the class interval with the highest frequency. The mode is then estimated by interpolation within this class.


Mode Formula β€” Grouped Data

Mode = L + [(f₁ βˆ’ fβ‚€) / (2f₁ βˆ’ fβ‚€ βˆ’ fβ‚‚)] Γ— h
L = lower limit of the modal class
f₁ = frequency of the modal class
fβ‚€ = frequency of the class preceding the modal class
fβ‚‚ = frequency of the class succeeding the modal class
h = class width

πŸ’‘ Analogy: The Peak of a Hill

Imagine the frequency distribution as a landscape of hills. The modal class is the tallest hill. The mode formula finds the exact peak of that hill by looking at how steeply the hill rises from the left (fβ‚€) and falls to the right (fβ‚‚).

Introduction to Statistics
Unit II Β· Lecture 12

πŸ“ Mode β€” Grouped Data: Worked Example


πŸ“ Problem

Find the mode from the following distribution:

Class0–1010–2020–3030–4040–5050–60
f58151273

πŸ“ Step-by-Step Solution

Step 1: Identify the class with the highest frequency:
20–30 has f = 15 (highest) β†’ Modal class = 20–30

Step 2: Identify the values:
L = 20 (lower limit of modal class)
f₁ = 15 (frequency of modal class)
fβ‚€ = 8 (frequency of the class before modal class, i.e., 10–20)
fβ‚‚ = 12 (frequency of the class after modal class, i.e., 30–40)
h = 10 (class width)

Step 3: Apply the formula:
Mode = L + [(f₁ βˆ’ fβ‚€) / (2f₁ βˆ’ fβ‚€ βˆ’ fβ‚‚)] Γ— h
Mode = 20 + [(15 βˆ’ 8) / (2Γ—15 βˆ’ 8 βˆ’ 12)] Γ— 10
Mode = 20 + [7 / (30 βˆ’ 20)] Γ— 10
Mode = 20 + [7 / 10] Γ— 10
Mode = 20 + 7
Mode = 27


πŸ’‘ Interpretation: The most common marks range is 20–30, and the estimated peak frequency occurs at 27 marks. This is where the data clusters most densely.
Introduction to Statistics
Unit II Β· Lecture 12

🎬 Visual: Finding the Mode β€” The Peak


Click "Find Mode" to see the modal class identified and the mode value calculated:


Marks Frequency 0 5 10 15 0–10 10–20 20–30 30–40 40–50 50–60 5 8 15 12 7 3 Z = 27 Modal class: 20–30 (f=15) β†’ Mode = 27
Introduction to Statistics
Unit II Β· Lecture 12

βœ… Merits & ⚠️ Limitations of Mode


βœ… Merits

1. Easy to understand β€” "most frequent value" is intuitive.

2. Not affected by extreme values β€” outliers don't shift the mode.

3. Can be used for qualitative data β€” can find mode of nominal data (favourite colour, most common name).

4. Can be determined by inspection for ungrouped data.

5. Represents the "typical" value well in highly skewed distributions (e.g., most common income).

⚠️ Limitations

1. Not always defined β€” no mode if all values occur equally, or ambiguous if multiple modes exist.

2. Not based on all observations β€” only the most frequent value matters.

3. Not algebraically tractable β€” cannot be used in further calculations.

4. Not unique β€” a dataset can have multiple modes.

5. Affected by class width β€” for grouped data, changing the class intervals can change the modal class.

Introduction to Statistics
Unit II Β· Lecture 12

πŸ”— Empirical Relationship: Mean, Median & Mode


πŸ“– The Karl Pearson Empirical Formula

For a moderately skewed distribution (not too far from bell-shaped), Karl Pearson discovered an approximate relationship between the three measures of central tendency:


Karl Pearson's Empirical Formula

Mode = 3 Γ— Median βˆ’ 2 Γ— Mean
Or equivalently:
Mean βˆ’ Mode = 3 Γ— (Mean βˆ’ Median)

Rearranged:
Median = (Mode + 2 Γ— Mean) / 3
Mean = (3 Γ— Median βˆ’ Mode) / 2

πŸ’‘ Why Does This Work?

In a perfectly symmetric (bell-shaped) distribution, Mean = Median = Mode. When the distribution becomes skewed, the three values separate in a predictable way. This formula captures that predictable separation.


⚠️ Important Caveats:
1. This is an approximation, not an exact formula.
2. Works well for moderately skewed distributions only.
3. For symmetric distributions: Mean = Median = Mode (the formula gives Mode = 3M βˆ’ 2M = M).
4. For extremely skewed or multi-modal distributions, the formula may give inaccurate results.
Introduction to Statistics
Unit II Β· Lecture 12

🎬 Visual: How Skewness Affects the Three Averages


Click each type to see the relative positions of Mean, Median, and Mode:


Introduction to Statistics
Unit II Β· Lecture 12

πŸ“ Empirical Formula β€” Worked Example


πŸ“ Example 1: Find Mode from Mean & Median

For a moderately skewed distribution:
Mean = 40, Median = 35
Find the Mode using the empirical formula.

πŸ“ Solution

Mode = 3 Γ— Median βˆ’ 2 Γ— Mean
Mode = 3 Γ— 35 βˆ’ 2 Γ— 40
Mode = 105 βˆ’ 80
Mode = 25

Check: Mean (40) > Median (35) > Mode (25) β†’ Right-skewed βœ“

πŸ“ Example 2: Find Median from Mean & Mode

For a moderately skewed distribution:
Mean = 50, Mode = 62
Find the Median.

πŸ“ Solution

Using: Mean βˆ’ Mode = 3(Mean βˆ’ Median)
50 βˆ’ 62 = 3(50 βˆ’ Median)
βˆ’12 = 150 βˆ’ 3 Γ— Median
3 Γ— Median = 162
Median = 54

Check: Mode (62) > Median (54) > Mean (50) β†’ Left-skewed βœ“

Introduction to Statistics
Unit II Β· Lecture 12

🎬 Visual: Empirical Formula Calculator


Enter any two values and the third will be calculated automatically:


Introduction to Statistics
Unit II Β· Lecture 12

βš–οΈ Mean vs Median vs Mode β€” Complete Comparison


FeatureMean (xΜ„)Median (M)Mode (Z)
DefinitionSum Γ· CountMiddle valueMost frequent value
TypeMathematical averagePositional averagePositional average
Based onAll observationsMiddle position onlyFrequency only
Affected by outliers?Yes β€” highly sensitiveNo β€” robustNo β€” robust
Qualitative data?NoYes (ordinal only)Yes (nominal too)
Open-end classes?Cannot be calculatedCan be estimatedCan be estimated
Algebraic treatment?Yes (variance, regression)LimitedNo
Unique?Always uniqueAlways uniqueMay not exist or may have multiple
Graphical determination?Not directlyFrom ogiveFrom histogram (highest bar)
Sampling stabilityMost stableModerateLeast stable
Best forSymmetric dataSkewed dataMost common value needed
Introduction to Statistics
Unit II Β· Lecture 12

🧭 When to Use Which Measure?


Use the MEAN when:

β€’ Data is symmetric with no outliers
β€’ You need further algebraic calculations
β€’ Every observation matters
β€’ Computing average marks, income, temperature

Use the MEDIAN when:

β€’ Data is skewed (income, house prices)
β€’ There are extreme outliers
β€’ Distribution has open-end classes
β€’ You want the centre of a ranked dataset

Use the MODE when:

β€’ Data is qualitative/nominal
β€’ You need the most typical or common value
β€’ Finding peak demand (busiest hour, best-selling size)
β€’ Data has no numerical meaning


πŸ’¬ Practical Wisdom: In practice, the mean is used most often (in exams, research, business). The median is preferred for income/wealth data. The mode is used in market research and manufacturing. Understanding all three gives you a complete picture.
Introduction to Statistics
Unit II Β· Lecture 12

🎬 Visual: The Relationship Map


Mean (xΜ„) Ξ£x / n Median (M) Middle value Mode (Z) Most frequent Mode = 3 Γ— Median βˆ’ 2 Γ— Mean Mean βˆ’ Mode = 3 Γ— (Mean βˆ’ Median) Karl Pearson's Empirical Relationship For moderately skewed distributions
Introduction to Statistics
Unit II Β· Lectures 11–12

πŸ”‘ Complete Summary: Lectures 11–12


Introduction to Statistics
Unit II Β· Lectures 11–12

🧠 Quick Quiz β€” Lectures 11–12


Q1: The median of 8, 12, 15, 20, 25, 30, 35 is:

A) 15
B) 20
C) 25
D) 17.9

Q2: The median of 10, 20, 30, 40 is:

A) 20
B) 30
C) 25
D) 22

Q3: In a grouped frequency distribution, the median class is identified by:

A) The class with the highest frequency
B) The class where CF first reaches or exceeds N/2
C) The first class
D) The middle class in the table

Q4: The data {Red, Blue, Red, Green, Red, Blue} has mode:

A) Red
B) Blue
C) Green
D) No mode

Q5: If Mean = 50 and Median = 45, the Mode (using empirical formula) is approximately:

A) 40
B) 35
C) 55
D) 42

Q6: In a right-skewed distribution, the correct order is:

A) Mean > Median > Mode
B) Mode > Median > Mean
C) Mean = Median = Mode
D) Median > Mean > Mode

Q7: Which average can be found for qualitative (nominal) data?

A) Mean only
B) Median only
C) Mode
D) All three

Q8: If the modal class has f₁=20, the preceding class has fβ‚€=12, and the succeeding class has fβ‚‚=15, with L=30 and h=10, the mode is:

A) 32
B) 38
C) 40
D) 35

Q9: The empirical formula Mean βˆ’ Mode = 3(Mean βˆ’ Median) was given by:

A) Bowley
B) Karl Pearson
C) Fisher
D) Gauss

Q10: The median is NOT affected by:

A) The number of observations
B) The order of observations
C) Extreme values (outliers)
D) The middle value
Introduction to Statistics
Unit II Β· Lectures 11–12

πŸ“ Homework & Practice


πŸ“ Practice Tasks

1. Find the median of: (a) 14, 28, 35, 42, 56, 63, 71 (b) 12, 18, 25, 30, 38, 44

2. Find the median from the following grouped data:

Class0–1010–2020–3030–4040–50
f61014128

3. Find the mode of: (a) 3, 5, 7, 5, 3, 5, 8, 5, 9 (b) Apple, Banana, Apple, Orange, Banana, Apple, Mango, Banana, Banana

4. Find the mode from the following grouped data:
Class5–1515–2525–3535–4545–55
f4816116

5. The mean of a moderately skewed distribution is 42 and the median is 38. Find the mode using the empirical formula. Is the distribution right-skewed or left-skewed?

6. The mode of a distribution is 55 and the median is 48. Find the mean using the empirical formula.

7. Explain why the median is a better measure of central tendency than the mean for income data. Give a numerical example.

8. For a symmetric distribution with mean = 30, what are the median and mode? Verify using the empirical formula.

9. BONUS: The following are the marks of 15 students: 65, 72, 58, 84, 90, 58, 72, 58, 68, 75, 82, 58, 63, 70, 78. Calculate the mean, median, and mode. Verify the empirical relationship. Comment on the skewness.

Introduction to Statistics
Unit II Β· Lectures 11–12

Thank You!


Questions? Let's discuss!


Upcoming in Unit II

Lecture 13–14: Partition Values β€” Quartiles, Deciles, Percentiles
Lecture 15: Unit II Review & Problem-Solving

Unit II Β· Lectures 11–12 Β· BDS113 Introduction to Statistics Β· B.Sc. Data Science, Semester II