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로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기