We all belong to many in-groups. As a result, our self-identification shifts from situation to situation. Putting other people into categories affects our assessment of them. Putting ourselves into in- and out-group categories also has an effect – on the way we see our own place in the world and how we view others.
Subliminal: How Your Unconscious Mind Rules Your Behavior by Leonard Mlodinow