The Wall Street Journal’s diversity index measures the likelihood that two randomly chosen people in a community are of a different race or ethnicity.