🏠 Home
Introduction to Statistics
Unit II Β· Lectures 13–14

BDS113 β€” Introduction to Statistics

Partition Values

Quartiles Β· Deciles Β· Percentiles β€” Dividing Data into Equal Parts


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

Introduction to Statistics
Unit II Β· Lectures 13–14

The Journey β€” Lectures 13 & 14


πŸ“
Lecture 13 β€” Quartiles
Partition values concept Β· Quartiles (Q₁, Qβ‚‚, Q₃) ungrouped & grouped Β· IQR Β· Quartile Deviation Β· Coefficient of Q.D.
πŸ“Š
Lecture 14 β€” Deciles & Percentiles
Deciles (D₁–D₉) ungrouped & grouped Β· Percentiles (P₁–P₉₉) ungrouped & grouped Β· Equivalences Β· Box Plot Β· Applications
Introduction to Statistics
Unit II Β· Lecture 13

πŸ“ What Are Partition Values?


πŸ“– Definition

Partition values (also called quantiles or fractiles) are values that divide an ordered dataset into equal parts. They are positional measures. The median is itself a partition value β€” it divides data into two equal halves.


πŸ’‘ Analogy: Cutting a Rope

Imagine a rope of length 100 cm. You place marks at specific points to cut it into equal pieces. 1 cut β†’ median. 3 cuts β†’ quartiles. 9 cuts β†’ deciles. 99 cuts β†’ percentiles.


Β½
Median
2 equal parts Β· 1 cut
ΒΌ
Quartiles
4 equal parts Β· 3 cuts
β…’
Deciles
10 equal parts Β· 9 cuts
¹⁄₁₀₀
Percentiles
100 equal parts Β· 99 cuts
Introduction to Statistics
Unit II Β· Lecture 13

🎬 Visual: Partition Values on a Number Line


Select which partition values to display:


Min Max
Introduction to Statistics
Unit II Β· Lecture 13

πŸ“ Quartiles


πŸ“– Definition

Quartiles are values that divide an ordered dataset into four equal parts. There are three quartiles:

β€’ Q₁ (First / Lower Quartile): 25% below. Position = N/4.
β€’ Qβ‚‚ (Second Quartile / Median): 50% below. Position = N/2. Qβ‚‚ = Median.
β€’ Q₃ (Third / Upper Quartile): 75% below. Position = 3N/4.


πŸ’‘ Analogy: Dividing a Cake into 4

Q₁ separates the first quarter. Qβ‚‚ (median) splits the halves. Q₃ separates the last quarter. Between Q₁ and Q₃ lies the middle 50% of data.


πŸ’¬ Key Insight: Qβ‚‚ = Median. The IQR = Q₃ βˆ’ Q₁ captures the spread of the middle 50%, making it robust against outliers.
Introduction to Statistics
Unit II Β· Lecture 13

🎬 Visual: Quartiles β€” Dividing Data into Four Parts


Click "Show Quartiles" to see how Q₁, Qβ‚‚, Q₃ divide 20 data points into four groups:


Group 1 (Pos 1–5) Group 2 (Pos 6–10) Group 3 (Pos 11–15) Group 4 (Pos 16–20) Quartile boundary (Q₁, Qβ‚‚, Q₃) Group band (shaded region)
Introduction to Statistics
Unit II Β· Lecture 13

πŸ“ Quartiles β€” Ungrouped Data


Formulas β€” Ungrouped Data

Q₁ = Value at position (n+1)/4
Qβ‚‚ = Median = Value at position (n+1)/2
Q₃ = Value at position 3(n+1)/4
Arrange data ascending. If position is fractional, interpolate.

πŸ“ Example

Find Q₁, Qβ‚‚, Q₃ for: 12, 18, 22, 25, 28, 31, 35, 38, 42, 48, 55


πŸ“ Solution

n = 11. Data is ordered.

Q₁ = position (11+1)/4 = 3rd value = 22
Qβ‚‚ = position (11+1)/2 = 6th value = 31 (= Median)
Q₃ = position 3(11+1)/4 = 9th value = 42

IQR = Q₃ βˆ’ Q₁ = 42 βˆ’ 22 = 20


πŸ“Š Interpretation

β€’ 25% below 22 (Q₁) Β· 50% below 31 (Qβ‚‚) Β· 75% below 42 (Q₃)
β€’ The middle 50% lies between 22 and 42 (IQR = 20)

