BUG: edge case where the covariance matrix is exactly zero
Merge pull request #3848 from 'pr-3848'

BUG: stats: edge case where the covariance matrix is exactly zero