How is the mean calculated from a set of data values?

Created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

In statistics, the arithmetic mean—often referred to simply as the average—is the most common way to designate the central value of a set of data.12

To calculate the arithmetic mean of a set of n numbers (x1,x2,…,xn), you add all the values together and divide the resulting sum by the total count of numbers in the set. Mathematically, this is expressed as:12

x¯=∑i=1nxin

For data that is grouped into intervals, the calculation differs: you use a weighted arithmetic mean where each value (xi) represents the midpoint of an interval, and its corresponding weight (wi) is the number of data points within that specific interval. The weighted mean is determined by calculating the sum of the products of the values and their weights, then dividing by the total sum of the weights.12