Stereotype is probably the correct word, but it's overloaded here.
Stereotyping someone by something that they did not choose is a gateway to prejudice: skin color, eye color, place of birth.
Stereotyping someone by something that they did choose may be very useful for making inference about them, because it is a revealed preference: clothing tastes, food preferences, etc.