Inspiration
Most donation tools give you one number per charity, or worse, one number per country. Each number hides a pile of assumptions: what the money actually buys, what would have happened without it, and whether a study run in one place carries over to another. The IMC challenge at hackaTUM 2026 asked how a foundation should allocate grants. We noticed that traders deal with this kind of problem every day. They work with expected value, tail risk and marginal returns, and they never report a point estimate the data can't support.
So we set ourselves a rule: Impact Atlas never shows a number it can't defend. If the evidence only supports a range, it shows a range. If the evidence only supports named scenarios, it shows scenarios. If there's no evidence, it says so.
What it does
Impact Atlas is a decision tool for grant makers with three layers:
- Where is the need? An interactive canvas globe ranks 131 low- and middle-income countries across five sectors (education, health, income & consumption, food & agriculture, safety & protection), giving 573 scored country–sector cells. Each cell carries a relative need score from 0 to 100, its data completeness, and its operating context (civic space and conflict intensity). The operating context is shown next to need and never lowers it.
- Who can deliver? For each country and sector, a ranked list of charities drawn from about 220 organisations. The ranking is lexicographic (gates → mission fit → place fit → evidence tier → credibility → cost-effectiveness), so every position has a plain-language reason.
- What does the next dollar cause? The Impact Frontier Engine assesses concrete opportunity tranches (project × intervention × place × target group × funding tranche × horizon). It compares them and allocates a budget across them, and it only claims as much as the evidence supports.
A grounded chat answers donor questions about any country's score. It is only allowed to use that country's screening data, and an eval suite tests it against prompt injection, invented numbers and questions outside its data.
How we built it
The need screening
For a sector $s$ with indicator set $I_s$, every indicator $i$ gets a direction $d_i \in {+1, -1}$: either higher values mean more need (e.g. under-five mortality) or less need (e.g. primary completion). We take the latest value from 2015–2025 and rank each country $c$ within the sector:
$$ p_{c,i} = \operatorname{pct_rank}\big(d_i \cdot x_{c,i}\big) \in (0, 1] $$
The need score averages only the indicators the country actually has. Missing values are never imputed:
$$ \text{Need}{c,s} = \frac{100}{|A{c,s}|} \sum_{i \in A_{c,s}} p_{c,i}, \qquad A_{c,s} = {\, i \in I_s : x_{c,i} \text{ observed} \,} $$
$$ \text{completeness}{c,s} = \frac{|A{c,s}|}{|I_s|} $$
Scores built on less than half of a sector's indicators are flagged in the UI, because one extreme value can push a thinly covered country to the top.
The Impact Frontier Engine
The engine reports funded minus unfunded, never a raw output. For a selected tranche:
$$ \text{units} = \begin{cases} \text{amount}\cdot \beta_{\$} & \text{per-dollar effect} \ \text{reach} & \text{reach-based} \ \text{amount} / \text{unit cost} & \text{cost-based} \end{cases} \quad \big(\times\, \text{uptake for TOT effects only}\big) $$
$$ Y^{\text{funded}} = \tau \cdot \text{units} \cdot \phi \cdot (1+\sigma) \cdot \delta \cdot \text{shock}(\omega, m) \cdot \kappa $$
$$ Y^{\text{unfunded}} = \rho \cdot Y^{\text{funded}}, \qquad \Delta Y = (1-\rho)\, Y^{\text{funded}}, \qquad \frac{\Delta Y}{\$} = \frac{\Delta Y}{\text{tranche price}} $$
Here $\tau$ is the study effect, $\phi$ fidelity, $\sigma$ spillovers, $\delta$ delivery, $\omega$ a named world with mitigation $m$, $\kappa$ tranche scale, and $\rho$ the share other funders would have covered anyway. An EffectApplicationPlan makes sure every adjustment is applied exactly once. For example, ITT effects already include non-uptake, so uptake is not applied again.
The weakest load-bearing quantity sets the output mode:
| Least-supported quantity | Mode | What you get |
|---|---|---|
| Verified legal/safeguarding failure | BLOCKED |
failed gates |
| No effect, no counterfactual, or transport out of support | ABSTAIN |
reason codes and the evidence needed next |
| Named worlds without probabilities | SCENARIO_ONLY |
one row per world, no expected value |
| Partially identified (a set) | BOUNDED |
exact bounds over all corners of the identified set |
| Full probability law | PROBABILISTIC |
shared-draw p10 / p50 / p90 and $P(\Delta Y > 0)$ |
Transport. Before an effect estimated in one country is used for another, the engine compares the target country's effect modifiers against the support of the source study. Each modifier is classified as SUPPORTED, WEAK_SUPPORT (the effect widens into a set), OUT_OF_SUPPORT or UNMEASURED. The last two lead to an abstention.
Comparing across outcomes. Lives saved, learning-adjusted years of schooling (LAYS) and consumption gains have no natural exchange rate. Without a donor policy, the engine returns TRADEOFF_REQUIRED and does not quietly pick weights. With a declared policy, it computes donor utility alongside the native outcomes:
$$ U(x) = \sum_k w_k \, v_k!\left(\frac{\Delta Y_k(x)}{r_k}\right) $$
It then runs an exhaustive-grid rank-flip analysis to find the smallest change in weights, measured by normalised Chebyshev distance, that would change the winner.
Allocation. The engine enumerates every feasible tranche portfolio exactly, subject to budget, precedence, mutual exclusion, gates, beneficiary overlap, sector share and high-need share. The default objective is minimax regret over named worlds $\theta$ and the corners of the identified sets:
$$ x_{\text{MR}} = \arg\min_{x \in \mathcal{X}} \; \max_{\theta \in \Theta} \Big[\, U\big(x^{*}_{\theta}, \theta\big) - U(x, \theta) \,\Big] $$
When every package is fully probabilistic, it can also maximise expected utility or the lower tail:
$$ \operatorname{CVaR}\alpha(U_x) = \mathbb{E}\big[\, U_x \mid U_x \le q\alpha(U_x) \,\big] $$
Shared shocks (for example, a mobile-money route failing in Kenya) are keyed by dependency, so every opportunity that relies on that route moves together in the same world. A disparity audit reports how operating constraints changed the high-need share of the portfolio, and names the gate or shock that caused the change.
Charity ranking
We merged a hand-curated register (13 charities with GiveWell, HLI, GEEAP or RCT evidence) with a generated register of about 210 charities. The generated one is built by an ETL from the DZI donation-seal list, the EU DG ECHO partner list, HQAI/CHS certification and OpenSanctions screening. Sanctions hits are never shown. Cost-effectiveness is compared only within the same unit: dollars per life saved are never converted into WELLBYs or LAYS.
Grounded chat with evals
The server, not the browser, chooses the facts the model may use. The prompt rules are versioned, and an eval harness runs donor questions on method, reliability, safety, impact per dollar, prompt injection, other countries, and German/Spanish questions. The graders need no LLM: every number in an answer must appear in the data, the format and language must be right, and per-case regexes must pass. There's an optional LLM-as-judge pass and a loop that rewrites the prompt rules from failures and keeps only versions that score better.
Stack
- Backend: Python 3.12, FastAPI and Pydantic v2 with typed discriminated-union responses, NumPy/pandas, YAML-versioned fixtures, and deterministic assessment IDs (the same request always returns the same ID). Requests that name the wrong data version get
409 VERSION_CONFLICT. - Data: World Bank WDI, UNESCO UIS, CIVICUS Monitor, UCDP GED, GiveWell, DZI, DG ECHO, HQAI and OpenSanctions. Every number is tagged
READ-REPO,PROXY,RELAYED-PRIOR,ANALYST-ASSUMPTIONorSYNTHETIC. - Frontend: React 19, TypeScript, Vite, a custom canvas globe built on
d3-geoandtopojson-client, types generated from the backend's OpenAPI schema, URL-encoded dashboard state, and a printable A4 report. - LLM: OpenRouter (NVIDIA Nemotron). If it's unavailable, the chat falls back to clearly labelled template answers.
- Quality: pytest, including a brute-force oracle that checks the optimizer, and contract tests that fail if the 31 recorded API examples drift from the live API. Vitest covers the frontend, and Docker is used for deployment.