Definition
The Phi coefficient (φ) is a measure of association for two binary variables, serving as the Pearson correlation coefficient for dichotomous variables. It ranges from -1 to +1, where 0 indicates no association, +1 indicates perfect positive association, and -1 indicates perfect negative association. It is widely used in contingency table analysis to determine the strength of the relationship between two categorical features, particularly in classification tasks involving binary outcomes.
Summary
A statistical measure of association between two binary variables.
Key Concepts
- Binary variables
- Correlation
- Contingency table
- Association strength
Use Cases
- Evaluating binary classifier performance beyond accuracy
- Analyzing relationships in survey data with yes/no responses
- Feature selection in datasets with categorical inputs
Code Example
| |