I am still confused about Hypothesis testing. How does one set up the null hypothesis $H_0$ and the alternative hypothesis $H_a$? I have read a post here that doesn't give it much credit, as far as I can tell. (One must use both $H_0$ and $H_a$ for the AP Statistics exam.)
I have read that $H_a$ is to be what one does not want to be false (to happen). Also, one source says that $H_0$ should always have the = sign, even when doing a one-sided (-tailed) test. But another uses the $\geq$ and $\leq$ in $H_0$ when doing a one-sided test. Another doesn't even mention $H_a$ and just goes straight to the P value.
Which is correct?
Question: Is A bigger than B?
$$H_0:= \left(\mu_a-\mu_b\right) = 0\quad \text{or}\quad H_0:= \left(\mu_a-\mu_b\right) \geq 0$$
$$H_a:= \left(\mu_a-\mu_b\right) \lt 0\quad \text{or}\quad H_a:= \left(\mu_a-\mu_b\right) \lt 0$$
Or is this setup better?
$$H_0:= \left(\mu_b - \mu_a\right) = 0\quad \text{or}\quad H_0:= \left(\mu_b-\mu_a\right) \leq 0 $$
$$H_a:= \left(\mu_b-\mu_a\right) \gt 0\quad \text{or}\quad H_a:= \left(\mu_b-\mu_a\right) \gt 0$$