Databricks Machine Learning Professional Question 262
Single answerYou are tasked with analyzing customer purchase behavior across different product categories in an e-commerce dataset. You want to determine if there is a significant association between the type of product category (e.g., electronics, clothing, home goods) and whether customers leave a review (yes or no). Which statistical test would be most appropriate for this scenario?
- A
Chi-square test
- B
ANOVA test
- C
T-test
- D
Linear regression
Show answer and explanation
Correct answer: A
Explanation
The chi-square test is the best choice for determining if there is a significant association between two categorical variables. In this case, the product category and review status are both categorical, making the chi-square test the most appropriate method for this analysis.
- A. Correct.
The chi-square test is used to determine whether there is a significant association between two categorical variables, such as product category and review status in this scenario.
- B. Incorrect.
The ANOVA test is used to compare means across multiple groups for a continuous variable, which is not relevant here as the data involves categorical variables.
- C. Incorrect.
The T-test is used to compare means between two groups for a continuous variable. This scenario involves categorical variables, so a T-test is not appropriate.
- D. Incorrect.
Linear regression is used to model the relationship between dependent and independent variables when at least one of them is continuous, which does not fit the context of two categorical variables in this scenario.