Ethnicity

Does the term ethnicity generally refer to which of the following?

Living together in urban agglomerations.
Common identity through a cultural tradition.
A group in a dominant society.
Collective identity through a shared history in a shared space.
A group who perceives themselves as similar.