I am getting the error message Missing insert { when using the below mathematical equation. I have no spaces between the equation so not sure where is the issue. Thanks
\begin{equation}
MAE = \frac{1}{n}\sum_{i=1}^{n}|{y}-{y^_j}|
\end{equation}
\begin{equation}
RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^{n}({y}-{y^_j})^2}
\end{equation}


y^_J? Is j as superscript or subscript? – John Kormylo Aug 25 '20 at 14:47y^_{j}supposed to produce? – Bernard Aug 25 '20 at 14:47{}aroundynor aroundy^jory_j. Also, you shouldn't have two consecutiveequationenvironments (it's not an error, but it doesn't look right - look intogatheroralign). – Teepeemm Aug 25 '20 at 14:48\hat{y}_{j}is the way to go. – egreg Aug 25 '20 at 14:53\mathrm{RMSE}– Don Hosek Aug 25 '20 at 15:44