Build a British voter

The Economist shows probabilities that a person votes for each party, given a set of demographics.

But the electorate is not monolithic. The Economist has built a statistical model of it based on a survey of voting intentions by More In Common, a pollster. Our model estimates the probability that any individual will vote for one of Britain’s main political parties based on the eight characteristics that most influence voters’ choices: sex, age, ethnicity, region, education, employment status, type of housing and whether it is in a rural or urban area. In different combinations these characteristics yield 275,000 different voter profiles. Each week we get new polling data and update our calculations.

Select the demographics, such as sex, age, race, and education, and see how each factor swings the probability for each party. The overall prediction shows at the bottom.

The 2008 decision tree by Cox comes to mind.