๐Ÿ  Home
Introduction to Statistics
Unit I ยท Lectures 4โ€“5

BDS113 โ€” Introduction to Statistics

Classification, Frequency Distribution & Cumulative Frequency

Organising Raw Data into Meaningful Patterns


Unit I ยท Lectures 4โ€“5 of 40 ยท B.Sc. Data Science, 1st Year, Semester II

Introduction to Statistics
Unit I ยท Lectures 4โ€“5

The Journey โ€” Lectures 4 & 5


๐Ÿ—‚๏ธ
Lecture 4 โ€” Classification & Frequency Distribution
Types of classification ยท Key terms (class, tally, frequency) ยท Grouped vs Ungrouped ยท Constructing a frequency table
๐Ÿ“ˆ
Lecture 5 โ€” Cumulative Frequency Distribution
"Less than" type ยท "More than" type ยท Construction ยท Conversion between types ยท Ogive introduction
Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿค” Why Organise Raw Data?


๐Ÿ“– The Problem with Raw Data

Raw data (also called unorganised data) is data in its original form โ€” as it was collected. It is often a jumbled mass of numbers with no apparent pattern. Drawing conclusions directly from raw data is like trying to find a specific book in a library where all books are thrown on the floor โ€” impossible without organising them first.


๐Ÿ’ก Analogy: A Cupboard

Imagine throwing all your clothes randomly into a cupboard. Finding a specific shirt would take forever. Now imagine organising them: shirts on one shelf, trousers on another, socks in a drawer. Finding anything becomes easy. Classification and frequency distribution do the same thing for data.


๐Ÿ’ฌ Quote: "The goal is to turn data into information, and information into insight." โ€” Carly Fiorina, former CEO of HP. Organisation is the first step in this transformation.
Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿ—‚๏ธ Classification of Data


๐Ÿ“– Definition

Classification is the process of arranging or grouping data into classes (categories) or sub-classes on the basis of some common characteristics. It is the first step in organising raw data into a meaningful form for analysis.


Data can be classified on the basis of four criteria:

1. Chronological (Temporal) Classification

Data arranged according to time โ€” years, months, quarters, days.

Example: Year-wise sales of a company:
2020: โ‚น50L, 2021: โ‚น62L, 2022: โ‚น71L, 2023: โ‚น85L

2. Geographical (Spatial) Classification

Data arranged according to place โ€” region, state, country, city.

Example: State-wise population:
UP: 20 Cr, Maharashtra: 12 Cr, Bihar: 10 Cr

3. Qualitative Classification

Data arranged according to attributes (qualities) โ€” gender, religion, education.

Example: Gender-wise enrollment:
Male: 250, Female: 310, Other: 5

4. Quantitative Classification

Data arranged according to numerical values โ€” marks, income, height, weight.

Example: Marks-wise student count:
0โ€“20: 5, 20โ€“40: 12, 40โ€“60: 28, 60โ€“80: 35, 80โ€“100: 20

Introduction to Statistics
Unit I ยท Lecture 4

๐ŸŽฌ Visual: Four Types of Classification


Click each type to explore its definition, basis of classification, and a full example:


๐Ÿ“…

Chronological

๐ŸŒ

Geographical

๐Ÿท๏ธ

Qualitative

๐Ÿ”ข

Quantitative

Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿ“Š What is a Frequency Distribution?


๐Ÿ“– Definition

A frequency distribution is a tabular arrangement of data that shows each class (or value) and the number of observations (frequency) falling into that class. It condenses a large volume of raw data into a compact, meaningful summary.


๐Ÿ’ก Analogy: Sorting Marbles by Colour

You have a bag of 100 marbles in different colours. To understand the composition, you sort them: 30 red, 25 blue, 20 green, 15 yellow, 10 white. This sorted table is a frequency distribution โ€” each colour is a class, and the count (30, 25, etc.) is the frequency.


๐Ÿ“– Two Types of Frequency Distribution