Introduction to Statistics
Unit II Β· Lecture 13

🎬 Visual: Quartile Calculator β€” Ungrouped Data


Click "Calculate" to watch Q₁, Qβ‚‚, Q₃ being identified position by position:


Introduction to Statistics
Unit II Β· Lecture 13

πŸ“Š Quartiles β€” Grouped (Frequency) Data


πŸ“– General Formula for Partition Values in Grouped Data

Same pattern as the median formula β€” only the position changes.


Quartile Formula β€” Grouped Data

Qβ‚– = L + [(kN/4 βˆ’ CF) / f] Γ— h
k = 1, 2, or 3 Β· L = lower limit of quartile class Β· N = total frequency
CF = CF of class before quartile class Β· f = frequency of quartile class Β· h = class width

πŸ’‘ Qβ‚‚ Check

Qβ‚‚ = L + [(2N/4 βˆ’ CF)/f] Γ— h = L + [(N/2 βˆ’ CF)/f] Γ— h β€” identical to the median formula. Qβ‚‚ = Median always.

Introduction to Statistics
Unit II Β· Lecture 13

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


πŸ“ Problem

Find Q₁, Qβ‚‚, Q₃:

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

πŸ“ Step-by-Step Solution

N = 50. CF: 5, 13, 25, 40, 47, 50.

Q₁ (k=1): N/4 = 12.5. CF first β‰₯ 12.5 at 10–20 (CF=13).
L=10, CF(before)=5, f=8, h=10
Q₁ = 10 + [(12.5βˆ’5)/8] Γ— 10 = 10 + 9.375 = 19.375

Qβ‚‚ (k=2): N/2 = 25. CF first β‰₯ 25 at 20–30 (CF=25).
L=20, CF(before)=13, f=12, h=10
Qβ‚‚ = 20 + [(25βˆ’13)/12] Γ— 10 = 20 + 10 = 30

Q₃ (k=3): 3N/4 = 37.5. CF first β‰₯ 37.5 at 30–40 (CF=40).
L=30, CF(before)=25, f=15, h=10
Q₃ = 30 + [(37.5βˆ’25)/15] Γ— 10 = 30 + 8.33 = 38.33

IQR = 38.33 βˆ’ 19.375 = 18.96

Introduction to Statistics
Unit II Β· Lecture 13

πŸ“ Quartile Deviation (Semi-Interquartile Range)


Quartile Deviation (Q.D.)

Q.D. = (Q₃ βˆ’ Q₁) / 2
Average spread of the middle 50% around the median.

Coefficient of Quartile Deviation

C.Q.D. = (Q₃ βˆ’ Q₁) / (Q₃ + Q₁)
Dimensionless relative measure. Ranges 0 to 1. Good for comparing datasets.

πŸ“ From Our Example

Q₁ = 19.375, Q₃ = 38.33

Q.D. = (38.33 βˆ’ 19.375) / 2 = 9.48

C.Q.D. = 18.955 / 57.705 = 0.328

πŸ’‘ Interpretation: Q.D. = 9.48 means the middle 50% deviates Β±9.48 from the median on average. C.Q.D. = 0.328 indicates moderate dispersion.
Introduction to Statistics
Unit II Β· Lecture 14

β€” Lecture 14 β€”

Deciles & Percentiles

D₁–D₉ Β· P₁–P₉₉ Β· Relationships Β· Applications

Introduction to Statistics
Unit II Β· Lecture 14

πŸ“ Deciles


πŸ“– Definition

Deciles divide data into 10 equal parts. Nine deciles: D₁–D₉. Dβ‚– has 10k% below it.


Ungrouped Data

Dβ‚– = Value at position k(n+1)/10

Grouped Data

Dβ‚– = L + [(kN/10 βˆ’ CF) / f] Γ— h

πŸ’‘ Understanding Deciles

β€’ D₁ β†’ 10% below
β€’ Dβ‚… β†’ 50% below β†’ Dβ‚… = Median = Qβ‚‚
β€’ D₉ β†’ 90% below

Use: "Top 10% earners" starts at D₉. "Below 3rd decile" means below D₃.

Introduction to Statistics
Unit II Β· Lecture 14

πŸ“ Deciles β€” Worked Example


