Key idea: Median for grouped data
**Step 1**: build cumulative frequency (cf) column.
**Step 2**: find n/2 (half the total frequency).
**Step 3**: locate the **median class** — the FIRST class whose cumulative frequency ≥ n/2.
**Step 4**: Apply formula.
**Median formula**:
**Median = l + h × (n/2 − cf) / f**
Where:
- l = lower limit of median class
- h = class width
- n = total frequency
- cf = cumulative frequency of class BEFORE median class
- f = frequency of median class
The formula uses linear interpolation within the median class to find where the n/2-th item falls.