TeX source:
\begin{align*}\begin{array}{c|cccc}x & -1 & 0 & 1 & 4 \\\hline P(x) & 0.2 & 0.5 & a & 0.1\end{array}\end{align*}