Frequency Table Calculator

Enter your data, and a class width if you want it grouped, to build the table.

Numbers separated by commas, spaces or new lines

Optional: leave empty to list each value, or give a width to group the data into classes.

Try

Result

You entered{12, 15, 22, 27, 31, 18, 25}\left\{ 12,\ 15,\ 22,\ 27,\ 31,\ 18,\ 25 \right\}

10–19: 3, 20–29: 3, 30–39: 1\displaystyle \text{10--19: 3, 20--29: 3, 30--39: 1}

Relative frequency

10–19: 0.428571, 20–29: 0.428571, 30–39: 0.142857\displaystyle \text{10--19: 0.428571, 20--29: 0.428571, 30--39: 0.142857}

Cumulative frequency

10–19: 3, 20–29: 6, 30–39: 7\displaystyle \text{10--19: 3, 20--29: 6, 30--39: 7}

Table

Classffrcum. f10–19337320–29337630–391177\displaystyle \begin{array}{c|ccc} \text{Class} & f & f_r & \text{cum. } f \\ \hline 10\text{--}19 & 3 & \frac{3}{7} & 3 \\ 20\text{--}29 & 3 & \frac{3}{7} & 6 \\ 30\text{--}39 & 1 & \frac{1}{7} & 7 \end{array}
Show the work
  1. Class intervals

    Grouping puts the values into classes of equal width w=10w = 10. The first class starts at the multiple of ww at or below the smallest value 1212, which is 1010, and the classes continue until the largest value 3131 is covered. The values are whole numbers, so each class stops one before the next begins.

    start=⌊1210⌋×10=103 classes\begin{gathered} \text{start} = \left\lfloor \frac{12}{10} \right\rfloor \times 10 = 10 \\ 3 \text{ classes} \end{gathered}
  2. Tally of each class

    Count how many of the n=7n = 7 values fall in each class; this is the class frequency ff.

    10–19:3, 20–29:3, 30–39:110\text{--}19: 3,\ 20\text{--}29: 3,\ 30\text{--}39: 1
  3. Relative and cumulative frequency

    The relative frequency is each frequency as a share of the total, and the cumulative frequency is the running total of the frequencies, so the last one must equal n=7n = 7.

    Using fr=fnf_r = \frac{f}{n}

    fr=37≈0.428571 (first row)last cumulative frequency=7\begin{gathered} f_r = \frac{3}{7} \approx 0.428571\ \text{(first row)} \\ \text{last cumulative frequency} = 7 \end{gathered}
  4. Result

    So the grouped frequency table has 3 rows, and the frequencies add up to 77.

Worked examples