Courseiva
Data Analysis →easyMultiple Choice

DA0-002 Data Analysis Practice Question

Which statistical test should be used to determine if there is a significant association between two categorical variables, such as gender and product preference?

⚠ Common exam trap

Many exam-takers confuse tests for means (t-test, ANOVA) with tests for association between categorical variables, or mixing up correlation (for continuous variables) with chi-square (for categorical variables).

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Chi-square test

The chi-square test is specifically designed to test for independence between two categorical variables, such as gender (male/female) and product preference (e.g., product A/B/C). It compares observed frequencies in each category combination to the frequencies expected if the variables were independent, using the chi-square statistic. A significant result indicates that the variables are associated, not independent.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    ANOVA

    Why it's wrong here

    ANOVA compares means across three or more groups on a continuous dependent variable, so it tests group differences rather than association between two categorical variables. It is tempting because it handles categorical factors, but it requires a continuous outcome, whereas chi-square tests independence of two categorical variables.

  • ✓

    Chi-square test

    Why this is correct

    The chi-square test of independence compares observed versus expected frequencies across a contingency table, determining whether two categorical variables are associated. Gender and product preference are both nominal categories, so this test satisfies the requirement for assessing significant association between them.

  • ✗

    Pearson correlation

    Why it's wrong here

    Pearson correlation measures the linear relationship between two continuous variables, so it cannot assess association between categorical variables like gender and product preference. It is tempting because both test relationships, but Pearson requires interval or ratio data, whereas chi-square operates on observed category frequencies.

  • ✗

    t-test

    Why it's wrong here

    A t-test compares means between two groups on a continuous outcome, so it cannot test association between two categorical variables such as gender and product preference. It is tempting because gender is categorical, but the outcome must be continuous; chi-square instead compares observed versus expected category frequencies.

About these practice questions

This DA0-002 question is part of Courseiva's 1,004-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This DA0-002 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DA0-002 exam.