Clustering and segregation