hi i am beginner in latex and i am trying to write these 2 equations however i got different errors what is wrong with this code ? please,can anyone help ? thanks in advance
\begin{equation}
$Support(X )= \frac{No,of\; transactions\; that \; contain\; X}{No,of \;transactions\; in\; the \;database}$
\end{equation}
%\noindent
\begin{equation}
$confidence(X \longrightarrow Y)$=$ \frac {Support (X \cup Y) }{ support(X)}$
\end{equation}
The error messages are:
Missing $ inserted.
Display math should end with $$.
Bad math environment delimiter. \end{equation}
Missing $ inserted. \end{equation}
You can't use `\eqno' in vertical mode.
\begin{equation}...\end{equation}
is already math mode, so no$...$
in there, (3) blank lines are not allowed inside math envs