Frequency Table Mean Calculator & Grouped Bounds

Enter counts for exact values, closed class ranges, or both. Calculate the weighted mean when values are known. With grouped ranges, estimate from class midpoints and see how much uncertainty each class adds to the mean.

Descriptive statistics

Find the mean from a frequency table

Counts and target

Enter one row per class, separated by commas or tabs. Use value, count for exact values or lower, upper, count for a closed range.

The mean could meet the target, depending on values within the ranges.

Mean from 20 observations

Midpoint estimate
36
Lowest possible mean
33
Highest possible mean
39

Possible mean width 6.

Mean range and class impact

Overall mean on its allowed scaleOverall mean ranges from 33 to 39 with midpoint 36. Target mean is 37, inside the displayed range.LowerUpperMidpointTarget mean

Target mean 37

Class 2 · 6 observations

Lower class value
20
Class midpoint
30
Upper class value
40
Midpoint contribution
9
Contribution to mean width
6
Required class average
33.333333333333

This class can reach the target at or above the required average, with other classes at their midpoints.

Export the frequency mean worksheet

Download class inputs, mean bounds, weighted contributions and required class averages as exact fractions.

View CSV text

How to use this calculator

  1. Paste one class per line as value, count or as lower value, upper value, count. Use a shared measurement unit.
  2. Optionally enter a target mean. Read whether the table guarantees, permits, or rules out a mean at or above that value.
  3. Compare the midpoint estimate and both attainable bounds. Move the class slider to see how each row contributes to the estimate and its uncertainty.
  4. Switch to Selected class to see the required average with other classes held at their midpoints. Download the exact fractions and row calculations as CSV.

The Formula

The mathematical logic powering this calculation is:

Let each row have count n and allowed values from L through U. Use L = U for a known point value. The total N is the sum of row counts. The midpoint estimate is Σ[n(L+U)/2]/N. The smallest possible sample mean is Σ(nL)/N and the largest is Σ(nU)/N. Each bound is attained by placing all values at the corresponding closed endpoints. With every counted value known, the bounds coincide and the result is exact.

The contribution of a row’s midpoint to the overall estimate is n(L+U)/(2N). Its share of the possible mean width is n(U−L)/N. The total width is the sum of those contributions. These bounds describe the range implied by the entered data. A confidence interval instead uses a sampling model to estimate a population mean.

For target T and selected class with positive count n, hold all other classes at their midpoints. Let S be their total midpoint-weighted sum. The selected class must average at least (NT−S)/n to meet T. If that required average is greater than the class upper endpoint, the class cannot meet the target on its own under this assumption. Equality at an endpoint is allowed. Every possible whole-table mean meets T when T is at or below the lower mean bound. For T above the upper bound, no possible mean meets it.

Enter 1–24 rows with counts from 0 to 1 billion. At least one count is positive. All values use one measurement unit and may range from −1 billion to 1 billion with at most six decimals. Each row summarizes distinct observations. Interval rows allow any real value within the closed bounds. The worksheet accepts comma- or tab-separated records. Calculations use exact fractions. Display values can be rounded.

Worked Example

If you input:

  • Point rows: 10 repeated 4 times and 50 repeated 10 times
  • Range row: 6 values from 20 to 40
  • Target: 37

Result:

The table has 20 observations. Its midpoint mean is 36 and the possible mean ranges from 33 to 39. The six values in the range class need to average at least 100/3 to reach 37.

Frequently Asked Questions

How do I calculate the mean from an exact frequency table?

Multiply each recorded value by its count. Add the products and divide by the sum of the counts.

Is the midpoint estimate the actual grouped mean?

The midpoint estimate treats every observation in a range as if it equals that range's midpoint. The actual mean may be anywhere inside the possible bounds when the individual values are unknown.

Are these confidence intervals?

The mean bounds come directly from the entered observed counts and value limits. They quantify loss of information from grouping. A confidence interval makes an inference about a larger population.

Can I mix exact values with ranges?

Yes. Use one row for each distinct group of observations. A value with a known count is a class with equal lower and upper bounds.

What if my source intervals exclude an endpoint?

Use the nearest permitted limit if your data have a known measurement resolution. For continuous half-open intervals, this worksheet treats the listed limits as inclusive. The reported bounds then enclose possible means even if an endpoint cannot be attained.

Similar Calculators