Discount_Rate: numeric percentage between 0 and 100
Units_Sold: whole-number count of items per transaction
Transaction_Timestamp: Unix epoch seconds
Before computing summary statistics and visualizations, which single column should you cast to a categorical type so that exploratory data analysis treats its values as membership levels rather than quantities?
Loyalty_Tier encodes membership levels using integers that only label ordered categories; the numbers themselves have no arithmetic meaning. Re-casting it as a categorical (specifically, an ordinal categorical) variable ensures that summary measures such as mode or frequency tables-and visualizations like bar plots-are applied correctly. Discount_Rate and Units_Sold are quantitative measures that should remain numeric, while Transaction_Timestamp represents continuous time and is better handled as a date-time or numerical variable, not as a category.
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.
Why should Loyalty_Tier be cast as a categorical type?
Open an interactive chat with Bash
What is an ordinal categorical variable?
Open an interactive chat with Bash
What is Unix epoch time and how is Transaction_Timestamp used?