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

AI Thread Summary
To calculate the median of grouped data with variable group sizes, the same formula applies as for fixed-width groups: Median = L + (n/2 - cf) * h / f. The key difference lies in identifying the median class, which can be done by summing frequencies from both ends until the cumulative total is as close to equal as possible. In cases where the first group contains a significantly larger frequency, the median will fall within that group. The method remains consistent regardless of whether the class widths are fixed or variable. Understanding how to locate the median class is crucial for accurate median calculation in grouped data scenarios.
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
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top