1. Ungrouped (Simple) Frequency Distribution: Each individual value is listed separately with its frequency. Best when the data has few distinct values.

2. Grouped Frequency Distribution: Data is divided into class intervals (ranges), and the number of observations in each interval is counted. Best when data has many distinct values spread over a wide range.

Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿ“‹ Ungrouped (Simple) Frequency Distribution


๐Ÿ“– When to Use

When the number of distinct values in the data is small (typically fewer than 15โ€“20), we list each value individually and count how many times it appears. This is called an ungrouped or simple frequency distribution.


๐Ÿ“ Example: Number of Children per Family

Raw data from 20 families:
2, 1, 3, 2, 0, 1, 2, 3, 1, 0, 2, 1, 2, 3, 1, 0, 2, 1, 2, 1

๐Ÿ“Š Solution: Simple Frequency Table

No. of Children (x)Tally MarksFrequency (f)
0|||3
1||||   ||7
2||||   ||||   |7
3|||3
Totalฮฃf = 20


๐Ÿ’ก Key Point: The sum of all frequencies must equal the total number of observations (ฮฃf = N). This is a quick check for correctness.
Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿ“– Key Terms of Grouped Frequency Distribution


1. Class (Class Interval)

A class is a group or range into which data is divided. E.g., 0โ€“10, 10โ€“20, 20โ€“30 are three classes. Each class has a lower limit and an upper limit.

2. Class Limits

Each class has two boundaries:
โ€ข Lower Class Limit (LCL): The smallest value in the class. E.g., in 20โ€“30, LCL = 20.
โ€ข Upper Class Limit (UCL): The largest value in the class. E.g., in 20โ€“30, UCL = 30.

3. Class Width (Size / Length)

Class width = Upper Limit โˆ’ Lower Limit.
In the class 20โ€“30: width = 30 โˆ’ 20 = 10.
All classes should ideally have equal width.

4. Class Mark (Midpoint)

Class Mark = (Lower Limit + Upper Limit) / 2.
In the class 20โ€“30: midpoint = (20+30)/2 = 25.
The class mark represents the entire class in calculations.

5. Frequency (f)

The frequency of a class is the number of observations that fall within that class interval. It is counted using tally marks (groups of 5: ||||).

6. Tally Marks

A method of counting using vertical strokes in groups of five. The fifth mark crosses the previous four (||||). This makes counting easy: each group of 5 = 5 observations.

Introduction to Statistics
Unit I ยท Lecture 4

๐ŸŽฌ Visual: Anatomy of a Class Interval


Click "Reveal" to label each part of a class interval step by step:


10 20 30 40 Class Interval: 20โ€“30 Lower Limit = 20 Upper Limit = 30 Width = 30 โˆ’ 20 = 10 Class Mark = (20+30)/2 = 25 Frequency (f) = count of observations falling within 20โ€“30 using tally marks
Introduction to Statistics
Unit I ยท Lecture 4

๐Ÿ“ Grouped Frequency Distribution: Worked Example


๐Ÿ“ Problem

The marks (out of 100) of 30 students in a Statistics test are:
12, 35, 42, 56, 78, 23, 45, 67, 89, 15, 28, 51, 73, 95, 38, 62, 47, 84, 19, 33, 58, 71, 26, 44, 69, 91, 37, 53, 76, 60

Task: Construct a grouped frequency distribution with class width of 10.


๐Ÿ“ Step-by-Step Solution

Step 1: Find the range = Maximum value โˆ’ Minimum value = 95 โˆ’ 12 = 83.
Step 2: Decide the class width = 10 (given).
Step 3: Determine number of classes โ‰ˆ Range / Class width = 83 / 10 โ‰ˆ 9 classes.
Step 4: Start from the lowest value (or a convenient round number below it). Start at 10.
Step 5: Form classes: 10โ€“20, 20โ€“30, 30โ€“40, 40โ€“50, 50โ€“60, 60โ€“70, 70โ€“80, 80โ€“90, 90โ€“100.
Step 6: Count observations in each class using tally marks.


