What predicts strong public support for climate action, and does it split the world into types?
We analysed the UNDP Peoples' Climate Vote 2024, the largest public opinion survey on climate change, covering more than 73,000 respondents across 73 countries. We built two models to predict support for strengthening climate commitments, then grouped countries into typologies by their collective attitudes.
The survey question our models predict (Q9)
A demographic group (a Country, Education level and Age band) is "high support" if at least 85% of that group chose "strengthen". Everything else is "low support". We chose this 85% split because almost every group picked "strengthen" as its single most common answer, so predicting the raw three-way choice gave a useless model that always guessed "strengthen".
Both models see the same features. The random forest's binary framing works because it can separate an easier question, "is this an unusually committed group", from the harder one of predicting an exact percentage.
The data
The People's Climate Vote 2024, run by the United Nations Development Programme, is the world's largest public survey on climate change. It covers 73 countries with sample sizes of roughly 900 to 1,500 respondents per country, more than 73,000 people in total. The published dataset already holds weighted means: the share of each demographic group (a Country, Age band and Education level) that picked a given answer, not individual survey responses.
Over 20,000 rows held null values, concentrated in the weighted mean columns, and age bands above 60 or below 18 were only reported for a handful of countries. We considered predicting the missing values with a regression model, but rejected it: filling in invented answers to a public opinion survey risked biasing the analysis. We removed all null rows instead and kept only complete cases.
Restructure
Turn the response-level survey into one row per Country, Education and Age group, using the weighted mean of each answer.Clean
Drop "Global" aggregates, "All Ages" rows used only for the clustering step, "Don't know" answers, and any row with a null value.Encode
Standardise numeric attitude features withStandardScaler. One-hot encode categorical demographics with OneHotEncoder, both inside a ColumnTransformer.Feature engineering
Pivot three attitude questions, how often people think about climate change (Q1), whether worry changed since last year (Q2), and whether climate change affected a family decision such as moving or a major purchase (Q5), into separate weighted-mean columns.Split and train
An 80 to 20 train-test split, then a linear regression and a random forest (100 trees, class_weight="balanced" to correct for the "high support" class being the minority).Predicting support
We tried two models against the same features. The linear regression predicts the exact weighted-mean percentage that chose "strengthen", a continuous target. The random forest predicts only whether a group clears the 85% "high support" bar, a binary target. Both share the same cleaning and encoding pipeline described above.
class_weight="balanced" setting worked: the model does not just default to the majority class.Why two different targets
- What we tried first
- A three-way classifier predicting "strengthen", "maintain" or "weaken" directly.
- What went wrong
- "Strengthen" was the top answer in almost every demographic group, so the model always guessed "strengthen" and scored 100% accuracy on training and test data. That number proves nothing: a model that ignores its input cannot be useful.
- What we changed
- We reframed the target as a threshold: is this group's "strengthen" share at least 85%? That turns a near-unanimous outcome into a genuine two-way split worth predicting.
What drives support
The random forest also ranks which features matter most for telling high-support groups apart. The three most important were how much a person's worry about climate change changed compared to last year, whether climate change affected a family decision such as relocating or a large purchase, and how often they think about climate change day to day. All three are about a person's own lived experience, not their country or demographic group.
Segmenting countries
Alongside prediction, we grouped the 73 countries into typologies by their collective climate attitudes, using only the "All Ages, All Education" rows so each country is represented once. Each country became one row, with one column per survey question holding the weighted mean of its most positive or proactive answer. We excluded Q8, a question about who is responsible for climate action, because it does not reflect a respondent's own attitude.
We tried k-means clustering on three versions of this table: the raw features, normalised features, and features reduced with PCA (principal component analysis, a way to compress many correlated columns into a few that keep most of the spread in the data). The raw features gave poorly separated clusters, and the normalised features gave clusters too sparse to interpret because of the high number of columns. PCA gave the most compact, interpretable clusters, so we combined it with k-means. The elbow method, which looks for the point where adding more clusters stops meaningfully reducing error, pointed to 6 clusters.
| Cluster | Typology | Countries |
|---|---|---|
| 0 | Moderate concern | Cote d'Ivoire, Ghana, India, Jordan, Morocco, Nigeria, Samoa, Saudi Arabia, South Africa, Tunisia, Vanuatu |
| 1 | Highly worried and demand action | Algeria, Benin, Brazil, Colombia, Ecuador, Haiti, Iran, Iraq, Mexico, Nepal, Nicaragua, Paraguay, Sri Lanka |
| 2 | Less concerning day to day | Australia, Canada, China, Czechia, France, Germany, Indonesia, Japan, Papua New Guinea, Philippines, Russia, UK, USA |
| 3 | Highly collaborative and action taking | Argentina, Cambodia, Greece, Italy, Peru, South Korea, Romania, Spain |
| 4 | High daily concern | Afghanistan, Bangladesh, Bhutan, Burkina Faso, Comoros, Ethiopia, Fiji, Kenya, Madagascar, Mozambique, Niger, Pakistan, Uganda, Zimbabwe |
| 5 | Balanced engagement | Barbados, Dominican Republic, DRC, Egypt, El Salvador, Guatemala, Honduras, Kyrgyzstan, Lao PDR, Myanmar, Solomon Islands, Sudan, Tanzania |
Cluster 1 Highly worried, demand action
- What it shows
- Mostly Latin American countries.
- What to look for
- The highest support for climate action (90%) paired with the lowest satisfaction with current efforts (6%).
- What we saw
- A group that wants faster, more effective government action and is not getting it.
Cluster 2 Less concerning day to day
- What it shows
- Includes the USA, Canada, China and UK.
- What to look for
- The lowest daily concern (26%) and the lowest share who say they are more worried than before (49%).
- What we saw
- Climate change feels less urgent day to day in these countries than in the rest of the sample.
Reading the map
- What it shows
- Six typologies from PCA-reduced attitude data.
- What to look for
- Cluster membership does not track income or region cleanly; it tracks collective attitude patterns.
- What we saw
- The other four clusters sit between these two extremes: worried but not despairing, or engaged but not alarmed.
The age gap
Our first coursework asked a narrower question: is there a consistent generational gap in urgency about the fossil fuel transition? We defined an age gap as the share of 18 to 35 year olds who want a "quick" or "very quick" transition, minus the same share among 36 to 59 year olds. We restricted the comparison to these two bands because they were the only ones reported consistently across countries. A positive gap means younger people are more urgent; a negative gap means the older band is.
Limits
The data is opinion, aggregated twice. The public dataset gives weighted means per demographic group, not individual responses, and our models group by Country, Education and Age on top of that. A model that predicts group-level averages well does not prove it would predict any one person's answer.
Complete-case cleaning drops information. Removing over 20,000 null rows and every "Don't know" answer keeps the analysis honest but shrinks the usable sample, and countries with patchier reporting are underrepresented as a result.
Feature importance is not causation. Knowing that worry and family impact rank highest for the random forest tells us what the model leaned on, not that raising someone's worry would raise their support.
Six clusters is a choice, not a law. The elbow method suggested 6 as a reasonable balance of detail and readability. A different cut, or a different year of the survey, could plausibly draw the lines elsewhere.
Sample: 73,000+ respondents across 73 countries, People's Climate Vote 2024 (UNDP).
Team and credit
This was group MSc coursework at the University of Leeds, submitted as two reports by team Luxray: Harshit Verma, Ayush Patne, Abhishek Arun Raut and Sourav Jagati.