Math mode ignoring new line markers

try this

$$
\begin{split}
H_0: E(Y) = \beta_0 + \beta_1X \\
H_a: E(Y) \neq \beta_0 +\beta_1X
\end{split}
$$