I have the following real symmetric matrix $M$ of size 3:
\begin{align} M = \begin{pmatrix} a & b & c \\ b & d & e \\ c & e & f \end{pmatrix}, \end{align}
for real parameters $a$, $b$, $c$, $d$, $e$, $f$. What are the necessary and sufficient conditions on these parameters for $M$ to be a positive matrix ($M \geq 0$)?
Since you want to matrix to be positive-semidefinite, the condition is: the coefficients of the characteristic polynomial are alternating. This is equivalent to: for every $k$, the sum of principal $k\times k$ minors is $\ge 0$. In this case, $k$ runs from $1$ to $3$ and we get $$a + d + f \ge 0\\ a d + a f + d f- b^2 - c^2 - e^2 \ge 0\\ a d f + 2 b c e - a e^2 - b^2 f - c^2 d \ge 0$$
An equivalent set of conditions is: every principal minor is $\ge 0$ (apparently stronger than the above, but in fact equivalent).
Note: Leading minors $\ge 0$ may not be enough, as a diagonal matrix starting with $0$ shows.