calculate_distributions
