Introduction

Understanding whether political choices and identities are closely linked to voters’ observable characteristics is important for both theoretical and practical reasons. Theoretically, whether a readily perceivable demographic group is a reliable political base or a swing voting bloc has substantial implications for representation (Lazarsfeld et al., 1944; Panagopoulos, 2015, 2017, 2020). Moreover, if group identities tied to partisanship intensify, group divisions will increase, fueling affective polarization (Levendusky, 2018). Practically, candidates want to know to what extent any constituency might be persuadable (Axelrod, 1972; Fenno, 1978; Hersh, 2015).

This paper investigates the following questions: how reliable are demographic labels in predicting presidential vote choices and partisan identities? Moreover, do demographic groups increasingly vote (and affiliate themselves with parties) in predictable ways, exacerbating existing cleavages? We argue that the joint, out-of-sample predictive power of voters’ observable demographic characteristics to infer their voting decisions and partisan affiliation provide a useful statistic to evaluate the degree of social sorting. If demographic groups have sorted themselves into political camps over the years, their behavior should be increasingly predictable.

Using public opinion surveys from 1952 to 2020, we find that predictions based on five commonly used demographic variables—age, gender, race, education, and income—have low accuracy, which is stable over time. Only 63.9% of two-party presidential vote choices and 63.4% of binary party IDs are correctly predicted in hold-out sets of respondents whose data is withheld in the model-training stage. The same is true if a broader set of demographic labels are used, including religion, working status, and marital status: the corresponding accuracies are respectively 67.4% and 67.2% in an extended model for vote choice and party ID.

Not only is the informativeness of demographic labels surprisingly muted, but their predictive power has not increased over time, which is in stark contrast with what we find when partisan labels are incorporated into prediction algorithms. In these richer models with party IDs as one of the predictors, voting behavior is increasingly predictable over time, confirming the well-documented increase in the importance of partisanship in the United States (Bartels, 2000; Levendusky, 2009).

Before describing the results in more detail, it is important to clarify two ideas which have been referred to as ‘sorting.’ Ideological sorting is the notion that both symbolic ideology (i.e., self-identified liberal vs. conservative placement) and operational ideology (i.e., concrete issue positions) are increasingly correlated with partisanship (Fiorina et al., 2011; Hetherington, 2009; Levendusky, 2009; Weber & Klar, 2019). Social sorting, on the other hand, is defined as a convergence of social identities and partisan identities, such as race, sexual orientation, religion, occupations, social movements, and so on (Mason, 2016, 2018a; Mason & Wronski, 2018; Weber & Klar, 2019). Both phenomena are believed to entrench partisanship, decreasing the scope for persuasion.

There is little doubt that the ideological distance between Democrats and Republicans has grown (Webster & Abramowitz, 2017) and intra-party heterogeneity has decreased. Supposed consequences include greater partisan animosity (Abramowitz & Webster, 2016; Bougher, 2017; Christenson & Weisberg, 2019; Iyengar et al., 2019), an increase in straight-ticket voting in recent decades (Burden & Kimball, 2009; Jacobson, 2017), and an unprecedented partisan gap in presidential approval ratings (Jacobson, 2019).

But what are the political consequences of social sorting? A natural corollary of social sorting is that demographics should be increasingly prognostic of partisan affiliation. In addition, together with increased party-line voting (Jacobson, 2013), demographic characteristics should also better predict vote choice. We consider a narrow view of social sorting—namely that demographic group labels such as age and race are linked with political behavior—and test whether demographic sorting in vote choice and in partisan identification is growing. Specifically, are demographic characteristics and political opinions/partisanship tied in a way so that belonging to a particular group predicts important political decisions with increasing accuracy?

To our knowledge, existing studies have not quantified the level of demographic labels’ joint predictive power over political behavior or analyzed whether it has increased over time. In this paper, we first test whether demographic markers are increasingly informative of vote choice or party ID. For this, we use random forests on data from the ANES (1952–2020) as well as logistic regressions for comparison.

