Categorical Variables: Nominal and Ordinal
What you'll learn: How to distinguish between two fundamental types of categorical data that organize information differently.
Understanding Categorical Data
Categorical variables represent data that falls into distinct groups or categories rather than numerical measurements. Think of them as labels that sort your data into buckets. There are two main types you need to know.
Nominal Variables: No Natural Order
Nominal variables are categories without any inherent ranking or order. The word "nominal" comes from "name"—these are simply labels.
Examples:
- Eye color (blue, brown, green, hazel)
- Country of origin (USA, Canada, Mexico, Brazil)
- Blood type (A, B, AB, O)
- Product categories (electronics, clothing, furniture)
You can't say blue eyes are "greater than" brown eyes, or that Canada comes "before" Brazil in any meaningful way. These categories are simply different from one another.
Ordinal Variables: Order Matters
Ordinal variables have categories with a natural, meaningful order or ranking. However, the distance between categories isn't necessarily equal or measurable.
Examples:
- Education level (high school, bachelor's, master's, doctorate)
- Customer satisfaction (very dissatisfied, dissatisfied, neutral, satisfied, very satisfied)
- T-shirt sizes (small, medium, large, extra large)
- Movie ratings (G, PG, PG-13, R)
A master's degree is clearly "higher" than a bachelor's, and "satisfied" ranks above "neutral"—but we can't say the gap between bachelor's and master's equals the gap between master's and doctorate.
Why This Distinction Matters
When cleaning and preparing your data, recognizing whether a variable is nominal or ordinal affects how you'll analyze it later. Different statistical methods and visualizations work better with each type.
Key Takeaway: Nominal variables are unordered categories (like colors or countries), while ordinal variables have meaningful rankings (like satisfaction levels or education degrees)—knowing the difference guides proper data handling.