Argmin in LaTeX (\arg\min)

arg⁡min⁡\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.

β^=arg⁡min⁡β∥y−Xβ∥22\hat{\beta} = \arg\min_{\beta} \|y - X\beta\|_2^2
\documentclass{article}
\begin{document}
Argmin: $\arg\min$

\[ \hat{\beta} = \arg\min_{\beta} \|y - X\beta\|_2^2 \]
\end{document}

Related symbols

All 機械学習・AI →

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.
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得