AI, Python, Heredity, Joint Probability, Bayesian Networks.
inheriting a gene or trait based on initial conditions. import csv import itertools import sys PROBS = { # Unconditional probabilities for having gene "gene": { 2: 0.01, 1: 0.03, 0: 0.96 }, "trait": { # Probability of trait given two copies of gene 2: { True: 0.65, False: 0.35 }, # Probability of