Each observation is multiplied with a corresponding weight. The weighted mean is the sum of products divided by the sum of weights. In the formula, xi is the value of variable x and fi is the weight for x. In the formula, xi is the value of variable x and fi is the weight for x.