Our contributions in this paper are as follows. First, we show that the classification accuracy under the training/testing paradigm is a quantity of interest that can help validate whether sorting occurs. Contrary to the prevailing narrative, we show that demographics have not become more prognostic of vote choice or partisan identification over time, and standard observable characteristics are of limited usefulness when predicting both political outcomes.

Second, we ask whether other data about voters increase the predictive power of voting models.Footnote 1 We systematically investigate how accurately vote choice can be inferred from various combinations of voters’ characteristics. We confirm that (1) the predictive power of partisanship is increasing, consistent with the literature, and (2) while other variables additionally contribute to improved predictions, their added value when partisanship is already accounted for is small.

Third, we show that regression models which seem to suggest substantive marginal effects of demographic variables (including race, gender, and education) mask that the overall predictive power of demographics is modest. For example, any model with basic demographics will, as most have rightfully suspected, show that white men with a high school degree are more likely to identify as Republican and to vote Republican compared to women of color with a college degree. However, the best of these modeling efforts will still misclassify 34% of voters in 2020, as we will show in the results section.

Literature and Hypotheses

Demographic attributes can naturally translate into social identities, and, according to the Columbia School of political behavior, they are reinforced by social networks (Lazarsfeld et al., 1944). Membership in social groups is then said to explain politically relevant beliefs and behaviors, and voting can be viewed as akin to cultural activities which “have their origin in ethnic, sectional, class, and family traditions” (Berelson et al., 1954). In this framework, conformity is the norm.

Some existing research has indirectly hinted that demographic characteristics are only weak predictors of political preferences (Hillygus & Shields, 2014). However, there are several reasons to expect increased predictability from demographics alone. First, there have been long-term demographic trends such as rising education levels suspected to increase the Democratic foothold (Abramowitz, 2010). Second, political elites have paved the way for a stronger group-party alignment in recent decades, making party positions clearer and more distinguishable to voters. Third, cross-cutting ties between groups have been decreasing (Mason, 2018b), increasing polarization defined in terms of ideological consistency (Lelkes, 2016). Voters are thus expected to vote in line with their perceived group interests and against members of a disliked out-group.

It then seems natural to state that group membership should be increasingly informative of vote choice and party ID. Essentially, this is the wide-spread assumption that “the link between demographic traits and political orientation is so strong that increases in the share of voters from demographic groups associated with support for the Democrats produce proportionate increases in Democratic support,” (a view summarized but not endorsed by Shaw & Petrocik, 2020). Is this assumption defensible? After visiting the existing literature on group-based voting, we formulate three hypotheses to test the implications of the sorting thesis.

Group-Based Voting

Although social identities that align with political ideology encompass many categories such as religion and interest groups (Abramowitz & Saunders, 2008; Levendusky, 2009), our focus is on the following five demographic markers: race, education, income, age, and gender.Footnote 2

Race

Although the Democratic Party has had a stable advantage among Black voters for several decades now, there are reasons to expect that the signal from a voter’s race is larger than in the past. First, Trump’s victory in 2016 was a continuation of “the decades-long expansion of Republican support among white working-class Americans” (Carnes & Lupu, 2020). In addition, the GOP is believed to have activated white identity (Abrajano & Hajnal, 2017; Jardina, 2019; Sides et al., 2017, 2019; Tesler, 2016) in response to Barack Obama’s electoral wins. In the case of the Latino voters, the Democratic support varies by ethnicity and generation (Abrajano and Alvarez, 2012), while Asian Americans are, overall, not well courted by either party (Wong et al., 2011). But racial minorities, on average, may have a weaker incentive to vote Republican. Note also that when the Tea Party emerged in 2010, 80–90 percent of its supporters were white (Williamson et al., 2011), strengthening the hypothesis that prediction accuracy based on race could be increasing.

Education

