ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Frequency distributions and ogives: classes, boundaries and cumulative curves

Turn raw values into a frequency distribution: pick the number of classes with Sturges' rule, set a width, tally, and handle exclusive and inclusive classes. Then build less-than and more-than cumulative tables and read their ogives.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Raw data are values listed in the order they were collected, such as the heights of 40 students of a Jaipur school or the daily wages of 50 workers in a Kanpur leather unit. A frequency distribution sorts the values into classes and records the frequency, the number of values that fall in each class. Each class has a lower limit and an upper limit; its class width is its upper class boundary minus its lower class boundary, which for equal, gap-free classes is also the gap between the lower limits of two neighbouring classes. N stands for the total number of values. This lesson builds the table and its cumulative curves, the ogives. The mean, median and mode of grouped data, histograms and quartiles have their own lessons, so they appear here only where an ogive needs them.

Forming the classes: range, Sturges' rule and tally marks

Start with the range: largest value - smallest value. Next decide how many classes to use. Sturges' rule suggests k = 1 + 3.322 x log10 N classes, with the log written to 4 decimal places. For N = 100, log10 100 = 2.0000, so k = 1 + 6.644 = 7.644 and 8 classes are used. Because k is rarely a whole number, this lesson takes the next whole number; some books round to the nearest whole number instead, so follow the convention you are given. Then width = range / k, raised to a convenient figure such as 5, 10, 20 or 50, and the first class starts at a round number at or just below the smallest value. Then check coverage: the starting point plus k class widths must go beyond the largest value (with exclusive classes the last upper limit must be greater than it); if not, widen the classes or add one. Count with tally marks: read the raw list once and put a stroke against the class of each value. Every fifth stroke is drawn across the four before it, so a class showing two bundles and three single strokes has frequency 2 x 5 + 3 = 13. Finally, check that the frequencies add up to N.

Exclusive and inclusive classes, boundaries and class marks

In exclusive classes such as 10-20, 20-30 and 30-40, the upper limit is not included: a value of exactly 20 is counted in 20-30, so 10-20 means 10 or more but less than 20. In inclusive classes such as 10-19, 20-29 and 30-39, both limits belong to the class, which suits values recorded as whole numbers. Inclusive classes leave a gap, here 20 - 19 = 1. To close it, take half the gap, 0.5, off every lower limit and add it to every upper limit: the class boundaries become 9.5-19.5, 19.5-29.5 and 29.5-39.5, each 10 wide. The class mark, or mid-point, is (lower limit + upper limit) / 2, so 20-29 has class mark 24.5, the same as the middle of its boundaries. To go back from class marks, the width is the difference between two neighbouring marks, and each class runs from mark - width / 2 to mark + width / 2. An open-end class such as 'below 10' or '60 and above' has no limit at one end, so it has no class mark unless a width is assumed. Its cumulative totals still work, because each one counts the values below or above a boundary that is known.

Cumulative frequencies and the two ogives

Relative frequency = f / N and percentage frequency = 100 x f / N, where f is the frequency of a class; the relative frequencies add up to 1. A less-than cumulative frequency is a running total from the top of the table, counting the values below each upper boundary. A more-than cumulative frequency is a running total from the bottom, counting the values at or above each lower boundary. The less-than ogive plots each less-than total against its upper boundary, starting from 0 at the first lower boundary, and rises to N. The more-than ogive plots each more-than total against its lower boundary and falls to 0 at the last upper boundary. At every value the two heights add up to N, so the curves cross at height N / 2, and the value directly below the crossing point is the median. Between two plotted points the ogive is read as a straight line, which treats the class as evenly filled: number below v = cumulative frequency before the class + (v - lower boundary) / width x class frequency.

Common mistakes

Plotting less-than totals at class marks or lower limits instead of upper boundaries shifts the whole ogive sideways; with inclusive classes, plot at 19.5 and 29.5, not at 19 and 29. Putting a value equal to a class limit in the wrong class: in exclusive classes, 20 belongs to 20-30. Rounding Sturges' k down, which can leave too few classes. Using the natural log instead of log10, which gives far too many classes. Rounding the width down, so that the largest value falls outside the last class. Building the more-than column from the top of the table instead of from the bottom. Looking for the crossing point of the two ogives at height N instead of N / 2. Writing a relative frequency as a percentage without multiplying by 100. A set of relative frequencies that adds up to 0.98 or 1.03 points to a counting or rounding slip.

A routine for building and reading ogives

