In the Chi-square test, my textbook says that degrees of freedom are the number of independent variables minus one ,df = n - 1(adsbygoogle = window.adsbygoogle || []).push({});

does this mean that that n is equal to the number of observed values from the equation aka the number of times I've added or the number of terms?

sum [(O-E)^2]/E

Is there an instance where it isn't equal to the number of observed values I have?

(there's an example in my book (but no answer) with an experiment with observed values of 2 trials of genetic crosses where observed in

trial 1 was 0.5

trial 2 was 0.3

but both of these values were measuring the same variable which was heterozygosity. The expected value is 0.8. Does this mean the df = 1? or is it 0 since there is only 1 independent variable?)

thank you so much

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Chi Square Test In Genetics

**Physics Forums | Science Articles, Homework Help, Discussion**