Three decades’ worth of public opinion demonstrates that those with higher educational attainment increasingly associate with the Democratic party (Pew Research Center, 2018). Conversely, Republicans have been gaining support among those citizens who do not have a college degree in the last decade. The partisan education gap grew during the Obama administration, but note that the relationship between education and voting is sensitive to the inclusion of other variables in a model (Schaffner et al., 2018).

Income

Income at the individual level predicts vote choice, but there is some disagreement whether class-based voting has been stable (Gelman et al., 2010) or increasing over time (Stonecash, 2000; Bartels, 2006; McCarty et al., 2008).Footnote 3 Preferences and voting are typically aligned with people’s economic self-interest—for example, Ansolabehere et al. (2006) document that “the difference in the rate of Republican voting between an economic Conservative and an economic Liberal is 31 percentage points.” However, the extent of the importance of economic issues for voting continues to be debated.Footnote 4 In the 2016 presidential election, the income effect is believed to have interacted with education. Carnes and Lupu (2020), for example, show that the diploma divide in 2016 “was driven largely by more affluent Americans.”

Age

Young people tend to lean liberal and support Democratic or progressive candidates. In the 2016 presidential popular vote, the vote margin of Democratic minus Republican votes was 24 for Millennials and 28 for Generation Z (Griffin et al., 2020). Higher age, conversely, is correlated with conservatism and voting Republican,Footnote 5 and it has been argued that “the generational divide in American politics today is unprecedented” (Fisher, 2020).

Consider also the self-reported importance of age for perceived common interests. When respondents were allowed to select up to two groups with which they have the most common interests and concerns in a November 2020 YouGov poll, the most frequently mentioned category was “people in the same age group as you,” followed by “people in the same political party.”Footnote 6

Gender

Voting patterns in exit polls suggest that men are more likely to vote Republican, but in models that control for sexist attitudes, gender does not appear to predict vote choice (Bracic et al., 2019). At the same time, gender interacts with race. For example, Junn (2017) reports that white women voted Republican in 2016 in line with their behavior in prior elections.

While we believe that these are among the most fundamental demographic characteristics, we also estimate a model with an extended definition of demographics, using whether the respondent lives in an urban/suburban/rural area, census region, political south/nonsouth, working status, religion, church attendance, home ownership, and marital status.Footnote 7

Hypotheses

Our objective is to test whether demographic sorting has observable implications for partisanship and voting. We argue that the testable implication of demographic sorting is an increase in the predictive power of demographics on both variables. Based on the summarized relationships between demographics and political behavior, we derive the following hypothesis:

Hypothesis 1A (Rising Vote Choice Predictability)

Vote choice will become increasingly predictable based on voters’ demographic features alone (with other information about voters withheld).

Hypothesis 1B (Rising Party ID Predictability)

Partisanship will be easier to infer based on voters’ demographics relative to earlier decades.

Beyond demographics, a long scholarly tradition leads us to expect that an explicit self-reported party label should be a powerful signal of vote choice. Campbell et al. (1960) described the psychological, unthinking allegiance to parties with the following consumer analogy: “[l]ike the automobile buyer who knows nothing of cars except that he prefers a given make, the voter who knows simply that he is a Republican or Democrat responds directly to his stable allegiance” (p. 136). On the basis of this argument, the evidence that voter loyalty is increasing (Burden & Kimball, 2009; Jacobson, 2017), and similar findings (Bartels, 2000), we propose the next hypothesis:

Hypothesis 2 (Increasing Importance of Party ID)

Including explicit party ID will dramatically raise accuracy relative to sparser models using only demographics, and predicting voting decisions with party ID will grow increasingly easy over time.

Finally, given that parties are seen as ideological brands (Egan, 2013; Woon & Pope, 2008) and voters now generally belong to the “correct” party (Levendusky, 2009) we propose the final hypothesis:

Hypothesis 3 (Sufficiency of Party ID)

Beyond the initial sets of features (party ID and demographics), other voter characteristics, such as issue positions, will contain non-zero but substantively small diagnostic information about vote choice.

Data and Methodology

