weightedavg
A weighted average, also known as a weighted mean, is a measure of central tendency in which each data value x_i is multiplied by a corresponding weight w_i reflecting its importance, frequency, or reliability. The products are summed and then divided by the total of the weights to produce the final value.
Mathematically, the weighted average is defined as W = (Σ w_i x_i) / (Σ w_i), where i ranges over all
Example: for values 3, 5, 7 with weights 2, 1, 3, the weighted average is (3*2 + 5*1
Common applications include combining disparate data sources, computing grade point averages with course credits as weights,
Notes and caveats: the choice of weights determines the result and can be subjective, so weights should