The probability-based relatedness between every pair of HS6 products, and a country's density around products it does not yet export competitively.
Surface: /product-space
BACI 202601 (CEPII), HS96, 1996-2024 (retrieved 2026-06-01)
Proximity is the minimum of the two conditional co-export probabilities between products, computed on the same binary M matrix as ECI, with RCA threshold 1.0. Implemented as phi(a,b) = co(a,b) / max(k_p(a), k_p(b)), which is algebraically the minimum form.
Computed independently per year, 1996-2024. Not pooled and not a single-year snapshot.
Stored as the strict upper triangle: one row per unordered pair with product_a < product_b, diagonal excluded, rounded to 4 decimals, kept only where proximity >= 0.2. Any consumer must symmetrise (union both orientations) before grouping.
Density around a product is the share of that product's proximity mass that runs to products the country already exports competitively.
Live counts, measured 2026-08-27: 96,376,841 rows over 1996-2024; 2024 holds 3,005,162 rows over 4,762 distinct product nodes. The table is core HS96 only: the 1,521 extended codes in the catalogue (products_all.parquet 6,636 rows minus products.parquet 5,115) carry no edge and therefore have no density. 1,504 of those 1,521 carry a 2024 PCI row, which is the figure card 1 uses.
phi(p,p') = min( P(RCA_p >= 1 | RCA_p' >= 1), P(RCA_p' >= 1 | RCA_p >= 1) )phi(p,p') = co(p,p') / max(k_p(p), k_p(p')) where co(p,p') = sum_c M(c,p) M(c,p')density(c,p) = sum_p' phi(p,p') M(c,p') / sum_p' phi(p,p')opportunity(c,p) = density(c,p) * PCI(p) for products with RCA(c,p) < 1| Path | Method | Returns | Example |
|---|---|---|---|
| /api/product-space | GET | Nodes and links for one country's product-space network above minProximity (default 0.55). | /api/product-space?country=BGD&year=2024 |
| /api/product-space/summary | GET | RCA product count, mean PCI of the RCA set, country-level mean density, ECI, and a per-HS-section breakdown. | /api/product-space/summary?country=BGD&year=2024 |
| /api/product-space/opportunities | GET | Non-RCA products ranked by density times PCI. | /api/product-space/opportunities?country=BGD&year=2024&limit=20 |
| /api/countries/[iso3]/opportunities | GET | Non-RCA products ranked by density times PCI, with PCI rank and total trade. | /api/countries/BGD/opportunities?year=2024&limit=20 |