C4.1.15—Chi-squared test
Chi-squared test explains how ecological evidence links organisms, resources and interactions to population size, distribution or community structure in a habitat.
- Syllabus
- First assessment 2025
- Objective
- C4.1.15
- Level
- HL
Chi-squared test explains how ecological evidence links organisms, resources and interactions to population size, distribution or community structure in a habitat.

Coverage 2017–2022 · Updated 16 Jul 2026
A chi-squared test can test whether presence or absence of species A is associated with presence or absence of species B across several sampling sites.
Build a 2 × 2 table: both present, A only, B only, neither. Null hypothesis: the species' distributions are independent. Calculate each expected count as (row total × column total) ÷ grand total.
χ2=Σ((observed−expected)2÷expected);degreesoffreedom=(rows−1)(columns−1)=1fora2×2table.
Compare calculated χ² with the chosen critical value or p-value. A significant result rejects independence and supports an association between distributions.
Association does not prove interspecific competition: both species may respond to the same abiotic factor, or association may reflect another interaction. Sampling sites must be independent and expected counts suitable for the test.
This objective is assessed through structured response, commonly using Identify / Outline / Determine.
Identify / Outline / Determine / Explain / Calculate / State
Build the answer around this relationship: Chi-squared test must be linked to the correct ecological unit, method or species interaction.
Using non-random sampling when the estimate requires representative quadrat positions.
Representative question
Outline how chi-squared can be used to test for an association between the distributions of the two species.
a. in each quadrat determine the presence/absence «of plants» of each species
b. null hypothesis is that the presence of one is random in relation to the presence of the other plant
OR
alternate hypothesis is that the presence of one is associated with the presence or absence of the other
c. x2=∑E(O−E)2
d. accept alternative hypothesis/reject null hypothesis if the difference between observed and expected is statistically significant / p<0.05 / calculated X2 higher than tabulated X2 / critical value
OR
it supports the association between the two species if the difference between observed and expected is statistically significant / p<0.05 / calculated X2 higher than tabulated X2/ critical value \)