Probability rules for inheritance
Genetics problems often reduce to a small set of probability rules applied to Mendelian outcomes.
This calculator is an inheritance probability toolkit for independent events, supporting:
AND, OR, Complement, At least one of N, and Exactly k out of N (binomial).
Key assumption (when using AND or N-child models): events are independent.
In genetics, this typically means separate conceptually independent outcomes (or unlinked loci, random segregation, and no selection).
1) AND rule (multiply)
Use AND when all specified events must occur together. For independent events:
Genetics example: “child is recessive phenotype” AND “child has another independent trait”.
2) OR rule (add, with overlap when needed)
Use OR when either event is acceptable. There are two common cases:
- Disjoint events (no overlap): \(A\) and \(B\) cannot both happen.
- Overlapping events: \(A\) and \(B\) may both happen, so subtract the intersection.
Genetics example: “child has blood type A OR B” (requires overlap handling if outcomes are not mutually exclusive in the model).
3) Complement rule
The complement of an event \(A\) is “not \(A\)” (written \(A^c\)). The complement rule is:
Genetics example: “child is NOT affected” = \(1 - P(\text{affected})\).
4) “At least one of N” children affected
A classic genetics question is: “What is the probability that at least one of \(N\) children is affected?”
If each child independently has probability \(p\) of being affected, then:
Reason: \(P(0)\) means “none affected”, so all \(N\) children must be “not affected”, which has probability \((1-p)^N\).
5) Exactly k out of N affected (binomial)
If \(X\) is the number of affected children among \(N\), with independent probability \(p\) per child,
then \(X\) follows a binomial distribution:
The factor \(\binom{N}{k}\) counts how many ways \(k\) affected outcomes can be placed among \(N\) children.
Genetics-friendly preset: recessive phenotype from Aa × Aa
For a monohybrid cross with complete dominance, \(Aa \times Aa\) produces genotypes \(AA\), \(Aa\), \(aa\) in ratio \(1:2:1\).
The recessive phenotype occurs only for \(aa\), so:
This value \(p=\frac{1}{4}\) is commonly used as the base event probability in the “At least one” and “Exactly k” modes.
What the visualizations mean
-
Probability gauge
A 0-to-1 bar showing the final probability. Hover the marker to read the exact value.
-
Probability tree
Used for AND problems: branch probabilities label each step; the “all yes” leaf represents the AND result.
-
Venn diagram
Used for OR problems: shows \(A\), \(B\), and optionally the overlap \(A \cap B\), emphasizing the union \(A \cup B\).
-
Binomial bar chart
For N-child modes: bars represent \(P(X=0),P(X=1),\ldots,P(X=N)\). The highlighted region matches the selected question (e.g., \(k\) or \(k\ge 1\)).
Common pitfalls
If you later want to extend this toolkit, the natural next steps are conditional probability, Bayes’ rule, and linkage/recombination models.