I have a correlated multivariate Bernoulli random variable $\textbf{X} = (X_1, ..., X_N)$, where the $X_i$ are Bernoulli random variables with parameters $p_i$ and $N \times N$ covariance matrix $\textbf{C}$.
How do choices of $p_i$ constrain choices of $C$ and vice-versa?
In one extreme case, where the $X_i$ are all independent, all choices of $p_i$ are valid. In another extreme case, where the $X_i$ are all perfectly correlated, the $p_i$ must be identical. But I would like to better understand the intermediate cases; both intuitive and more rigorous answers would be much appreciated.