Mean, Median, and Mode Calculator

Calculate online the mean, median, and mode of a statistical sample with ungrouped data or data grouped by range and frequency. Use a period as the decimal separator.

Range
Frequency
Range
Frequency
Invalid input data.

Mean

Median

Mode

What is the Statistical Mean?

The statistical mean is the average of a set of numbers. It is a measure used to represent a typical or central value within a group of data.

How to calculate the Statistical Mean

The statistical mean x is calculated by summing all values in the sample and dividing by the total number of data points.

Statistical Mean Formula

x
=
1
n
·
n
Σ
i = 1
xi

Where:

  • n = sample size.
  • xi = individual values.

What is the Statistical Median?

The statistical median is a measure of central tendency that represents the value dividing a set of ordered data into two equal parts. To calculate the median, it is essential to use a reliable median calculator, especially when working with large data sets or grouped data.

How to Calculate the Median

To calculate the median, first order the data from smallest to largest. If the number of data points is odd, the median is the central value. If it is even, take the average of the two central values.

For grouped data, a specific formula is used, which our median calculator applies automatically.

Median Formulas

For ungrouped data:

Median = (n + 1) / 2

For grouped data:

Median = L + [(n/2 - F) / f] * c

Where:

  • n = total number of data points
  • L = lower boundary of the median class
  • F = cumulative frequency of the class before the median
  • f = frequency of the median class
  • c = class interval width

What is the Statistical Mode?

The statistical mode is the value that appears most frequently in a data set. To efficiently calculate the mode, especially in large data sets or grouped data, it is recommended to use a specialized mode calculator.

How to Calculate the Mode

To calculate the mode, identify the value or values that appear most frequently in the data set. For grouped data, a specific formula is used, which our mode calculator implements to provide accurate results.

Mode Formulas

For ungrouped data:

Mode = Identify the most frequent value. There may be more than one value.

For grouped data:

Mode = L + [(d1) / (d1 + d2)] * c

Where:

  • L = lower boundary of the modal class
  • d1 = difference between the frequency of the modal class and the previous class
  • d2 = difference between the frequency of the modal class and the next class
  • c = class interval width

What is the Difference Between Median and Mode?

The main difference between median and mode is that the median represents the central value of an ordered data set, while the mode is the most frequent value. Calculating the median requires ordering the data, while calculating the mode involves counting frequencies. Our median and mode calculators can efficiently perform both calculations, whether for simple or grouped data, providing accurate results in seconds.

Difference Between Grouped and Ungrouped Data

Grouped and ungrouped data are two different ways of organizing statistical information. Ungrouped data are individual values, while grouped data are organized into intervals or categories. The choice between using grouped or ungrouped data affects how the median and mode are calculated, so it is crucial to understand this difference when using a median calculator or a mode calculator.

Example of Grouped Data

Grouped data are presented in intervals or classes. For example, student ages at a university could be grouped as follows:

Range
Frequency
18-22 years
150 students
23-27 years
120 students
27-32 years
20 students

In this case, calculating the median or mode requires using the specific formulas for grouped data mentioned above.

Example of Ungrouped Data

Ungrouped data are individual values without grouping. Continuing with the age example, it could be:

19, 20, 21, 21, 22, 23, 23, 24, 25, 26, 28, 30, 32, 35

For these data, calculating the median involves ordering them and finding the central value, while the mode would be simply the most repeated value (in this case, 21 and 23 each appear twice, so there would be two modes).

Using a median and mode calculator is especially useful when working with large data sets, whether grouped or ungrouped, as it automates these calculations and reduces the margin of error.