We use the American National Election Studies (1952–2020), and our target variable for prediction is (1) presidential vote choice, which is self-reported, subsetted to respondents who voted for either a Democratic or a Republican candidate, and (2) binary party ID, also self-reported, of either being a Democrat or a Republican.Footnote 8

For training models in the training/testing paradigm, we use (1) random forests, a commonly used method for aggregating predictions from regression and classification trees (Breiman, 2001; Montgomery & Olivella, 2018), and (2) logistic regressions, as both outcome variables are binary. In random forests, individual trees are estimated by sequentially splitting the data on the basis of an optimally chosen cut-off point of the most informative variable. To remove excessive dependence of tree structures on the algorithmic decisions early in the splitting process, a subset of observations and predictors is drawn each time a new classification tree is estimated. An aggregation of trees corrected for inter-tree correlation is the random forests (RF). Whether it be random forests or logistic regressions, models are trained and fitted separately for each survey wave.

To further investigate the extent to which vote choice is inferrable based on voters’ observable characteristics, we use four nested variable specifications for the analysis. Figure 1 shows the labels of each specification and the variables included. Given that the survey questionnaires reflect the issue cleavages of the day, such as the Iraq war or the Affordable Care Act, the third and the fourth specifications will usually consist of imperfectly overlapping sets of variables for each wave. We include these specifications for benchmark purposes.

Fig. 1
figure 1

Four nested specifications and corresponding variables, visualized

All categorical variables are converted into dummy variables, including a variable to represent nonresponse missing values. Variables with near-zero variance at the 1% level or variables with more than twenty different responses, such as ZIP codes, are dropped to guard against too much sparsity. Only clearly continuous variables—such as age, number of children, or amount donated to political campaigns—are kept as continuous.Footnote 9 Nonresponses are treated as a separate category instead of listwise deletion if the variable is categorical.

After cleaning, the data is split into training and testing datasets with an 80:20 ratio. Using the caret and the ranger package in R, we run an election-by-election class prediction via (1) random forests (Breiman, 2001; Kuhn, 2008; Wright & Ziegler, 2017) and (2) logistic regressions. All code is publicly available at a GitHub repository: https://github.com/sysilviakim/surveyML.

Random forests are tuned before a final (best-fitting) model is chosen out of a set of candidate models. The best model is selected on the basis of its performance in the training set while two hyperparameters that may impact model performance are tuned via tenfold cross-validation.Footnote 10

Results

How Much Can Demographics Alone Predict Vote Choice and Partisan Affiliations?

Before we evaluate the evidence for our hypotheses about over-time dynamics, we first quantify how well, on average, demographics can predict political behavior. We find that when using just demographics, the accuracy for vote choice predictions is generally low, typically less than 65%. The numbers are very similar when the target prediction is binary party IDs.

Figure 2 shows the time-series plots of out-of-sample accuracies over time, with the top panel showing random-forest based accuracy rates and the bottom panel showing logistic regression based accuracy rates over time. For both panels, models by each year are estimated using only information on respondents’ gender, race, education, income, and age.

Fig. 2
figure 2

Out-of-sample prediction accuracy of demographics on political behavior, 95% confidence intervals, random forests and logistic regressions

The average accuracy across all years when predicting vote choice is 63.9% with random forests, and 64.5% when logit models are estimated instead. When predicting binary party ID, the average accuracy for random forests is 63.4%, whereas for logistic regressions, it is 63.9%.Footnote 11 These numbers will probably strike most readers as low. While better than random guesses,Footnote 12 they seem less impressive relative to what could be expected considering the emphasis that the literature places on demographic variables.

Is this because the five demographic traits are too restrictive? As aforementioned and shown in Fig. 1, we also estimate an extended demographic model, where, in addition to the five variables, we add a variety of other demographic variables. The results are not very different. With the extended demographics-only model, the average accuracy for vote choice is 67.4% with random forests and 66.8% with logistic regressions. When predicting binary party ID, the average accuracy for random forests is 67.2% and 67.0% for logistic regressions. Although slightly better than with just five variables, out-sample predictive accuracies are low for both outcome measures and regardless of the algorithm choice.

