On this page
Statistical methods help you decide whether observed offspring counts fit a predicted genetic ratio. A chi-square goodness-of-fit test compares observed counts with expected counts while accounting for sample size. A statistically significant result supports rejecting the specified model; it does not identify the biological cause.
Prerequisites: Know the difference between genotype and phenotype and how a Mendelian cross predicts offspring ratios. Review testcrosses and generations if you need a refresher.
Genetics statistics
Describe data before testing a model
A descriptive statistic summarizes the sample you measured. The mean is the sum of the values divided by their number. To find the median, sort the values: use the middle value for an odd-sized sample or average the two central values for an even-sized sample. The mode is the most common value. The range is the maximum minus the minimum; standard deviation measures spread around the mean using squared deviations and has the same units as the observations. Extreme values pull the mean more than the median, so the median can better represent a strongly skewed distribution. For genotype categories, report counts or proportions: averaging labels such as “AA,” “Aa,” and “aa” has no meaning.
An inferential statistic asks whether a sample supports a claim about a larger population or a proposed model. In genetics, the model might predict a 3:1 phenotype ratio from a monohybrid cross or a 1:1 ratio from a testcross. First calculate expected counts from the ratio and the total sample size; then compare each observed category with its expectation. A large sample can show a statistically detectable departure even when the difference is biologically small, so retain the actual counts and effect size when interpreting a result.
Test categorical genetic counts with chi-square
The chi-square goodness-of-fit statistic measures the total mismatch between observed and expected category counts:
Here, is the observed count in category , is its expected count under the null hypothesis, and the sum covers every category. Counts, not percentages, go into the calculation. Squaring makes overcounts and undercounts contribute positively, while division by scales each discrepancy by its expected size. A low value means the observations are near the model’s predictions; a high value means a larger discrepancy. Whether that discrepancy is statistically significant also depends on the degrees of freedom.
For a goodness-of-fit test with fixed expected proportions, degrees of freedom are , where is the number of categories. The total is fixed, so once the counts in all but one category are known, the last is determined. Compare the calculated statistic with a chi-square distribution for those degrees of freedom, or use the reported p-value. A common significance threshold is , chosen before examining the data. If , reject the null model at that threshold; otherwise, fail to reject it. A nonsignificant result does not prove the ratio true, especially if the sample has little power to detect departures.
The observations should be independent: each offspring contributes to one category, and one observation should not determine another. Expected counts should also be large enough for the chi-square approximation to be useful; a common rule of thumb is at least 5 per category. If expected counts are too small, combine categories only when scientifically justified or use an exact method. The example’s expected counts, 150 and 50, meet that rule of thumb.
A significant chi-square result says that the data are unlikely under the specified model at the chosen threshold, assuming the test conditions hold. It does not tell whether the cause is linkage, selection, scoring error, nonrandom mating, or another factor. To investigate the mechanism, compare additional predictions or experiments. For example, a deviation from independent assortment can motivate a recombination analysis; see gene mapping and recombination frequency.
Choose a statistical test that matches the data
Choose a test from the outcome being measured and the question being asked. Chi-square tests use categorical counts; t-tests and ANOVA compare quantitative group means; correlation measures association between quantitative variables. Choose the method to match the question before interpreting its p-value.
| Question and data | Common method | What the result addresses | Example in genetics |
|---|---|---|---|
| Do category counts fit predicted proportions? | Chi-square goodness-of-fit | Departure of observed counts from a categorical model | Offspring phenotype counts versus 3:1 |
| Are two group means different? | t-test | Evidence of a mean difference between two groups | Mean expression in control and treated cells |
| Do three or more group means differ? | ANOVA | Whether at least one group mean differs | Mean enzyme activity across three genotypes |
| Do two quantitative variables vary together? | Correlation | Direction and strength of association, not causation | Allele dosage and measured transcript abundance |
The design and assumptions still matter. Independent-group t-tests and ANOVA assume independent observations; paired or repeated measurements need methods that account for their relationship. Strongly unequal variances can also affect the choice of test. A significant ANOVA tells you that at least one mean differs; follow-up comparisons identify which groups differ.
For Pearson’s correlation coefficient, ranges from to . Its sign gives the direction of a linear relationship, and its magnitude gives the strength: and are equally strong. Correlation alone cannot show that genotype caused a change in expression, because a third variable or selection process may explain the association.
Read p-values and statistical errors
The null hypothesis is the starting model, such as “offspring follow a 3:1 ratio.” The alternative describes a departure from it. The p-value is the probability, assuming the null model and test assumptions are true, of obtaining a result at least as extreme as the observed one. It is not the probability that the null hypothesis is true, nor the probability that the result happened “by chance” in an unrestricted sense.
A Type I error rejects a true null hypothesis, a false positive. A Type II error fails to reject a false null hypothesis, a false negative. Lowering alpha reduces the chance of a Type I error under the test conditions but can make it harder to detect a real difference. Increasing sample size can improve the ability to detect a specified departure, but a small p-value does not by itself imply a large or medically important effect.
MCAT traps
- Wrong: A p-value of 0.03 means there is a 3% chance the null hypothesis is true. Correct: It means results this extreme or more extreme would occur with probability 0.03 under the null model and assumptions.
- Wrong: A nonsignificant result confirms the Mendelian ratio. Correct: It means the sample did not cross the chosen rejection threshold; limited sample size can hide a real departure.
- Wrong: A significant chi-square result proves linkage or selection. Correct: It identifies a mismatch with the specified ratio, while the statistic alone does not identify the cause.
- Wrong: Use chi-square on genotype labels as if their numerical codes were measurements. Correct: Use category counts for chi-square; use mean-based methods for quantitative outcomes.
Return to Analytic Methods to connect these tests with genetic predictions. Use Hardy-Weinberg for expected population genotype frequencies and gene mapping and recombination frequency for interpreting recombinant offspring.