Loading subject…
Chi-squared test
The chi-squared test is a statistical method used to assess whether the occurrences of two species in a given area are due to chance or due to some form of association, possibly from ecological interactions like competition or mutualism.
| Species B present | Species B absent | Row total | |
|---|---|---|---|
| Species A present | Observed (O₁) | Observed (O₂) | Row 1 total |
| Species A absent | Observed (O₃) | Observed (O₄) | Row 2 total |
| Column total | Column 1 total | Column 2 total | Grand total |
\[
E = \frac{\text{row total} \times \text{column total}}{\text{grand total}}
\]
\[
\chi^2 = \sum \frac{(O - E)^2}{E}
\]