Calculate a Covariance Matrix for the Normal Distribution from a Matrix of Joint Probabilities
Useful links