concept demographic in category machine learning

appears as: demographics, demographics, demographic, A demographic
Human-in-the-Loop Machine Learning

This is an excerpt from Manning's book Human-in-the-Loop Machine Learning.

Diversity Sampling can mean using intrinsic properties of the dataset, like the distribution of labels. For example, you might want to deliberately try to get an equal number of human annotations for each label, even though some labels are much rarer than others. Diversity Sampling can also mean ensuring that the data is representative of important external properties of the data, like ensuring that data comes from a wide variety of demographics of the people represented in the data, in order to overcome real-world bias in the data. We will cover all these variations in depth in the chapter on Diversity Sampling.

There is a subtle but important difference between data that is representative of a demographic, and having the demographic be well-represented in the data. The distinction is especially important depending on the type of model you are using, so we will tease them apart here:

  • Representative Demographic Data: your data is representative of a demographic if it is drawn from the same distribution as that demographic. In statistical terms, your labeled data is representative if it is independent and identically distributed (IDD) from a data set that fairly represents that demographic.
  • A Demographic that is Well-Represented: A demographic is well-represented if there is sufficient data representing that demographic for your model to perform fairly, but does not require that data is IDD.
  • If you know that your unlabeled data fairly represents the demographic you care about and it is accurately encoded for that demographic, then you can create an additional evaluation data set that draws randomly from within each demographic. If your demographics are not equally frequent, this will be faster than creating evaluation data by randomly sampling from across the entire data set. However, you can only use this data set for evaluating your per-demographic accuracy (see a later section on this chapter for more on this).