Math & Science ⇒ Hypothesis Testing Symbol
Hypothesis Testing Symbol
Dear friends,
how do we generate the math expression given in the attachment?
Thanks in advance,
Bhupala.
how do we generate the math expression given in the attachment?
Thanks in advance,
Bhupala.
- Attachments
-
- DC.png (1.06 KiB) Viewed 22022 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Hypothesis Testing Symbol
The symbol is \gtreqless. You'll need \usepackage{amssymb} for that.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Follow howtoTeX on twitter
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Hypothesis Testing Symbol
For such cases it is helpful to consult Detexify. Another good source is »The Comprehensive LaTeX Symbol List«.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Hypothesis Testing Symbol
Hi,
thanks for the help. But still I couldn't make out how to add the 1_D and 0_D properly as shown in the figure. Can anyone give the complete code that gives the output as shown in the figure?
thanks in advance,
Bhupala.
thanks for the help. But still I couldn't make out how to add the 1_D and 0_D properly as shown in the figure. Can anyone give the complete code that gives the output as shown in the figure?
thanks in advance,
Bhupala.
Hypothesis Testing Symbol
Probably something like this:
The argument between the square brackets, [-5pt], correspond to the linespacing. So in this case the linespacing is reduced by 5pt.
Code: Select all
\documentclass[]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{align*}
&1_{D} \\[-5pt]
&\gtreqless \\[-5pt]
&0_{D}
\end{align*}
\end{document}
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Follow howtoTeX on twitter
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Hypothesis Testing Symbol
You should tell us in which context you want to typeset this expression (e. g. equations). There are several solutions to this problem.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Hypothesis Testing Symbol
Dear friends,
sorry for wasting you time. This is what finally I wanted.
Thanks,
Bhupala
sorry for wasting you time. This is what finally I wanted.
Thanks,
Bhupala
- Attachments
-
- DigCom.png (5.66 KiB) Viewed 21947 times
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Hypothesis Testing Symbol
In this case you should typeset this expression as a mathematical operator. This is done by the \mathop command which places the two arguments as some kind of limits.
Note that for other cases a different method might be better to get and align this sign.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools} % loads »amsmath«
\usepackage{amssymb}
\begin{document}
\[
(r_1-1)^2+(r_2-\tfrac{1}{2})^2\quad\mathop{\gtreqless}_{0_D}^{1_D}\quad(r_1+1)^2+(r_2-1)^2+\ln\left(\frac{P_1}{P_2}\right)
\]
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Hypothesis Testing Symbol
Hi everybody!
I saw this post when I was searching for a way to write the symbol for binary hypothesis testing problem. I found a solution and I wanted to share with you
.
Here is a simple example:
You can see what you get in the attached file.
Hope this can be helpful!
Mohamed
I saw this post when I was searching for a way to write the symbol for binary hypothesis testing problem. I found a solution and I wanted to share with you

Here is a simple example:
Code: Select all
\documentclass[]{article}
\usepackage{amsmath,amssymb}
\begin{document}
\[
\underset{H_0}{\overset{H_1}{\gtrless}}
\]
\end{document}
Hope this can be helpful!
Mohamed
- Attachments
-
- hyp_tst.pdf
- (34.03 KiB) Downloaded 795 times