Grouped Data Calculator: Mean, Median, Mode
Mean, median, mode, quartiles and variance from a frequency table.
- Lower quartile (Q1)
- 60.5
- Upper quartile (Q3)
- 78.5
- Total frequency (n)
- 40
- Variance (population, ÷ n)
- 163.4375
- Standard deviation (population)
- 12.7843
- Sample variance (÷ n − 1)
- 167.6282
- Sample standard deviation
- 12.9471
Working table
| Class | f | Lower boundary | Midpoint (x) | f × x | Cumulative frequency |
|---|---|---|---|---|---|
| 41–50 | 3 | 40.5 | 45.5 | 136.5 | 3 |
| 51–60 | 7 | 50.5 | 55.5 | 388.5 | 10 |
| 61–70 | 12 | 60.5 | 65.5 | 786 | 22 |
| 71–80 | 10 | 70.5 | 75.5 | 755 | 32 |
| 81–90 | 6 | 80.5 | 85.5 | 513 | 38 |
| 91–100 | 2 | 90.5 | 95.5 | 191 | 40 |
Working
- 1.Class width p = 10, boundary = limit ∓ 0.5
- 2.x̄ = Σfx ÷ n = 2,770 ÷ 40 = 69.25
- 3.Me = 60.5 + ((20 − 10) ÷ 12) × 10 = 68.8333
- 4.Mo = 60.5 + (5 ÷ (5 + 2)) × 10 = 67.6429
Formula and sources
x̄ = Σ(f × x) ÷ Σf, x = class midpoint Median = L + ((n/2 − F) ÷ f) × w; Qi = L + ((i·n/4 − F) ÷ f) × w Mode = L + (d₁ ÷ (d₁ + d₂)) × w L = lower class boundary, F = cumulative frequency before the class, w = class width, d₁/d₂ = frequency difference from the class before/after
- Grouped-data statistics — upper-secondary mathematics
When to use the Grouped Data
High-school statistics problems
Enter the frequency table as it appears in the book or exam. The calculator works out class boundaries, midpoints and cumulative frequencies in a working table.
Median and quartiles with class boundaries
The median uses the lower boundary of the median class, the lower limit minus half a data unit. The steps are shown so you can match your teacher's method.
Decimal data
For classes like 1.5–1.9 and 2.0–2.4 the gap between classes is 0.1, so boundaries move by 0.05. The calculator reads the gap from your table.
Population and sample variance
School books usually divide by n for variance, while research uses n − 1 for a sample. Both are shown so you can pick the right one.
Frequently asked questions
How does this differ from raw data?
Grouped data assume values are spread within each class, so the results are estimates. When the raw data are available, the descriptive statistics calculator gives exact values.
What if two classes share the highest frequency?
The calculator uses the first class with the highest frequency. Such data are bimodal, and the second mode is worth computing from the other class.
How many classes should there be?
Sturges' rule suggests about 1 + 3.3 log n classes, so 7 classes for 60 values. All classes should have the same width.
How do I choose the class width?
Divide the range of the data by the number of classes and round up. Data from 41 to 100 in 6 classes give a width of 10, as in this calculator's example.
Why do the results differ from the raw data?
Every value in a class is represented by its midpoint, so the spread inside the class is lost. The difference is usually small when classes are narrow and the data are many.
Related calculators
- Descriptive StatisticsMean, median, mode, quartiles, variance and standard deviation from pasted data.Example: Mean80.666667Calculate →
- Weighted AverageAn average from values and weights, such as a final grade or average purchase price.Example: Weighted average78.4Calculate →
- Normal Distribution & Z-ScoreProbability below, above or between values, z-scores and the value at a percentile.Example: Probability P(a < X < b)0.774538Calculate →