An $n\times n$ real matrix is called stochastic (aka Markov) if it is entry-wise non-negative and it's rows sum to 1.
Let $\mathcal{M}_n^+$ be the set of stochastic matrices. I am interested in the following question:
What are the conditions on $S\in GL(n,\mathbb{C})$ such that $S^{-1}\mathcal{M}_{n}^+S\subseteq\mathcal{M}_n^+.$
The first thing I note is that conjugation is invertible, so this condition automatically implies that $S^{-1}\mathcal{M}_{n}^+S=\mathcal{M}_n^+.$
There are also a few further simplifications we can make: The set of stochastic matrices can be expressed as the convex hull of stochastic matrices whose entries are 0 or 1. This is a result analogous to the Birkhoff–von Neumann theorem, and is proved for example in Lippold (2024). Thus a necessary and sufficient condition is that $S$ conjugates any 0/1 stochastic matrix to a stochastic matrix.
My initial guess was that any such $S$ must be a permutation matrix (or the negative of a permutation matrix), however the following $2\times 2$ example shows that this is not necessarily the case: Consider $S= \begin{bmatrix} \sqrt{3} & 2\\2& \sqrt{3}\end{bmatrix}$, whose inverse is $S^{-1}=\begin{bmatrix}-\sqrt{3} & 2\\ 2 & -\sqrt{3}\end{bmatrix}$. To see that conjugation by $S$ preserves stochasticity it suffices to show that conjugation by $S$ sends the following 0/1 stochastic matrices to stochastic matrices: $\begin{bmatrix}1&0\\0&1\end{bmatrix}, \begin{bmatrix}0&1\\1&0\end{bmatrix},\begin{bmatrix}1&0\\1&0\end{bmatrix}, \begin{bmatrix}0&1\\0&1\end{bmatrix}.$ This can be done by routine calculation.
If anyone knows of a characterization of which similarity transformations preserve stochasticity, or can provide a reference to relevant literature I would be much obliged.