<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Weight_function</id>
	<title>Weight function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Weight_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Weight_function&amp;action=history"/>
	<updated>2026-04-21T22:37:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Weight_function&amp;diff=166111&amp;oldid=prev</id>
		<title>129.55.200.20: Undid revision 1253037847 by 223.123.19.139 (talk)</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Weight_function&amp;diff=166111&amp;oldid=prev"/>
		<updated>2024-10-24T12:51:39Z</updated>

		<summary type="html">&lt;p&gt;Undid revision &lt;a href=&quot;/index.php/Special:Diff/1253037847&quot; title=&quot;Special:Diff/1253037847&quot;&gt;1253037847&lt;/a&gt; by &lt;a href=&quot;/index.php/Special:Contributions/223.123.19.139&quot; title=&quot;Special:Contributions/223.123.19.139&quot;&gt;223.123.19.139&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:223.123.19.139&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:223.123.19.139 (page does not exist)&quot;&gt;talk&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Use American English|date = March 2019}}&lt;br /&gt;
{{Short description|Construct related to weighted sums and averages}}&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;weight function&amp;#039;&amp;#039;&amp;#039; is a mathematical device used when performing a sum, integral, or average to give some elements more &amp;quot;weight&amp;quot; or influence on the result than other elements in the same set. The result of this application of a weight function is a &amp;#039;&amp;#039;&amp;#039;weighted sum&amp;#039;&amp;#039;&amp;#039; or [[weighted average]]. Weight functions occur frequently in [[statistics]] and [[mathematical analysis|analysis]], and are closely related to the concept of a [[measure (mathematics)|measure]].  Weight functions can be employed in both discrete and continuous settings. They can be used to construct systems of calculus called &amp;quot;weighted calculus&amp;quot;&amp;lt;ref&amp;gt;Jane Grossman, Michael Grossman, Robert Katz. [https://books.google.com/books?as_brr=0&amp;amp;q=%22The+First+Systems+of+Weighted+Differential+and+Integral+Calculus%E2%80%8E%22&amp;amp;btnG=Search+Books, &amp;#039;&amp;#039;The First Systems of Weighted Differential and Integral Calculus&amp;#039;&amp;#039;], {{isbn|0-9771170-1-4}}, 1980.&amp;lt;/ref&amp;gt; and &amp;quot;meta-calculus&amp;quot;.&amp;lt;ref&amp;gt;Jane Grossman.[https://books.google.com/books?q=%22Non-Newtonian+Calculus%22&amp;amp;btnG=Search+Books&amp;amp;as_brr=0, &amp;#039;&amp;#039;Meta-Calculus: Differential and Integral&amp;#039;&amp;#039;], {{isbn|0-9771170-2-2}}, 1981.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discrete weights ==&lt;br /&gt;
=== General definition ===&lt;br /&gt;
In the discrete setting, a weight function &amp;lt;math&amp;gt;w \colon A \to \R^+&amp;lt;/math&amp;gt; is a positive function defined on a [[discrete mathematics|discrete]] [[Set (mathematics)|set]] &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;, which is typically [[finite set|finite]] or [[countable]].  The weight function &amp;lt;math&amp;gt;w(a) := 1&amp;lt;/math&amp;gt; corresponds to the &amp;#039;&amp;#039;unweighted&amp;#039;&amp;#039; situation in which all elements have equal weight.  One can then apply this weight to various concepts.&lt;br /&gt;
&lt;br /&gt;
If the function &amp;lt;math&amp;gt;f\colon A \to \R&amp;lt;/math&amp;gt; is a [[real number|real]]-valued [[mathematical function|function]], then the &amp;#039;&amp;#039;unweighted [[summation|sum]] of &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; on &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt;&amp;#039;&amp;#039; is defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{a \in A} f(a);&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
but given a &amp;#039;&amp;#039;weight function&amp;#039;&amp;#039; &amp;lt;math&amp;gt;w\colon A \to \R^+&amp;lt;/math&amp;gt;, the &amp;#039;&amp;#039;&amp;#039;weighted sum&amp;#039;&amp;#039;&amp;#039; or [[conical combination]] is defined as&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{a \in A} f(a) w(a).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One common application of weighted sums arises in [[numerical integration]].&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;B&amp;#039;&amp;#039; is a [[finite set|finite]] subset of &amp;#039;&amp;#039;A&amp;#039;&amp;#039;, one can replace the unweighted [[cardinality]] |&amp;#039;&amp;#039;B&amp;#039;&amp;#039;| of &amp;#039;&amp;#039;B&amp;#039;&amp;#039; by the &amp;#039;&amp;#039;weighted cardinality&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\sum_{a \in B} w(a).&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If &amp;#039;&amp;#039;A&amp;#039;&amp;#039; is a [[finite set|finite]] non-empty set, one can replace the unweighted [[mean]] or [[average]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{1}{|A|} \sum_{a \in A} f(a)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
by the [[weighted mean]] or [[weighted average]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \frac{\sum_{a \in A} f(a) w(a)}{\sum_{a \in A} w(a)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this case only the &amp;#039;&amp;#039;relative&amp;#039;&amp;#039; weights are relevant.&lt;br /&gt;
&lt;br /&gt;
=== Statistics ===&lt;br /&gt;
Weighted means are commonly used in [[statistics]] to compensate for the presence of [[Bias_(statistics)|bias]].  For a quantity &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; measured multiple independent times &amp;lt;math&amp;gt;f_i&amp;lt;/math&amp;gt; with [[variance]] &amp;lt;math&amp;gt;\sigma^2_i&amp;lt;/math&amp;gt;, the best estimate of the signal is obtained  by averaging all the measurements with weight {{nowrap|&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;w_i = 1 / {\sigma_i^2}&amp;lt;/math&amp;gt;,}} and the resulting variance is smaller than each of the independent measurements {{nowrap|&amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt; \sigma^2 = 1 / \sum_i w_i&amp;lt;/math&amp;gt;.}} The [[maximum likelihood]] method weights the difference between fit and data using the same weights {{nowrap|&amp;lt;math&amp;gt;w_i&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
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 [[probability|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.&lt;br /&gt;
&lt;br /&gt;
In [[linear regression|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.&lt;br /&gt;
&lt;br /&gt;
=== Mechanics ===&lt;br /&gt;
The terminology &amp;#039;&amp;#039;weight function&amp;#039;&amp;#039; arises from [[mechanics]]: if one has a collection of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; objects on a [[lever]], with weights &amp;lt;math&amp;gt;w_1, \ldots, w_n&amp;lt;/math&amp;gt; (where [[weight]] is now interpreted in the physical sense) and locations {{nowrap|&amp;lt;math&amp;gt;\boldsymbol{x}_1,\dotsc,\boldsymbol{x}_n&amp;lt;/math&amp;gt;,}} then the lever will be in balance if the [[Lever|fulcrum]] of the lever is at the [[center of mass]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{\sum_{i=1}^n w_i \boldsymbol{x}_i}{\sum_{i=1}^n w_i},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which is also the weighted average of the positions {{nowrap|&amp;lt;math&amp;gt;\boldsymbol{x}_i&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
== Continuous weights ==&lt;br /&gt;
In the continuous setting, a weight is a positive [[measure (mathematics)|measure]] such as &amp;lt;math&amp;gt;w(x) \, dx&amp;lt;/math&amp;gt; on some [[domain (mathematical analysis)|domain]] &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt;, which is typically a [[subset]] of a [[Euclidean space]] &amp;lt;math&amp;gt;\R^n&amp;lt;/math&amp;gt;, for instance &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt; could be an [[Interval (mathematics)|interval]] &amp;lt;math&amp;gt;[a,b]&amp;lt;/math&amp;gt;.  Here &amp;lt;math&amp;gt;dx&amp;lt;/math&amp;gt; is [[Lebesgue measure]] and &amp;lt;math&amp;gt;w\colon \Omega \to \R^+&amp;lt;/math&amp;gt; is a non-negative [[measurable]] [[mathematical function|function]].  In this context, the weight function &amp;lt;math&amp;gt;w(x)&amp;lt;/math&amp;gt; is sometimes referred to as a [[density]].&lt;br /&gt;
&lt;br /&gt;
=== General definition ===&lt;br /&gt;
If &amp;lt;math&amp;gt;f\colon \Omega \to \R&amp;lt;/math&amp;gt; is a [[real number|real]]-valued [[mathematical function|function]], then the &amp;#039;&amp;#039;unweighted&amp;#039;&amp;#039; [[integral]]&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_\Omega f(x)\ dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
can be generalized to the &amp;#039;&amp;#039;weighted integral&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\int_\Omega f(x) w(x)\, dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that one may need to require &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; to be [[absolutely integrable function|absolutely integrable]] with respect to the weight &amp;lt;math&amp;gt;w(x) \, dx&amp;lt;/math&amp;gt; in order for this integral to be finite.&lt;br /&gt;
&lt;br /&gt;
=== Weighted volume ===&lt;br /&gt;
If &amp;#039;&amp;#039;E&amp;#039;&amp;#039; is a subset of &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt;, then the [[volume]] vol(&amp;#039;&amp;#039;E&amp;#039;&amp;#039;) of &amp;#039;&amp;#039;E&amp;#039;&amp;#039; can be generalized to the &amp;#039;&amp;#039;weighted volume&amp;#039;&amp;#039; &lt;br /&gt;
:&amp;lt;math&amp;gt; \int_E w(x)\ dx,&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Weighted average ===&lt;br /&gt;
If &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt; has finite non-zero weighted volume, then we can replace the unweighted [[average]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\frac{1}{\mathrm{vol}(\Omega)} \int_\Omega f(x)\ dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
by the &amp;#039;&amp;#039;&amp;#039;weighted average&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt; \frac{\displaystyle\int_\Omega f(x)\, w(x) \, dx}{\displaystyle\int_\Omega w(x) \, dx}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Bilinear form ===&lt;br /&gt;
If &amp;lt;math&amp;gt; f\colon \Omega \to {\mathbb R}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt; g\colon \Omega \to {\mathbb R}&amp;lt;/math&amp;gt; are two functions, one can generalize the unweighted [[bilinear form]] &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\langle f, g \rangle := \int_\Omega f(x) g(x)\ dx&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to a weighted bilinear form &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;{\langle f, g \rangle}_w := \int_\Omega f(x) g(x)\ w(x)\ dx.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
See the entry on [[orthogonal polynomials]] for examples of weighted [[orthogonal functions]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Center of mass]]&lt;br /&gt;
* [[Numerical integration]]&lt;br /&gt;
* [[Orthogonality]]&lt;br /&gt;
* [[Weighted mean]]&lt;br /&gt;
* [[Linear combination]]&lt;br /&gt;
* [[Kernel (statistics)]]&lt;br /&gt;
* [[Measure (mathematics)]]&lt;br /&gt;
* [[Riemann–Stieltjes integral]]&lt;br /&gt;
* [[Weighting]]&lt;br /&gt;
* [[Window function]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Weight Function}}&lt;br /&gt;
[[Category:Mathematical analysis]]&lt;br /&gt;
[[Category:Measure theory]]&lt;br /&gt;
[[Category:Combinatorial optimization]]&lt;br /&gt;
[[Category:Functional analysis]]&lt;br /&gt;
[[Category:Types of functions]]&lt;/div&gt;</summary>
		<author><name>129.55.200.20</name></author>
	</entry>
</feed>