I am trying to generate samples of Bivariate/Multivariate Bernoulli Distributions in Python or MATLAB. How to go about it?
Given: Mean of the distribution and the Number of samples to be generated.
Any inbuilt functions or libraries that can help me in this?