Weighted average

Revision as of 23:10, 7 July 2014 by Drywood (talk | contribs)

A weighted average is weighted based on the number of times each value occurs. To calculate a weighted average, you first multiply each value by the number of times it occurs, and then add the products together. After that, you divide by the sum of the number of all the occurrences. For example:

Value:  |   Number of occurrences:
2        |   1
3        |   6
4        |   1
9        |   7
12       |   2
16       |   10


Step 1: 2*1+3*6+4*1+9*7+12*2+16*10=271

Step 2: 271/(1+6+1+7+2+10)=271/27

Weighted averages can also be calculated if each value has a weight expressed as a percentile, and all the weights add up to 100%. To calculate, you multiply each value by its weight, then add the products up. For example:

Value:  |   Percentage:
2         |   10%
3         |   60%
4         |   5%
9         |  10%
12       |   5%
16       |  10%

Step 1: 2*.1+3*.6+4*.05+9*.1+12*.05+16*.1=5.3