How to calculate median of grouped data if group size is variable

Click For Summary
SUMMARY

The calculation of the median for grouped data with variable class widths can be effectively achieved by utilizing the cumulative frequency method. The formula for median remains the same: Median = L + (n/2 - cf) * h / f, where L is the lower limit of the median class, n is the total number of observations, cf is the cumulative frequency of the class preceding the median class, f is the frequency of the median class, and h is the class size. In cases where class widths are not fixed, one can determine the median by counting from both ends of the data until the sums are as close to equal as possible, identifying the median class accordingly.

PREREQUISITES
  • Understanding of cumulative frequency distribution
  • Familiarity with the concept of median in statistics
  • Knowledge of frequency distribution tables
  • Basic skills in mathematical calculations involving fractions and proportions
NEXT STEPS
  • Explore the application of the median in different statistical software tools, such as R or Python's Pandas library.
  • Learn about the differences between median and mean in data analysis.
  • Investigate methods for calculating other measures of central tendency for grouped data.
  • Study the implications of using variable class widths in statistical reporting.
USEFUL FOR

Statisticians, data analysts, and students studying statistics who need to calculate medians for grouped data with variable class widths.

alokmahor
Messages
2
Reaction score
0
I learned in school that Median = L + (n/2-cf)*h/f
where L = lower limit of median class
n = no. of observations
cf = cumulative frequency of class preceding the median class,
f = frequency of median class,
h = class size (assuming class size to be equal).

I used to use this formula for grouped data of fix width like
marks ... no. of student
0 - 10 ... 5
10 - 20 ... 3
20 - 30 ... 4 and so on.
here grouped data is of fixed width 10=10-0=20-10=30-10 ans so on

BUT how will I calculate median if width is not fixed like

population ... no. of town
5 - 10 .... 500
10 - 20 .... 100
20 - 50 ..... 50
50 - 100 .... 30
100 - 200 .... 20
200 - 500 ... 10
500 - 1000 ..... 3
1000 and above .... 2

how will I calculate median in this case
 
Physics news on Phys.org
Start counting from both ends and find the place where both sums are as close to equal as possible. For example, in your second illustration, there are 500 in the first batch, which is more than all the others together, therefore the median is in the first batch.
 
thanks mathman,
I got the solution both type of problem will be solved by the same method
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K