Weight function
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"[1] and "meta-calculus".[2]
Discrete weights
General definition
In the discrete setting, a weight function [math]\displaystyle{ w \colon A \to \R^+ }[/math] is a positive function defined on a discrete set [math]\displaystyle{ A }[/math], which is typically finite or countable. The weight function [math]\displaystyle{ w(a) := 1 }[/math] corresponds to the unweighted situation in which all elements have equal weight. One can then apply this weight to various concepts.
If the function [math]\displaystyle{ f\colon A \to \R }[/math] is a real-valued function, then the unweighted sum of [math]\displaystyle{ f }[/math] on [math]\displaystyle{ A }[/math] is defined as
- [math]\displaystyle{ \sum_{a \in A} f(a); }[/math]
but given a weight function [math]\displaystyle{ w\colon A \to \R^+ }[/math], the weighted sum or conical combination is defined as
- [math]\displaystyle{ \sum_{a \in A} f(a) w(a). }[/math]
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
- [math]\displaystyle{ \sum_{a \in B} w(a). }[/math]
If A is a finite non-empty set, one can replace the unweighted mean or average
- [math]\displaystyle{ \frac{1}{|A|} \sum_{a \in A} f(a) }[/math]
by the weighted mean or weighted average
- [math]\displaystyle{ \frac{\sum_{a \in A} f(a) w(a)}{\sum_{a \in A} w(a)}. }[/math]
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 [math]\displaystyle{ f }[/math] measured multiple independent times [math]\displaystyle{ f_i }[/math] with variance [math]\displaystyle{ \sigma^2_i }[/math], the best estimate of the signal is obtained by averaging all the measurements with weight [math]\displaystyle{ w_i = 1 / {\sigma_i^2} }[/math], and the resulting variance is smaller than each of the independent measurements [math]\displaystyle{ \sigma^2 = 1 / \sum_i w_i }[/math]. The maximum likelihood method weights the difference between fit and data using the same weights [math]\displaystyle{ w_i }[/math].
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 [math]\displaystyle{ n }[/math] objects on a lever, with weights [math]\displaystyle{ w_1, \ldots, w_n }[/math] (where weight is now interpreted in the physical sense) and locations [math]\displaystyle{ \boldsymbol{x}_1,\dotsc,\boldsymbol{x}_n }[/math], then the lever will be in balance if the fulcrum of the lever is at the center of mass
- [math]\displaystyle{ \frac{\sum_{i=1}^n w_i \boldsymbol{x}_i}{\sum_{i=1}^n w_i}, }[/math]
which is also the weighted average of the positions [math]\displaystyle{ \boldsymbol{x}_i }[/math].
Continuous weights
In the continuous setting, a weight is a positive measure such as [math]\displaystyle{ w(x) \, dx }[/math] on some domain [math]\displaystyle{ \Omega }[/math], which is typically a subset of a Euclidean space [math]\displaystyle{ \R^n }[/math], for instance [math]\displaystyle{ \Omega }[/math] could be an interval [math]\displaystyle{ [a,b] }[/math]. Here [math]\displaystyle{ dx }[/math] is Lebesgue measure and [math]\displaystyle{ w\colon \Omega \to \R^+ }[/math] is a non-negative measurable function. In this context, the weight function [math]\displaystyle{ w(x) }[/math] is sometimes referred to as a density.
General definition
If [math]\displaystyle{ f\colon \Omega \to \R }[/math] is a real-valued function, then the unweighted integral
- [math]\displaystyle{ \int_\Omega f(x)\ dx }[/math]
can be generalized to the weighted integral
- [math]\displaystyle{ \int_\Omega f(x) w(x)\, dx }[/math]
Note that one may need to require [math]\displaystyle{ f }[/math] to be absolutely integrable with respect to the weight [math]\displaystyle{ w(x) \, dx }[/math] in order for this integral to be finite.
Weighted volume
If E is a subset of [math]\displaystyle{ \Omega }[/math], then the volume vol(E) of E can be generalized to the weighted volume
- [math]\displaystyle{ \int_E w(x)\ dx, }[/math]
Weighted average
If [math]\displaystyle{ \Omega }[/math] has finite non-zero weighted volume, then we can replace the unweighted average
- [math]\displaystyle{ \frac{1}{\mathrm{vol}(\Omega)} \int_\Omega f(x)\ dx }[/math]
by the weighted average
- [math]\displaystyle{ \frac{\int_\Omega f(x)\, w(x) \, dx}{\int_\Omega w(x) \, dx} }[/math]
Bilinear form
If [math]\displaystyle{ f\colon \Omega \to {\mathbb R} }[/math] and [math]\displaystyle{ g\colon \Omega \to {\mathbb R} }[/math] are two functions, one can generalize the unweighted bilinear form
- [math]\displaystyle{ \langle f, g \rangle := \int_\Omega f(x) g(x)\ dx }[/math]
to a weighted bilinear form
- [math]\displaystyle{ \langle f, g \rangle := \int_\Omega f(x) g(x)\ w(x)\ dx. }[/math]
See the entry on orthogonal polynomials for examples of weighted orthogonal functions.
See also
- Center of mass
- Numerical integration
- Orthogonality
- Weighted mean
- Linear combination
- Kernel (statistics)
- Measure (mathematics)
- Riemann–Stieltjes integral
- Weighting
- Window function
References
- ↑ Jane Grossman, Michael Grossman, Robert Katz. The First Systems of Weighted Differential and Integral Calculus, ISBN 0-9771170-1-4, 1980.
- ↑ Jane Grossman.Meta-Calculus: Differential and Integral, ISBN 0-9771170-2-2, 1981.
Original source: https://en.wikipedia.org/wiki/Weight function.
Read more |