The Chi-squared Test (AQA A Level Biology)

Revision Note

Lára Marie McIvor

Written by: Lára Marie McIvor

Reviewed by: Lucy Kirkham

Predicting Inheritance: Chi-squared Test

  • A statistical test called the chi-squared test determines whether or not there is a significant difference between the observed and expected results in an experiment

    • If the difference between results is statistically significant this suggests the presence of a factor that isn’t being accounted for

      • E.g. linkage between genes

    • When a difference is not significant, any differences that are observed can be said to be due to chance alone

  • The chi-squared test is carried out when the data is categorical, i.e. falls into distinct groups

Calculating chi-squared values

chi-squared-equation-ib-dp-biology
  1. Obtain the expected (E) and observed (O) results for the experiment

  2. Calculate the difference between each set of results

  3. Square each difference

    • It is irrelevant whether the difference is positive or negative

  4. Divide each squared difference by the expected value

  5. Add the resulting values together to get a sum of these answers to obtain the chi-squared value

Analysing chi-squared values

  • To work out what the chi-squared value means we need to compare the chi-squared value to a critical value

  • The critical value is read from a table of critical values and depends on the probability level used and the degrees of freedom

    • Biologists generally use a probability level of 0.05 or 5 % 

      • This means that there is only a 5 % probability that any difference between O and E has occurred by chance

    • The degrees of freedom takes into account the number of comparisons made, and is calculated  as follows:

degrees of freedom = number of classes - 1

  • E.g. if there are 2 phenotypes then 2 - 1 = 1 and there is 1 degree of freedom

  • When the chi-squared value is compared to the critical value conclusions are drawn as follows:

    •  If the chi-squared value is greater than, or equal to, the critical value then there is a significant difference between observed and expected results

      • A factor other than chance is causing the difference

      • The null hypothesis can be rejected

    • If the chi-squared value is smaller than the critical value then there is no significant difference between observed and expected values

      • Any differences are due to chance

      • The null hypothesis is accepted

  •  It is possible to use the critical values table to make an assessment of the probability level at which any difference between observed and expected valued becomes significant, e.g.

    • A chi-squared value might be smaller than the critical value at a probability level of 0.05, but larger than the critical value at a probability level of 0.1

      • This would indicate that the probability that any difference is due to chance is between 5 -10 %

    • A chi-squared value might be larger than the critical value at a probability level of 0.001

      • This indicates that there is a less than 0.1 % probability that any difference between O and E is due to chance

Worked Example

An experiment was carried out into inheritance of two genes in rabbits; one for coat colour and one for ear length. In this dihybrid cross the expected ratio of phenotypes was 9 : 3 : 3 : 1.

Rabbits with the heterozygous genotype were bred together and the phenotypes of all the offspring were recorded.

Complete a chi-squared test to determine whether the difference between observed and expected offspring ratios is significant.

Step 1: complete a table like the one below

Chi-squared Worked Example Table, downloadable AS & A Level Biology revision notes

Note that the expected values can be calculated as follows:

9 + 3 + 3 + 1 = 16

128 (total number of rabbits) ÷ 16 = 8

3 x 8 = 24

9 x 8 = 72

Step 2: use the table contents to calculate the chi-squared value

1 ÷ 72 = 0.014

9 ÷ 24 = 0.375

4 ÷ 24 = 0.167

 chi-squared value = ∑(O - E)2 ÷ E

= 0.014 + 0.375 + 0.167 + 0

= 0.56

Step 3: compare the chi-squared value to the critical value

Chi-squared value table, downloadable AS & A Level Biology revision notes

The degrees of freedom can be calculated as follows:

  • In this example there are 4 phenotypes:

4 - 1 = 3 degrees of freedom

We are biologists so we work at a probability level of 0.05

The critical value is therefore 7.82

Step 4: draw conclusions

  • The chi-squared value of 0.56 is smaller than the critical value of 7.82

  • This means that there is no significant difference between the expected and observed results and any differences that do occur are due to chance

    • 0.56 would be located somewhere to the left-hand side of the table, indicating that there is a higher than 10 % probability that the difference between O and E is due to chance

  • A null hypothesis can be accepted

Examiner Tips and Tricks

When calculating a chi-squared value it is very helpful to create a table like the one seen in the worked example. This will help you with your calculations and make sure you don’t get muddled up!

You should also be prepared to suggest reasons why results might be significantly different. For example, there could be linkage between the genes being analysed.

Last updated:

You've read 0 of your 5 free revision notes this week

Sign up now. It’s free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Lára Marie McIvor

Author: Lára Marie McIvor

Expertise: Biology Lead

Lára graduated from Oxford University in Biological Sciences and has now been a science tutor working in the UK for several years. Lára has a particular interest in the area of infectious disease and epidemiology, and enjoys creating original educational materials that develop confidence and facilitate learning.

Lucy Kirkham

Author: Lucy Kirkham

Expertise: Head of STEM

Lucy has been a passionate Maths teacher for over 12 years, teaching maths across the UK and abroad helping to engage, interest and develop confidence in the subject at all levels.Working as a Head of Department and then Director of Maths, Lucy has advised schools and academy trusts in both Scotland and the East Midlands, where her role was to support and coach teachers to improve Maths teaching for all.