Tuesday, November 2, 2021

The Weasleys

 The heredity assignment in CS50 AI was enlightening to me. the

data contains the probability of having a hearing impairment, and different

probabilities given parent have one or two copies of the defective gene. The

twist: a mutation rate of .01. 


The assignmet code is to show the probability distribution for an individual

in three case families, given that the individual has the trait or not.


Playing with github code:

cs50ai/2-uncertainity/heredity at master · amangarg078/cs50ai · GitHub


The code imports python's csv module(comma separated values), as well as 

iteration tools and system.


What us known of the Weasleys:



The probabilities on them:



It  did make me wonder how similar eggs from the same woman might be:

https://genetics.thetech.org/ask-a-geneticist/odds-making-identical-eggs





No comments: