AI, Python, Heredity, Joint Probability, Bayesian Networks.
""" Add to `probabilities` a new joint probability `p`. Each person should have their "gene" and "trait" distributions updated. Which value for each distribution is updated depends on whether the person is in `have_gene` and `have_trait`, respectively. """ # Update gene and trait probabilities for