Some representations of the multivariate Bernoulli and binomial distributions