The variables that take a finite number of distinct values is defined as categorical variable. This helps categorical variables to be assigned to a specific broad category. Some examples of categorical variables are race, age group, gender, and qualification level.