[Tex/LaTex] Increase vertical space in table

spacingtables

Creating a table using tabulary I am confronted with the problem that the lines of my table are too small, resulting in that the formulas touch the borders of the table. The code I used is given below.

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabulary}
\usepackage{booktabs}
\usepackage{tabularx}

\begin{document}

\centering
\begin{tabulary}{18cm}{R|L L L}
\toprule
\hline
Mean squared error & MSE &= &$\frac{1}{n}\sum_{t=1}^{n}e_t^2$   \\
\hline
Root mean squared error & RMSE &= &$\sqrt{\frac{1}{n}\sum_{t=1}^{n}e_t^2}$ \\
\hline
Mean absolute error & MAE &= &$\frac{1}{n}\sum_{t=1}^{n}|e_t|$ \\
\hline
Mean absolute percentage error & MAPE &= &$\frac{100\%}{n}\sum_{t=1}^{n}\left |\frac{e_t}{y_t}\right|$\\
\hline\bottomrule
\end{tabulary}
\end{document}

How can I increase vertical space in my table so that it looks appropriate?

enter image description here

Best Answer

Don't use \hline and also remove the vertical rule that adds no information and simply interrupts the flow of reading.

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{tabulary}
\usepackage{booktabs}
\usepackage{amsmath}

\begin{document}

\centering
\begin{tabulary}{18cm}{L R @{} >{${}}c<{{}$} @{} L}
\toprule
Mean squared error & MSE &= &$\displaystyle\frac{1}{n}\sum_{t=1}^{n}e_t^2$   \\
\midrule
Root mean squared error & RMSE &= &$\displaystyle\sqrt{\frac{1}{n}\sum_{t=1}^{n}e_t^2}$ \\
\midrule
Mean absolute error & MAE &= &$\displaystyle\frac{1}{n}\sum_{t=1}^{n}|e_t|$ \\
\midrule
Mean absolute percentage error & MAPE &= &$\displaystyle\frac{100\%}{n}\sum_{t=1}^{n}\left |\frac{e_t}{y_t}\right|$\\
\bottomrule
\end{tabulary}
\end{document}

enter image description here

I'm not sure you really need tabulary: this gives exactly the same result.

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{booktabs}
\usepackage{amsmath}

\begin{document}

\centering
\begin{tabular}{l r @{} >{${}}c<{{}$} @{} l}
\toprule
Mean squared error & MSE &= &$\displaystyle\frac{1}{n}\sum_{t=1}^{n}e_t^2$   \\
\midrule
Root mean squared error & RMSE &= &$\displaystyle\sqrt{\frac{1}{n}\sum_{t=1}^{n}e_t^2}$ \\
\midrule
Mean absolute error & MAE &= &$\displaystyle\frac{1}{n}\sum_{t=1}^{n}|e_t|$ \\
\midrule
Mean absolute percentage error & MAPE &= &$\displaystyle\frac{100\%}{n}\sum_{t=1}^{n}\left |\frac{e_t}{y_t}\right|$\\
\bottomrule
\end{tabular}
\end{document}