Definition of Weighted Average
📂Mathematical StatisticsDefinition of Weighted Average
Definition
The following is called the Weighted Mean for data x={x1,⋯,xn} and vector w=(w1,⋯,wn)∈Rn.
∑k=1nwk∑k=1nwkxk=w1+⋯+wnw1x1+⋯+wnxn
Meanwhile, w is also called a weighted vector or simply a weight, and in English, it is just called Weight.
Description
Weighted Mean is a statistic frequently mentioned in mathematical statistics and various branches of general mathematics. It can be seen as a generalization of the arithmetic mean, where all weights are equal. If w=(a,⋯,a)=0, it becomes the widely used sample mean as follows.
a+⋯+aax1+⋯+axn=nx1+⋯+xn
If x is extended to multiple dimensions, it can be geometrically considered as the centroid of multiple points allowing overlaps. In physics, the center of mass can be defined as a weighted mean where each particle’s mass is a weight, as follows.
rcm=m1+m2+⋯+mnm1r1+m2r2+⋯+mnrn=m∑miri
In the home ground of statistics, it is difficult to specifically pinpoint an example because there are so many, and it appears so obvious and familiar that it suddenly comes up without any special explanation. For example, the population mean of the combined variance from several populations sp2 is as follows.
sp2=(n1−1)+⋯+(nm−1)(n1−1)s12+⋯+(nm−1)sm2=∑i=1m(ni−1)∑i=1m(ni−1)si2
Exponentially Weighted Average
For time series data {xt}t=1n, the following value is called the exponentially weighted average of {xt}t=1n. Regarding β∈(0,1),
βn−1+βn−2+⋯+β0βn−1x1+βn−2x2+⋯+β0xn=(1−β)1−βnβn−1x1+βn−2x2+⋯+β0xn=1−βn(1−β)t=1∑nβn−txt
The first equality is due to the formula for the sum of a geometric sequence. This means adding xts by reducing the weight exponentially for data from further in the past. It is also defined recursively as follows.
y0yt=0=βyt−1+(1−β)xt=(1−β)j=1∑tβt−jxj
In this case, as it is a weighted sum, dividing by (1−βt) results in a weighted average.
y^t=1−βtyt