[Tex/LaTex] How to write something above and below the signs

math-modemath-operators

I have a relation called Likelihood Ratio Test which has a special format. As you see in the picture, there are two non-equality signs and also somethings above and below them. How can I write these symbols? enter image description here

Best Answer

You can use a \Vectorstack, where the baselineskip of the stack may be set to the desired value. As Bernard points out, a \Vectorstack is actually a \Centerstack that is automatically processed in math mode.

\documentclass{article}
\usepackage{stackengine}
\begin{document}
\[
  \setstackgap{L}{.7\baselineskip}
  \Lambda(y) = \frac{p(y{\mid}H_1)}{p(y{\mid}H_0)}
  \Vectorstack{H_1 > < H_0}
  \lambda.
\]
\end{document}

enter image description here

Related Question