0

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}

enter image description here

David Carlisle
  • 757,742

1 Answers1

1

commath package is for absuse (matter of tastes, irrelevant).

\documentclass{article}

\usepackage{amsmath} \usepackage{commath}

\begin{document}

\begin{equation} MAE = \frac{1}{n}\sum\limits_{j=1}^n\abs{y_j - \hat{y}_j} \end{equation}

\begin{equation} RMSE = \sqrt{\frac{1}{n}\sum\limits_{j=1}^n (y_j - \hat{y}_j)^2} \end{equation}

\end{document}

Result:

enter image description here

Blooment
  • 666