A binary variable, also called a dichotomous variable, can assume exactly two distinct states. Only device_compromised_flag already meets that requirement because its domain contains exactly two observed values (0 and 1).
loyalty_tier_code has a third category (2), so it is multi-level rather than binary.
contact_opt_out exposes a third value "U" (unknown); you would need to collapse or remove that category before treating the field as binary.
outlier_indicator currently contains three distinct tokens: True, False, and the placeholder None. Because None is counted as a separate value, the column is not binary until missing values are handled. Therefore, device_compromised_flag is the only feature that can be used as a binary variable immediately.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What defines a binary variable?
Open an interactive chat with Bash
Why is `contact_opt_out` not considered binary?
Open an interactive chat with Bash
How does the `None` value affect the `outlier_indicator` variable?