Class IntervalTally MarksFrequency (f)Class Mark (x)
10 โ€“ 20|||   ||315
20 โ€“ 30|||   |425
30 โ€“ 40||||   |435
40 โ€“ 50||||445
50 โ€“ 60||||455
60 โ€“ 70||||   ||565
70 โ€“ 80||||375
80 โ€“ 90|||285
90 โ€“ 100||195
Totalฮฃf = 30
Introduction to Statistics
Unit I ยท Lecture 4

โš–๏ธ Exclusive vs Inclusive Methods


There are two ways to form class intervals. The choice depends on whether the upper limit of one class is the same as the lower limit of the next class.

1. Exclusive Method (Continuous Classes)

The upper limit of one class is the lower limit of the next class. The upper limit is excluded from that class โ€” it belongs to the next class. Classes are continuous (no gap between them).

๐Ÿ“ Example

ClassIncludes
0 โ€“ 100 โ‰ค x < 10 (10 excluded)
10 โ€“ 2010 โ‰ค x < 20 (20 excluded)
20 โ€“ 3020 โ‰ค x < 30 (30 excluded)

A value of 10 falls in the class 10โ€“20, NOT in 0โ€“10.

๐Ÿ’ก Note: The last class may include its upper limit. E.g., the class 90โ€“100 includes both 90 and 100 when marks are out of 100.

2. Inclusive Method (Discontinuous Classes)

Both the lower limit and upper limit are included in the class. There is a gap between the upper limit of one class and the lower limit of the next. Classes are discontinuous.

๐Ÿ“ Example

ClassIncludes
0 โ€“ 90, 1, 2, ... , 9 (both included)
10 โ€“ 1910, 11, ... , 19 (both included)
20 โ€“ 2920, 21, ... , 29 (both included)

A value of 10 falls in the class 10โ€“19.

๐Ÿ’ก Conversion: To convert inclusive to exclusive, subtract 0.5 from the lower limit and add 0.5 to the upper limit. E.g., 10โ€“19 becomes 9.5โ€“19.5.
Introduction to Statistics
Unit I ยท Lecture 4

๐ŸŽฌ Visual: Exclusive vs Inclusive โ€” Number Line


Click each method to see how a value of 25 is classified:


Introduction to Statistics
Unit I ยท Lecture 4

โš ๏ธ Open-End Classes


๐Ÿ“– What are Open-End Classes?

An open-end class is a class that has no lower limit or no upper limit (or both). This happens when extreme values exist in the data that do not fit neatly into regular intervals. Open-end classes are written with the word "Below" or "Above" (or symbols like "<" or ">").


๐Ÿ“ Example: Monthly Income of Workers

Monthly Income (โ‚น)Frequency
Below 5,0008
5,000 โ€“ 10,00015
10,000 โ€“ 20,00022
20,000 โ€“ 50,00030
50,000 and above5
Total80

๐Ÿ“– Identifying Open-End Classes

"Below 5,000" โ€” No lower limit โ†’ open at the bottom.

"50,000 and above" โ€” No upper limit โ†’ open at the top.

The classes 5,000โ€“10,000, 10,000โ€“20,000, and 20,000โ€“50,000 have both limits โ†’ closed classes.

๐Ÿ’ก Limitation: Open-end classes make it impossible to calculate the class mark (midpoint) precisely. This creates difficulties in calculating measures like mean. They should be used only when necessary.
Introduction to Statistics
Unit I ยท Lecture 4

โœ… Rules for Constructing a Frequency Distribution


Introduction to Statistics
Unit I ยท Lecture 5

โ€” Lecture 5 โ€”

Cumulative Frequency Distribution

"Less Than" Type ยท "More Than" Type ยท Ogives ยท Applications

Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“ˆ What is Cumulative Frequency?


๐Ÿ“– Definition

A cumulative frequency is the running total of frequencies. Instead of showing how many observations fall in each class, it shows how many observations fall below (or above) a certain value. Cumulative frequency distribution is obtained by successively adding the frequencies.


