Argmax Subscript in LaTeX (\arg\max_{\theta})

arg⁡max⁡θ\arg\max_{\theta}
LaTeX command
\arg\max_{\theta}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Argmax with the optimization variable theta in the subscript: the parameter value maximizing an objective.

This form names the variable being optimized, the standard way to write maximum likelihood, \hat{\theta}_{\text{MLE}} = \arg\max_\theta \sum_i \log p(x_i|\theta), and MAP estimation. Because the subscript attaches only to \max, in display mode theta sits below max, not centered under the full arg max. Replacing it with \operatorname*{arg\,max}_{\theta} or a declared \argmax gives a centered placement and is what most journals expect. In inline math the subscript appears to the right either way. You can also list constraints in the subscript, such as \theta \in \Theta, using \substack for multiple lines.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

θ^=arg⁡max⁡θ∑i=1Nlog⁡p(xi∣θ)\hat{\theta} = \arg\max_{\theta} \sum_{i=1}^{N} \log p(x_i \mid \theta)
\documentclass{article}
\begin{document}
Argmax Subscript: $\arg\max_{\theta}$

\[ \hat{\theta} = \arg\max_{\theta} \sum_{i=1}^{N} \log p(x_i \mid \theta) \]
\end{document}

Related symbols

All 機械学習・AI →

Frequently asked questions

How do I write Argmax Subscript in LaTeX?
Type \arg\max_{\theta} in math mode, for example $\hat{\theta} = \arg\max_{\theta} \sum_{i=1}^{N} \log p(x_i \mid \theta)$. It works in plain LaTeX without loading any package.
Which package do I need for \arg\max_{\theta}?
None. \arg\max_{\theta} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \arg\max_{\theta} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\arg\max_{\theta}$ in running text.
Math poweredAIでLaTeXを書く

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

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

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