πŸ“ Ungrouped: Find D₃, D₇

Data: 15, 22, 28, 33, 38, 42, 47, 53, 60, 68 (n=10)

πŸ“ Solution

D₃ = position 3(11)/10 = 3.3rd
= 28 + 0.3(33βˆ’28) = 28 + 1.5 = 29.5

D₇ = position 7(11)/10 = 7.7th
= 47 + 0.7(53βˆ’47) = 47 + 4.2 = 51.2

πŸ“ Grouped: Find D₃

Class10–2020–3030–4040–5050–60
f61014128

πŸ“ Solution

N=50. kN/10 = 15. CF: 6, 16, 30, 42, 50.
CF first β‰₯ 15 at 20–30 (CF=16).
L=20, CF(before)=6, f=10, h=10
D₃ = 20 + [(15βˆ’6)/10]Γ—10 = 20 + 9 = 29

Introduction to Statistics
Unit II Β· Lecture 14

πŸ“ Percentiles


πŸ“– Definition

Percentiles divide data into 100 equal parts. 99 percentiles: P₁–P₉₉. Pβ‚– has k% below it. Most fine-grained partition values.


Ungrouped Data

Pβ‚– = Value at position k(n+1)/100

Grouped Data

Pβ‚– = L + [(kN/100 βˆ’ CF) / f] Γ— h

πŸ’‘ Real-Life Applications

β€’ 99th percentile in exams β†’ scored better than 99%
β€’ Growth charts: child at 75th percentile is taller than 75% of peers
β€’ Outlier detection: values below P₁ or above P₉₉ are unusual
β€’ Poverty lines: below Pβ‚‚β‚€ might be "below poverty line"

Introduction to Statistics
Unit II Β· Lecture 14

πŸ“ Percentiles β€” Worked Example


πŸ“ Problem

Find Pβ‚‚β‚…, Pβ‚…β‚€, P₇₅:

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

πŸ“ Solution

N=50. CF: 5, 13, 25, 40, 47, 50.

Pβ‚‚β‚…: kN/100 = 12.5 β†’ same as Q₁ β†’ 19.375
Pβ‚…β‚€: kN/100 = 25 β†’ same as Qβ‚‚ β†’ 30
P₇₅: kN/100 = 37.5 β†’ same as Q₃ β†’ 38.33


πŸ’‘ Not a coincidence! Pβ‚‚β‚… = Q₁, Pβ‚…β‚€ = Qβ‚‚ = Median, P₇₅ = Q₃. This is the fundamental relationship between quartiles and percentiles.
Introduction to Statistics
Unit II Β· Lecture 14

πŸ”— The Master Relationship


Fundamental Equivalences

Q₁ = Dβ‚‚ = Pβ‚‚β‚…
Qβ‚‚ = Dβ‚… = Pβ‚…β‚€ = Median
Q₃ = Dβ‚ˆ = P₇₅
Quartile Qβ‚– = Decile Dβ‚‚β‚– = Percentile Pβ‚‚β‚…β‚–
Decile Dβ‚– = Percentile P₁₀ₖ

% BelowQuartileDecilePercentile
10%β€”D₁P₁₀
25%Q₁Dβ‚‚Pβ‚‚β‚…
50%Qβ‚‚ (Median)Dβ‚…Pβ‚…β‚€
75%Q₃Dβ‚ˆP₇₅
90%β€”D₉P₉₀

πŸ’¬ Exam Tip: If asked "Find Pβ‚‚β‚…" and you already have Q₁, just write Pβ‚‚β‚… = Q₁. These equivalences save time and are tested frequently.
Introduction to Statistics
Unit II Β· Lecture 14

🎬 Visual: All Partition Values β€” One Scale


0% 100%
Introduction to Statistics
Unit II Β· Lecture 14

βš–οΈ Quartiles vs Deciles vs Percentiles


FeatureQuartilesDecilesPercentiles
Parts4 equal10 equal100 equal
Count3 (Q₁,Qβ‚‚,Q₃)9 (D₁–D₉)99 (P₁–P₉₉)
Ungroupedk(n+1)/4k(n+1)/10k(n+1)/100
GroupedL+[(kN/4βˆ’CF)/f]Γ—hL+[(kN/10βˆ’CF)/f]Γ—hL+[(kN/100βˆ’CF)/f]Γ—h
Median linkQβ‚‚ = MedianDβ‚… = MedianPβ‚…β‚€ = Median
Common useBox plots, IQRIncome analysisExam ranks, growth charts

