Argmin in LaTeX (\arg\min)
- LaTeX command
\arg\min- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
The argument of the minimum: the input at which a function reaches its smallest value.
\arg\min is how most optimization and learning problems define a solution, for instance least squares \hat{\beta} = \arg\min_\beta \|y - X\beta\|_2^2 or k-means cluster assignment. Typed this way, it is \arg followed by \min, so in display math the subscript centers under min rather than under the whole phrase. For a centered subscript, use \operatorname*{arg\,min} or declare a starred operator in the preamble. Some authors write argmin as one word without a space; the thin space in arg\,min follows the most common style. Remember the result may be a set if minimizers are not unique.
Also listed under: 最適化
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Argmin: $\arg\min$
\[ \hat{\beta} = \arg\min_{\beta} \|y - X\beta\|_2^2 \]
\end{document}Related symbols
- Argmax Subscript
\arg\max_{\theta} - Argmax
\arg\max - Argmin Subscript
\arg\min_{\theta} - KL divergence (short form)
\text{KL}(P \| Q) - Tensor Product
\otimes - KL Divergence
D_{\text{KL}}(P \| Q)
Frequently asked questions
- How do I write Argmin in LaTeX?
- Type \arg\min in math mode, for example $\hat{\beta} = \arg\min_{\beta} \|y - X\beta\|_2^2$. It works in plain LaTeX without loading any package.
- Which package do I need for \arg\min?
- None. \arg\min is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \arg\min in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arg\min$ in running text.