Grouped data

Type class intervals and frequencies and get the mean by the direct, assumed-mean and step-deviation methods, the median and the mode with the formulas filled in, and a histogram with less-than and more-than ogives.

Keep it one tap away for everyday use.

Bookmark Grouped data?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Classes
  2. Mean x3
  3. Median, mode
  4. Ogive
Nothing is uploadedWorks offline once open

Your table

The example is made up: minutes 50 students spent on homework one evening. Classes must follow on (0-20, 20-40, ...).

Working table

Mean, three ways

    Median

      Mode

        Histogram and ogives

        Try this

        • Change the assumed mean to any class mark. The final mean does not change, only the size of the numbers in the working.
        • Add 10 to the frequency of the last class. Which moves most: the mean, the median or the mode?
        • Turn on both ogives. Where do they cross? Compare with the median.

        Check yourself

        Fresh questions every time. Give answers to 2 decimal places. Nothing is saved.

        What it does

        When data are given as classes (0–20, 20–40, …) with how many values fall in each, you cannot see the individual values. The school method treats each class as if all its values sat at the class mark, the middle of the class, and uses formulas for the median and mode. This page does the whole working for you, with your numbers in every line:

        • a working table with class marks x, f·x, deviations d = x − a and u = d/h, and the cumulative frequency cf;
        • the mean by the direct method, the assumed-mean method and the step-deviation method (they always agree, which is a good check);
        • the median from the median class and the formula l + ((n/2 − cf)/f) × h;
        • the mode from the modal class and the formula l + ((f₁ − f₀)/(2f₁ − f₀ − f₂)) × h;
        • a histogram with the less-than and more-than ogives, and the median read off where the ogive reaches n/2.

        It follows the Class 10 chapter statistics (mean, mode and median of grouped data).

        For the shapes of real data distributions, see the probability distribution explorer; for cumulative curves of sieve data, grain-size statistics. Sums of class marks are an arithmetic progression, as in the arithmetic progression staircase.

        How to use it

        1. Type one class per line as lower-upper frequency, for example 20-40 9. Commas, colons and “to” also work.
        2. Classes must follow on with no gaps. For inclusive classes like 10–19, 20–29, first change them to 9.5–19.5, 19.5–29.5 (the usual textbook step).
        3. Optionally type the assumed mean a. Leave it empty and the page uses the class mark of the middle class.
        4. Read the table, then the three methods, the median and the mode. The median and modal classes are highlighted in the table.
        5. Tick the ogives you want under the chart.

        A worked example

        The example (made up) is how many minutes 50 students spent on homework: 0–20: 6, 20–40: 9, 40–60: 15, 60–80: 12, 80–100: 8.

        • Class marks 10, 30, 50, 70, 90. Σfx = 60 + 270 + 750 + 840 + 720 = 2 640, so the mean is 2 640 / 50 = 52.8.
        • With a = 50 and h = 20: u = −2, −1, 0, 1, 2 and Σfu = −12 − 9 + 0 + 12 + 16 = 7, so the mean is 50 + (7/50) × 20 = 52.8 again.
        • n/2 = 25. The cumulative frequencies are 6, 15, 30, …, so the median class is 40–60: median = 40 + ((25 − 15)/15) × 20 ≈ 53.33.
        • The modal class is 40–60 (f₁ = 15, f₀ = 9, f₂ = 12): mode = 40 + (6/9) × 20 ≈ 53.33.

        Check yourself

        Three fresh questions each time: the mean, the median and the mode of a small random table. Type your answer to 2 decimal places, press Check, and open the worked answer if you need it. Nothing is saved.

        FAQ

        Why are the answers estimates? The real values inside each class are unknown, so all three are estimates based on the class marks or on spreading values evenly through a class.

        What if two classes share the highest frequency? The page uses the first one. The data then have two modes, and the formula gives only one of them.

        Is this from the NCERT book? It covers the same topic with fibub’s own examples. fibub is not part of NCERT.

        Where the numbers come from

        • Standard formulas for grouped data: the three methods for the mean, median = l + ((n/2 − cf)/f)h and mode = l + ((f₁ − f₀)/(2f₁ − f₀ − f₂))h, and the cumulative frequency curves (ogives). Written for fibub.
        • Median checked against Python's statistics.median_grouped; the three means checked against the plain mean of the class marks for 300 random tables. The example data are made up.

        Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

        Last updated 2026-11-09.

        Change log for Grouped data

        1. Add #1163 Grouped data mean, median and mode Details on GitHub

        Every change to fibub

        Related tools

        Probability distribution explorer #T391 Pick a distribution (normal, t, chi-squared, F, beta, gamma, Weibull, binomial, Poisson and 26 more), set its parameters and see the curve with the probability between two values shaded, the quantiles, mean, variance, skewness and kurtosis, and draw seeded random samples. Matches scipy.stats. Grain-size statistics #T611 Turn sieve masses into a cumulative curve, φ percentiles, Folk and Ward mean, sorting, skewness and kurtosis with their verbal classes, moment statistics and Udden-Wentworth class percentages, for one sample or a whole batch. Arithmetic progression staircase #L79 Slide the first term a and the common difference d and watch the terms grow as a staircase of bars. The nth term and the sum of n terms are worked with your numbers, and Gauss's pairing trick is drawn as the staircase plus its upside-down copy. Sample space builder #L82 See every outcome of two dice, a few coins or a deck of cards, shade an event and get its probability as a fraction. Then run the experiment thousands of times and watch the share of hits settle near it. Histogram builder #L167 Type a list of numbers and drag the class width and starting point to watch the frequency table, the histogram and the frequency polygon change. See the mean, median, mode and modal class, how far the mean from the table drifts from the true mean, and the combined mean of two groups. Spread explorer #L239 Drag the points of two data sets along a number line and watch the range, mean deviation about the mean and median, variance, standard deviation and coefficient of variation change live. Compare two classes with the same mean but different spread, see each deviation as a bar, and open the full working. Polygenic traits #L289 Choose 1 to 6 genes with additive alleles and cross two all-heterozygous parents. See the 2n + 1 height classes and their ratio (1 : 2 : 1, 1 : 4 : 6 : 4 : 1 …) grow into a bell curve, add environmental spread to smooth it, and grow 1000 random children to compare.