πŸ’‘ Unifying Formula: All partition values share Value = L + [(Position βˆ’ CF)/f] Γ— h. Only Position changes: N/4, kN/10, kN/100.
Introduction to Statistics
Unit II Β· Lecture 14

πŸ“¦ Application: Box Plot (Box-and-Whisker)


πŸ“– What is a Box Plot?

A box plot visualises data using five key values: Min, Q₁, Median, Q₃, Max. One of the most powerful EDA tools β€” built entirely on quartiles.


Introduction to Statistics
Unit II Β· Lecture 14

🎬 Visual: Partition Value Calculator


Select type, enter k, and see the position formula:


n =
Introduction to Statistics
Unit II Β· Lectures 13–14

πŸ”‘ Complete Summary: Lectures 13–14


Introduction to Statistics
Unit II Β· Lectures 13–14

🧠 Quick Quiz β€” Lectures 13–14


Q1: Qβ‚‚ is the same as:

A) Q₁
B) Median
C) Q₃
D) Mode

Q2: 75% of observations lie below:

A) Q₁
B) Dβ‚…
C) Q₃
D) Pβ‚‚β‚…

Q3: Dβ‚… equals:

A) Q₁
B) Median
C) Pβ‚‚β‚…
D) Q₃

Q4: Quartile Deviation =:

A) Q₃ βˆ’ Q₁
B) (Q₃ βˆ’ Q₁) / 2
C) (Q₃ + Q₁) / 2
D) Q₃ / Q₁

Q5: Pβ‚‚β‚… is equivalent to:

A) Q₁ and Dβ‚‚
B) Qβ‚‚ and Dβ‚…
C) Q₃ and Dβ‚ˆ
D) Median only

Q6: For n=20, the position of D₇ is:

A) 14.0
B) 14.7
C) 15.0
D) 7.0

Q7: A box plot uses:

A) Mean, Median, Mode, Min, Max
B) Min, Q₁, Median, Q₃, Max
C) Q₁, Qβ‚‚, Q₃, D₁, D₉
D) P₁₀, Pβ‚‚β‚…, Pβ‚…β‚€, P₇₅, P₉₀

Q8: IQR represents:

A) Full range of data
B) Spread of middle 50%
C) Distance from mean to median
D) Range of lowest 25%

Q9: "99th percentile" means:

A) Scored 99 marks
B) Scored better than 99% of test-takers
C) 1% scored above you
D) Both B and C

Q10: The general formula for all partition values in grouped data is:

A) L + [(Position βˆ’ CF) / f] Γ— h
B) (Position Γ— f) / h + L
C) L + f Γ— h / Position
D) CF + (N Γ— h) / f
Introduction to Statistics
Unit II Β· Lectures 13–14

πŸ“ Homework & Practice


πŸ“ Practice Tasks

1. Find Q₁, Qβ‚‚, Q₃, IQR for: 14, 22, 28, 33, 38, 42, 48, 55, 62, 70, 78.

2. Find Q₁ and Q₃ from grouped data and compute Q.D. and C.Q.D.:

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

3. Find D₃, Dβ‚…, D₉ for: 8, 12, 18, 25, 30, 36, 42, 48, 55, 60.

4. Find P₁₀, Pβ‚‚β‚…, Pβ‚…β‚€, P₇₅, P₉₀ from the grouped data in Q2.

5. Verify: (a) Pβ‚‚β‚… = Q₁ (b) Pβ‚…β‚€ = Median (c) P₇₅ = Q₃ using data in Q2.

6. A student at the 85th percentile among 200 participants. How many scored below?

7. Draw a box plot for Q1 data. Label all five key values.

8. Why is IQR better than range for data with outliers?

9. BONUS: In 500 values, Q₁=25, D₇=65, P₉₅=88. What % lies between 25 and 65? Between 65 and 88?

Introduction to Statistics
Unit II Β· Lectures 13–14

Thank You!


Questions? Let's discuss!


Upcoming in Unit II

Lecture 15: Unit II Review & Problem-Solving Session

Then: Unit III β€” Measures of Dispersion, Skewness & Kurtosis

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