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

In summary, the formula for calculating the median for grouped data with fixed width is Median = L + (n/2-cf)*h/f, where L is the lower limit of the median class, n is the 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 (assuming equal class size). However, for grouped data with varying widths, the median can be found by counting from both ends and finding the place where both sums are closest to equal.
  • #1
alokmahor
2
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
  • #2
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.
 
  • #3
thanks mathman,
I got the solution both type of problem will be solved by the same method
 

1. What is the formula for calculating the median of grouped data if the group size is variable?

The formula for calculating the median of grouped data with variable group sizes is:

Median = L + ((n/2 - F)/f) * w

Where:

  • L = lower limit of the median group
  • n = total number of data points
  • F = cumulative frequency of the group preceding the median group
  • f = frequency of the median group
  • w = width of the median group

2. Can the median of grouped data be calculated if the group sizes are not evenly distributed?

Yes, the median of grouped data can still be calculated even if the group sizes are not evenly distributed. The formula for calculating the median takes into account the variable group sizes and can be applied in such cases.

3. How is the median of grouped data different from the median of ungrouped data?

The median of grouped data is a calculated value that represents the middle value of a set of grouped data, while the median of ungrouped data is the middle value of a set of data without any grouping. Grouping data can help to simplify and organize large sets of data for easier analysis.

4. Is it necessary to have a large sample size to calculate the median of grouped data with variable group sizes?

No, the size of the sample does not affect the calculation of the median of grouped data with variable group sizes. The formula for calculating the median takes into account the total number of data points, regardless of the size of the sample.

5. Can the median of grouped data be applied to all types of data sets?

Yes, the median of grouped data can be applied to all types of data sets, including numerical, categorical, and ordinal data. However, it may be more useful for numerical data sets as it allows for easier identification of the middle value when the data is grouped.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
715
  • Set Theory, Logic, Probability, Statistics
Replies
26
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
2K
  • General Math
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
Back
Top