Context: Here is a random sample of 10,000 registered voters from Florida contained in the CSV file FLVoters.csv.
Variable Description
surname: surname
county: county ID of the voter’s residence
VTD: voting district ID of the voter’s residence
age: age
gender: gender m = male and f = female
race: self-reported race

The US Census Bureau releases a list of common surnames with their frequency. For example, the most common surname was “Smith” with 2,376,206 occurrences, followed by “Johnson” and “Williams” with 1,857,160 and 1,534,042, respectively. This data set is quite comprehensive, including a total of more than 150,000 surnames that occurred at least 100 times. In addition, the census provides the relative frequencies of individual race within each surname, using a six-category self-reported race measure: non-Hispanic white, non-Hispanic black, non-Hispanic Asian and Pacific Islander, Hispanic origin, non-Hispanic American Indian and Alaskan Native, and non-Hispanic of two or more races. This census name list is contained in the CSV data file names.csv.
Variable Description
surname: surname
count: number of individuals with a specific surname
pctwhite: percentage of non-Hispanic whites among those who have a specific surname
pctblack: percentage of non-Hispanic blacks among those who have a specific surname
pctapi: percentage of non-Hispanic Asians and Pacific Islanders among those who have a specific surname
pcthispanic: percentage of Hispanic origin among those who have a specific surname
pctothers: percentage of the other racial groups among those who have a specific surname

In the United States, voter files contain voters’ addresses. Using this information, our data set also provides the voting district where each voter lives. In addition, we will utilize the Florida census data, which contains the racial composition of each voting district. The census data set is in FLCensusVTD.csv.
Variable Description
county: county census ID of the voting district
VTD: voting district census ID (only unique within the county)
total.pop: total population of the voting district
white: proportion of non-Hispanic whites in the voting district
black: proportion of non-Hispanic blacks in the voting district
api: proportion of non-Hispanic Asians and Pacific Islanders in the voting district
hispanic: proportion of voters of Hispanic origin in the voting district
others: proportion of the other racial groups in the voting district

Question: What proportion of voters whose races are black are correctly classified in their racial category? Race is considered correctly classified if the racial category with the greatest conditional probability P(race | surname, residence) is identical to the self-reported race. Please remove those voters who contain at least a missing value. Please round to the nearest hundredth.
Answer: 0.63
Topics: Social science, Statistics, Probability, Conditional probability, Bayesian rule

Question: What proportion of voters whose races are non-Hispanic Asians and Pacific Islanders are correctly classified in their racial category? Race is considered correctly classified if the racial category with the greatest conditional probability P(race | surname, residence) is identical to the self-reported race. Please remove those voters who contain at least a missing value. Please round to the nearest hundredth.
Answer: 0.61
Topics: Social science, Statistics, Probability, Conditional probability, Bayesian rule