Calculates the weighted mean as Σ(value × weight) ÷ Σweight. It is used for grades with different credits, or classes of different sizes. List the same number of values and weights.
Explanation
A weighted mean is an average in which each value carries its own importance. A plain mean treats every value as equal, but in practice they rarely are.
xˉw=∑wi∑wixi=w1+w2+⋯+wnw1x1+w2x2+⋯+wnxn Here xi is a value and wi is its weight. If all the weights are equal, this reduces to the ordinary mean.
Example
Take the values 80, 70, 90 with weights 2, 3, 1 — for instance a score of 80 in a two-credit course, 70 in a three-credit course and 90 in a one-credit course.
xˉw=2+3+180×2+70×3+90×1=6160+210+90=6460=76.67 The unweighted average would be (80+70+90)÷3=80. The heavily weighted 70 pulls the result down to 76.67.
Where it is used
- Grades — weight each score by its credits, which is how a GPA works
- Class averages — weight by class size. Averaging the average of a class of 40 with that of a class of 20 is simply wrong
- Average price — weight each price by the quantity bought
The weights must not add up to zero, since that would leave nothing to divide by.