No Evidence of Demographic Sorting Over Time

Hypothesis 1 (Increasing Demographic Sorting)

The next question is then whether, per the first hypothesis, the predictive power of demographics has increased over time. Can demographic labels alone predict presidential vote choice or partisan affiliations better in the polarized era compared to the past?

The time trends shown in both panels of Fig. 2 do not suggest that this is the case. Test-set accuracies from 1952 to 2020 for both outcome variables are remarkably stable. Table 1 tests this as regressions for both outcomes, whether basic or extended set of demographics was used, and for both choices of algorithms. None of the over-time trends are statistically significant. Again, the results are not dependent on the choice of the training model.

Table 1 Predictive Accuracy for Vote Choice and Party IDs Using Only Demographics, Regressed Over Year

The results suggest that the electorate has not become more polarized along demographic lines in a way that is informative about voting behavior.Footnote 13 Note that this is not about a specific demographic group (e.g., the marginal contribution of white working-class men in their 60 s to a party voting bloc) but the overall joint prediction ability of combinations of demographics, which may explain the disparity between the results of this paper and the literature’s recent focus.

Growing Marginal Effects Do Not Imply Rising Joint Accuracy

Why is the overall accuracy low and stable when other work suggests that demographic sorting is increasing? One reason may be that counteracting forces are playing out simultaneously: indeed, between 2012 and 2020, the electorate seems to have been polarized by education, but it also appears to have racially depolarized.

A set of marginal effects from election-by-election models displayed in Fig. 3 shows that race and gender have for decades been significantly associated with both party ID and with vote choice. Moreover, the influence of education on the predicted probability that a respondent would vote Republican (top panel) or identify as a Republican (bottom panel) has increased in recent years. But these panels mask the lack of an increase in model fit, which we documented in the preceding subsection.

Fig. 3
figure 3

Marginal effects of college graduation status, white, and female on republican vote choice and binary PID, simple OLS with demographics

Figure 3 thus conveys that statistical significance does imply that a set of variables is highly diagnostic or particularly useful for better predictions (as has been noted in other contexts; see e.g. Lo et al., 2016). Because plots of marginal effects, or indeed crosstabulations, can sometimes look striking, it seems worth restating that growing marginal effects do not, in the absence of other information, imply that any given model would yield accurate predictions.

Prognostic Power of Party ID and Ideology on Vote Choice

Hypothesis 2 (Increasing Party ID Sorting)

Next, we turn to tests of our second hypothesis which stated that partisan identification would become more informative over time for two-party vote choice, consistent with the existing literature.

Tree-based models that take advantage of data on respondents’ explicit partisan identification, measured on a seven-point scale, are presented (with other models included for comparison) in Fig. 4 which shows point estimates of three performance metrics (accuracy, AUC, and the F-1 score).Footnote 14 These performance metrics are also shown for the remaining nested specifications.

Fig. 4
figure 4

Performance of presidential vote prediction over time (random forests, accuracy/AUC/F1 scores)

We find that partisanship, jointly with basic demographics, has indeed become a significantly more prognostic variable over time, confirming that our approach yields results consistent with the existing literature. Before the 1992 election, PID-based accuracy never exceeded 85%. However, starting with Bill Clinton’s re-election, the same specification generally classifies at least 90% of voting decisions correctly. We thus find empirical support for our second hypothesis, which aligns with the well-established results of an increasingly polarized U.S. electorate.

Of course, the predictions based on the second specification leave on the table other knowable attributes of voters. We explore the implications of their inclusion, which brings us to our final hypothesis.

Hypothesis 3 (Sufficiency of Party ID)

While partisanship is now more prognostic of vote choice, other factors do continue to provide additional useful information for inferring respondents’ vote choice, as we can see in Fig. 4.