๐Ÿ’ก Analogy: Climbing Stairs

Imagine climbing stairs. At each step, you have climbed a certain number of steps so far. If Step 1 = 3 steps, Step 2 = 5 more, Step 3 = 2 more, then cumulatively you have climbed: 3, 8 (3+5), 10 (3+5+2). Cumulative frequency works the same way โ€” it keeps a running total.


๐Ÿ’ก Key Insight: A regular frequency table tells you "how many students scored between 40โ€“50." A cumulative frequency table tells you "how many students scored below 50." The second question is often more useful in practice.
Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ”€ Two Types of Cumulative Frequency


1. "Less Than" Type (Ascending / Upward)

Cumulative frequencies are calculated from the top of the table, adding frequencies downward. It answers: "How many observations are less than the upper limit of each class?"

๐Ÿ“ How to Compute

Start with the frequency of the first class.
Add the frequency of the second class to the first cumulative frequency.
Continue adding until the last class.

Formula: CF(i) = f(1) + f(2) + ... + f(i)

2. "More Than" Type (Descending / Downward)

Cumulative frequencies are calculated from the bottom of the table, adding frequencies upward. It answers: "How many observations are more than or equal to the lower limit of each class?"

๐Ÿ“ How to Compute

Start with the frequency of the last class.
Add the frequency of the second-last class to the last cumulative frequency.
Continue adding upward until the first class.

Formula: CF(i) = f(i) + f(i+1) + ... + f(last)

Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“ Worked Example: Cumulative Frequency Distribution


๐Ÿ“ Given Data

Marks obtained by 40 students in a Statistics exam:

Class Interval (Marks)Frequency (f)
0 โ€“ 102
10 โ€“ 205
20 โ€“ 308
30 โ€“ 4012
40 โ€“ 507
50 โ€“ 604
60 โ€“ 702
Total40

๐Ÿ“ Solution: Both Types of Cumulative Frequency

Marks f "Less Than" CF
(Cumulate โ†“)
"More Than" CF
(Cumulate โ†‘)
0 โ€“ 102240
10 โ€“ 2052 + 5 = 740 โˆ’ 2 = 38
20 โ€“ 3087 + 8 = 1538 โˆ’ 5 = 33
30 โ€“ 401215 + 12 = 2733 โˆ’ 8 = 25
40 โ€“ 50727 + 7 = 3425 โˆ’ 12 = 13
50 โ€“ 60434 + 4 = 3813 โˆ’ 7 = 6
60 โ€“ 70238 + 2 = 406 โˆ’ 4 = 2

๐Ÿ’ก Verification: The last "Less Than" CF must equal N (40). The first "More Than" CF must also equal N (40). The last "More Than" CF equals the frequency of the last class (2). If these checks fail, recheck your addition.
Introduction to Statistics
Unit I ยท Lecture 5

๐ŸŽฌ Visual: Build Cumulative Frequency Step by Step


Click "Less Than" or "More Than" to watch the cumulative frequencies being calculated row by row:


Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“Š "Less Than" Cumulative Frequency Table


๐Ÿ“– How to Read

In a "Less Than" CF table, the class boundaries replace class intervals. The cumulative frequency against a value x tells us: "How many observations are less than x."


๐Ÿ“ From Our Example

Marks (Less Than)Cumulative Frequency
Less than 102
Less than 207
Less than 3015
Less than 4027
Less than 5034
Less than 6038
Less than 7040

๐Ÿ’ก How to Interpret

โ€ข "Less than 30": CF = 15
โ†’ 15 students scored below 30 marks.

โ€ข "Less than 50": CF = 34
โ†’ 34 students scored below 50 marks.

โ€ข "Less than 70": CF = 40
โ†’ All 40 students scored below 70 marks (since max is out of 70).

๐Ÿ’ก Note: In "Less Than" type, the first CF equals the first frequency, and the last CF equals N (total observations).
Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“Š "More Than" Cumulative Frequency Table


