r/MathHelp • u/Sergeant_Arcade • Jun 19 '21
Snake Genetics (AKA Probability of Something Occurring at Least Once in Multiple Events)
I'm looking to get into ball python breeding someday, and ball pythons have color/pattern altering genes known as morphs. If I breed a BP with the Clown gene and a BP with the enchi gene and het for clown (meaning it has the gene, but doesn't show it visually), these are the results I get:
25% Het Clown
25% Clown
25% Enchi Het Clown
25% Enchi Clown
I want to get enchi clowns, but here's the problem: these are the probabilities for only ONE egg. Ball python females lay multiple eggs at a time. So if she lays six eggs, what is the probability of at LEAST one egg hatching an enchi clown?
I tried looking up formulas but I could only find formulas for finding probabilities for two events occurring simultaneously, or the probability of non-mutual outcomes (e.g. a die has a 2/6 probability of rolling a "1" or a "5") but that doesn't help me in this case.
I tried doing the math myself (6 x 0.25 = 1.50) but that doesn't make sense because you can't have a 150% possibility of something happening. Please help!
1
u/AutoModerator Jun 19 '21
This is an automated reminder:
What have you tried so far? (See Rule #2; to add an image, you may upload it to an external image-sharing site like Imgur and include the link in your post.)
Please don't delete your post. (See Rule #7)
We, the moderators of /r/MathHelp, appreciate that your question contributes to the MathHelp archived questions that will help others searching for similar answers in the future. Thank you for obeying these instructions.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/iMathTutor Jun 19 '21
Let X denote the number of Enchi Clown eggs among the n eggs laid by the female. If each egg is an Enchi Clown egg independent of the other eggs laid and the probability that an egg is an Enchi Clown egg is fixed from egg to egg at p, then X~B(n,p), i.e. X has binomial distribution with parameters n and p. The PMF for binomial distribution is
P[X=x]=nCx p^x(1-p)^{n-x}, x=0,1,2,..., n,
where nCx=n!/(x!(n-x)!).
The probability you are looking for is P[X≥ 1]=∑_{x=1}^n P[X=x]. This is more easily computed in terms of its compliment, i.e. P[X≥ 1]=1-P[X<1]=1-P[X=0]=1-(1-p)^n.
3
u/NammaN6 Jun 19 '21
In probability, we can identify events as either a success or a failure. In this scenario a success is the event that you get an Enchi Clown and a failure is getting something other than an Enchi clown. Note that these are defined for a single egg.
Instead of finding the probability of getting at least 1 success out of 6, find the probability of getting no successes. Then subtract that from 1. This leads us to the binomial distribution. The probability of getting 6 failures is (0.75)6 = 0.178
Take that away from 1...
1 - 0.178 = 0.822
This means you have about at 82% chance of getting at least one Enchi Clown.