calc_probs_beta_db() to calculate_probabilities()