A market researcher wondered if there was a relationship between a person's age and which media streaming service they preferred. The researcher obtained a random sample of people and categorized each of them as a teen or adult. They also categorized each person based on their preferred streaming service.
What type of statical test used in this case?
A. A χ2 goodness of fit test
B. A χ2 test for homogeneity
C. A two-sample z-test for a proportion
D. A χ2 test of independence
E. A t-test for slope