ipf functions added to adjusting_sample_joint_distribution