Grouped Data Mean, Median and Mode Calculator

Type class intervals and frequencies to get the mean (direct and step-deviation), median, mode, quartiles and standard deviation with every step written out.

Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es

…

So geht's

  1. 1
    Enter the classes

    Type each lower limit, upper limit and frequency, or press + Class to add rows.

  2. 2
    Or start from raw data

    Paste values in From raw data, set the first class and the width and build the table.

  3. 3
    Choose the assumed mean

    Leave it blank for the middle class or type the A used in your textbook.

  4. 4
    Read the exam working

    Open Exam working for the mean by both methods, the median, the mode and the quartiles step by step.

  5. 5
    Check with the graphs

    Open Histogram and ogive and confirm the median where the two ogives cross.

  6. 6
    Practise and save

    Answer generated grouped-data questions in Practice and save finished tables to history.

Über dieses Tool

When data come as a frequency table with class intervals, the raw values are gone and the usual formulas need adjusting. Board exams and first-year statistics courses expect a particular layout: a column of class marks, a column of f·x or of step deviations, a cumulative frequency column, and then the median and mode formulas with every symbol identified. This calculator produces that layout. You type the classes and frequencies, or paste raw data and let the tool build the classes, and it returns the mean by the direct method and by the step-deviation method, the median from the cumulative frequency, the mode from the modal class, the quartiles, the variance and the standard deviation. A histogram with less-than and more-than ogives shows the median where the curves cross.

Who this is for

Class 9 to 12 students following NCERT, CBSE, ICSE or state boards, GCSE and IGCSE students estimating a mean from a grouped table, first-year university students, and teachers preparing answer keys.

The formulas

The class mark is the mid-point (lower + upper) ÷ 2. The direct mean is Σf·x ÷ Σf. The step-deviation method picks an assumed mean A (usually the middle class mark), computes u = (x − A) ÷ h for class width h and gives the mean as A + h × Σf·u ÷ Σf; both methods give the same answer, which is a good self-check. For the median, find N ÷ 2, locate the first class whose cumulative frequency reaches it and use median = l + ((N/2 − cf) ÷ f) × h, where l is the lower boundary, cf the cumulative frequency before the class and f its frequency. The mode uses the modal class: mode = l + ((f₁ − f₀) ÷ (2f₁ − f₀ − f₂)) × h, with f₀ and f₂ the frequencies of the neighbouring classes.

Inclusive classes and boundaries

Tables such as 10-19, 20-29 have gaps between classes. The tool detects the gap and converts the limits to boundaries 9.5-19.5, 19.5-29.5 before applying the median and mode formulas, as textbooks require. Unequal widths are flagged because the step-deviation shortcut needs a common width.

Worked example

Marks of 50 students: 0-10 has 5, 10-20 has 8, 20-30 has 15, 30-40 has 16 and 40-50 has 6. The class marks are 5, 15, 25, 35 and 45, Σf·x = 1,350, so the mean is 27. Half of 50 is 25; the cumulative frequencies are 5, 13, 28, so the median class is 20-30 and the median is 20 + (25 − 13) ÷ 15 × 10 = 28. The modal class is 30-40 with f₁ = 16, f₀ = 15 and f₂ = 6, giving a mode of 30 + 1 ÷ 11 × 10 = 30.91.

Limits

Grouped results are estimates: the true mean, median and mode of the original data can differ because values inside each class are assumed to be spread evenly or to sit at the class mark. The mode formula is not meaningful when two classes tie for the highest frequency, and the tool says so instead of picking one.

Rechenbeispiel

Classes 0-10 to 40-50 with frequencies 5, 8, 15, 16, 6: mean 27, median 28, mode 30.91.

Kurzinfos

Häufig gestellte Fragen

Why are the direct and step-deviation means the same?

The step-deviation method is the same calculation with the class marks shifted by A and divided by h, which keeps the numbers small. Undoing the shift gives the identical mean.

Which assumed mean should I use?

Any value works, but the class mark of a middle class keeps the deviations small. Leave the field blank and the tool picks the middle class, or type the value your teacher used.

How do I handle classes like 10-19 and 20-29?

Type them as they appear. The tool adds half the gap to each side, so the boundaries become 9.5-19.5 and 19.5-29.5, and uses those in the median and mode formulas.

Can I start from raw marks?

Yes. Paste the raw data in From raw data, choose the first class start and the width, and press Make frequency table to build the classes automatically.

What do the ogives show?

The less-than ogive plots cumulative frequency against upper boundaries and the more-than ogive against lower boundaries. They cross at the median, a graphical check on the formula.

Can I print the working for my notebook?

Print working gives a clean page with the table, the formulas and each substituted value; CSV exports the full table for a spreadsheet.

Völlig kostenlosKeine Kosten, keine Anmeldung
Dateien bleiben privatAlles läuft in Ihrem Browser
Einfach in Ihrer SpracheIn vielen Sprachen verfügbar