<p>The United States Department of Agriculture tracks coffee production, trade, and consumption across 94 countries going back to 1960. Each country plays a different structural role in the global coffee supply chain, falling into one of three trade profiles: <strong>Pure Producer</strong>, <strong>Pure Consumer</strong>, or <strong>Trade Hub</strong>.</p><p>Use the USDA coffee data to classify each country into one of these profiles using four metrics:</p><ul><li><p><strong>Production Self-Sufficiency Ratio:</strong> The share of supply grown domestically (PSR = Production / Total Supply).</p></li><li><p><strong>Import Dependency Ratio:</strong> The share of supply coming from imports (IDR = Imports / Total Supply).</p></li><li><p><strong>Export Intensity Ratio:</strong> The share of distributed coffee that leaves the country (EIR = Exports / Total Distribution).</p></li><li><p><strong>Domestic Consumption Share:</strong> The share of distributed coffee consumed domestically (DCS = Domestic Consumption / Total Distribution).</p></li></ul><p>Since coffee production is volatile due to weather and harvest cycles, focus on the <strong>last ten years</strong> (2017-2026) and classify based on 10-year averages to capture each country’s structural role rather than a single good or bad year.</p><p>Design and apply your own threshold rules for "high" and "low" (e.g., quartiles, fixed cutoffs, clustering), following the profile definitions below. Document your choice and visualize the classification results appropriately. </p><ul><li><p><strong>Pure Producer:</strong> Mainly grow their own coffee with little to no imports (high PSR / low IDR) and mainly export it with comparatively little domestic consumption (high EIR / low DCS).</p></li><li><p><strong>Pure Consumer:</strong> Cannot grow coffee (or grow negligible amounts), so they mainly import coffee (high IDR / low PSR) and mainly consume the imported coffee domestically rather than re-exporting it (high DCS / low EIR).</p></li><li><p><strong>Trade Hub:</strong> Have relatively high imports and exports compared to their total supply and distribution (high IDR and high EIR). They may or may not grow coffee itself but it is mainly defined by the sheer volume of coffee passing through the country.</p></li></ul><p><strong><em>Note:</em></strong> Not every country will fit a profile, there are countries that fall in between.</p>