๐Ÿ“– How to Read

In a "More Than" CF table, the lower class limits are used. The cumulative frequency against a value x tells us: "How many observations are greater than or equal to x."


๐Ÿ“ From Our Example

Marks (More Than)Cumulative Frequency
More than or equal to 040
More than or equal to 1038
More than or equal to 2033
More than or equal to 3025
More than or equal to 4013
More than or equal to 506
More than or equal to 602

๐Ÿ’ก How to Interpret

โ€ข "More than 0": CF = 40
โ†’ All 40 students scored 0 or above (trivially true).

โ€ข "More than 30": CF = 25
โ†’ 25 students scored 30 or more.

โ€ข "More than 60": CF = 2
โ†’ Only 2 students scored 60 or more.

๐Ÿ’ก Note: In "More Than" type, the first CF equals N (total observations), and the last CF equals the frequency of the last class.
Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“ˆ What is an Ogive? (Introduction)


๐Ÿ“– Definition

An ogive (pronounced "oh-jive") is a graph of the cumulative frequency distribution. It is a smooth curve drawn by plotting the upper class boundaries (for "Less Than" type) or lower class boundaries (for "More Than" type) on the X-axis and the corresponding cumulative frequencies on the Y-axis, then joining the points.


Marks (Upper Class Boundaries) 10 20 30 40 50 60 70 Cumulative Frequency 0 10 20 30 40 "Less Than" Ogive "More Than" Ogive
Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ“ Finding the Median from an Ogive


๐Ÿ“– The Median โ€” Quick Reminder

The median is the middle value of a dataset when arranged in order. For N observations, the median is the value of the (N/2)th observation. It divides the data into two equal halves โ€” 50% below and 50% above.


๐Ÿ“ Steps to Find Median from "Less Than" Ogive

Step 1: Calculate N/2. For our example: N = 40, so N/2 = 20.

Step 2: Locate the value 20 on the Y-axis (cumulative frequency axis).

Step 3: Draw a horizontal line from Y = 20 to meet the ogive curve.

Step 4: From the point of intersection, draw a vertical line down to the X-axis.

Step 5: The value where the vertical line meets the X-axis is the median.

๐Ÿ’ก Our Example

N/2 = 20. Looking at our ogive, the value 20 on the CF axis falls between the CF values 15 (at marks = 30) and 27 (at marks = 40).

By interpolation (or reading from the ogive), the median โ‰ˆ 33.3 marks.

Interpretation: 50% of students scored below 33.3 marks, and 50% scored above.

๐Ÿ’ก Similarly: The "More Than" ogive can also be used. Both ogives intersect at the median point (the point where "Less Than" and "More Than" curves cross).
Introduction to Statistics
Unit I ยท Lecture 5

๐ŸŽฌ Visual: Find the Median from the Ogive


Click "Find Median" to see the construction lines drawn on the ogive:


Marks Cumulative Frequency 10 20 30 40 50 60 70 0 10 20 30 40 N/2=20 โ‰ˆ 33.3 Median โ‰ˆ 33.3 marks (50% scored below this)
Introduction to Statistics
Unit I ยท Lecture 5

๐Ÿ”— Relationship: Frequency โ†” Cumulative Frequency


๐Ÿ“– Key Conversion Formulas

Frequency โ†’ Cumulative Frequency:
โ€ข "Less Than" CF at class i = fโ‚ + fโ‚‚ + ... + fแตข (add downward)
โ€ข "More Than" CF at class i = fแตข + fแตขโ‚Šโ‚ + ... + fโ‚™ (add upward)

Cumulative Frequency โ†’ Frequency:
โ€ข f(i) = CF(i) โˆ’ CF(iโˆ’1) for "Less Than" type (subtract consecutive CF values)
โ€ข f(i) = CF(i) โˆ’ CF(i+1) for "More Than" type (subtract consecutive CF values)


๐Ÿ“ Example: Recover Frequency from "Less Than" CF

