Question 20
Domain 2: Data ProcessingA data analyst needs to compare the relationship between two variables in a dataset. Which approach is appropriate when both variables are categorical or when both variables are continuous?
Correct answer: A
Explanation
Choose the comparison method based on the feature types being compared: use an appropriate method for two categorical features and a different appropriate method for two continuous features. — official.txt
Why each option is right or wrong
A. Select the comparison method that matches whether the pair is two categorical features or two continuous features.
The source material directs the analyst to select and apply the correct comparison method when analyzing two categorical features or two continuous features. Because the question asks about those exact pairings, matching the method to the variable types is the required approach here.
B. Use the same comparison method for all variable pairs, regardless of whether the features are categorical or continuous.
The comparison method depends on whether the features are categorical or continuous.
C. Apply a comparison method only when one feature is categorical and the other is continuous.
The stated use case covers two categorical features or two continuous features.
D. Choose a comparison method based only on the number of records, not on the feature types being compared.
Feature type determines the appropriate comparison method in this context.