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 Pembelajaran Mesin & 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 poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI

  • Jana diagram TikZ yang cantik menggunakan AI
  • Muat naik imej dan tukar ke LaTeX dengan lancar
  • Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan