#!/usr/bin/env python # coding: utf-8 # Human Evolution # # Suppose we have a population of 50 million. Suppose that we have a gene that gives you a 10% boost to your worth as a member of a community, in the sense that it increases the number of your children who survive to reproductive ager by 10%. # # # In[10]: # log odds ratio for 1/10 million import numpy as np np.log(1/(10*10**6)) # In[6]: # log odds ratio for 1/10 np.log(1/10) # In[7]: # log odds ratio for 9/10 np.log(10) # In[11]: # time to go from 10% to 90% 25*(4.6/.1) # In[12]: 25*(13.8/.1) # In[ ]: