Quantifying stability and change in ethnic group