Determination of joint distributions from marginal distributions in dichotomous systems