Given a discrete set of numbers, X, and a corresponding set of weights, W, the weighted mean is calculated as follows: mwā=āi=1nāwiāā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: