Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Weight function

From Wikipedia, the free encyclopedia
(Redirected fromWeighted sum)

Construct related to weighted sums and averages

Aweight 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 aweighted sum orweighted average. Weight functions occur frequently instatistics andanalysis, and are closely related to the concept of ameasure. 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

[edit]

General definition

[edit]

In the discrete setting, a weight functionw:AR+{\displaystyle w\colon A\to \mathbb {R} ^{+}} is a positive function defined on adiscretesetA{\displaystyle A}, which is typicallyfinite orcountable. The weight functionw(a):=1{\displaystyle w(a):=1} corresponds to theunweighted situation in which all elements have equal weight. One can then apply this weight to various concepts.

If the functionf:AR{\displaystyle f\colon A\to \mathbb {R} } is areal-valuedfunction, then theunweightedsum off{\displaystyle f} onA{\displaystyle A} is defined as

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

but given aweight functionw:AR+{\displaystyle w\colon A\to \mathbb {R} ^{+}}, theweighted sum orconical combination is defined as

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

One common application of weighted sums arises innumerical integration.

IfB is afinite subset ofA, one can replace the unweightedcardinality |B| ofB by theweighted cardinality

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

IfA is afinite non-empty set, one can replace the unweightedmean oraverage

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

by theweighted mean orweighted average

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

In this case only therelative weights are relevant.

Statistics

[edit]

Weighted means are commonly used instatistics to compensate for the presence ofbias. For a quantityf{\displaystyle f} measured multiple independent timesfi{\displaystyle f_{i}} withvarianceσi2{\displaystyle \sigma _{i}^{2}}, the best estimate of the signal is obtained by averaging all the measurements with weightwi=1/σi2{\textstyle w_{i}=1/{\sigma _{i}^{2}}}, and the resulting variance is smaller than each of the independent measurementsσ2=1/iwi{\textstyle \sigma ^{2}=1/\sum _{i}w_{i}}. Themaximum likelihood method weights the difference between fit and data using the same weightswi{\displaystyle w_{i}}.

Theexpected value of a random variable is the weighted average of the possible values it might take on, with the weights being the respectiveprobabilities. 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.

Inregressions in which thedependent variable is assumed to be affected by both current and lagged (past) values of theindependent variable, adistributed lag function is estimated, this function being a weighted average of the current and various lagged independent variable values. Similarly, amoving average model specifies an evolving variable as a weighted average of current and various lagged values of a random variable.

Mechanics

[edit]

The terminologyweight function arises frommechanics: if one has a collection ofn{\displaystyle n} objects on alever, with weightsw1,,wn{\displaystyle w_{1},\ldots ,w_{n}} (whereweight is now interpreted in the physical sense) and locationsx1,,xn{\displaystyle {\boldsymbol {x}}_{1},\dotsc ,{\boldsymbol {x}}_{n}}, then the lever will be in balance if thefulcrum of the lever is at thecenter of mass

i=1nwixii=1nwi,{\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 positionsxi{\displaystyle {\boldsymbol {x}}_{i}}.

Continuous weights

[edit]

In the continuous setting, a weight is a positivemeasure such asw(x)dx{\displaystyle w(x)\,dx} on somedomainΩ{\displaystyle \Omega }, which is typically asubset of aEuclidean spaceRn{\displaystyle \mathbb {R} ^{n}}, for instanceΩ{\displaystyle \Omega } could be aninterval[a,b]{\displaystyle [a,b]}. Heredx{\displaystyle dx} isLebesgue measure andw:ΩR+{\displaystyle w\colon \Omega \to \mathbb {R} ^{+}} is a non-negativemeasurablefunction. In this context, the weight functionw(x){\displaystyle w(x)} is sometimes referred to as adensity.

General definition

[edit]

Iff:ΩR{\displaystyle f\colon \Omega \to \mathbb {R} } is areal-valuedfunction, then theunweightedintegral

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

can be generalized to theweighted integral

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

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

Weighted volume

[edit]

IfE is a subset ofΩ{\displaystyle \Omega }, then thevolume vol(E) ofE can be generalized to theweighted volume

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

Weighted average

[edit]

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

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

by theweighted average

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

Bilinear form

[edit]

Iff:ΩR{\displaystyle f\colon \Omega \to {\mathbb {R} }} andg:ΩR{\displaystyle g\colon \Omega \to {\mathbb {R} }} are two functions, one can generalize the unweightedbilinear form

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

to a weighted bilinear form

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

See the entry onorthogonal polynomials for examples of weightedorthogonal functions.

See also

[edit]

References

[edit]
  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.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Weight_function&oldid=1253118875"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp