← Chapter 1 labsRead the chapter: Mendelian Transmission and Probability
Genetics · Chapter 1

Chi Square Decision Bench

Real counts never match a ratio exactly. Is 72 : 48 close enough to 1:1? The chi square goodness of fit test answers how often chance alone would make a gap this big. Enter counts and let the bench show every step.
The idea

Is the gap chance, or is the hypothesis wrong?

State the null hypothesis as a ratio (for example 3:1). Multiply the total by each expected fraction to get E, keeping decimals. For each class compute (O − E)2/E and add: that sum is χ2.

Degrees of freedom = number of classes − 1, never the number of offspring. Compare χ2 with the critical value at P = 0.05: 3.841 (df 1), 5.991 (df 2), 7.815 (df 3), 9.488 (df 4).

If χ2 is larger, reject: chance alone would make a deviation this large less than 5 percent of the time. If smaller, fail to reject; that is not proof the hypothesis is true.

Always use raw counts: 60:40 out of 100 gives χ2 = 4.0, but 6:4 out of 10 gives 0.4. Expected numbers should be at least about 5 in every class.

Hypothesis and counts

Working table

ClassOE(O−E)2/E

Same percentages, different sample size. Watch χ2 change.

Decision

The chi square distribution

The chi square curve for the current degrees of freedom. The shaded right tail beyond the critical value holds 5 percent of the area; a marker shows where your chi square falls.
dfP 0.950.500.100.050.01
Practice

Unlimited practice

New questions keep coming, each with an explained answer. Use the number keys to answer and N for the next question.

Answered 0 · Correct 0 · Streak 0
Real life case