Question:medium

The following data shows the number of family members living in different bungalows of a locality:
 

Number of Members0−22−44−66−88−10Total
Number of Bungalows10p60q5120


If the median number of members is found to be 5, find the values of p and q.

Show Hint

Use the cumulative frequency method and median formula for grouped data to solve problems involving median.
Updated On: Jan 13, 2026
Show Solution

Solution and Explanation

Given Data:

Number of Members0–22–44–66–88–10Total
Number of Bungalows10p60q5120


Step 1: Calculate \(p + q\) using the total number of bungalows
\[ 10 + p + 60 + q + 5 = 120 \] \[ p + q = 45 \]

Step 2: Determine \(p\) using the median
The median corresponds to \(\frac{N}{2} = \frac{120}{2} = 60\)
Calculate cumulative frequencies:
- Up to 0–2: 10
- Up to 2–4: \(10 + p\)
- Up to 4–6: \(70 + p\)
The median is 5 (within the 4–6 class). Therefore, the cumulative frequency before the median class is \(F = 10 + p\). The class width is \(h = 2\), and the frequency of the median class is \(f = 60\).
Apply the median formula:
\[ \text{Median} = l + \left(\frac{\frac{N}{2} - F}{f}\right) \times h \] where \(l = 4\).
Substitute the values:
\[ 5 = 4 + \left(\frac{60 - (10 + p)}{60}\right) \times 2 \] \[ 1 = \frac{50 - p}{60} \times 2 \] \[ 1 = \frac{50 - p}{30} \] \[ 50 - p = 30 \] \[ p = 20 \]

Step 3: Calculate \(q\)
From Step 1, \(p + q = 45\)
\[ 20 + q = 45 \implies q = 25 \]

Final Answer:
\[ p = 20, \quad q = 25 \]

Was this answer helpful?
1

Top Questions on Median of Grouped Data