standarddeviationcalculator.net

Updated Free · runs in your browser

Statistics

Weighted mean calculator

The weighted arithmetic mean gives each value a say in proportion to its importance. Enter each item's value and weight to get Σwx, Σw and the weighted mean, with the table your statistics textbook sets out.

Items, values and weights
Item (optional)Value xWeight wRemove

Weighted mean (x̄w) 127.5
Weighted mean127.5
Σwx12750
Σw100
Simple (unweighted) mean129
Items5
Itemxww × xShare of weight
Food12540500040%
Fuel and light15010150010%
Clothing11015165015%
House rent14020280020%
Miscellaneous12015180015%
Σ10012750100%
5000 Food 1500 Fuel and li… 1650 Clothing 2800 House rent 1800 Miscellaneo… w × x
Show the working, step by step
  1. Multiply each value by its weight.

    Food: 125 × 40 = 5000 Fuel and light: 150 × 10 = 1500 Clothing: 110 × 15 = 1650 House rent: 140 × 20 = 2800 Miscellaneous: 120 × 15 = 1800

  2. Add the products.

    Σwx = 12750

  3. Add the weights.

    Σw = 40 + 10 + 15 + 20 + 15 = 100

  4. Divide.

    x̄w = Σwx ÷ Σw = 12750 ÷ 100 = 127.5

The simple mean of the values is 129. The weighted mean is lower because the smaller values carry more of the weight.

The formula

x̄w = Σwx ÷ Σw = (w₁x₁ + w₂x₂ + … + wₙxₙ) ÷ (w₁ + w₂ + … + wₙ)

Multiply each value by its weight, add the products, and divide by the total weight. Dividing by Σw rather than by the number of items is what makes the result an average of the values rather than a total.

A worked example: a cost of living index

A family's spending is split into five groups. The group indices for the current year (base year = 100) and the percentage of the budget spent on each group are the calculator's default rows.

GroupIndex xWeight ww × x
Food125405,000
Fuel and light150101,500
Clothing110151,650
House rent140202,800
Miscellaneous120151,800
Total10012,750

Weighted mean = 12,750 ÷ 100 = 127.5. The cost of living has risen 27.5% since the base year. The simple mean of the five indices is 645 ÷ 5 = 129, which overstates the rise: fuel went up the most (to 150), but it takes only 10% of the budget, while food, the largest share, rose less.

Where the weighted arithmetic mean is used

  • Index numbers. A price index is the weighted mean of price relatives, with weights from quantities or spending. See the weighted average of price relatives and the Laspeyres index.
  • Combined mean of groups. The mean of two classes of 30 and 20 students with means 62 and 70 is (30 × 62 + 20 × 70) ÷ 50 = 65.2: the group means weighted by group size.
  • Average price paid. Prices weighted by the quantity bought at each price.
  • Grades. Marks weighted by the share of the course each component carries; the weighted average calculator is set up for that.

Weighted mean or simple mean?

Use weights when the items are not equally important, or stand for different numbers of people or units. A simple mean of five price indices treats a 50% rise in the price of salt the same as a 50% rise in rent, which is not how a household experiences it. When the weights are equal the two means coincide, so the simple mean is the weighted mean with all w = 1.

Common mistakes

  • Dividing Σwx by the number of items instead of by Σw.
  • Swapping values and weights: in a cost of living index the indices are x and the budget shares are w.
  • Mixing weight scales, such as percentages for some items and fractions for others.

Common questions

What is the weighted arithmetic mean?

A mean in which each value x counts in proportion to a weight w: x̄w = Σwx ÷ Σw. The ordinary arithmetic mean is the special case where every weight is 1. In the default example the weighted mean of the five group indices is 127.5, while their simple mean is 129.

How is a cost of living index calculated with a weighted mean?

Each expenditure group (food, fuel, clothing, rent, miscellaneous) gets a price index for the current year, with the base year at 100. The weights are the shares of the family budget spent on each group. The weighted mean Σwx ÷ Σw of the group indices is the cost of living index. This is the family budget method taught in CBSE Class 11 economics.

Do the weights have to add up to 100 or 1?

No. Dividing by Σw makes the weights relative, so 40, 10, 15, 20, 15 and 0.4, 0.1, 0.15, 0.2, 0.15 give the same answer. Weights that add to 100 are simply easier to read as percentages.

When is the weighted mean equal to the simple mean?

When all the weights are equal, or more generally when the weights are unrelated to the values so that the heavy and light items balance out. The further the weighted mean moves from the simple mean, the more the weights favour the high or the low values.

Can a weight be zero or negative?

Zero is allowed: that item simply drops out. Negative weights are rejected, since a weight is a share or a count. At least one weight must be positive, otherwise Σw is zero and the mean is undefined.