Let $M = \begin{pmatrix} p_0 (1- p_0) & -p_0 p_1 &\ldots & p_0 p_n\\ -p_1 p_0 & p_1 (1-p_1) & \ldots & p_1 p_n\\ \vdots & & &\vdots\\ -p_np_0 &\ldots&&p_n(1-p_n)\end{pmatrix}$ where $\sum_i p_i = 1$ and $p_i >0$ for all i. How to show this matrix has rank n?
For clarity, $M_{i,j} = p_i(\delta_{ij} - p_j)$ and $\delta_{ij} = 1$ if $i = j$ and 0 otherwise, where $\sum_i p_i = 1$ and $p_i >0$.
I tried random values of $\{p_0, \ldots, p_n\}$ and it consistently returns n, so hoping for the rank be n.