VOOZH about

URL: https://www.geeksforgeeks.org/maths/how-to-find-mean-of-grouped-data-by-direct-method/

⇱ How to find Mean of grouped data by direct method? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to find Mean of grouped data by direct method?

Last Updated : 14 Mar, 2026

Grouped data is data that is organized into groups or class intervals instead of listing every individual value. This makes large sets of data easier to understand and analyze.

When there are many observations, writing each value separately can be difficult. So the data is combined into intervals (ranges), and the number of observations in each interval is counted. This count is called the frequency.

Example:

A teacher assigned with the task of marking 60 students' papers (out of 100 marks) can divide the data set in 10 groups, like students who have scored between 0 and 10 would be put under 0- 10 class interval, those who got between 10 and 20 would be put in 10- 20 interval, and so on until the last group (interval) becomes 90- 100. Such division is shown as follows:

Marks ScoredNumber of Students
0 - 105
10 - 2010
20 -303
30 - 4010
40 - 504
50 - 607
60 - 709
70 - 806
80 - 904
90 - 1002

Alternatively, the teacher could have made 5 class intervals by choosing aa class size of 20, which is shown as follows:

Marks ScoredNumber of Students
0 - 2015
20 - 4013
40 - 6011
60 - 8015
80 - 1006

Grouping data like this simplifies large datasets and makes it easier to calculate measures such as the mean, median, and mode.

Arithmetic Mean for Grouped Data

The following steps are required in order to calculate the arithmetic mean for grouped data:

  • Calculate the midpoints of the class intervals in the given data set. The midpoints, or class marks, denoted by 'm,' are computed by adding up the lower and upper class limits and dividing the said sum by 2. In other words, one needs to find the average of the upper and lower class limits of a particular class to get the midpoints.

Example:

Class IntervalsClass Marks/ Mid- points
0 - 10   = 05
10 - 20 = 15
20 - 30 = 25
30 - 40 = 35
40 - 50 = 45
  • Multiply the frequencies of the given class intervals, denoted by 'f,' with their respective class marks, denoted by 'm.'. After multiplying all the f with the respective m, add up all these results to depict it as Σfm.
  • Add up all the frequencies together, and denote it with Σf.
  • Divide the sum of frequencies (Σf) with the sum of the product of midpoints and frequencies (Σfm).
  • The number so obtained is the arithmetic mean for the given data set.

Hence, arithmetic mean for a given data set where class marks are m, and frequencies are f, through direct method is calculated using the following formula:

Sample Questions

Question 1. Calculate the arithmetic mean for the following data set using direct method:

MarksNumber of Students
0 - 10

5

10 - 20

12

20 - 30 

14

30 - 40

10

40-50

9

For the computation of mean, we need to calculate the class intervals of the given class intervals. This is done as follows:

MarksNumber of Students(f)Mid- Points(m)

fm

0 - 10

5

5

  25

10 - 20

12

15

180

20 - 30

14

25

350

30 - 40

10

35

350

40 - 50

9

45

405

Σf = 50

Σfm = 1310 

Mean = X̄ =  =  = 26.2

Hence, the mean of the given data set is 26.2

Question 2. Calculate the arithmetic mean for the following data set using the direct method:

Class IntervalsFrequency

0 - 2

2

2 - 4

4

4 - 6

6

6 - 8

8

8 - 10

10

For the computation of mean, we need to calculate the class intervals of the given class intervals. This is done as follows:

Class IntervalsFrequency(f)Mid- Points(m)

fm

0 - 2

2

1

2

2 - 4

4

3

12

4 - 6

6

5

30

6 - 8

8

7

56

8 - 10

10

9

90

Σf = 30

Σfm = 190

Mean = X̄ =  =  = 6.33

Hence, the mean of the given data set is 6.33

Question 3. Calculate the arithmetic mean for the following data set using the direct method:

Class IntervalsFrequency

10 - 20

5

20 - 30

3

30 - 40

4

40 - 50

7

50 - 60

2

60 - 70

6

70-80

13

For the computation of mean, we need to calculate the class intervals of the given class intervals. This is done as follows:

Class IntervalsFrequency(f)Mid- Points(m)

fm

10 - 20

5

15

75

20 - 30

3

25

75

30 - 40

4

35

140

40 - 50

7

45

315

50 - 60

2

55

110

60 - 70

6

65

390

70 - 80

13

75

975

Σf = 40

Σfm = 2080

Mean = X̄ =  =  = 52

Hence, the mean of the given data set is 52.

Question 4. Calculate the arithmetic mean for the following data set using the direct method:

Class IntervalsFrequency

100 - 120

4

120 - 140

6

140 - 160

10

160 - 180

8

180 - 200

5

For the computation of mean, we need to calculate the class intervals of the given class intervals. This is done as follows:

Class IntervalsFrequency(f)Mid- Points(m)

fm

100 - 120

4

110

440

120 - 140

6

130

780

140 - 160

10

150

1500

160 - 180

8

170

1360

180 - 200

5

190

950

Σf = 33

Σfm = 5030

Mean = X̄ =  =  = 152.42

Hence, the mean of the given data set is 152.42

Practice Problems

Problem 1: Calculate the arithmetic mean for the following data set using the direct method

Class Intervals

Frequency

10-20

6

20-30

8

30-40

10

40-50

5

50-60

7

Problem 2: Calculate the mean for the following data set

Class Intervals

Frequency

0-10

5

10-20

15

20-30

20

30-40

10

40-50

8

Problem 3: Determine the mean for the following data set

Class Intervals

Frequency

5-15

12

15-25

18

25-35

20

35-45

10

45-55

5

Problem 4: Calculate the mean for the following data set

Class Intervals

Frequency

0-5

4

5-10

6

10-15

8

15-20

5

20-25

7

Problem 5: Find the mean between the following two variables

Variable X (Class Intervals)

Variable Y (Frequency)

1-10

10

11-20

14

21-30

8

31-40

6

41-50

12

Comment
Article Tags:

Explore