Thankyou so much! I absolutely loved your explanation and was able to solve this question so easily. I'm really grateful.
@ian5653 жыл бұрын
thanks for taking the time to make this, I was stuck for a little bit but I was able to solve it after you drew out the tree diagram.
@alexkesin3 жыл бұрын
Thank you so much for the walkthrough!!!!!! The tree diagram helped me conceptualize this problem a lot :) What I did a little differently was that I hard coded finding the chances for each scenario (dom-dom, dom-hetero...recessive-hetero, recessive-dom, etc), multiplied the scenario by its respective probability (e.g. rec-hetero * .5), and then found what the sum of all of the scenarios that could yield dominant phenotypes over the total number of scenarios. Hope that makes sense :p
@nikitamaurya45189 ай бұрын
Hi, this code does not provide the correct answer. Can you please help me?
@osominor4193 жыл бұрын
Thank you so much! I had been banging my head on the keyboard for 3 days because of this
@nikitamaurya45189 ай бұрын
Hi, this code does not provide the correct answer. Can you please help me?
@alexandrupavilcu2 жыл бұрын
Very good explanation, I finally solved it! Thank you so much!
@nikitamaurya45189 ай бұрын
Hi, this code does not provide the correct answer. Can you please help me?
@Matik01ns2 жыл бұрын
Thank you so much for explanation!
@Hiraeth_hiraeth5 ай бұрын
very helpful! thank you~
@ahnafrahman58055 ай бұрын
Hi! Why use numpy at all? def calculate_probability(k, m, n): total = k + m + n # Calculate probabilities for each genotype combination prob_aa_aa = (n / total) * ((n - 1) / (total - 1)) prob_Aa_aa = (m / total) * (n / (total - 1)) prob_Aa_Aa = (m / total) * ((m - 1) / (total - 1)) * 0.25 prob_dom = 1 - prob_aa_aa - prob_Aa_aa - prob_Aa_Aa return prob_dom k, m, n = 16, 26, 15 result = calculate_probability(k, m, n)
@SabbirAhmedSozol4 жыл бұрын
Question was confusing thank you for the explanation.. make more videos.. really helpful..
@sugarspliceandstudiesinmic7544 жыл бұрын
omg I'm glad it helped!! I will definitely try to post more!
@nikitamaurya45189 ай бұрын
This code does not provide the correct answer. Please help.
@khaidirkhaizuki3784 жыл бұрын
Good video... I really hope you doing more
@tedarcher91203 жыл бұрын
My solution is : D = 2 H = 2 R = 2 S = D + H + R P_R = (R/S)*((R-1)/(S-1)+H/((S-1)*2)) P_H = 0.5*(H/S)*(R/(S-1)+(H-1)/((S-1)*2)) print(1-(P_R+P_H)) Where D is the number of dominant organisms, H is the number of heterozygous organisms and R is the number of recessive organisms.
@nikitamaurya45189 ай бұрын
Thanks for sharing! can you please share how did you derive P_R and P_H formula
@nikitamaurya45189 ай бұрын
My answer is 0.83 instead of 0.78.
@Jacob-sl6ur3 жыл бұрын
Yeah I understood nothing unfortunately, but that's just because my brain is smoother than the smooth ER. I had to copy your code, sorry :/