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 Machine Learning at 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 poweredSumulat ng LaTeX gamit ang AI

Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf

Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI

  • Gumawa ng magagandang TikZ diagrams gamit ang AI
  • Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
  • Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers