Introductory Statistics 2e, Chapter 11, p. 574
A test of independence uses a contingency table from one sample to decide whether two categorical variables are related.
Textbook: OpenStax Introductory Statistics 2e (CC BY-NC-SA 4.0). Access for free at openstax.org.