Predicting Race and Ethnicity From the Sequence of Characters in a Name

Rajashekar Chintalapati, Suriyan Laohaprapanon, Gaurav Sood
5/5/2018
stat.APstat.ML

Official code: appeler/ethnicolr (257 stars, MIT, PyTorch, last commit 2026-10-20).

Abstract

To answer questions about racial inequality and fairness, we often need a way to infer race and ethnicity from names. One way to infer race and ethnicity from names is by relying on the Census Bureau's list of popular last names. The list, however, suffers from at least three limitations: 1. it only contains last names, 2. it only includes popular last names, and 3. it is updated once every 10 years. To provide better generalization, and higher accuracy when first names are available, we model the relationship between characters in a name and race and ethnicity using various techniques. A model using Long Short-Term Memory works best with out-of-sample accuracy of .85. The best-performing last-name model achieves out-of-sample accuracy of .81. To illustrate the utility of the models, we apply them to campaign finance data to estimate the share of donations made by people of various racial groups, and to news data to estimate the coverage of various races and ethnicities in the news.

View on arXivView PDF

Code Implementations(1)

appeler/ethnicolrOfficial100%
PyTorchMIT

Canonical package for name-based race and ethnicity estimates using Census, voter-file, and Wikipedia/Wikidata models.

25762R, ShellMay 28, 20172 days agoMIT
censusdemographyethnicityname-analysisnames+3 more

Similar Papers

Cite this paper

@article{chintalapati2018predicting,
  title  = {Predicting Race and Ethnicity From the Sequence of Characters in a Name},
  author = {Rajashekar Chintalapati and Suriyan Laohaprapanon and Gaurav Sood},
  year   = {2018},
  eprint = {1805.02109},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.02109}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1805.02109.svg)](https://codeofpaper.com/paper/1805.02109)

Discussion