How do I frame null hypothesis and alternative hypothesis here?
How to write a null hypothesis using the ntheorem package - TeX - LaTeX Stack Exchange
Null hypothesis and Alternative Hypothesis
ELI5 what is the null hypothesis and can you give me some simple examples?
More or less, the null hypothesis is a hypothesis that states there wasn't anything important discovered in observation. If it's a two-group trial and control study, the null hypothesis is generally "the trial group is no different".
If the study is testing a medication, the null hypothesis is "it doesn't do anything".
If the study is comparing gender differences in some mental task, the null hypothesis is "there isn't a difference".
More on reddit.comWhat is hypothesis testing?
What are null and alternative hypotheses?
What symbols are used to represent null hypotheses?
Videos
Hey guys,
I've just started self learning hypothesis testing and am getting confused about framing the null hypothesis and alternative hypothesis in this question.
Usually every question I came accross made more sense and had a defining point at which it should be considered high satisfaction and below which it would be low.
Best I could come up with is (H0 : score > 30) but just assuming everything above mean is high feels wrong cause there's nothing specified in the question.
So in case I come accross questions like this how to I approach framing the null hypothesis and alternative hypothesis?
My impression is that you don't want automatic numbering.
\documentclass{article}
\usepackage{ntheorem} % For writing hypotheses
\theoremseparator{:} % Insert :
\newtheorem*{hyp*}{Hypothesis \protect\hypnumber} % Name "Hypothesis"
\newenvironment{hyp}[1]{\renewcommand{\hypnumber}{#1}\begin{hyp*}}{\end{hyp*}}
\newcommand{\hypnumber}{}
\begin{document}
\begin{hyp}{1}
My first hypothesis
\end{hyp}
\begin{hyp}{0}
My null hypothesis
\end{hyp}
\end{document}
You could set the counter to -1 before the null hypothesis (which will increase it to 0) and then back 1 afterwards:
\setcounter{hyp}{-1}
\begin{hyp}
My null hypothesis
\end{hyp}
\setcounter{hyp}[1}
That could be inconvenient however if you ever move the placement of the null hypothesis relative to other hypotheses, since you'd then have to set it back to something else.
An alternative would just to introduce a second nullhyp environment so its counter wouldn't interfere with the main hyp counter, so you wouldn't have to reset it afterwards.
\documentclass[12pt, letterpaper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{ntheorem} % For writing hypotheses
\theoremseparator{:} % Insert :
\newtheorem{hyp}{Hypothesis} % Name "Hypothesis"
\newtheorem{nullhyp}{Hypothesis} % Same name, different counter
\begin{document}
\begin{hyp}
My first hypothesis
\end{hyp}
\setcounter{nullhyp}{-1}
\begin{nullhyp}
My null hypothesis
\end{nullhyp}
\begin{hyp}
My next hypothesis
\end{hyp}
\end{document}
I'm sure there are other methods.