Less ThanCFf = CF(i) โˆ’ CF(iโˆ’1)
Less than 1022 โˆ’ 0 = 2
Less than 2077 โˆ’ 2 = 5
Less than 301515 โˆ’ 7 = 8
Less than 402727 โˆ’ 15 = 12
Less than 503434 โˆ’ 27 = 7
Less than 603838 โˆ’ 34 = 4
Less than 704040 โˆ’ 38 = 2

Introduction to Statistics
Unit I ยท Lectures 4โ€“5

๐Ÿ”‘ Complete Summary: Lectures 4โ€“5


Introduction to Statistics
Unit I ยท Lectures 4โ€“5

๐Ÿง  Quick Quiz โ€” Lectures 4โ€“5


Q1: In the exclusive method, the class interval 20โ€“30 includes which values?

A) 20 and 30 (both included)
B) 20 included, 30 excluded
C) 20 excluded, 30 included
D) Both 20 and 30 excluded

Q2: The class mark of the interval 40โ€“60 is:

A) 40
B) 60
C) 50
D) 20

Q3: Classification of data by time is called:

A) Geographical
B) Chronological
C) Qualitative
D) Quantitative

Q4: The "Less Than" cumulative frequency for the last class always equals:

A) 0
B) The frequency of the last class
C) N (total number of observations)
D) The class width

Q5: The inclusive class 15โ€“19 is converted to exclusive form as:

A) 15โ€“20
B) 14.5โ€“19.5
C) 16โ€“19
D) 15.5โ€“18.5

Q6: An ogive is a graph of:

A) Frequency distribution
B) Cumulative frequency distribution
C) Class marks vs frequencies
D) Tally marks

Q7: "Below 10" in a frequency distribution is an example of:

A) A closed class
B) An open-end class
C) An exclusive class
D) A class mark

Q8: If the "Less Than" CF values are 5, 12, 20, 28, 30, the frequencies are:

A) 5, 12, 20, 28, 30
B) 30, 25, 18, 10, 2
C) 5, 7, 8, 8, 2
D) 5, 17, 37, 65, 95
Introduction to Statistics
Unit I ยท Lectures 4โ€“5

๐Ÿ“ Homework & Practice


๐Ÿ“ Practice Tasks

1. The following data gives the marks (out of 50) of 25 students:
   22, 35, 18, 41, 29, 33, 15, 27, 38, 45, 12, 31, 25, 40, 36, 20, 28, 34, 42, 19, 26, 37, 23, 30, 44

   (a) Arrange the data in ascending order.
   (b) Construct a grouped frequency distribution with class width of 5 using the exclusive method.
   (c) Identify all class marks and verify that the class width is uniform.

2. Convert the following inclusive classes to exclusive classes:
   (a) 10 โ€“ 14    (b) 20 โ€“ 29    (c) 100 โ€“ 199    (d) 0 โ€“ 4

3. Given the frequency distribution below, construct both "Less Than" and "More Than" cumulative frequency tables:

Class5โ€“1010โ€“1515โ€“2020โ€“2525โ€“30
f371064

4. The cumulative frequencies ("Less Than" type) of a distribution are: 4, 10, 18, 25, 28. Recover the original frequency distribution.

5. Draw a "Less Than" ogive for the data in Question 3 and use it to estimate the median.

6. BONUS: Explain why the sum of all frequencies must equal N. What would it mean if ฮฃf โ‰  N?

๐Ÿ’ก Tip: Practice constructing frequency tables by hand โ€” counting with tally marks builds your intuition. Then verify using the ฮฃf = N check. This skill is fundamental to every topic that follows.
Introduction to Statistics
Unit I ยท Lectures 4โ€“5

Thank You!


Questions? Let's discuss!


Upcoming in Unit I

Lecture 6โ€“7: Representation of Data โ€” Tabular, Graphical & Diagrammatic
Lecture 8: Review & Problem-Solving Session

Unit I ยท Lectures 4โ€“5 ยท BDS113 Introduction to Statistics ยท B.Sc. Data Science, Semester II