AI, Python, Heredity, Joint Probability, Bayesian Networks.
possible subsets of set s. """ s = list(s) return [ set(s) for s in itertools.chain.from_iterable( itertools.combinations(s, r) for r in range(len(s) + 1) ) ] def joint_probability(people, one_gene, two_genes, have_trait): """ Compute and return a joint probability. The probability returned should