Given a discrete set of numbers, X, and a corresponding set of weights, W, the weighted mean is calculated as follows: mw=∑i=1nwi∑i=1n(xi∗wi), where xi and wi are the respective ith corresponding elements of X and W.
For example, if X={1,3,5}and W={2,4,6}, our weighted mean would be:
mw=2+4+6(1∗2)+(3∗4)+(5∗6)=122+12+30=3.66ˉ
If we wanted to round this to a scale of decimal place, our result would be .