Misplaced Pages

Weight function

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
(Redirected from Weighted sum)

Construct related to weighted sums and averages

A weight function is a mathematical device used when performing a sum, integral, or average to give some elements more "weight" or influence on the result than other elements in the same set. The result of this application of a weight function is a weighted sum or weighted average. Weight functions occur frequently in statistics and analysis, and are closely related to the concept of a measure. Weight functions can be employed in both discrete and continuous settings. They can be used to construct systems of calculus called "weighted calculus" and "meta-calculus".

Discrete weights

General definition

In the discrete setting, a weight function w : A R + {\displaystyle w\colon A\to \mathbb {R} ^{+}} is a positive function defined on a discrete set A {\displaystyle A} , which is typically finite or countable. The weight function w ( a ) := 1 {\displaystyle w(a):=1} corresponds to the unweighted situation in which all elements have equal weight. One can then apply this weight to various concepts.

If the function f : A R {\displaystyle f\colon A\to \mathbb {R} } is a real-valued function, then the unweighted sum of f {\displaystyle f} on A {\displaystyle A} is defined as

a A f ( a ) ; {\displaystyle \sum _{a\in A}f(a);}

but given a weight function w : A R + {\displaystyle w\colon A\to \mathbb {R} ^{+}} , the weighted sum or conical combination is defined as

a A f ( a ) w ( a ) . {\displaystyle \sum _{a\in A}f(a)w(a).}

One common application of weighted sums arises in numerical integration.

If B is a finite subset of A, one can replace the unweighted cardinality |B| of B by the weighted cardinality

a B w ( a ) . {\displaystyle \sum _{a\in B}w(a).}

If A is a finite non-empty set, one can replace the unweighted mean or average

1 | A | a A f ( a ) {\displaystyle {\frac {1}{|A|}}\sum _{a\in A}f(a)}

by the weighted mean or weighted average

a A f ( a ) w ( a ) a A w ( a ) . {\displaystyle {\frac {\sum _{a\in A}f(a)w(a)}{\sum _{a\in A}w(a)}}.}

In this case only the relative weights are relevant.

Statistics

Weighted means are commonly used in statistics to compensate for the presence of bias. For a quantity f {\displaystyle f} measured multiple independent times f i {\displaystyle f_{i}} with variance σ i 2 {\displaystyle \sigma _{i}^{2}} , the best estimate of the signal is obtained by averaging all the measurements with weight w i = 1 / σ i 2 {\textstyle w_{i}=1/{\sigma _{i}^{2}}} , and the resulting variance is smaller than each of the independent measurements σ 2 = 1 / i w i {\textstyle \sigma ^{2}=1/\sum _{i}w_{i}} . The maximum likelihood method weights the difference between fit and data using the same weights w i {\displaystyle w_{i}} .

The expected value of a random variable is the weighted average of the possible values it might take on, with the weights being the respective probabilities. More generally, the expected value of a function of a random variable is the probability-weighted average of the values the function takes on for each possible value of the random variable.

In regressions in which the dependent variable is assumed to be affected by both current and lagged (past) values of the independent variable, a distributed lag function is estimated, this function being a weighted average of the current and various lagged independent variable values. Similarly, a moving average model specifies an evolving variable as a weighted average of current and various lagged values of a random variable.

Mechanics

The terminology weight function arises from mechanics: if one has a collection of n {\displaystyle n} objects on a lever, with weights w 1 , , w n {\displaystyle w_{1},\ldots ,w_{n}} (where weight is now interpreted in the physical sense) and locations x 1 , , x n {\displaystyle {\boldsymbol {x}}_{1},\dotsc ,{\boldsymbol {x}}_{n}} , then the lever will be in balance if the fulcrum of the lever is at the center of mass

i = 1 n w i x i i = 1 n w i , {\displaystyle {\frac {\sum _{i=1}^{n}w_{i}{\boldsymbol {x}}_{i}}{\sum _{i=1}^{n}w_{i}}},}

which is also the weighted average of the positions x i {\displaystyle {\boldsymbol {x}}_{i}} .

Continuous weights

In the continuous setting, a weight is a positive measure such as w ( x ) d x {\displaystyle w(x)\,dx} on some domain Ω {\displaystyle \Omega } , which is typically a subset of a Euclidean space R n {\displaystyle \mathbb {R} ^{n}} , for instance Ω {\displaystyle \Omega } could be an interval [ a , b ] {\displaystyle } . Here d x {\displaystyle dx} is Lebesgue measure and w : Ω R + {\displaystyle w\colon \Omega \to \mathbb {R} ^{+}} is a non-negative measurable function. In this context, the weight function w ( x ) {\displaystyle w(x)} is sometimes referred to as a density.

General definition

If f : Ω R {\displaystyle f\colon \Omega \to \mathbb {R} } is a real-valued function, then the unweighted integral

Ω f ( x )   d x {\displaystyle \int _{\Omega }f(x)\ dx}

can be generalized to the weighted integral

Ω f ( x ) w ( x ) d x {\displaystyle \int _{\Omega }f(x)w(x)\,dx}

Note that one may need to require f {\displaystyle f} to be absolutely integrable with respect to the weight w ( x ) d x {\displaystyle w(x)\,dx} in order for this integral to be finite.

Weighted volume

If E is a subset of Ω {\displaystyle \Omega } , then the volume vol(E) of E can be generalized to the weighted volume

E w ( x )   d x , {\displaystyle \int _{E}w(x)\ dx,}

Weighted average

If Ω {\displaystyle \Omega } has finite non-zero weighted volume, then we can replace the unweighted average

1 v o l ( Ω ) Ω f ( x )   d x {\displaystyle {\frac {1}{\mathrm {vol} (\Omega )}}\int _{\Omega }f(x)\ dx}

by the weighted average

Ω f ( x ) w ( x ) d x Ω w ( x ) d x {\displaystyle {\frac {\displaystyle \int _{\Omega }f(x)\,w(x)\,dx}{\displaystyle \int _{\Omega }w(x)\,dx}}}

Bilinear form

If f : Ω R {\displaystyle f\colon \Omega \to {\mathbb {R} }} and g : Ω R {\displaystyle g\colon \Omega \to {\mathbb {R} }} are two functions, one can generalize the unweighted bilinear form

f , g := Ω f ( x ) g ( x )   d x {\displaystyle \langle f,g\rangle :=\int _{\Omega }f(x)g(x)\ dx}

to a weighted bilinear form

f , g w := Ω f ( x ) g ( x )   w ( x )   d x . {\displaystyle {\langle f,g\rangle }_{w}:=\int _{\Omega }f(x)g(x)\ w(x)\ dx.}

See the entry on orthogonal polynomials for examples of weighted orthogonal functions.

See also

References

  1. Jane Grossman, Michael Grossman, Robert Katz. The First Systems of Weighted Differential and Integral Calculus, ISBN 0-9771170-1-4, 1980.
  2. Jane Grossman.Meta-Calculus: Differential and Integral, ISBN 0-9771170-2-2, 1981.
Categories: