Professional Documents
Culture Documents
Data Set
In this article
By Alan Anderson
Sometimes a data set contains a large number of repeated values. In these situations, you can
simplify the process of computing the mean by using weights — the frequencies of a value in a
sample or a population. You can compute the arithmetic mean as a weighted average.
The formula for computing a weighted arithmetic mean for a sample or a population is
Here, wi represents the weight associated with element Xi; this weight equals the number of times
that the element appears in the data set.
The numerator (the top half of the formula) tells you to multiply each element in the data set by its
weight and then add the results together, as shown here:
The denominator (the bottom half of the formula) tells you to add the weights together:
You find the weighted arithmetic mean by dividing the numerator by the denominator.
As an example, suppose that a marketing firm conducts a survey of 1,000 households to determine
the average number of TVs each household owns. The data show a large number of households
with two or three TVs and a smaller number with one or four. Every household in the sample has at
least one TV and no household has more than four. Here’s the sample data for the survey:
Because many of the values in this data set are repeated multiple times, you can easily compute the
sample mean as a weighted mean. Doing so is quicker than summing each value in the data set and
dividing by the sample size.
X1 = 1, w1 = 73
X4 = 4, w4 = 90
Multiply each sample by its weight and then add the products together:
3. Compute the denominator of the weighted mean formula by adding the weights together: