Unit II · Lectures 9–10 of 40 · B.Sc. Data Science, 1st Year, Semester II
Introduction to Statistics
Unit II · Lectures 9–10
The Journey — Lectures 9 & 10
📐
Lecture 9 — Introduction & Arithmetic Mean What is central tendency? · Types of averages · Mean for ungrouped data · Mean for grouped data (3 methods) · Properties of mean
⚖️
Lecture 10 — Weighted Mean & Combined Mean Weighted arithmetic mean · Applications · Combined mean of two groups · Worked examples · Limitations of mean
Introduction to Statistics
Unit II · Lecture 9
🎯 What is Central Tendency?
📖 Definition
A measure of central tendency is a single value that attempts to describe a dataset by identifying the central or typical value within that set. It represents the centre point of the distribution — the value around which the data clusters. Also called a measure of location or an average.
💡 Analogy: The Balancing Point
Imagine placing all the data values as weights on a number line. The central tendency is the point where the number line balances perfectly — like the fulcrum of a seesaw. It is the one value that "stands for" the entire dataset.
💬 Quote:"An average is an attempt to find a single figure to describe a set of figures." — Simpson & Kafka. The goal is data reduction without losing the essential character of the dataset.
Introduction to Statistics
Unit II · Lecture 9
🤔 Why Do We Need Measures of Central Tendency?
📊 Data Reduction
Condenses thousands of observations into one representative value. E.g., "The average marks of the class is 72" is simpler than listing all 60 marks.
⚖️ Comparison
Enables comparison between groups. E.g., "Class A's average = 75, Class B's average = 68" — instantly tells which class performed better.
📈 Decision Making
Used in business, policy, and research. E.g., "Average monthly sales = ₹5L" helps set targets and allocate resources.
🔬 Further Analysis
Central tendency is the foundation for dispersion (standard deviation), skewness, correlation, and all advanced statistical measures.
🌍 Everyday Use
We use averages daily without realising: average speed, average rainfall, average income, average temperature, batting average.
📋 Reporting
Government reports, census data, economic surveys — all use averages to summarise national-level data for citizens and policymakers.
Introduction to Statistics
Unit II · Lecture 9
📐 Three Types of Averages
📖 Classification of Averages
Measures of central tendency (averages) are classified into two broad categories:
1. Mathematical Averages (Algebraic)
Based on all observations and derived through mathematical operations (addition, division). They consider the magnitude of every value.
Members:
• Arithmetic Mean (most common) • Geometric Mean (for rates/ratios) • Harmonic Mean (for speed/rates)
2. Positional Averages
Based on the position of values when arranged in order. They do not depend on the actual magnitude of every value — only on where the central value falls.
Members:
• Median (middle value) • Mode (most frequent value)
➕ Mean Σx / n
📍 Median Middle value
🏆 Mode Most frequent
💡 Today's Focus: We will study the Arithmetic Mean in depth — the most widely used measure of central tendency. Median and Mode will be covered in Lectures 11–12.
Introduction to Statistics
Unit II · Lecture 9
🎬 Visual: Three Averages at a Glance
Click each average to explore its definition, formula, and a real-life example:
➕
Arithmetic Mean
📍
Median
🏆
Mode
Introduction to Statistics
Unit II · Lecture 9
➕ Arithmetic Mean (AM)
📖 Definition
The arithmetic mean (or simply mean) is the sum of all observations divided by the total number of observations. It is the most commonly used measure of central tendency and is denoted by x̄ (x-bar) for a sample and μ (mu) for a population.
Formula — Ungrouped Data
x̄ = (x₁ + x₂ + x₃ + ... + xₙ) / n = Σxᵢ / n
where x₁, x₂, ..., xₙ are the observations and n = total number of observations
💡 Analogy: Sharing Equally
Imagine 5 friends have ₹10, ₹20, ₹30, ₹40, ₹50. They pool all the money and share it equally. Each person gets: (10+20+30+40+50)/5 = ₹150/5 = ₹30. The mean is the equal share each person would get.
💬 Property: The sum of deviations of all observations from the mean is always zero. Σ(xᵢ − x̄) = 0. This is a defining property and a powerful check for correctness.
Introduction to Statistics
Unit II · Lecture 9
📝 Mean of Ungrouped Data — Worked Example
📝 Problem
The marks obtained by 8 students in a Statistics test are: 45, 52, 68, 71, 58, 63, 75, 49 Find the arithmetic mean.
📝 Solution — Step by Step
Step 1: List all observations.
x₁=45, x₂=52, x₃=68, x₄=71, x₅=58, x₆=63, x₇=75, x₈=49
Step 4: Divide by n.
x̄ = Σxᵢ / n = 481 / 8 = 60.125
📊 Verification: Σ(xᵢ − x̄) = 0
xᵢ
xᵢ − x̄
45
45 − 60.125 = −15.125
52
52 − 60.125 = −8.125
68
68 − 60.125 = +7.875
71
71 − 60.125 = +10.875
58
58 − 60.125 = −2.125
63
63 − 60.125 = +2.875
75
75 − 60.125 = +14.875
49
49 − 60.125 = −11.125
Sum
Σ(xᵢ − x̄) = 0.000 ✓
Introduction to Statistics
Unit II · Lecture 9
🎬 Visual: The Mean as a Balancing Point
The mean is where a number line would balance if data values were placed as weights. Click "Balance" to see it:
Introduction to Statistics
Unit II · Lecture 9
📊 Mean for Grouped Data — Three Methods
📖 The Challenge
When data is grouped into class intervals, we do not know the exact values of individual observations. We assume that all observations in a class are concentrated at the class mark (midpoint) of that class. The mean is then calculated using the formula:
Method 1: Direct Method
x̄ = Σ(fᵢ · xᵢ) / Σfᵢ
where fᵢ = frequency of i-th class, xᵢ = class mark (midpoint) of i-th class, Σfᵢ = N (total frequency)
💡 Logic Behind the Formula
If 5 students scored in the range 40–50, we assume all 5 scored exactly 45 (the midpoint). Then the total marks of these 5 students = 5 × 45 = 225. Summing across all classes gives Σ(fᵢ · xᵢ). Dividing by N gives the mean.
Introduction to Statistics
Unit II · Lecture 9
📝 Direct Method — Worked Example
📝 Problem
Find the mean marks from the following frequency distribution:
Marks
0–10
10–20
20–30
30–40
40–50
f
5
10
15
12
8
📝 Solution — Direct Method
Class
fᵢ
xᵢ (midpoint)
fᵢ · xᵢ
0–10
5
5
25
10–20
10
15
150
20–30
15
25
375
30–40
12
35
420
40–50
8
45
360
Total
Σfᵢ = 50
Σfᵢxᵢ = 1330
x̄ = Σfᵢxᵢ / Σfᵢ = 1330 / 50 = 26.6 marks
Introduction to Statistics
Unit II · Lecture 9
📐 Method 2: Assumed Mean (Shortcut) Method
📖 When to Use
The assumed mean method simplifies calculations when class marks have large values. Instead of multiplying large numbers, we choose a convenient assumed mean (A) — usually the class mark of the middle class — and calculate deviations dᵢ = xᵢ − A.
Formula
x̄ = A + Σ(fᵢ · dᵢ) / Σfᵢ
where A = assumed mean, dᵢ = xᵢ − A (deviation from assumed mean)
📝 Same Example — Assumed Mean Method
Choose A = 25 (midpoint of the middle class 20–30).
Class
fᵢ
xᵢ
dᵢ = xᵢ − 25
fᵢ · dᵢ
0–10
5
5
−20
−100
10–20
10
15
−10
−100
20–30
15
25
0
0
30–40
12
35
+10
+120
40–50
8
45
+20
+160
Total
50
Σfᵢdᵢ = 80
x̄ = 25 + (80 / 50) = 25 + 1.6 = 26.6 marks ✓
Same answer! But the numbers were much smaller to work with.
Introduction to Statistics
Unit II · Lecture 9
📐 Method 3: Step-Deviation Method
📖 When to Use
The step-deviation method goes one step further: it divides the deviations by the class width (h) to make the numbers even smaller. This is the most efficient method when class widths are equal.
Formula
x̄ = A + h × Σ(fᵢ · uᵢ) / Σfᵢ
where A = assumed mean, h = class width, uᵢ = (xᵢ − A) / h
📝 Same Example — Step-Deviation Method
A = 25, h = 10.
Class
fᵢ
xᵢ
dᵢ = xᵢ − 25
uᵢ = dᵢ / 10
fᵢ · uᵢ
0–10
5
5
−20
−2
−10
10–20
10
15
−10
−1
−10
20–30
15
25
0
0
0
30–40
12
35
+10
+1
+12
40–50
8
45
+20
+2
+16
Total
50
Σfᵢuᵢ = 8
x̄ = 25 + 10 × (8/50) = 25 + 1.6 = 26.6 marks ✓
All three methods give the same answer. Use whichever is most convenient.
Introduction to Statistics
Unit II · Lecture 9
🎬 Visual: Step-Deviation Method — Animated
Click "Calculate" to watch the step-deviation method unfold row by row:
Introduction to Statistics
Unit II · Lecture 9
⚖️ Three Methods — When to Use What?
Feature
Direct Method
Assumed Mean
Step-Deviation
Formula
x̄ = Σfx / Σf
x̄ = A + Σfd / Σf
x̄ = A + h × Σfu / Σf
Computation
Multiply f × x (large numbers)
Multiply f × d (smaller numbers)
Multiply f × u (smallest numbers)
Best for
Small values, few classes
Large class marks
Equal class widths, many classes
Complexity
Simple but tedious
Moderate
Simplest arithmetic
Result
Exact mean
Exact mean
Exact mean
💡 Exam Strategy: If class widths are equal, always use the step-deviation method — it minimises calculation errors and saves time. If class widths are unequal, use the assumed mean method (step-deviation cannot be used with unequal widths).
Introduction to Statistics
Unit II · Lecture 9
🔑 Properties of Arithmetic Mean
Property 1 — Sum of deviations is zero: Σ(xᵢ − x̄) = 0. The positive and negative deviations from the mean always cancel out perfectly.
Property 2 — Unique: For a given dataset, the arithmetic mean is unique — there is only one value.
Property 3 — Uses all observations: The mean depends on every value in the dataset. Changing even one value changes the mean.
Property 4 — Effect of constant addition: If a constant c is added to every observation, the mean increases by c. New mean = x̄ + c.
Property 5 — Effect of constant multiplication: If every observation is multiplied by a constant c, the mean is also multiplied by c. New mean = c × x̄.
Property 6 — Combined mean: If two groups have means x̄₁ and x̄₂ with n₁ and n₂ observations, the combined mean = (n₁x̄₁ + n₂x̄₂) / (n₁ + n₂).
Property 7 — Algebraic treatment: The mean can be used in further algebraic calculations — it is the basis for variance, standard deviation, and regression.
Property 8 — Affected by extreme values: The mean is sensitive to outliers. A single very high or very low value can pull the mean significantly. This is both a strength and a weakness.
Introduction to Statistics
Unit II · Lecture 10
— Lecture 10 —
Weighted Mean & Combined Mean
When observations have different importance · Merging group means
Introduction to Statistics
Unit II · Lecture 10
⚖️ Weighted Arithmetic Mean
📖 Definition
The weighted arithmetic mean is the mean calculated when different observations have different degrees of importance (called weights). Instead of treating all values equally, each value is multiplied by its weight before averaging. It is denoted by x̄w.
Formula
x̄w = Σ(wᵢ · xᵢ) / Σwᵢ
where xᵢ = values, wᵢ = corresponding weights (importance), Σwᵢ = sum of all weights
💡 Analogy: College CGPA
When computing your CGPA, a 4-credit subject has more weight than a 1-credit subject. A grade of A in a 4-credit course affects your CGPA four times more than an A in a 1-credit course. This is a weighted mean — the credits are the weights.
💡 Key Difference: Simple mean: All observations are equally important → x̄ = Σxᵢ / n Weighted mean: Different observations have different importance → x̄w = Σwᵢxᵢ / Σwᵢ
Introduction to Statistics
Unit II · Lecture 10
📝 Weighted Mean — Worked Example
📝 Problem
A student's marks and the credit weightage of each subject are given below. Find the weighted average marks.
Subject
Marks (xᵢ)
Credits (wᵢ)
Statistics
80
4
Mathematics
70
3
Python
90
3
English
60
2
Economics
75
2
📝 Solution — Step by Step
Step 1: Multiply each mark by its weight:
80×4 = 320
70×3 = 210
90×3 = 270
60×2 = 120
75×2 = 150
Step 2: Sum of weighted marks:
Σ(wᵢ·xᵢ) = 320+210+270+120+150 = 1070
Step 3: Sum of weights:
Σwᵢ = 4+3+3+2+2 = 14
Step 4: Divide:
x̄w = 1070 / 14 = 76.43
💡 Interpretation
The weighted average = 76.43.
The simple average (ignoring credits) would be:
(80+70+90+60+75) / 5 = 375/5 = 75.
The weighted mean is higher (76.43 vs 75) because the student scored higher in heavily weighted subjects (Statistics=80, Python=90 have 4 and 3 credits respectively).
💡 When to use weighted mean?
• CGPA calculation (credits = weights)
• Index numbers (quantity = weight)
• Cost of living index (household items with different spending shares)
• Average salary across departments (employees = weights)
Introduction to Statistics
Unit II · Lecture 10
🎬 Visual: Simple Mean vs Weighted Mean
Click "Compare" to see how weights shift the mean towards heavily-weighted subjects:
Introduction to Statistics
Unit II · Lecture 10
🔗 Combined Mean (Mean of Two Groups)
📖 Definition
The combined mean (or pooled mean) is the overall mean of two or more groups taken together. If we know the mean and size of each group, we can compute the combined mean without needing the individual observations.
Formula — Two Groups
x̄c = (n₁x̄₁ + n₂x̄₂) / (n₁ + n₂)
where n₁, n₂ = sizes of Group 1 and Group 2; x̄₁, x̄₂ = means of Group 1 and Group 2
Formula — k Groups (General)
x̄c = Σ(nᵢ · x̄ᵢ) / Σnᵢ
where nᵢ and x̄ᵢ are the size and mean of the i-th group, i = 1, 2, ..., k
💡 Analogy: Mixing Two Batches of Laddoos
Batch A: 30 laddoos with average weight 50g. Batch B: 20 laddoos with average weight 60g. The combined average weight of all 50 laddoos = (30×50 + 20×60) / (30+20) = 2700/50 = 54g. The combined mean is a weighted mean where the group sizes are the weights.
Introduction to Statistics
Unit II · Lecture 10
📝 Combined Mean — Worked Example
📝 Problem
Two sections of B.Sc. Data Science took the same Statistics test: Section A: 35 students, average marks = 68 Section B: 25 students, average marks = 74
Find the combined average of both sections together.
📝 Solution
Given:
n₁ = 35, x̄₁ = 68
n₂ = 25, x̄₂ = 74
Step 1: Calculate total marks for each section:
Section A: n₁x̄₁ = 35 × 68 = 2,380
Section B: n₂x̄₂ = 25 × 74 = 1,850
Step 2: Combined total marks:
2,380 + 1,850 = 4,230
The combined mean (70.5) is not the simple average of 68 and 74 (which would be 71). It is closer to 68 because Section A has more students (35 > 25) and therefore pulls the combined mean more towards its own average.
This is exactly the weighted mean principle — larger groups get more influence.
💡 Quick Check: The combined mean must always fall between the two group means. Here: 68 < 70.5 < 74. ✓ If it falls outside, there is a calculation error.
Introduction to Statistics
Unit II · Lecture 10
📝 Combined Mean — Three Groups
📝 Problem
Three factories produce the same item. Their daily production and defect rates are:
💡 Note: Factory R (500 items, 4.2 defects) has the highest production AND highest defect rate, so it dominates the combined mean. The combined mean (3.64) is closest to Factory R's mean (4.2).
Introduction to Statistics
Unit II · Lecture 10
✅ Merits & ⚠️ Limitations of Arithmetic Mean
✅ Merits (Advantages)
1. Easy to understand and calculate — everyone knows "average."
2. Uses all observations — considers every data point.
3. Unique — only one possible mean for a dataset.
4. Algebraically tractable — can be used in further calculations (variance, regression, etc.).
5. Best for symmetrical data — accurately represents the centre of a bell-shaped distribution.
6. Sampling stability — the mean varies least across different samples compared to median and mode.
7. Basis for inferential statistics — most advanced tests (t-test, ANOVA, regression) use the mean.
⚠️ Limitations (Disadvantages)
1. Affected by extreme values (outliers): One very high or low value can distort the mean. E.g., incomes of {2, 3, 4, 5, 100} → mean = 22.8, but most values are 2–5.
2. Cannot be used for open-end classes: Without exact class marks, the mean cannot be calculated.
3. Not suitable for qualitative data: Cannot compute the mean of {Red, Blue, Green}.
4. Can be misleading for skewed data: In a right-skewed distribution, the mean is pulled towards the tail and may not represent the "typical" value.
5. May not be an actual observation: The mean of {2, 3, 4} = 3 (which is a data point), but the mean of {2, 3} = 2.5 (not an actual data point).
6. Cannot be determined graphically: Unlike the median, the mean cannot be read directly from a graph.
Introduction to Statistics
Unit II · Lectures 9–10
🔑 Summary: Lectures 9–10
Central tendency identifies the single most representative value of a dataset. Three main averages: Mean, Median, Mode.
Averages are classified as mathematical (Mean, Geometric Mean, Harmonic Mean) and positional (Median, Mode).
Arithmetic Mean (ungrouped): x̄ = Σxᵢ / n. Sum of deviations from the mean is always zero: Σ(xᵢ − x̄) = 0.
Arithmetic Mean (grouped): Three methods — Direct (x̄ = Σfx/Σf), Assumed Mean (x̄ = A + Σfd/Σf), Step-Deviation (x̄ = A + h × Σfu/Σf). All give the same result.
The step-deviation method is the most efficient when class widths are equal. The assumed mean method works for unequal widths too.
Weighted Mean: x̄w = Σwᵢxᵢ / Σwᵢ. Used when observations have different degrees of importance (credits, population shares, etc.).
Combined Mean: x̄c = Σnᵢx̄ᵢ / Σnᵢ. The overall mean of multiple groups computed from group sizes and group means — without needing individual data.
Merits of Mean: Easy, unique, uses all data, algebraically useful, basis for advanced statistics.
Limitations of Mean: Sensitive to outliers, cannot handle qualitative data, misleading for skewed distributions, may not be an actual observation.
Key property: The combined mean always falls between the group means. It is pulled towards the group with the larger size.
Introduction to Statistics
Unit II · Lectures 9–10
🧠 Quick Quiz — Lectures 9–10
Q1: The arithmetic mean of 10, 20, 30, 40, 50 is:
A) 25
B) 30
C) 35
D) 40
Q2: Σ(xᵢ − x̄) for any dataset always equals:
A) n
B) 0
C) Σxᵢ
D) x̄
Q3: In the step-deviation method, uᵢ equals:
A) xᵢ − A
B) fᵢ × xᵢ
C) (xᵢ − A) / h
D) xᵢ / fᵢ
Q4: Group A has 40 students with mean 60. Group B has 60 students with mean 80. The combined mean is:
A) 70
B) 72
C) 75
D) 68
Q5: Which of the following is a limitation of the arithmetic mean?
A) It is unique
B) It uses all observations
C) It is affected by extreme values
D) It is easy to calculate
Q6: The weighted mean is used when:
A) All observations are equal
B) Different observations have different importance
C) Data is qualitative
D) Classes have unequal width
Q7: If every observation is multiplied by 5, the new mean is:
A) x̄ + 5
B) 5x̄
C) x̄ / 5
D) x̄ − 5
Q8: The assumed mean method uses the formula:
A) x̄ = Σfx / Σf
B) x̄ = A + Σfd / Σf
C) x̄ = A + h × Σfu / Σf
D) x̄ = Σwx / Σw
Introduction to Statistics
Unit II · Lectures 9–10
📝 Homework & Practice
📝 Practice Tasks
1. Find the arithmetic mean of: 12, 18, 25, 31, 44, 50, 37, 29. Verify that Σ(xᵢ − x̄) = 0.
2. Calculate the mean using ALL THREE methods (direct, assumed mean, step-deviation) for the following data:
Class
10–20
20–30
30–40
40–50
50–60
60–70
f
8
12
20
15
10
5
Verify all three give the same answer.
3. A student scored: English 65 (2 credits), Maths 80 (4 credits), Physics 72 (3 credits), Chemistry 58 (3 credits), CS 90 (2 credits). Calculate the weighted average.
4. Three divisions took the same test:
Section A: 30 students, mean = 55
Section B: 40 students, mean = 65
Section C: 50 students, mean = 70
Find the combined mean. Verify it falls between the lowest and highest group means.
5. If the mean of 20 observations is 45, what will be the new mean if: (a) 5 is added to each observation? (b) Each observation is multiplied by 3? (c) Both operations are applied?
6. Explain with an example why the arithmetic mean is not always a good representative of the "typical" value. When would you prefer the median over the mean?
7. BONUS: The mean of 10 numbers is 20. If one number (which was 15) is removed, what is the mean of the remaining 9 numbers?