Math & ScienceHypothesis Testing Symbol

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
bhupala
Posts: 3
Joined: Sat Sep 24, 2011 4:05 pm

Hypothesis Testing Symbol

Post by bhupala »

Dear friends,

how do we generate the math expression given in the attachment?


Thanks in advance,
Bhupala.
Attachments
DC.png
DC.png (1.06 KiB) Viewed 22016 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Re: Hypothesis Testing Symbol

Post by Frits »

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
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hypothesis Testing Symbol

Post by localghost »

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
bhupala
Posts: 3
Joined: Sat Sep 24, 2011 4:05 pm

Re: Hypothesis Testing Symbol

Post by bhupala »

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.
Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

Hypothesis Testing Symbol

Post by Frits »

Probably something like this:

Code: Select all

\documentclass[]{article}
\usepackage{amsmath,amssymb}

\begin{document}
\begin{align*}
	&1_{D} \\[-5pt]
	&\gtreqless \\[-5pt]
	&0_{D}
\end{align*}
\end{document}
The argument between the square brackets, [-5pt], correspond to the linespacing. So in this case the linespacing is reduced by 5pt.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Hypothesis Testing Symbol

Post by localghost »

You should tell us in which context you want to typeset this expression (e. g. equations). There are several solutions to this problem.
bhupala
Posts: 3
Joined: Sat Sep 24, 2011 4:05 pm

Re: Hypothesis Testing Symbol

Post by bhupala »

Dear friends,

sorry for wasting you time. This is what finally I wanted.

Thanks,
Bhupala
Attachments
DigCom.png
DigCom.png (5.66 KiB) Viewed 21941 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Hypothesis Testing Symbol

Post by localghost »

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.

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}
Note that for other cases a different method might be better to get and align this sign.
Mohamed
Posts: 1
Joined: Sun Jun 30, 2013 11:31 am

Hypothesis Testing Symbol

Post by Mohamed »

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:

Code: Select all

\documentclass[]{article}
\usepackage{amsmath,amssymb}

\begin{document}
  \[
    \underset{H_0}{\overset{H_1}{\gtrless}}
  \]
\end{document}
You can see what you get in the attached file.


Hope this can be helpful!
Mohamed
Attachments
hyp_tst.pdf
(34.03 KiB) Downloaded 795 times
Post Reply