Databricks Machine Learning Professional Question 260
Single answerYou are developing a machine learning model to predict customer churn for a subscription-based service. During the exploratory data analysis phase, you want to determine if there is a significant relationship between the type of subscription plan (Basic, Premium, VIP) and whether the customer has churned. Which statistical test would be most appropriate to use in this scenario?
- A
Chi-square test
- B
T-test
- C
Pearson correlation
- D
ANOVA
Show answer and explanation
Correct answer: A
Explanation
The chi-square test is ideal for assessing the relationship between two categorical variables. In this scenario, the subscription type (Basic, Premium, VIP) and churn status (Yes, No) are both categorical, making the chi-square test the most suitable choice.
- A. Correct.
The chi-square test is used to determine if there is a statistically significant relationship between two categorical variables, such as subscription type and churn status. This makes it the correct choice for this scenario.
- B. Incorrect.
The T-test is used to compare the means of two groups for a continuous variable. Since both variables in this case are categorical, the T-test is not appropriate.
- C. Incorrect.
Pearson correlation measures the linear relationship between two continuous variables. It is not suitable for categorical data like subscription type and churn status.
- D. Incorrect.
ANOVA is used to compare the means of multiple groups for a continuous variable. Since the target variable (churn) is categorical, ANOVA is not appropriate.