Databricks Machine Learning Professional Question 263
Single answerA data scientist is analyzing customer purchasing behavior at an online store. They want to determine if there is a significant relationship between the product category (e.g., electronics, clothing, home goods) and the type of payment method used (e.g., credit card, PayPal, gift card). Which statistical test would be most appropriate for this scenario?
- A
Chi-square test
- B
Linear regression
- C
T-test
- D
ANOVA
Show answer and explanation
Correct answer: A
Explanation
The chi-square test is specifically designed to determine if there is a statistically significant association between two categorical variables. In this scenario, the product category and payment method are both categorical, making the chi-square test the most appropriate choice.
- A. Correct.
The chi-square test is appropriate for analyzing the relationship between two categorical variables, such as product category and payment method in this scenario.
- B. Incorrect.
Linear regression is used to model the relationship between a dependent variable and one or more independent variables, but it is not suitable for testing relationships between categorical variables.
- C. Incorrect.
The t-test is used to compare the means of two groups. It is not applicable for analyzing relationships between categorical variables.
- D. Incorrect.
ANOVA is used to compare the means of three or more groups, but it is not designed to test relationships between two categorical variables.