1. Find N and the range. 2. Work out k = 1 + 3.322 x log10 N with the log to 4 decimal places, and round up. 3. Pick a convenient width of at least range / k and a round starting point, and check that the start plus k widths goes beyond the largest value; if not, widen the classes or add one. 4. Tally the raw values class by class and check that the frequencies add up to N. 5. For inclusive classes, move each limit outwards by half the gap to get the boundaries, and note the class marks. 6. Add relative or percentage frequencies if they are asked for. 7. Write the less-than column against upper boundaries and the more-than column against lower boundaries; the last less-than total and the first more-than total both equal N. 8. Read any count by straight-line interpolation inside its class, and look for the median at height N / 2.

Worked examples

  1. The daily wages of 50 workers at a Kanpur leather unit run from Rs. 412 to Rs. 688. Use Sturges' rule to choose the number of classes, then choose a class width and write the classes. Take log10 50 = 1.6990.

    1. N = 50 and log10 50 = 1.6990, so k = 1 + 3.322 x 1.6990 = 1 + 5.6441 = 6.64.
    2. k is not a whole number, so round it up: use 7 classes.
    3. Range = 688 - 412 = Rs. 276, and 276 / 7 = 39.43, so a convenient width is Rs. 40.
    4. Start at Rs. 410, just below the smallest wage: 410-450, 450-490, 490-530, 530-570, 570-610, 610-650 and 650-690. The largest wage, 688, falls in the last class, so nothing is left out.

    Answer: Use 7 classes of width Rs. 40, from 410-450 up to 650-690 (k = 6.64 from log10 50 = 1.6990, and 276 / 7 = 39.43).

  2. The weights of 60 sacks of wheat at an Indore mandi, to the nearest kg, are grouped in the inclusive classes 45-49, 50-54, 55-59, 60-64 and 65-69, with frequencies 6, 14, 21, 12 and 7. Write the class boundaries and class marks, and find the relative and percentage frequency of the class 55-59.

    1. The gap between one class and the next is 50 - 49 = 1, so half the gap is 0.5.
    2. Boundaries: 44.5-49.5, 49.5-54.5, 54.5-59.5, 59.5-64.5 and 64.5-69.5, each 5 kg wide.
    3. Class marks: (45 + 49) / 2 = 47, then 52, 57, 62 and 67.
    4. Check the total: 6 + 14 + 21 + 12 + 7 = 60 = N. For 55-59, relative frequency = 21 / 60 = 0.35 and percentage frequency = 0.35 x 100 = 35 percent.

    Answer: The class 55-59 has boundaries 54.5 and 59.5, class mark 57, relative frequency 0.35 and percentage frequency 35 percent.

  3. The heights of 40 students of a Jaipur school are grouped as 140-145 cm: 4, 145-150: 7, 150-155: 12, 155-160: 10 and 160-165: 7. Make the less-than and more-than cumulative frequency tables, estimate how many students are shorter than 157 cm, and find where the two ogives cross.

    1. Less-than totals: below 145: 4; below 150: 4 + 7 = 11; below 155: 23; below 160: 33; below 165: 40.
    2. More-than totals (at or above): 140: 40; 145: 36; 150: 29; 155: 17; 160: 7.
    3. 157 cm lies in 155-160, which holds 10 students over 5 cm. Below 157: 23 + (157 - 155) / 5 x 10 = 23 + 4 = 27, so 40 - 27 = 13 students are 157 cm or taller.
    4. The ogives cross at height 40 / 2 = 20, which the less-than ogive reaches inside 150-155: 150 + (20 - 11) / 12 x 5 = 150 + 3.75 = 153.75 cm, the median height.

    Answer: About 27 students are shorter than 157 cm (13 are 157 cm or taller), and the two ogives cross at about 153.75 cm, at a height of 20 students.

Practice checks

  1. A survey of 120 households in Nagpur is to be grouped by Sturges' rule. Taking log10 120 = 2.0792 and rounding k up, how many classes should be used?
  2. In a tally of the daily wages of 40 workers at a Ludhiana hosiery unit, the class Rs. 500-550 shows three bundles of five strokes and two single strokes. What is the percentage frequency of this class?
  3. The weights of letters at a Chennai post office, to the nearest gram, are grouped in the inclusive classes 15-24, 25-34, 35-44 and 45-54. What is the upper class boundary of the class 35-44?
  4. The class marks of a frequency distribution of bus journey times in Pune are 12, 20, 28, 36 and 44 minutes, and the classes have equal widths with no gaps. Which class has the mark 28?
  5. On the less-than ogive of the weights of 60 parcels at a Surat courier hub, the cumulative frequency is 18 at 10 kg and 43 at 15 kg. Reading the ogive as a straight line between these points, about how many parcels weigh 12 kg or more?

Sources checked