More specifically, on average, accuracy of ANES predictions improves by 0.5 percentage point when issue variables are added on top of demographics and party ID. In addition, accuracy improves by 7.9 percentage points once all other variables have been added. Some examples of variables included in the fourth and final specification are non-policy opinions. In 2016, for example, a useful feature was the perception about whether the Democratic presidential candidate could be described as honest.

The patterns uncovered by these models suggest that it is possible to glean information about voters’ behavior even after accounting for their partisanship. Views on policy issues consistently reveal more information about behavior, above and beyond partisanship. Moreover, other questions asked on public opinion surveys (occupation, subjective class identification, group attitudes, political knowledge, media consumption, beliefs, perceptions, and so on) still contain additional information that can be used to improve predictions about voters’ behavior.

However, it is clear that in recent years, the added value from the set of all variables in terms of prediction is, on average, decreasing. Once party ID is accounted for along with demographics, the ability of other variables to be put to good use in better predicting vote choice is more limited compared to the era with lower mass-level polarization.

Party ID vs. Symbolic Ideology vs. Operational Ideology

Given the results above, it is also worth digressing to investigate the predictive power of three distinct concepts which are sometimes confused: explicit party ID, self-identified symbolic ideology along the liberal-conservative scale, and operational ideology, or specific positions on issues (Ellis & Stimson, 2012). Figure 5 shows the accuracy of predictions based on the following models: demographics and seven-point party ID (also displayed in Fig. 4), demographics and three-point symbolic ideology (liberal vs. moderate vs. conservativeFootnote 15), and demographics and operational ideology, or all issue questions. Note that some caution in interpretation must be forewarned due to the number of varying covariates between this model.

Fig. 5
figure 5

Performance of presidential vote prediction over time. Comparison of party ID, symbolic ideology, and operational ideology. Accuracy is the (random forest based) percent of correctly predicted observations

Three patterns are worth noting. First, symbolic ideology is nearly as informative as operational ideology (although its predictive power relative to issues decreased in 2020). Second, in spite of a large amount of information available in the data in the operational ideology model, issues typically underperform compared to party ID. Finally, the convergence of the predictive power based on demographics and operational ideology vis-à-vis the demographics and party ID model highlights the growing alignment between partisanship and policy views.

This exercise makes it clear that party labels which voters give themselves trump both types of ideologies. In the next section, we turn back to demographics and describe how their relative importance has changed over time.

Discussion: A Contested Role of Demographics

The degree of group-level voter loyalty has substantial implications for representation. Per the typical rational choice model, campaigns will focus on catering to persuadable voters rather than pandering to a part of the electorate that will, conditional on turning out, behave predictably. If a voting bloc is “too reliable,” a normative concern is that the group’s interests will not be represented adequately relative to its size and importance. For example, the Democratic party has been criticized for not giving priority to issues that matter to Black voters, a key voting bloc that delivered the Biden victory (Scott, 2020).

Turning the clock back a few years, Donald Trump’s unexpected victory in 2016 left the media and researchers searching for explanations of the winner’s appeal, and they often zoomed in on the voting blocs that supported Trump, such as white voters without a college degree.Footnote 16 A common concern has been that existing political cleavages between demographic groups are widening, and many of the post-election explanations focused on the deepening partisan divide by demographics such as race or education (Morgan & Lee, 2018; Porter, 2016).

Along these lines, Sides (2017) writes that “[t]he Democratic Party has an increasing advantage among nonwhite people. Among Hispanics, Democrats outnumbered Republicans by 23 points in 2002 but 36 points in 2016.” The reduction of the white population and increasing racial diversity of the electorate (Teixeira et al., 2015) have been used to project the advent of the Democratic Party.

But other scholars have cautioned that belonging to a social group “does not necessarily prescribe a specific political outlook” (Huddy, 2018). Clearly, unexpected behaviors from some groups can lead to wrong inferences about election competitiveness; for instance,

McCall and Orloff (2017) have observed that:

... some Democratic commentators bemoaned the fact that a majority of white women had voted for Trump, and called it a kind of betrayal, underlining their expectation that women would naturally, on the basis of their gender interests and identity, support a woman with politics and policies understood to be women-friendly.

This is particularly important because, in this paper, we are using demographic labels, which are self-reported categorizations and not the degrees to which individuals identify with the group labels. To put it another way, objective inclusion in groups is not equal to the internalized sense of membership (Huddy, 2013), so demographic labels are not equal to the social identity and affinity discussed in Green et al. (2002), Achen and Bartels (2016), or Mason (2015, 2016). Therefore, theoretically, our results show that the demographic sorting based on observable ‘labels’ does not extend to a better prediction of vote choices or partisan affiliations.

Our results also have substantial implications for practitioners and the public. The results could help dispel the myth that demographics are deterministic indicators of vote choices. Such myths are perpetuated due to the horse-race coverage of pre-election and postelection polls based on group membership. They have the potential to wreak real-world damage by widening the emotional gap between groups by wrong ecological inferences.

All this is not to say that demographics should be disregarded altogether when campaign strategies are formulated. Because we investigate vote choice, the data sample itself is conditional on turnout, one of the key factors that determine a group’s contribution to the voting bloc (Axelrod, 1972). Therefore, demographics can still play an important role by influencing turnout. For example, Krupnikov and Piston (2015) show that when there are Black candidates on the ballot, racial prejudice may prompt even co-partisan voters to stay home instead of turning out to vote. This indicates that if demographics are strong determinants of turnout in certain races, the attempt to see the relationship between demographics and vote choice may suffer from bias induced by conditioning on a collider. We leave further probes for future research.

Conclusion

Demographic attributes can function as markers of social identities, and membership in these social groups does, to an extent, carry political meaning. Voters’ demographic characteristics help improve vote choice predictions compared to random guesses—given five key demographic characteristics, the probability of an accurate prediction with a random forests model is on average 63.9% for vote choice and 63.4% for partisan affiliations. This, although higher than 50%, suggests that for most people, memberships in their income group, age group, gender, education group, or even ethnic group are not electorally ‘sorted’ strongly enough to translate to particularly accurate signals about their voting decisions, or indeed partisan identification. The results are robust to expanding the set of demographic variables used for prediction.

Moreover, the accuracy of predicted outcomes—party ID or vote choice—inferred based on voters’ demographic attributes has not grown over the years. These results hold whether we use tree-based models or logistic regressions in training our models. Our results are therefore not consistent with the first hypothesis: demographic sorting is neither electorally consequential nor increasing.

We validate our first result by showing results from four nested model specifications, increasingly incorporating more information about respondents. In line with existing findings showing higher polarization, we show that once partisanship is no longer withheld from the set of predictors, we do observe, as expected, a massive increase in accuracy. Partisanship’s diagnosticity in absolute terms is unmatched by either symbolic or operational ideology, although issue positions and partisanship’s predictive power have converged in recent years. Furthermore, inferring vote choice with just the combination of demographics and party ID becomes easier over time (with a plateau occurring in the late 1990s).

We also note that predictions based on partisanship and demographics can further be improved by incorporating data on respondents’ issue positions. Adding extra variables (including non-policy features such as voters’ political knowledge, attitudes tapping into identity considerations, and other survey instruments) to the set of model features also generally yields higher accuracy. However, once partisanship has been accounted for, the added value from additional variables is decreasing over time. In recent years, there has been only minimal gain from richer specifications once partisanship and demographics are accounted for.

Considering all this, we conclude that demographic reconfigurations of partisan coalitions have not translated into more predictable voting behavior. Without information about respondents’ partisanship, even sophisticated random forests models typically only achieve out-of-sample accuracy up to 65%, and this performance metric has not increased over the last seventy years. As the predictive power of party ID grows stronger, it dominates the signal from other covariates, diminishing their marginal predictive power. Therefore, while our results validate scholarly findings on ideological sorting and polarization, we find no support for vote-based demographic sorting.