The U.S. Census Bureau used the diversity index to measure the probability that two random people in each state would belong to different racial and ethnic groups.