Quire

Arg max

From Quire, the open reference·Inputs at which function values are highest·3 min read
Redirected from Argmax
As an example, both unnormalised and normalised sinc functions above have of {0} because both attain their global maximum value of 1 at x = 0.The unnormalised sinc function (red) has arg min of {−4.49
As an example, both unnormalised and normalised sinc functions above have {\displaystyle \operatorname {argmax} } of {0} because both attain their global maximum value of 1 at x = 0.

The unnormalised sinc function (red) has arg min of {−4.49, 4.49}, approximately, because it has 2 global minimum values of approximately −0.217 at x = ±4.49. However, the normalised sinc function (blue) has arg min of {−1.43, 1.43}, approximately, because their global minima occur at x = ±1.43, even though the minimum value is the same.[1] Image: source and license

In mathematics, the arguments of the maxima (abbreviated arg max or argmax) and arguments of the minima (abbreviated arg min or argmin) are the input points at which a function output value is maximized and minimized, respectively.[2] While the arguments are defined over the domain of a function, the output is part of its codomain.

Definition#edit

Given an arbitrary set {\displaystyle X}, a totally ordered set {\displaystyle Y}, and a function, {\displaystyle f\colon X\to Y}, the {\displaystyle \operatorname {argmax} } over some subset {\displaystyle S} of {\displaystyle X} is defined by

{\displaystyle \operatorname {argmax} _{S}f:={\underset {x\in S}{\operatorname {argmax} \,f(x):=\{x\in S~:~f(s)\leq f(x){\text{ for all s\in S\}.}

If {\displaystyle S=X} or {\displaystyle S} is clear from the context, then {\displaystyle S} is often left out, as in {\displaystyle {\underset {x}{\operatorname {argmax} \,f(x):=\{x~:~f(s)\leq f(x){\text{ for all s\in X\}.} In other words, {\displaystyle \operatorname {argmax} } is the set of points {\displaystyle x} for which {\displaystyle f(x)} attains the function's largest value (if it exists). {\displaystyle \operatorname {Argmax} } may be the empty set, a singleton, or contain multiple elements.

In the fields of convex analysis and variational analysis, a slightly different definition is used in the special case where {\displaystyle Y=[-\infty ,\infty ]=\mathbb {R} \cup \{\pm \infty \ are the extended real numbers.[3] In this case, if {\displaystyle f} is identically equal to {\displaystyle \infty } on {\displaystyle S} then {\displaystyle \operatorname {argmax} _{S}f:=\varnothing } (that is, {\displaystyle \operatorname {argmax} _{S}\infty :=\varnothing }) and otherwise {\displaystyle \operatorname {argmax} _{S}f} is defined as above, where in this case {\displaystyle \operatorname {argmax} _{S}f} can also be written as:

{\displaystyle \operatorname {argmax} _{S}f:=\left\{x\in S~:~f(x)=\sup {}_{S}f\right\

where it is emphasized that this equality involving {\displaystyle \sup {}_{S}f} holds only when {\displaystyle f} is not identically {\displaystyle \infty } on {\displaystyle S}.[3]

Arg min#edit

The notion of {\displaystyle \operatorname {argmin} } (or {\displaystyle \operatorname {argmin} }), which stands for argument of the minimum, is defined analogously. For instance,

{\displaystyle {\underset {x\in S}{\operatorname {argmin} \,f(x):=\{x\in S~:~f(s)\geq f(x){\text{ for all s\in S\

are points {\displaystyle x} for which {\displaystyle f(x)} attains its smallest value. It is the complementary operator of {\displaystyle \operatorname {argmax} }.

In the special case where {\displaystyle Y=[-\infty ,\infty ]=\mathbb {R} \cup \{\pm \infty \ are the extended real numbers, if {\displaystyle f} is identically equal to {\displaystyle -\infty } on {\displaystyle S} then {\displaystyle \operatorname {argmin} _{S}f:=\varnothing } (that is, {\displaystyle \operatorname {argmin} _{S}-\infty :=\varnothing }) and otherwise {\displaystyle \operatorname {argmin} _{S}f} is defined as above and moreover, in this case (of {\displaystyle f} not identically equal to {\displaystyle -\infty }) it also satisfies:

{\displaystyle \operatorname {argmin} _{S}f:=\left\{x\in S~:~f(x)=\inf {}_{S}f\right\}.}[3]

Examples and properties#edit

For example, if {\displaystyle f(x)} is {\displaystyle 1-|x|,} then {\displaystyle f} attains its maximum value of {\displaystyle 1} only at the point {\displaystyle x=0.} Thus

{\displaystyle {\underset {x}{\operatorname {argmax} \,(1-|x|)=\{0\}.}

The {\displaystyle \operatorname {argmax} } operator is different from the {\displaystyle \max } operator. The {\displaystyle \max } operator, when given the same function, returns the maximum value of the function instead of the point or points that cause that function to reach that value; in other words

{\displaystyle \max _{x}f(x)} is the element in {\displaystyle \{f(x)~:~f(s)\leq f(x){\text{ for all s\in S\}.}

Like {\displaystyle \operatorname {argmax} ,} max may be the empty set (in which case the maximum is undefined) or a singleton, but unlike {\displaystyle \operatorname {argmax} ,} {\displaystyle \operatorname {max} } may not contain multiple elements:[4] for example, if {\displaystyle f(x)} is {\displaystyle 4x^{2}-x^{4},} then {\displaystyle {\underset {x}{\operatorname {argmax} \,\left(4x^{2}-x^{4}\right)=\left\{-{\sqrt {2,{\sqrt {2\right\},} but {\displaystyle {\underset {x}{\operatorname {max} \,\left(4x^{2}-x^{4}\right)=\{4\ because the function attains the same value at every element of {\displaystyle \operatorname {argmax} .}

Equivalently, if {\displaystyle M} is the maximum of {\displaystyle f,} then the {\displaystyle \operatorname {argmax} } is the level set of the maximum:

{\displaystyle {\underset {x}{\operatorname {argmax} \,f(x)=\{x~:~f(x)=M\}=:f^{-1}(M).}

We can rearrange to give the simple identity[5]

{\displaystyle f\left({\underset {x}{\operatorname {argmax} \,f(x)\right)=\max _{x}f(x).}

If the maximum is reached at a single point then this point is often referred to as the {\displaystyle \operatorname {argmax} ,} and {\displaystyle \operatorname {argmax} } is considered a point, not a set of points. So, for example,

{\displaystyle {\underset {x\in \mathbb {R} }{\operatorname {argmax} \,(x(10-x))=5}

(rather than the singleton set {\displaystyle \{5\), since the maximum value of {\displaystyle x(10-x)} is {\displaystyle 25,} which occurs for {\displaystyle x=5.}[6] However, in case the maximum is reached at many points, {\displaystyle \operatorname {argmax} } needs to be considered a set of points.

For example

{\displaystyle {\underset {x\in [0,4\pi ]}{\operatorname {argmax} \,\cos(x)=\{0,2\pi ,4\pi \

because the maximum value of {\displaystyle \cos x} is {\displaystyle 1,} which occurs on this interval for {\displaystyle x=0,2\pi } or {\displaystyle 4\pi .} On the whole real line

{\displaystyle {\underset {x\in \mathbb {R} }{\operatorname {argmax} \,\cos(x)=\left\{2k\pi ~:~k\in \mathbb {Z} \right\},} so an infinite set.

Functions need not in general attain a maximum value, and hence the {\displaystyle \operatorname {argmax} } is sometimes the empty set; for example, {\displaystyle {\underset {x\in \mathbb {R} }{\operatorname {argmax} \,x^{3}=\varnothing ,} since {\displaystyle x^{3 is unbounded on the real line. As another example, {\displaystyle {\underset {x\in \mathbb {R} }{\operatorname {argmax} \,\arctan(x)=\varnothing ,} although {\displaystyle \arctan } is bounded by {\displaystyle \pm \pi /2.} However, by the extreme value theorem, a continuous real-valued function on a closed interval has a maximum, and thus a nonempty {\displaystyle \operatorname {argmax} .}

See also#edit

Notes#edit

  1. ^ "The Unnormalized Sinc Function Archived 2017-02-15 at the Wayback Machine", University of Sydney
  2. ^ For clarity, we refer to the input (x) as points and the output (y) as values; compare critical point and critical value.
  3. ^ a b c Rockafellar & Wets 2009, pp. 1–37.
  4. ^ Due to the anti-symmetry of {\displaystyle \,\leq ,} a function can have at most one maximal value.
  5. ^ This is an identity between sets, more particularly, between subsets of {\displaystyle Y.}
  6. ^ Note that {\displaystyle x(10-x)=25-(x-5)^{2}\leq 25} with equality if and only if {\displaystyle x-5=0.}

References#edit

This article is mirrored from “Arg max” on English Wikipedia, revision 1379278752, written by Wikipedia's contributors and licensed CC BY-SA 4.0. Editing it here creates a Quire copy with its own history.

Synced with Wikipedia revision 1379278752 · just now