<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog | Haihao Sun's Homepage</title><link>https://h3sun.github.io/post/</link><atom:link href="https://h3sun.github.io/post/index.xml" rel="self" type="application/rss+xml"/><description>Blog</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Sat, 15 Nov 2025 00:00:00 +0000</lastBuildDate><image><url>https://h3sun.github.io/media/icon_hu68170e94a17a2a43d6dcb45cf0e8e589_3079_512x512_fill_lanczos_center_3.png</url><title>Blog</title><link>https://h3sun.github.io/post/</link></image><item><title>One Country a Day - Chile</title><link>https://h3sun.github.io/post/2025-11-15-one-country-a-day-chile/</link><pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-15-one-country-a-day-chile/</guid><description>&lt;h2 id="-chile---day-50100-of-one-country-a-day-project">🇨🇱 Chile - Day 50/100 of One Country a Day Project&lt;/h2>
&lt;p>&lt;em>Intro narrative to be completed.&lt;/em>&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 347 bn&lt;/strong> — IMF WEO 2025 database, 2024 estimate (current prices). ([IMF][1])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 17,200&lt;/strong> — IMF WEO 2025 (GDP per capita, current prices). ([IMF][2])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 35,000–35,500 PPP&lt;/strong> — IMF WEO &amp;amp; World Bank PPP per capita (≈ 35.3k IMF; ≈ 34.6k WB for 2024). ([IMF][2])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>20.1 million&lt;/strong> (end-2024 UN/CEIC and UNFPA estimates). ([CEIC Data][3])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –3.6% of GDP&lt;/strong> (trade &lt;em>surplus&lt;/em>; trade balance +3.59% of GDP in 2024 ⇒ net imports ≈ –3.6% of GDP). ([TheGlobalEconomy.com][4])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 756,000–757,000 km²&lt;/strong> — World Bank surface area data (≈756,096 km²; alternative series 757,245 km²). ([DataBank][5])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Santiago&lt;/strong>. ([World Population Review][6])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Santiago&lt;/strong>, &lt;strong>Valparaíso&lt;/strong>, &lt;strong>Concepción&lt;/strong>, &lt;strong>Puente Alto&lt;/strong>, &lt;strong>Antofagasta&lt;/strong>, &lt;strong>Viña del Mar&lt;/strong>, &lt;strong>Temuco&lt;/strong>, &lt;strong>Talcahuano&lt;/strong>, &lt;strong>Rancagua&lt;/strong>, &lt;strong>La Serena&lt;/strong> — by metro/urban population. ([World Population Review][7])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Mining &amp;amp; Resources&lt;/strong>: Codelco (state copper), SQM (lithium &amp;amp; chemicals), Antofagasta plc, Albemarle (Atacama operations). &lt;strong>Retail &amp;amp; Consumer&lt;/strong>: Falabella, Cencosud, Ripley. &lt;strong>Banking &amp;amp; Finance&lt;/strong>: Banco de Chile, Banco Santander-Chile, BCI. &lt;strong>Energy &amp;amp; Utilities&lt;/strong>: Enel Chile, Colbún, AES Andes. &lt;strong>Transport &amp;amp; Services&lt;/strong>: LATAM Airlines. ([CompaniesMarketCap][8])&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Chile is the &lt;strong>world’s top copper producer&lt;/strong> and holds the &lt;strong>largest copper reserves globally&lt;/strong> (≈190 Mt, ~19% of global reserves; ~¼ of world output in 2024). ([Investing News Network][9]) It also sits in the &lt;strong>“lithium triangle”&lt;/strong> with the world’s largest lithium reserves (~31–36% of global reserves; 2nd-largest producer, with SQM &amp;amp; Albemarle in Salar de Atacama). ([Trade.gov][10]) Significant &lt;strong>molybdenum, gold, silver, nitrates&lt;/strong>, plus &lt;strong>forestry, fisheries&lt;/strong>, and hydro potential along the Andes. Atacama offers some of the &lt;strong>highest solar irradiation&lt;/strong> in the world, underpinning large-scale solar and green-hydrogen potential.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptionally strong and &lt;em>strategic&lt;/em> resource base in copper and lithium, both critical for the global energy transition. High concentration in mining and water stress in northern deserts (Atacama aquifers under pressure, conflict with local communities) prevent a perfect score, but in terms of sheer endowment and strategic leverage Chile is near the top globally.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Multi-climate country&lt;/strong>: hyper-arid &lt;strong>Atacama Desert&lt;/strong> in the north; &lt;strong>Mediterranean climate&lt;/strong> in central Chile (Santiago) with mild, dry summers and wet winters; cool temperate and &lt;strong>oceanic climates&lt;/strong> in the south (Los Lagos, Magallanes). ([Wikipedia][11]) High urbanization (~85%+ in cities; ~40% in Greater Santiago). Life expectancy ≈ &lt;strong>80.3 years&lt;/strong> (2024 est.). ([Wikipedia][12]) However, Chile is &lt;strong>high-risk for earthquakes, tsunamis and volcanic hazards&lt;/strong>; it experienced the &lt;strong>largest instrumentally recorded earthquake&lt;/strong> (M 9.5 Valdivia 1960) and remains classified as “high earthquake hazard.” ([Think Hazard][13]) Climate-change exposure: droughts in the central zone, Andean glacier retreat, and flooding events; but also strong building codes and disaster-response infrastructure. ([Climate Knowledge Portal][14])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Everyday livability in core urban regions is relatively good; Mediterranean climate, high life expectancy, and developed infrastructure stand out. Seismic/tsunami risk is structurally high, and climate-related droughts plus occasional extreme weather drag down the score. Strong institutions and resilient infrastructure compensate partially.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Chile’s long, narrow strip between Pacific Ocean and Andes gives it natural barriers; borders only Peru, Bolivia, Argentina, with mostly mountainous frontiers. ([Wikipedia][7]) Geography is defensible but creates logistical challenges (north-south integration, reliance on a few transport corridors). &lt;strong>Geopolitics (40%)&lt;/strong>: Chile is a stable, export-oriented democracy in the Pacific system: member of &lt;strong>OECD, APEC, CPTPP, Pacific Alliance&lt;/strong>, and deeply integrated with US, EU, and especially China trade networks. ([Economy of Chile][7]) It is a &lt;strong>systemically important supplier&lt;/strong> of copper and lithium, with major public-private partnerships (e.g., Codelco-Rio Tinto lithium JV). ([Reuters][8]) No active interstate conflicts, though periodic maritime/territorial disputes exist.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geographically defensible and geopolitically well plugged into Pacific trade architectures. Not a military heavyweight, but as a &lt;strong>trusted supplier&lt;/strong> for the energy transition it wields structural leverage. Vulnerabilities stem from dependence on ports, concentration of infrastructure, and limited blue-water projection—yet overall the geo position is strong.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Chile scores &lt;strong>94/100 (“Free”)&lt;/strong> on Freedom House 2024. ([Freedom House][15]) &lt;strong>Transparency International CPI 2024:&lt;/strong> 63/100 (rank 32/180). ([transparency.org][16]) &lt;strong>World Justice Project 2024:&lt;/strong> score 0.66, rank 36/142. ([World Justice Project][17]) &lt;strong>HDI 2023:&lt;/strong> 0.878 (rank ~45). ([Economy of Chile][7]) Institutions include an independent central bank, well-regarded judiciary, and strong disaster-risk management systems. Social tensions (2019 protests, constitutional debates) and rising crime perceptions pose governance challenges but have been handled within democratic frameworks.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">For the global South, Chile is a governance positive outlier: relatively clean, democratic, and rules-based. By OECD standards it is mid-tier, but regionally it leads. Episodes of unrest signal ongoing distributional conflicts, yet institutional resilience remains high.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP ≈ USD 347 bn; GDP per capita ≈ USD 17k (≈ USD 35k PPP). ([IMF][1]) Copper/lithium dominate exports (copper &amp;gt;50% of exports). ([EBSCO][18]) Economy diversified across mining, agro-exports, forestry, manufacturing, retail/finance. OECD expects ~2.4% real growth in 2024. ([OECD][19]) Strengths: credible macro policy, deep capital markets, integration with global value chains. Weaknesses: dependence on commodities, inequality (Gini ~43), low R&amp;amp;D intensity, aging population (fertility ~1.1), environmental constraints in mining regions. ([Financial Times][20])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High-income trajectory with strong macro fundamentals, but growth is still resource and consumption led. Energy-transition demand gives upside, yet concentration risk, demographic aging, and social demands are structural headwinds.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;em>Exceptionally rich in copper and lithium&lt;/em>, central to the global energy transition; long record as &lt;strong>Latin America’s most stable, open and rules-based economy&lt;/strong>, with strong macro institutions and relatively low corruption; &lt;strong>defensible geography&lt;/strong> and no active interstate conflicts; high HDI, long life expectancy, and advanced disaster-management capacity.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Commodity concentration&lt;/strong> leaves Chile exposed to price cycles; &lt;strong>seismic and tsunami risks&lt;/strong> are structurally high; persistent &lt;strong>inequality&lt;/strong>, social tensions, crime concerns; &lt;strong>rapid population aging and ultra-low fertility&lt;/strong> threaten long-term growth; hydrological stress and environmental conflicts in mining regions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Chile is likely to remain a &lt;strong>middle-power “critical minerals hub”&lt;/strong>, deepening ties with copper &amp;amp; battery-value-chain importers. Policy is shifting toward &lt;strong>greater state involvement in lithium&lt;/strong> while moving &lt;strong>up the value chain&lt;/strong>. ([Reuters][8]) Strategic challenge: convert mineral rents into diversified, innovation-driven growth and manage demographic aging/social demands without eroding macro stability.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>&lt;em>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Colombia</title><link>https://h3sun.github.io/post/2025-11-15-one-country-a-day-colombia/</link><pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-15-one-country-a-day-colombia/</guid><description>&lt;h2 id="-colombia---day-48100-of-one-country-a-day-project">🇨🇴 Colombia - Day 48/100 of One Country a Day Project&lt;/h2>
&lt;p>Colombia straddles the Andes, Amazon, and Caribbean—one of the most biodiverse countries on Earth and the only South American nation with coastlines on both the Pacific and Atlantic. After decades of internal conflict, it has experienced uneven but real progress in security, economic diversification, and democratic consolidation. As I continue the Latin America leg of One Country a Day, I’m focusing on how Colombia balances its resource wealth, peacebuilding challenges, and growing role in regional diplomacy.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>US$ 420 billion&lt;/strong> (2024, current prices) — IMF WEO 2024. (&lt;a href="https://www.imf.org/en/Countries/COL" title="Colombia and the IMF">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>US$ 7,900&lt;/strong> (2024, current prices). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC@WEO/COL?utm_source=chatgpt.com" title="GDP per capita, current prices - Colombia">IMF Datamapper&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>US$ 19,000 PPP&lt;/strong> (2024). (&lt;a href="https://www.imf.org/en/Countries/COL" title="Colombia and the IMF">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>52.0 million&lt;/strong> (2024 mid-year). (&lt;a href="https://data.worldbank.org/country/colombia?utm_source=chatgpt.com" title="Colombia | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Goods &amp;amp; services trade balance ≈ &lt;strong>−2% of GDP&lt;/strong> (2024) — slight net importer but with strong oil/coal exports offset by capital goods imports. (&lt;a href="https://www.theglobaleconomy.com/Colombia/Trade_balance/?utm_source=chatgpt.com" title="Colombia trade balance, percent of GDP">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 1,142,000 km²&lt;/strong> — 4th-largest in South America. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=CO&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Colombia">World Bank Surface Area&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Bogotá D.C.&lt;/strong> (&lt;a href="https://en.wikipedia.org/wiki/Colombia?utm_source=chatgpt.com" title="Colombia">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Bogotá, Medellín, Cali, Barranquilla, Cartagena, Bucaramanga, Cúcuta, Pereira, Santa Marta, Ibagué&lt;/strong>. (&lt;a href="https://datacommons.org/ranking/Count_Person/Place/country/COL?utm_source=chatgpt.com" title="City populations in Colombia">Data Commons&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy &amp;amp; Mining:&lt;/strong> Ecopetrol, Cerrejón (coal). &lt;strong>Finance &amp;amp; Conglomerates:&lt;/strong> Grupo Aval, Bancolombia, Grupo Nutresa. &lt;strong>Aviation &amp;amp; Logistics:&lt;/strong> Avianca, Copa Colombia. &lt;strong>Telecom:&lt;/strong> Claro Colombia, Tigo UNE. &lt;strong>Consumer Goods:&lt;/strong> Postobón, Alpina. Core sectors include oil &amp;amp; gas, coal, coffee, flowers, manufacturing, BPO/IT services, and tourism. (&lt;a href="https://disfold.com/colombia/companies/?utm_source=chatgpt.com" title="Largest Colombian companies by market cap">Disfold&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Colombia is among the &lt;strong>top 5 global coal exporters&lt;/strong>, has sizeable &lt;strong>oil reserves (~1.9 bn barrels)&lt;/strong>, and is rich in &lt;strong>hydropower&lt;/strong> potential (≈70% of electricity from hydro). (&lt;a href="https://iea.blob.core.windows.net/assets/6da0fe7d-5701-4bea-b97c-062d75599631/Colombia2024.pdf?utm_source=chatgpt.com" title="IEA Energy Policy Review: Colombia 2024">IEA&lt;/a>) It is the world’s largest producer of &lt;strong>mild arabica coffee&lt;/strong> and a major exporter of flowers, bananas, and emeralds. Biodiversity ranks #2 globally, offering ecotourism and bioeconomy prospects. However, oil reserves are relatively limited (7–8 years at current production), making energy security a medium-term challenge.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Broad resource mix (energy, agriculture, biodiversity) gives Colombia a strong base, though short reserve life for hydrocarbons and environmental pressures in the Amazon/Orinoco regions constrain the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate varies from tropical lowlands to temperate Andean highlands. Bogotá’s altitude yields mild temperatures (~14 °C average), Medellín is known as the “City of Eternal Spring” (~22 °C). Coastal areas face heat and humidity, and the country experiences heavy rainfall (Pacific coast among the world’s wettest). Hazards include earthquakes, landslides, and floods; El Niño/La Niña cycles cause weather volatility. Urbanization ~&lt;strong>81%&lt;/strong>, life expectancy ~&lt;strong>77 years&lt;/strong>, HDI &lt;strong>0.744 (“high”)&lt;/strong>. (&lt;a href="https://hdr.undp.org/data-center/country-insights?utm_source=chatgpt.com" title="Country Insights - Human Development Reports">UNDP&lt;/a>) Security improvements have boosted tourism, though crime and inequality persist in certain regions.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Favorable climates in key metros and improving human development metrics, but infrastructure gaps, flood/landslide risks, and localized violence keep livability at a mid-level score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense:&lt;/strong> Colombia borders 5 countries (Venezuela, Brazil, Peru, Ecuador, Panama) plus coasts on the Caribbean and Pacific. The Andes create natural barriers but also complicate internal connectivity; the Darien Gap remains difficult terrain. Internal insurgencies (ELN, FARC dissidents) remain the principal security concern rather than interstate warfare. &lt;strong>Geopolitics:&lt;/strong> Close security cooperation with the U.S. (Plan Colombia legacy), member of the Pacific Alliance, Andean Community, and OECD (since 2020). Colombia has repositioned as a mediator in Venezuelan talks and participates in Amazon Basin climate diplomacy.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic access to both oceans and proximity to Panama Canal lanes offer trade advantages, and U.S./EU partnerships enhance geo standing. However, internal conflict legacies reduce its ability to project power or fully capitalize on location.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Colombia is a presidential republic with competitive elections; Gustavo Petro became the first leftist president in 2022. Freedom House rates Colombia &lt;strong>61/100 (“Partly Free”)&lt;/strong> due to violence against activists and corruption. (&lt;a href="https://freedomhouse.org/country/colombia/freedom-world/2024?utm_source=chatgpt.com" title="Colombia: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) &lt;strong>Transparency Intl CPI 2024:&lt;/strong> score &lt;strong>38/100 (rank ~95/180)&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/colombia?utm_source=chatgpt.com" title="Colombia">Transparency&lt;/a>) The &lt;strong>World Justice Project 2023&lt;/strong> ranks Colombia &lt;strong>0.52 (rank 69/142)&lt;/strong>, indicating moderate rule-of-law performance but weakness in criminal justice. Peace accords with FARC reduced national-level conflict, yet implementation is uneven and new armed groups have emerged.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are relatively robust for the region, but corruption, judicial delays, and ongoing violence against civic leaders keep governance in the “partly free” band.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Colombia is Latin America’s &lt;strong>4th-largest economy&lt;/strong>, with GDP ≈ US$420 bn; services account for ~60% of GDP, industry 30%, agriculture 10%. 2024 growth slowed to &lt;strong>~1.5%&lt;/strong> amid tight monetary policy (policy rate peaked at 13.25%, now easing). Inflation fell from 13% in 2023 to ~6% by late 2024. Key growth drivers: oil/coal exports, coffee/agri, manufacturing, and expanding &lt;strong>BPO/digital services&lt;/strong> in Medellín/Bogotá. Challenges include high informality (~58% of workers), infrastructure deficits (notably rural roads and ports), and fiscal space constrained by social commitments.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diversified sectors and improving macro stability support a solid medium-term outlook, but low productivity, high informality, and dependence on commodity revenues limit upside.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Dual-ocean access and strategic location&lt;/strong> make Colombia a logistics bridge between Central and South America.&lt;br>• &lt;strong>Rich natural capital&lt;/strong> (energy, agriculture, biodiversity) supports multiple export sectors.&lt;br>• &lt;strong>Resilient democratic institutions&lt;/strong> have weathered political transitions, enabling sustained macro reforms.&lt;br>• &lt;strong>Human capital and entrepreneurship&lt;/strong> in cities like Bogotá and Medellín drive BPO, fintech, and creative industries.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Security and governance gaps&lt;/strong>: armed groups, narcotrafficking, and corruption still undermine state presence in rural areas.&lt;br>• &lt;strong>Infrastructure and connectivity deficits&lt;/strong> across mountainous terrain raise logistics costs.&lt;br>• &lt;strong>Commodity reliance&lt;/strong> on oil/coal leaves fiscal accounts exposed to price swings; short reserve life for oil.&lt;br>• &lt;strong>Social inequality and conflict legacies&lt;/strong> slow rural development and peace accord implementation.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Colombia’s path hinges on consolidating the peace process, diversifying beyond oil/coal, and investing in transport and renewable energy corridors. If reforms boost productivity and formal employment, Colombia could sustain &lt;strong>3%+ growth&lt;/strong> and serve as the Pacific Alliance’s innovation hub. Failure to address security vacuums or deliver infrastructure could stall progress and keep the economy dependent on volatile commodities.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Peru</title><link>https://h3sun.github.io/post/2025-11-15-one-country-a-day-peru/</link><pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-15-one-country-a-day-peru/</guid><description>&lt;h2 id="-peru---day-49100-of-one-country-a-day-project">🇵🇪 Peru - Day 49/100 of One Country a Day Project&lt;/h2>
&lt;p>&lt;em>Intro narrative to be completed.&lt;/em>&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 290–300 billion&lt;/strong> — World Bank &amp;amp; IMF estimates for 2024; WB reports about USD &lt;strong>289 bn&lt;/strong> for 2024, IMF projects around USD &lt;strong>303 bn&lt;/strong> for 2025. ([Trading Economics][1])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 8,800&lt;/strong> — IMF/World Bank range for 2024–25 (IMF-based series show ≈USD 8.8k for 2025). ([Wikipedia][2])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 18,000–18,700 (PPP)&lt;/strong> — World Bank/IMF PPP per-capita estimates; recent data show ≈USD 17.8k (2024) and ≈USD 18.7k (2025). ([Trading Economics][3])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>34.1–34.3 million&lt;/strong> (2023–24) — Freedom House and World Bank-based demographic series. ([Freedom House][4])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −3% of GDP&lt;/strong> (i.e., &lt;strong>net exporter&lt;/strong>) — net exports of goods &amp;amp; services around &lt;strong>+3.2% of GDP in 2023&lt;/strong>, used as a proxy for 2024. ([FocusEconomics][5])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1,285,216 km²&lt;/strong> — 19th largest in the world, 3rd in South America (after Brazil and Argentina). ([Wikipedia][6])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Lima&lt;/strong> — political, financial and industrial core, on the central Pacific coast. ([Wikipedia][7])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Lima&lt;/strong>, &lt;strong>Arequipa&lt;/strong>, &lt;strong>Trujillo&lt;/strong>, &lt;strong>Chiclayo&lt;/strong>, &lt;strong>Piura&lt;/strong>, &lt;strong>Cusco&lt;/strong>, &lt;strong>Huancayo&lt;/strong>, &lt;strong>Iquitos&lt;/strong>, &lt;strong>Pucallpa&lt;/strong>, &lt;strong>Callao&lt;/strong> (often integrated with Lima metro). ([City Population][8])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Mining &amp;amp; Metals:&lt;/strong> Southern Peru Copper, Compañía de Minas Buenaventura, Antamina JV (Glencore/BHP/Teck/Mitsui). ([EY][9]) &lt;strong>Hydrocarbons &amp;amp; Energy:&lt;/strong> Petroperú (state oil), Pluspetrol, Engie Energía Perú, Luz del Sur. ([Petroperú][10]) &lt;strong>Finance:&lt;/strong> Credicorp/BCP, Interbank, BBVA Perú, Scotiabank Perú. ([Value Today][11]) &lt;strong>Consumer &amp;amp; Retail:&lt;/strong> Alicorp (FMCG), Backus (beer), InRetail/Inkafarma. ([TradingView][12]) &lt;strong>Fisheries &amp;amp; Fishmeal:&lt;/strong> TASA and other anchoveta-based fishmeal exporters. ([Wikipedia][13])&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Peru is one of the world’s &lt;strong>top mining economies&lt;/strong>, ranking &lt;strong>2nd globally in copper and zinc&lt;/strong>, and &lt;strong>2nd–3rd in silver&lt;/strong>, with substantial gold, lead, tin and molybdenum output. It holds about &lt;strong>12% of global copper reserves&lt;/strong> and &amp;gt;9% of zinc, plus significant silver and gold reserves. ([Trade Commissioner Service][9]) The country also has &lt;strong>natural gas and oil&lt;/strong> (Camisea and other basins), a &lt;strong>world-class fishery&lt;/strong> (anchoveta → fishmeal), large hydro potential and extensive agro-export corridors on irrigated coastal valleys (asparagus, grapes, blueberries, avocados). ([Wikipedia][6])&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very strong mining and fishery endowment with global leverage in strategic minerals (copper, silver, zinc) and key agricultural niches. Limitations include modest oil reserves, local water conflict in mining zones, and vulnerability of fisheries to El Niño, which slightly lowers the score from a “5”.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Three main climate zones: &lt;strong>hyper-arid to semi-arid Pacific coast&lt;/strong>, &lt;strong>Andean highlands&lt;/strong> with cool micro-climates, and &lt;strong>humid tropical Amazon basin&lt;/strong>. ([Wikipedia][10]) Lima is among the &lt;strong>world’s driest capitals&lt;/strong>, yet with high winter humidity and air quality challenges. ([Wikipedia][4]) Peru faces &lt;strong>high natural-hazard exposure&lt;/strong>: major earthquakes from the Nazca–South America subduction zone, landslides, floods and El Niño-related extremes (e.g., 1998, 2017, Cyclone Yaku 2023). ([GFDRR][11]) Urban infrastructure and services are relatively good in Lima and a handful of regional hubs, but uneven in highland and Amazonian areas, with persistent housing, water/sanitation and health gaps.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climatically diverse and agriculturally rich, but &lt;strong>livability is constrained&lt;/strong> by seismic and hydrometeorological risks, water scarcity on the coast, and major regional inequalities in infrastructure and services. Peru is broadly habitable with attractive climate niches, yet disaster risk and service gaps keep this dimension in the mid-range.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong> – Peru has a &lt;strong>long Pacific coastline&lt;/strong> and a spine of &lt;strong>high Andes&lt;/strong>, which form substantial natural defenses and complicate large-scale land invasion. ([Wikipedia][6]) However, the elongated N–S shape, concentration of population and infrastructure in a narrow coastal strip, and large seismic exposure create vulnerability to coastal earthquakes and tsunamis. ([GFDRR][11]) Borders with Ecuador, Colombia, Brazil, Bolivia and Chile are now mostly demarcated but include difficult jungle terrain and remote, lightly governed areas used by illegal mining and drug trafficking networks. &lt;strong>Geopolitics (40%)&lt;/strong> – Peru is an &lt;strong>upper-middle-income Pacific state&lt;/strong> integrated into &lt;strong>APEC, the Pacific Alliance, CAN and CPTPP&lt;/strong>, providing diversified trade access to the US and Asia, alongside strong commodity links with China. ([Economy of Peru][7]) It is a &lt;strong>critical source of energy-transition minerals&lt;/strong> but suffers from chronic domestic political instability and social conflict around mining projects, which weakens its ability to convert resource leverage into consistent diplomatic weight. ([Reuters][12])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geographically, Peru enjoys &lt;strong>significant defensive depth&lt;/strong> via ocean frontage and mountain barriers, plus a valuable Pacific orientation. Its mining role gives it strategic importance in global energy transition supply chains. Yet &lt;strong>internal instability, social conflict in mining zones, and limited hard-power projection&lt;/strong> constrain its geopolitical impact, keeping this in the slightly-above-average band.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Freedom House rates Peru &lt;strong>67/100 (“Partly Free”)&lt;/strong> for 2024, with recent declines and concerns over political rights and civil liberties amid repeated institutional crises. ([Freedom House][4]) Transparency International’s &lt;strong>CPI 2024 score is 31/100 (rank 127/180)&lt;/strong>, indicating relatively high perceived corruption by global standards. ([transparency.org][5]) The World Justice Project’s Rule of Law Index places Peru &lt;strong>around the bottom third globally (score ≈0.48–0.49; rank ~90/142 in 2024–25)&lt;/strong>. ([World Justice Project][13]) Since 2018 the country has cycled rapidly through presidents and congresses, and recent laws on &lt;strong>amnesty/statutes of limitation for human-rights abuses&lt;/strong> have raised international concern about impunity. ([Reuters][14])&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are &lt;strong>formal, competitive and pluralistic&lt;/strong>, but plagued by &lt;strong>chronic instability, fragmented parties, politicized judiciaries and entrenched corruption&lt;/strong>. Rule-of-law metrics sit clearly below OECD and top Latin-American performers (e.g., Chile, Uruguay), though Peru is not an outright authoritarian state. The trajectory in this dimension is fragile or slightly negative.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Peru is an &lt;strong>upper-middle-income economy&lt;/strong> with nominal GDP just under &lt;strong>USD 300 bn&lt;/strong> and per-capita income around &lt;strong>USD 8.8k nominal / USD ~18k–19k PPP&lt;/strong>. ([Economy of Peru][7]) The structure is services-led (≈53% of GDP), with sizeable industry (≈22%) and extractives (≈15%), reflecting its mining weight. Post-pandemic growth has been &lt;strong>modest but positive&lt;/strong> (≈3% in 2024, similar projections onward), and inflation is relatively contained (~2%). ([Economy of Peru][7]) The country exhibits &lt;strong>high human development (HDI = 0.794, rank ~79th)&lt;/strong>, but with significant spatial inequality between coastal/metropolitan areas and highland/Amazonian regions. ([Human Development Reports][14]) Structural issues include &lt;strong>large informality, infrastructure gaps, low innovation capacity and recurrent disruptions to mining and transport from social conflict&lt;/strong>. ([EY][15])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Despite macro-stability, solid human-development gains and strong external accounts, Peru remains &lt;strong>resource-dependent and unevenly developed&lt;/strong>. It sits comfortably above low-income peers but below diversified, innovation-driven economies. Medium-term prospects are positive but hinge on resolving governance and social-conflict bottlenecks that slow investment and productivity.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;em>Globally significant mining power&lt;/em> (copper, silver, zinc, gold) and a major fishery, giving strong export earnings and strategic importance in the green-energy transition. ([Trade Commissioner Service][9]) &lt;em>Favourable macro profile&lt;/em> for an emerging economy: manageable public debt, historically prudent macro policy and comparatively low inflation. ([Economy of Peru][7]) &lt;em>Pacific orientation and trade integration&lt;/em> via APEC, Pacific Alliance, CPTPP and CAN, plus diversified export markets (US, China, regional partners). ([Economy of Peru][7]) &lt;em>High (and improving) HDI&lt;/em> with notable progress in poverty reduction over recent decades, especially in urban/coastal areas. ([UNdata][16])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Governance fragility and political volatility&lt;/strong>: rapid presidential turnover, confrontational executive–legislative relations, and controversial laws affecting human-rights accountability erode trust and rule of law. ([Freedom House][4]) &lt;strong>Corruption and weak party system&lt;/strong> undermine long-term policy continuity and regulatory quality. ([transparency.org][5]) &lt;strong>High dependence on extractives&lt;/strong> exposes the economy to commodity cycles and social conflict around large mining projects, with environmental externalities (water stress, pollution) in vulnerable Andean and Amazonian communities. ([EY][15]) Large &lt;strong>informal sector, inequality and regional disparities&lt;/strong> limit productivity gains and inclusive growth. ([Economy of Peru][7])&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Structurally, Peru has the ingredients for &lt;strong>steady 3–4% annual growth&lt;/strong>: young demographics, valuable minerals, and integration into Pacific trade circuits. However, the actual trajectory is likely to be &lt;strong>“stop-and-go”&lt;/strong>: periods of robust growth when commodities and politics are favourable, punctuated by downturns when conflicts, climate shocks (El Niño, floods) or institutional crises hit investment. ([Economy of Peru][7]) If governance, anti-corruption efforts and social-dialogue mechanisms around mining are strengthened, Peru could consolidate as a &lt;strong>stable, upper-middle-income Pacific hub&lt;/strong> with durable human-development gains. If not, it risks remaining a &lt;strong>volatile, resource-rich but institutionally constrained economy&lt;/strong>, whose strategic mineral wealth is partly offset by political and environmental fragility.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>&lt;em>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - South Africa</title><link>https://h3sun.github.io/post/2025-11-15-one-country-a-day-south-africa/</link><pubDate>Sat, 15 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-15-one-country-a-day-south-africa/</guid><description>&lt;h2 id="-south-africa---day-51100-of-one-country-a-day-project">🇿🇦 South Africa - Day 51/100 of One Country a Day Project&lt;/h2>
&lt;p>&lt;em>Intro narrative to be completed.&lt;/em>&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 426 bn&lt;/strong> — IMF WEO 2024 (IMF-based compilation: USD 426,383 m) (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 6,700&lt;/strong> — IMF WEO DataMapper / recent estimates (≈USD 6.67k) (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/SWE/ZAF?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP per capita, ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 16,000&lt;/strong> (Int’l dollars, PPP) — IMF WEO DataMapper (≈USD 16.05k) (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>64.0 million&lt;/strong> (2024) — World Bank WDI (&lt;a href="https://data.worldbank.org/country/south-africa?utm_source=chatgpt.com" title="South Africa | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –2% of GDP&lt;/strong> in 2024 (trade balance ≈ +2% of GDP → modest &lt;strong>net exporter&lt;/strong> overall) — World Bank-based estimates (&lt;a href="https://www.theglobaleconomy.com/South-Africa/Trade_balance/?utm_source=chatgpt.com" title="South Africa Trade balance, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1,219,090 km²&lt;/strong> — World Bank data (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km)">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Pretoria&lt;/strong> (administrative), &lt;strong>Cape Town&lt;/strong> (legislative), &lt;strong>Bloemfontein&lt;/strong> (judicial) — constitutional “three-capital” system (&lt;a href="https://en.wikipedia.org/wiki/South_Africa?utm_source=chatgpt.com" title="South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Johannesburg, Cape Town, Durban (eThekwini), Pretoria (Tshwane), Ekurhuleni (East Rand), Gqeberha (Port Elizabeth), Soweto, Bloemfontein, East London, Pietermaritzburg&lt;/strong> (&lt;a href="https://en.wikipedia.org/wiki/Template%3ALargest_cities_of_South_Africa?utm_source=chatgpt.com" title="Largest cities of South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Mining &amp;amp; Resources:&lt;/strong> Anglo American, Gold Fields, AngloGold Ashanti, Impala Platinum, Sibanye-Stillwater, Kumba Iron Ore. &lt;strong>Energy/Chemicals:&lt;/strong> Eskom (state power utility), Sasol. &lt;strong>Telecoms:&lt;/strong> MTN Group, Vodacom. &lt;strong>Finance:&lt;/strong> Standard Bank, FirstRand, Absa, Capitec. &lt;strong>Media/Tech:&lt;/strong> Naspers. &lt;strong>Retail &amp;amp; Consumer:&lt;/strong> Shoprite, Pick n Pay, Woolworths. (&lt;a href="https://en.wikipedia.org/wiki/List_of_largest_companies_in_South_Africa?utm_source=chatgpt.com" title="List of largest companies in South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">South Africa is &lt;strong>resource-rich&lt;/strong>, especially in &lt;strong>mineral commodities&lt;/strong>. It is a leading global producer of &lt;strong>platinum-group metals, gold, chromium, manganese, coal and iron ore&lt;/strong>, and a significant exporter of diamonds and other metals. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) About &lt;strong>71% of total energy supply&lt;/strong> still comes from coal, 20% from oil, with limited domestic gas and modest nuclear/renewables. (&lt;a href="https://www.ieabioenergy.com/wp-content/uploads/2024/12/CountryReport2024_SouthAfrica_final.pdf?utm_source=chatgpt.com" title="Implementation of bioenergy in South Africa – 2024 update">IEA Bioenergy&lt;/a>) Arable land and freshwater are more constrained: the country is classed as &lt;strong>semi-arid&lt;/strong> with annual rainfall (~464 mm) well below the world average (~860 mm), making water a structural bottleneck. (&lt;a href="https://southafrica-info.com/land/south-africa-weather-climate/?utm_source=chatgpt.com" title="South Africa's weather and climate">South Africa Gateway&lt;/a>) Biodiversity is extremely high (Cape Floristic Region, rich wildlife), giving eco-tourism and conservation value.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class &lt;strong>mineral portfolio&lt;/strong> and established extraction infrastructure provide strong strategic leverage, particularly in PGMs and critical minerals. However, &lt;strong>water scarcity, limited agricultural potential in much of the interior, and fossil-fuel dependence&lt;/strong> slightly cap the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate is &lt;strong>diverse&lt;/strong>: Mediterranean in the southwest (Cape Town), subtropical on the east coast, semi-arid/desert in the interior and northwest, with cooler, wetter conditions at higher elevations in the Drakensberg. (&lt;a href="https://en.wikipedia.org/wiki/Climate_of_South_Africa?utm_source=chatgpt.com" title="Climate of South Africa">Wikipedia&lt;/a>) Overall, the country enjoys abundant sunshine (~2,500 hours per year) but faces &lt;strong>recurrent droughts and localized flooding&lt;/strong>. (&lt;a href="https://southafrica-info.com/land/south-africa-weather-climate/?utm_source=chatgpt.com" title="South Africa's weather and climate">South Africa Gateway&lt;/a>) Large metros (Johannesburg, Cape Town, Durban, Pretoria) have comparatively good infrastructure, but &lt;strong>load-shedding (power cuts)&lt;/strong>, high violent-crime rates, and persistent inequality complicate livability. South Africa’s &lt;strong>HDI is 0.741 (high human development)&lt;/strong>, ranking ~107th globally. (&lt;a href="https://en.wikipedia.org/wiki/List_of_countries_by_Human_Development_Index?utm_source=chatgpt.com" title="List of countries by Human Development Index">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Physical climate is generally favorable&lt;/strong> and varied, without extreme cold or frequent mega-disasters. But &lt;strong>chronic infrastructure strain (electricity, water in some regions), high crime, and inequality&lt;/strong> pull livability down, especially for poorer households.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong> – South Africa occupies the &lt;strong>southern tip of Africa&lt;/strong>, with long coastlines on both the Atlantic and Indian Oceans and control of key sea lanes around the Cape of Good Hope. It has only a handful of land neighbors (Namibia, Botswana, Zimbabwe, Mozambique, Eswatini; Lesotho is an enclave), and no major interstate threats. Terrain includes high plateaus and mountain belts (Drakensberg) that offer some depth, though internal security challenges (crime, localized unrest) are more salient than conventional military threats. (&lt;a href="https://www.climatecentre.org/wp-content/uploads/Climate-Profiles-of-Countries-in-Southern-Africa-South-Africa.pdf?utm_source=chatgpt.com" title="Climate Profiles of Countries in Southern Africa: South Africa">Climate Centre&lt;/a>) &lt;strong>Geopolitics (40%)&lt;/strong> – South Africa is a &lt;strong>regional hegemon&lt;/strong> in Southern Africa and a key voice for the “Global South”: member of &lt;strong>BRICS, G20, AU, SADC, SACU, AfCFTA, IMF/WTO&lt;/strong>. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) It benefits from diversified great-power ties (China, EU, US, Russia, Gulf states) but has seen &lt;strong>strained relations with the US/West&lt;/strong> over foreign-policy positions and trade issues (e.g., AGOA and new US tariffs on autos and citrus). (&lt;a href="https://www.reuters.com/world/steep-us-tariffs-africa-signal-end-trade-deal-meant-boost-development-2025-04-03/?utm_source=chatgpt.com" title="Steep US tariffs on Africa signal end of trade deal meant to boost development">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geographically secure&lt;/strong> with favorable maritime position and no existential land threats; strong leverage as Africa’s most industrialised economy and a G20/BRICS member. But &lt;strong>foreign-policy balancing and recent tariff tensions&lt;/strong> modestly reduce geopolitical flexibility and market access.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">South Africa is rated &lt;strong>“Free” by Freedom House&lt;/strong> with a 2024 score of &lt;strong>81/100&lt;/strong> (strong political rights and civil liberties overall). (&lt;a href="https://freedomhouse.org/country/south-africa?utm_source=chatgpt.com" title="South Africa: Country Profile">Freedom House&lt;/a>) The &lt;strong>World Justice Project Rule of Law Index 2024&lt;/strong> gives a score around &lt;strong>0.57&lt;/strong> and rank &lt;strong>57/142&lt;/strong> globally (5th of 34 in Sub-Saharan Africa), with recent declines indicating pressure on judicial effectiveness, corruption control and civil justice. (&lt;a href="https://worldjusticeproject.org/sites/default/files/documents/South%20Africa_2.pdf?utm_source=chatgpt.com" title="South Africa Ranks 57 out of 142 in the ...">World Justice Project&lt;/a>) Transparency International’s &lt;strong>CPI 2024 score is 41/100 (rank 82/180)&lt;/strong>, pointing to significant corruption risks. (&lt;a href="https://www.transparency.org/en/countries/south-africa?utm_source=chatgpt.com" title="South Africa">Transparency.org&lt;/a>) Institutions are formally robust (independent courts, active media and civil society), but episodes of &lt;strong>“state capture,” governance failures at local level, and service-delivery protests&lt;/strong> show weaknesses in implementation capacity. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">A &lt;strong>functioning multi-party constitutional democracy&lt;/strong> with strong rights protections and an assertive judiciary, but &lt;strong>corruption, patronage, and uneven service delivery&lt;/strong> materially degrade rule of law quality and state capacity.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP ≈ &lt;strong>USD 426 bn&lt;/strong> with per-capita income ≈ &lt;strong>USD 6.7k nominal / USD 16k PPP&lt;/strong>, placing South Africa as an &lt;strong>upper-middle-income&lt;/strong>, highly diversified emerging market. (&lt;a href="https://en.wikipedia.org/wiki/List_of_countries_by_GDP_%28nominal%29?utm_source=chatgpt.com" title="List of countries by GDP (nominal)">Wikipedia&lt;/a>) Growth has been &lt;strong>low (≈0.6–1.1% in recent years, with IMF projecting ~1.1% in 2025)&lt;/strong>. (&lt;a href="https://www.imf.org/en/countries/zaf?utm_source=chatgpt.com" title="South Africa and the IMF">IMF&lt;/a>) Major strengths: &lt;strong>deep financial sector, sophisticated services, automotive manufacturing, mining exports, agriculture and food processing, and a growing (though challenged) tech/start-up ecosystem&lt;/strong> (e.g., Cape Town as “Startup Capital of Africa”). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) Major constraints: &lt;strong>very high unemployment (~30%+), extreme inequality (Gini ~63), power shortages/load-shedding linked to coal-heavy Eskom, aging infrastructure, and skills mismatches.&lt;/strong> (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">A &lt;strong>diversified, systemically important African economy&lt;/strong> with globally competitive firms and capital markets, but &lt;strong>structural growth is weak&lt;/strong> and constrained by unemployment, inequality, energy bottlenecks and governance issues. Medium-term resilience is moderate but depends heavily on reforms and energy transition execution.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Rich mineral endowment&lt;/strong> (PGMs, gold, coal, chrome, manganese) and a mature mining ecosystem.&lt;br>• &lt;strong>Most industrialised and diversified economy in Africa&lt;/strong>, with strong financial, telecom, and retail sectors and world-scale firms (Naspers, MTN, Standard Bank, Anglo American, Sasol, Shoprite). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) &lt;br>• &lt;strong>Geostrategic maritime position&lt;/strong> astride the Cape sea lanes; regional leadership role and membership in BRICS, G20, AU, SADC, AfCFTA. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) &lt;br>• &lt;strong>Relatively strong constitutional and civic framework&lt;/strong> for Sub-Saharan Africa (Free status, high HDI, independent courts, active media and civil society). (&lt;a href="https://freedomhouse.org/country/south-africa?utm_source=chatgpt.com" title="South Africa: Country Profile">Freedom House&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Chronic unemployment and inequality&lt;/strong> (one of the highest Gini coefficients globally) undermine social cohesion and domestic demand. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_South_Africa?utm_source=chatgpt.com" title="Economy of South Africa">Wikipedia&lt;/a>) &lt;br>• &lt;strong>Governance and corruption challenges&lt;/strong> (CPI 41/100; WJP rule-of-law slippage) plus uneven service delivery and local-government capacity. (&lt;a href="https://www.transparency.org/en/countries/south-africa?utm_source=chatgpt.com" title="South Africa">Transparency.org&lt;/a>) &lt;br>• &lt;strong>Energy crisis and infrastructure bottlenecks&lt;/strong> due to coal-dependent Eskom, aging plant and grid, and slow rollout of renewables, leading to load-shedding and lower potential growth. (&lt;a href="https://www.iea.org/countries/south-africa?utm_source=chatgpt.com" title="South Africa - Countries &amp;amp; Regions">IEA&lt;/a>) &lt;br>• Exposure to &lt;strong>climate risks&lt;/strong> (droughts, water scarcity) and environmental pressure from coal mining and heavy industry. (&lt;a href="https://southafrica-info.com/land/south-africa-weather-climate/?utm_source=chatgpt.com" title="South Africa's weather and climate">South Africa Gateway&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">South Africa’s trajectory is &lt;strong>mixed but still opportunity-rich&lt;/strong>. On one path, &lt;strong>gradual reforms&lt;/strong> in energy (renewables build-out, Eskom restructuring), logistics (ports/rail), and governance could stabilize growth in the &lt;strong>2–3% range&lt;/strong>, leveraging manufacturing, services, and minerals (including those needed for the green transition). (&lt;a href="https://www.reuters.com/sustainability/climate-energy/south-africas-eskom-targets-mainly-clean-energy-sources-by-2040-2025-07-16/?utm_source=chatgpt.com" title="South Africa's Eskom targets mainly clean energy sources by 2040">Reuters&lt;/a>) On the downside, &lt;strong>persistent load-shedding, political fragmentation, fiscal pressures, and unresolved inequality&lt;/strong> could lock the country into a &lt;strong>“low-growth, high-unemployment” equilibrium&lt;/strong> despite its structural advantages. External geopolitics (US/EU tariffs vs. BRICS alignment, AfCFTA implementation) will shape trade and investment options. Overall, South Africa remains a &lt;strong>strategic middle power in Africa&lt;/strong> with substantial upside &lt;strong>if&lt;/strong> it can execute institutional and infrastructure reform over the next decade.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>I will conclude the One Country a Day study for now. Next, I’ll probably explore “Composition in Photography” and build a new series around visual storytelling fundamentals.&lt;/p></description></item><item><title>One Country a Day - Argentina</title><link>https://h3sun.github.io/post/2025-11-14-one-country-a-day-argentina/</link><pubDate>Fri, 14 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-14-one-country-a-day-argentina/</guid><description>&lt;h2 id="-argentina---day-46100-of-one-country-a-day-project">🇦🇷 Argentina - Day 46/100 of One Country a Day Project&lt;/h2>
&lt;p>Argentina is Latin America’s southern giant: a nation of pampas grasslands, Andean peaks, and Patagonia’s windswept steppe that once ranked among the world’s richest societies. Today the country is again attempting to break out of a cycle of sovereign debt crises, chronic inflation, and stop-go reforms by rebooting its macro framework while leveraging abundant lithium, agricultural, and energy resources. As I continue the Latin America segment of One Country a Day, I’m exploring how Argentina’s natural wealth, human capital, and geopolitical posture intersect with structural weaknesses in governance, infrastructure, and fiscal management.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **US$ 0.63 trillion** (US$ 633 bn, 2024, current prices) — World Bank WDI / IMF WEO 2024 (&lt;a href="https://www.imf.org/en/Countries/ARG" title="Argentina and the IMF">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **US$ 13,900** (current US$, 2024) — World Bank WDI / FRED (NY.GDP.PCAP.CD) (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC@WEO/ARG?utm_source=chatgpt.com" title="GDP per capita, current prices - Argentina">FRED&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>US$ 31,300&lt;/strong> PPP (2024, IMF PPPPC) (&lt;a href="https://data.worldbank.org/country/argentina?utm_source=chatgpt.com" title="Argentina | Data">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>45.7 million&lt;/strong> (2024) — World Bank population series (&lt;a href="https://www.theglobaleconomy.com/Argentina/Trade_balance/?utm_source=chatgpt.com" title="Argentina trade balance, percent of GDP">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −2.5% of GDP&lt;/strong> in 2024 (exports ≈ 15.3% of GDP, imports ≈ 12.8% of GDP → net &lt;em>exports&lt;/em> ≈ +2.5%) — World Bank / TE; record &lt;strong>US$ 18.9 bn trade surplus&lt;/strong> in 2024 (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=AR&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Argentina">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 2,780,400 km²&lt;/strong> (8th largest in the world) — World Bank / Worldometers (&lt;a href="https://en.wikipedia.org/wiki/Argentina?utm_source=chatgpt.com" title="Argentina">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Buenos Aires&lt;/strong> (&lt;a href="https://datacommons.org/ranking/Count_Person/Place/country/ARG?utm_source=chatgpt.com" title="City populations in Argentina">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Buenos Aires (metro)&lt;/strong>, &lt;strong>Córdoba&lt;/strong>, &lt;strong>Rosario&lt;/strong>, &lt;strong>Mendoza&lt;/strong>, &lt;strong>La Plata&lt;/strong>, &lt;strong>Mar del Plata&lt;/strong>, &lt;strong>San Miguel de Tucumán&lt;/strong>, &lt;strong>Salta&lt;/strong>, &lt;strong>Santa Fe&lt;/strong>, &lt;strong>Bahía Blanca&lt;/strong> (&lt;a href="https://companiesmarketcap.com/argentina/largest-companies-in-argentina-by-market-cap/?utm_source=chatgpt.com" title="Largest Argentine companies by market cap">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Agriculture &amp;amp; Food&lt;/strong>: Arcor, Molinos Río de la Plata; &lt;strong>E-commerce &amp;amp; Tech&lt;/strong>: MercadoLibre; &lt;strong>Energy &amp;amp; Utilities&lt;/strong>: YPF, Pampa Energía, Transportadora de Gas del Sur; &lt;strong>Banking &amp;amp; Finance&lt;/strong>: Grupo Financiero Galicia, Banco Macro, BBVA Argentina; &lt;strong>Media&lt;/strong>: Grupo Clarín. Core sectors include soymeal/soy oil, corn, wheat, beef, lithium, shale oil &amp;amp; gas (Vaca Muerta), autos, services &amp;amp; creative industries. (&lt;a href="https://www.ers.usda.gov/topics/international-markets-trade/countries-regions/argentina/?utm_source=chatgpt.com" title="Argentina - International Markets &amp;amp; Trade">Disfold&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Fertile &lt;strong>Pampas&lt;/strong> support large-scale soy, corn, wheat and beef exports; Argentina is a &lt;strong>top global exporter&lt;/strong> of processed soy meal/oil and among the top three in corn. (&lt;a href="https://www.imf.org/en/Countries/ARG" title="Argentina and the IMF">Wikipedia&lt;/a>) The &lt;strong>Vaca Muerta&lt;/strong> shale is one of the world’s largest shale gas/oil formations and is rapidly expanding output; oil and gas exports were ~11% of total exports in 2024 and are forecast to grow. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC@WEO/ARG?utm_source=chatgpt.com" title="GDP per capita, current prices - Argentina">Deloitte&lt;/a>) Argentina also sits in the &lt;strong>lithium triangle&lt;/strong>, with ~20% of identified global lithium resources and rising mining FDI. (&lt;a href="https://data.worldbank.org/country/argentina?utm_source=chatgpt.com" title="Argentina | Data">Vizion API&lt;/a>) Hydropower and wind/solar in Patagonia add renewable potential, and freshwater resources are ample.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Resource &lt;strong>endowment is exceptionally strong&lt;/strong> in agriculture, hydrocarbons (unconventional), and critical minerals. Constraint is not geology but &lt;strong>infrastructure, capital, and policy credibility&lt;/strong>. If pipeline, port and regulatory bottlenecks continue to ease, resources could underpin a structural move to net energy exporter and higher export revenues.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate ranges from &lt;strong>subtropical north&lt;/strong> to &lt;strong>temperate Pampas&lt;/strong> and &lt;strong>cool Patagonia/sub-Antarctic south&lt;/strong>; much of the populated core (Buenos Aires &amp;amp; Pampas) has mild winters and warm, humid summers. (&lt;a href="https://www.theglobaleconomy.com/Argentina/Trade_balance/?utm_source=chatgpt.com" title="Argentina trade balance, percent of GDP">Wikipedia&lt;/a>) Country is highly &lt;strong>urbanized (~92–93% urban)&lt;/strong> with most people in a few large metros. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=AR&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Argentina">Trading Economics&lt;/a>) Main climate risks are &lt;strong>floods, storms, droughts, heatwaves&lt;/strong>; ~60% of disasters are floods and Argentina ranks ~55/180 on climate risk indices, with events like deadly 2025 Bahía Blanca floods highlighting vulnerability and uneven infrastructure. (&lt;a href="https://en.wikipedia.org/wiki/Argentina?utm_source=chatgpt.com" title="Argentina">Climate Knowledge Portal&lt;/a>) Homicide rate (~4–5 per 100k) is &lt;strong>moderate&lt;/strong> by regional standards and lower than many Latin American peers. (&lt;a href="https://datacommons.org/ranking/Count_Person/Place/country/ARG?utm_source=chatgpt.com" title="City populations in Argentina">Wikipedia&lt;/a>) HDI is &lt;strong>0.865 (very high)&lt;/strong>. (&lt;a href="https://companiesmarketcap.com/argentina/largest-companies-in-argentina-by-market-cap/?utm_source=chatgpt.com" title="Largest Argentine companies by market cap">UNDP&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Livability is &lt;strong>quite good in major cities&lt;/strong> (education, health, culture) but uneven elsewhere. Climate is generally favorable, but &lt;strong>flood/drought risk and urban drainage deficits&lt;/strong> are meaningful downsides. Crime is an issue but &lt;strong>far below regional hot spots&lt;/strong>. High HDI offsets environmental risk → solid mid-high score rather than top tier.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-defense (60%)&lt;/strong> – Argentina is &lt;strong>geographically remote from great-power conflict zones&lt;/strong>, with the Andes shielding the west and the South Atlantic to the east; its borders with Chile, Bolivia, Paraguay, Brazil, Uruguay are relatively stable and demarcated. (&lt;a href="https://www.ers.usda.gov/topics/international-markets-trade/countries-regions/argentina/?utm_source=chatgpt.com" title="Argentina - International Markets &amp;amp; Trade">Wikipedia&lt;/a>) Long coast but no major chokepoint (unlike Panama/Suez), and interior &lt;strong>Pampas are open terrain&lt;/strong>, offering limited defensive depth but good internal mobility. Territorial disputes exist over the &lt;strong>Falklands/Malvinas and South Atlantic islands&lt;/strong>, but these are frozen, not active wars. (&lt;a href="https://www.ers.usda.gov/topics/international-markets-trade/countries-regions/argentina/?utm_source=chatgpt.com" title="Argentina - International Markets &amp;amp; Trade">Wikipedia&lt;/a>) &lt;strong>Geopolitics (40%)&lt;/strong> – Argentina is a &lt;strong>G20 member, major non-NATO ally of the US, Mercosur founding member and OECD accession candidate&lt;/strong>; it is also increasingly relevant in &lt;strong>energy &amp;amp; critical minerals&lt;/strong>, and just signed a US framework trade deal. (&lt;a href="https://www.ers.usda.gov/topics/international-markets-trade/countries-regions/argentina/?utm_source=chatgpt.com" title="Argentina - International Markets &amp;amp; Trade">Wikipedia&lt;/a>) Under President Milei, policy has pivoted toward &lt;strong>closer alignment with the US and liberal trade&lt;/strong>, securing a large IMF program and a &lt;strong>US$12 bn World Bank support package&lt;/strong>, plus expanded trade/energy ties with Brazil via Vaca Muerta gas. (&lt;a href="https://pubs.usgs.gov/periodicals/mcs2024/mcs2024.pdf?utm_source=chatgpt.com" title="USGS Mineral Commodity Summaries 2024">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography gives &lt;strong>strategic depth and insulation&lt;/strong> from major wars but also &lt;strong>distance from major markets and shipping chokepoints&lt;/strong>, limiting hard-geopolitical leverage versus, say, Turkey or Singapore. On the political side, Argentina is a &lt;strong>mid-tier but rising strategic supplier&lt;/strong> (food, gas, lithium) with diversified diplomatic options. Net effect: &lt;strong>above-average but not commanding&lt;/strong> geostrategic position.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House&lt;/strong> rates Argentina &lt;strong>85/100 – “Free”&lt;/strong>, with relatively strong electoral democracy and civil liberties. (&lt;a href="https://freedomhouse.org/country/argentina/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Argentina">Freedom House&lt;/a>) &lt;strong>Transparency International CPI 2024&lt;/strong> score is &lt;strong>37/100 (rank 99/180)&lt;/strong>, indicating significant perceived public-sector corruption. (&lt;a href="https://www.transparency.org/en/countries/argentina?utm_source=chatgpt.com" title="Argentina">Transparency.org&lt;/a>) &lt;strong>World Justice Project Rule of Law Index 2024&lt;/strong> gives an overall score around &lt;strong>0.55&lt;/strong>, ranking &lt;strong>63/142&lt;/strong>, slightly improving but still mid-table globally. (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/downloads/WJPIndex2023.pdf?utm_source=chatgpt.com" title="Rule of Law Index 2023">World Justice Project&lt;/a>) UNDP/HDI governance-related metrics place it in the &lt;strong>“very high” human development&lt;/strong> group but with notable institutional weaknesses. (&lt;a href="https://companiesmarketcap.com/argentina/largest-companies-in-argentina-by-market-cap/?utm_source=chatgpt.com" title="Largest Argentine companies by market cap">UNDP&lt;/a>) Recent commentary flags &lt;strong>concerns about executive overreach, heavy use of emergency decrees, and pressure on media/civil-society&lt;/strong> under Milei, raising questions about democratic resilience. (&lt;a href="https://www.lemonde.fr/en/opinion/article/2025/10/30/argentina-gradually-joins-the-great-authoritarian-wave-sweeping-the-globe_6746940_23.html?utm_source=chatgpt.com" title="'Argentina is gradually joining the great authoritarian wave sweeping the globe'">Le Monde.fr&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Argentina combines &lt;strong>real electoral democracy and active civil society&lt;/strong> with &lt;strong>chronic corruption, politicized institutions, and policy volatility&lt;/strong>. Formal freedoms are relatively strong, but enforcement of the rule of law is uneven and current reforms are testing institutional checks. This yields a &lt;strong>mid-range governance score&lt;/strong>, better than many regional neighbors but clearly below OECD norms.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Macro level:&lt;/strong> 2024 nominal GDP ≈ &lt;strong>US$ 633 bn**; GDP per capita ≈ **US$ 13.9k nominal&lt;/strong> and &lt;strong>≈US$ 31k PPP**, placing Argentina firmly in the **upper-middle-income** bracket. ([World Bank Open Data][15]) The economy **contracted in 2024** (IMF estimate around −2.8%), after years of very high inflation (peaking near 300%) and multiple FX crises; reforms plus harsh fiscal adjustment brought inflation down but at significant social cost. ([Reuters][16]) **Structure:** strong **agriculture/agribusiness**, manufacturing, and a growing **knowledge-based services** sector; exports remain heavily commodity-skewed (soy products, corn, beef, lithium, oil &amp; gas). ([Eximpedia][17]) 2024 saw a **record trade surplus (≈US$ 19 bn)&lt;/strong> and the &lt;strong>current account swung into surplus (~1% of GDP)&lt;/strong>, but largely via import compression and favorable commodity and energy dynamics. (&lt;a href="https://www.reuters.com/world/americas/argentina-marks-record-trade-surplus-nearly-19-bln-mileis-first-year-president-2025-01-20/?utm_source=chatgpt.com" title="Argentina marks record trade surplus at nearly $19 bln in Milei's first year as president">Reuters&lt;/a>) &lt;strong>Human capital:&lt;/strong> HDI 0.865 (“very high”), broad literacy, and diversified urban service economy. (&lt;a href="https://companiesmarketcap.com/argentina/largest-companies-in-argentina-by-market-cap/?utm_source=chatgpt.com" title="Largest Argentine companies by market cap">UNDP&lt;/a>) The IMF and World Bank are backing a stabilization and reform program (US$20 bn IMF + US$12 bn World Bank) that aims to restore growth after the shock. (&lt;a href="https://pubs.usgs.gov/periodicals/mcs2024/mcs2024.pdf?utm_source=chatgpt.com" title="USGS Mineral Commodity Summaries 2024">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Argentina has &lt;strong>considerable productive potential and human capital&lt;/strong>, but is weighed down by &lt;strong>macro instability, debt overhang, and policy stop–go cycles&lt;/strong>. Current reforms could deliver &lt;strong>medium-term growth and re-industrialization&lt;/strong>, especially around energy and critical minerals, but social and political risks are elevated. Net result: &lt;strong>solid but fragile medium-term outlook&lt;/strong>, not yet on a clearly sustainable high-growth path.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1) Exceptional resource base&lt;/strong> (world-class fertile plains, major agri exporter, large shale gas/oil in Vaca Muerta, significant lithium resources). &lt;strong>2) Relatively high human development and urbanization&lt;/strong>, with strong cultural/educational institutions and a diversified urban economy. &lt;strong>3) Geopolitical insulation from major conflicts&lt;/strong>, yet growing relevance as supplier of food, energy and critical minerals to multiple blocs. &lt;strong>4) Democratic traditions and active civil society&lt;/strong>, with media and political pluralism still present despite current tensions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1) Chronic macroeconomic instability&lt;/strong> (inflation, FX crises, debt restructurings) and &lt;strong>policy volatility&lt;/strong>, which deter investment. &lt;strong>2) Mid-level corruption and uneven rule of law&lt;/strong>, undermining contract enforcement and long-term planning. &lt;strong>3) Heavy dependence on commodity cycles&lt;/strong> and infrastructure gaps (pipelines, ports, rail) that limit full exploitation of resource potential. &lt;strong>4) Climate and disaster vulnerability&lt;/strong> (floods, droughts, extreme rainfall) plus social stresses from adjustment (poverty spikes, inequality, protests).&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Argentina is in the midst of a &lt;strong>high-risk, high-reward correction&lt;/strong>. If Milei-era liberalization and institutional reforms manage to stabilize inflation, rebuild reserves and maintain democratic checks, Argentina could become a &lt;strong>major global supplier of food, gas/LNG and lithium&lt;/strong>, lifting growth into a more sustained 3–4% range later in the decade. (&lt;a href="https://www.vizionapi.com/blog/argentinas-economic-transformation-under-javier-milei-from-crisis-to-opportunity?utm_source=chatgpt.com" title="Argentina's Economic Transformation Under Javier Milei">Vizion API&lt;/a>) But reversal of reforms, social backlash, or renewed political polarization could return the country to &lt;strong>stop-go cycles and underinvestment&lt;/strong>. Over the 2020s–2030s, Argentina is best seen as a &lt;strong>volatile mid-power with significant upside&lt;/strong>, whose realized trajectory will hinge on governance quality and the durability of its current macro stabilization.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Brazil</title><link>https://h3sun.github.io/post/2025-11-14-one-country-a-day-brazil/</link><pubDate>Fri, 14 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-14-one-country-a-day-brazil/</guid><description>&lt;h2 id="-brazil---day-45100-of-one-country-a-day-project">🇧🇷 Brazil - Day 45/100 of One Country a Day Project&lt;/h2>
&lt;p>Brazil is Latin America&amp;rsquo;s continental heavyweight: the world&amp;rsquo;s fifth-largest country by land area and population, the twelfth-largest economy, and the steward of the Amazon Basin&amp;rsquo;s vast ecological assets. From agribusiness giants in Mato Grosso and hydropower-fed aluminum plants in Pará to aerospace innovation around São José dos Campos and the fintech boom of São Paulo, Brazil wields a diversified resource base and sophisticated industrial capabilities. Yet it wrestles with chronic infrastructure gaps, social inequality, and governance volatility that periodically undercut its global ambitions. Today we launch the Latin America portion of the One Country a Day series by examining how Brazil leverages its natural wealth, continental scale, and diplomatic reach while confronting climate pressures, institutional constraints, and the challenge of sustaining inclusive growth.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 2.19 trillion&lt;/strong> in 2024 — IMF WEO via Economy of Brazil (nominal GDP USD 2,188 bn). (&lt;a href="https://www.imf.org/en/Countries/BRA" title="Brazil and the IMF">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 10,300&lt;/strong> in 2024 (IMF WEO estimate, nominal per capita USD 10,296). (&lt;a href="https://www.imf.org/en/Countries/BRA" title="Brazil and the IMF">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 22,000–22,200 (PPP)&lt;/strong> in 2024 (PPP GDP USD 4.70 tn; PPP per capita ≈ USD 22,124). (&lt;a href="https://www.imf.org/en/Countries/BRA" title="Brazil and the IMF">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>212.0 million&lt;/strong> (2024 mid-year estimate). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC@WEO/BRA?utm_source=chatgpt.com" title="GDP per capita, current prices - Brazil">Worldometer&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">2024 goods exports ≈ &lt;strong>USD 337 bn&lt;/strong>, imports ≈ &lt;strong>USD 263 bn&lt;/strong>, trade surplus ≈ &lt;strong>USD 74.5 bn&lt;/strong> (about &lt;strong>+3–4% of GDP&lt;/strong>). This implies &lt;strong>net imports ≈ −3–4% of GDP&lt;/strong> → &lt;em>structural net exporter&lt;/em>, especially in agriculture and minerals. (&lt;a href="https://www.imf.org/en/Countries/BRA" title="Brazil and the IMF">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>8,515,770 km²&lt;/strong> — 5th largest country by area. (&lt;a href="https://data.worldbank.org/country/brazil?utm_source=chatgpt.com" title="Brazil | Data">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Brasília&lt;/strong> (federal capital since 1960). (&lt;a href="https://www.theglobaleconomy.com/Brazil/Trade_balance/?utm_source=chatgpt.com" title="Brazil trade balance, percent of GDP">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>São Paulo&lt;/strong>, &lt;strong>Rio de Janeiro&lt;/strong>, &lt;strong>Brasília&lt;/strong>, &lt;strong>Salvador&lt;/strong>, &lt;strong>Fortaleza&lt;/strong>, &lt;strong>Belo Horizonte&lt;/strong>, &lt;strong>Curitiba&lt;/strong>, &lt;strong>Recife&lt;/strong>, &lt;strong>Manaus&lt;/strong>, &lt;strong>Porto Alegre&lt;/strong> — all among the country’s largest metropolitan centers. (&lt;a href="https://www.theglobaleconomy.com/Brazil/Trade_balance/?utm_source=chatgpt.com" title="Brazil trade balance, percent of GDP">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy &amp;amp; Oil/Gas:&lt;/strong> Petrobras. &lt;strong>Mining &amp;amp; Metals:&lt;/strong> Vale, CSN Mineração. &lt;strong>Agribusiness &amp;amp; Food:&lt;/strong> JBS, Marfrig, Ambev. &lt;strong>Banking &amp;amp; Finance:&lt;/strong> Itaú Unibanco, Banco do Brasil, Bradesco, BTG Pactual, Nubank. &lt;strong>Aerospace &amp;amp; Manufacturing:&lt;/strong> Embraer; diversified industrial and service sectors. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=BR&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Brazil">Companies Market Cap&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• One of the world’s most resource-rich states: vast &lt;strong>arable land&lt;/strong>, tropical &amp;amp; subtropical climates, and major river systems (Amazon, Paraná, São Francisco). • Among the &lt;strong>largest global agricultural producers and the world’s largest agricultural net exporter&lt;/strong>, top-5 producer of ~34 agricultural commodities, leading exporter of soy, coffee, sugar, beef, poultry, etc. (&lt;a href="https://www.eia.gov/international/analysis/country/BRA?utm_source=chatgpt.com" title="Brazil - U.S. Energy Information Administration">Economic Research Service&lt;/a>) • Major &lt;strong>mineral power&lt;/strong>: top iron ore exporter; &lt;strong>~95–98% of global niobium reserves and ~90–95% of global production&lt;/strong>, a critical metal for high-strength steel and advanced technologies. (&lt;a href="https://pubs.usgs.gov/periodicals/mcs2024/mcs2024.pdf?utm_source=chatgpt.com" title="USGS Mineral Commodity Summaries 2024">Revista Pesquisa Fapesp&lt;/a>) • Growing &lt;strong>pre-salt offshore oil&lt;/strong> output; oil became top export by value by 2024–25. (&lt;a href="https://www.worldbank.org/en/news/feature/2021/05/12/brazil-s-freshwater-resources-unique-and-vital?utm_source=chatgpt.com" title="Brazil's Freshwater Resources">Agência Brasil&lt;/a>) • &lt;strong>Energy mix highly renewable&lt;/strong>: ~88–90% of electricity from renewables (hydro, wind, solar, biomass), with hydropower still ~55–56% of generation. (&lt;a href="https://climateknowledgeportal.worldbank.org/country/brazil?utm_source=chatgpt.com" title="Climate Knowledge Portal - Brazil">IEA&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Extraordinary breadth and depth of land, water, biomass, minerals, and renewable energy place Brazil in the top tier globally. Constraints: deforestation, environmental degradation, and infrastructure/logistics bottlenecks reduce how effectively these assets translate into strategic power.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Climate:&lt;/strong> Predominantly tropical and subtropical; Amazon equatorial, semi-arid northeast, temperate south — many regions have comfortable year-round temperatures but increasing heat extremes. (&lt;a href="https://www.climatewatchdata.org/countries/BRA?utm_source=chatgpt.com" title="Climate Watch - Brazil">Climate Knowledge Portal&lt;/a>) • &lt;strong>Urbanization:&lt;/strong> ~&lt;strong>88% urban&lt;/strong> by 2023; dense megacities (São Paulo, Rio) coexisting with vast sparsely populated interior. (&lt;a href="https://www.cia.gov/the-world-factbook/countries/brazil/?utm_source=chatgpt.com" title="Brazil - World Factbook">TGM StatBox&lt;/a>) • &lt;strong>Climate risks:&lt;/strong> Rising temperatures and shifting rainfall patterns already impacting hydropower, agriculture, and water security; exposed to &lt;strong>droughts, floods, storms, wildfires&lt;/strong>, with significant displacement in recent years. (&lt;a href="https://www.climatewatchdata.org/countries/BRA?utm_source=chatgpt.com" title="Climate Watch - Brazil">Climate Knowledge Portal&lt;/a>) • &lt;strong>Violence &amp;amp; safety:&lt;/strong> Homicide rate fell to ~&lt;strong>18 per 100,000&lt;/strong> in 2024 — lowest in over a decade but still high by OECD standards. (&lt;a href="https://www.g20.org/en/g20-members/brazil/?utm_source=chatgpt.com" title="Brazil and the G20">Wikipedia&lt;/a>) • &lt;strong>Human Development:&lt;/strong> &lt;strong>HDI 0.786 (2023), rank 84, “high human development”&lt;/strong>, but inequality-adjusted HDI falls sharply, reflecting deep regional and social disparities. (&lt;a href="https://freedomhouse.org/country/brazil/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Brazil">Human Development Reports&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Livability is mixed: major cities offer reasonably developed infrastructure, services, and cultural amenities, but high inequality, pockets of extreme violence, and significant climate-related risks (heat, drought, floods) drag down the overall score. Strong HDI but uneven spatially and socially.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong> • Geostrategically &lt;strong>insulated&lt;/strong>: borders 10 countries but no active interstate conflicts; few plausible external military threats. • &lt;strong>Favorable defense geography&lt;/strong>: huge landmass, dense forests (Amazon), interior plateaus, and distance from major Eurasian flashpoints. • Long Atlantic coastline is commercially valuable but somewhat exposed (ports like Santos, Rio, Recife). Defense spending ≈ &lt;strong>1.1% of GDP&lt;/strong>, modest but adequate for low-threat environment. (&lt;a href="https://www.transparency.org/en/countries/brazil?utm_source=chatgpt.com" title="Transparency International - Brazil">Trading Economics&lt;/a>) &lt;strong>Geopolitics (40%)&lt;/strong> • Founding member of &lt;strong>UN, G20, BRICS, Mercosur, OAS, CPLP&lt;/strong>, etc.; hosted &lt;strong>G20 presidency in 2024&lt;/strong>; prominent Global South voice. (&lt;a href="https://www.theglobaleconomy.com/Brazil/Trade_balance/?utm_source=chatgpt.com" title="Brazil trade balance, percent of GDP">Wikipedia&lt;/a>) • Leverages role as &lt;strong>food, energy, and minerals supplier&lt;/strong> to maintain diversified relations with US, EU, China, and other BRICS states; practicing “active non-alignment.” (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/country/2023/Brazil?utm_source=chatgpt.com" title="World Justice Project Rule of Law Index - Brazil">Council on Foreign Relations&lt;/a>) • Some friction with Western partners over positions on issues such as the Ukraine war and ties with Russia/China, slightly constraining leadership ambitions. ([Le Monde.fr][19])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">In pure defense-geography terms Brazil scores very high: secure neighborhood, distance from global war theatres, and difficult interior terrain. Geopolitically it is a respected middle power with growing BRICS and G20 influence, but limited hard-power projection and some diplomatic missteps keep it below top-tier great-power status.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Political system:&lt;/strong> Federal presidential republic; competitive multiparty elections. Democracy experienced stress (impeachments, polarization, 2018–22), but institutions ultimately resisted authoritarian backsliding and transferred power in 2022–23. (&lt;a href="https://www.theglobaleconomy.com/Brazil/Trade_balance/?utm_source=chatgpt.com" title="Brazil trade balance, percent of GDP">Wikipedia&lt;/a>) • &lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>“Free”&lt;/strong>, overall score &lt;strong>72/100&lt;/strong> — strong electoral process and civil liberties, but serious problems with corruption, violence, and inequality. ([IMF][20]) • &lt;strong>Corruption:&lt;/strong> Transparency International CPI 2024 score &lt;strong>34/100 (rank 107/180)&lt;/strong> — worst ranking for Brazil to date, reflecting entrenched corruption despite Lava Jato-era reforms. ([Transparency.org][21]) • &lt;strong>Rule of law:&lt;/strong> WJP Rule of Law Index 2023 overall score ≈ &lt;strong>0.49/1&lt;/strong>, rank &lt;strong>~83/142&lt;/strong>, with particular weaknesses in criminal justice, constraints on government powers, and civil justice efficiency. ([World Justice Project][22]) • &lt;strong>State capacity:&lt;/strong> Government expenditure ≈ &lt;strong>19% of GDP&lt;/strong>; large social programs but rigid mandatory spending and complex bureaucracy. ([TheGlobalEconomy.com][23])&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are democratic and resilient, but high corruption, uneven enforcement of laws, police violence, and complex bureaucracy significantly undercut governance quality. Brazil is a functioning but imperfect democracy with chronic governance and integrity challenges.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Structure &amp;amp; size:&lt;/strong> Upper-middle income, &lt;strong>10th–11th largest economy nominally&lt;/strong>, 7th–8th in PPP; GDP ≈ &lt;strong>USD 2.19 tn&lt;/strong> in 2024. ([Wikipedia][24]) • Sector mix: services ~59%, industry ~22%, agriculture ~6% of GDP, but agribusiness and mining dominate exports (soy, beef, iron ore, oil). ([Wikipedia][24]) • &lt;strong>Growth:&lt;/strong> Real GDP growth ≈ &lt;strong>3.4% in 2024&lt;/strong>, projected ~&lt;strong>2.1–2.3%&lt;/strong> in 2025–26 (World Bank &amp;amp; OECD). (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/country/2023/Brazil?utm_source=chatgpt.com" title="World Justice Project Rule of Law Index - Brazil">OECD&lt;/a>) • &lt;strong>Trade &amp;amp; external:&lt;/strong> Persistent &lt;strong>trade surplus&lt;/strong> and strong agricultural/mineral export position; external accounts supported by large FDI stock and sizable FX reserves (~USD 360+ bn). ([Wikipedia][24]) • &lt;strong>Human development &amp;amp; inequality:&lt;/strong> HDI 0.786 (high), but &lt;strong>Gini ~0.52&lt;/strong> and large inequality-adjusted drop; deep regional disparities between richer South/Southeast and poorer North/Northeast. ([Wikipedia][24]) • &lt;strong>Reform &amp;amp; risks:&lt;/strong> Complex tax system under reform, aging demographics, and high public debt (~90% of GDP) weigh on medium-term growth; yet large market, green-energy potential, and digital finance (e.g., Nubank, PIX ecosystem) support innovation. ([Wikipedia][24])&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">A diversified, resilient, but structurally slow-growing economy. Strong export base and domestic market, plus green-energy and fintech strengths, are offset by low investment, heavy taxation/bureaucracy, inequality, and fiscal fragility.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1. &lt;strong>Unrivaled resource endowment&lt;/strong> (oil, minerals, freshwater, arable land) plus a diversified export basket spanning food, metals, energy, and aircraft. 2. &lt;strong>Continental scale and diplomatic clout&lt;/strong> within BRICS, G20, and Mercosur, giving Brazil agenda-setting power on climate, food security, and Global South finance. 3. &lt;strong>Resilient democratic institutions and vibrant civil society/media&lt;/strong>, which have repeatedly defended electoral integrity. 4. &lt;strong>Large internal market with sophisticated industry and fintech ecosystems&lt;/strong>, enabling domestic demand-led growth alongside export revenues.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1. &lt;strong>Governance and security deficits&lt;/strong>: corruption cases, organized crime, and political polarization undermine trust and policy continuity. 2. &lt;strong>Infrastructure and logistics gaps&lt;/strong>—especially ports, rail, and urban mobility—raise costs and limit competitiveness. 3. &lt;strong>Climate vulnerability and environmental degradation&lt;/strong> in the Amazon and Cerrado, threatening biodiversity, rainfall, and agricultural output. 4. &lt;strong>Social inequality and education gaps&lt;/strong> that keep productivity growth subdued and fuel urban insecurity.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Baseline forecasts point to &lt;strong>steady-but-moderate growth&lt;/strong> (≈2–2.5% real), anchored by agribusiness, energy exports, and nearshoring-friendly manufacturing. Brazil can climb the value chain by executing infrastructure concessions, simplifying taxes, decarbonizing heavy industry, and scaling bioeconomy/critical mineral projects. Downside risks stem from fiscal slippage, renewed political crises, and climate shocks; upside scenarios involve leveraging carbon markets, green hydrogen, and regional trade leadership to attract larger investment inflows.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Mexico</title><link>https://h3sun.github.io/post/2025-11-14-one-country-a-day-mexico/</link><pubDate>Fri, 14 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-14-one-country-a-day-mexico/</guid><description>&lt;h2 id="-mexico---day-47100-of-one-country-a-day-project">🇲🇽 Mexico - Day 47/100 of One Country a Day Project&lt;/h2>
&lt;p>Mexico bridges North and Latin America—a nation whose geography stretches from Baja California’s deserts to the tropical Yucatán and whose economy blends advanced manufacturing with deep cultural heritage. As the United States’ neighbor, Mexico sits at the heart of reshoring debates, the USMCA trade bloc, and North American supply chains, all while managing internal challenges ranging from organized crime to climate stress. Today’s entry asks how Mexico’s natural resources, livability, geopolitical leverage, governance, and development trajectory shape its prospects in the 2020s.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>2.0 trillion USD&lt;/strong> (2024, current prices) — upper-middle income, ~13th–15th globally. (&lt;a href="https://www.imf.org/en/Countries/MEX" title="Mexico and the IMF">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>15,000 USD&lt;/strong> (2024, current prices) — IMF / World Bank estimates. (&lt;a href="https://www.imf.org/en/Countries/MEX" title="Mexico and the IMF">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>25,800 USD PPP&lt;/strong> (IMF WEO 2024–25 PPP per capita ≈ 25.8k int’l dollars). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC@WEO/MEX?utm_source=chatgpt.com" title="GDP per capita, current prices - Mexico">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>130.9 million&lt;/strong> (2024, latest World Bank value 130,861,007). (&lt;a href="https://data.worldbank.org/country/mexico?utm_source=chatgpt.com" title="Mexico | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exports of goods &amp;amp; services ≈ &lt;strong>36.8% of GDP&lt;/strong>, imports ≈ &lt;strong>37.9%&lt;/strong> (2024) → &lt;strong>net imports ≈ +1.1% of GDP&lt;/strong> → &lt;strong>slight net importer&lt;/strong>. (&lt;a href="https://www.theglobaleconomy.com/Mexico/Trade_balance/?utm_source=chatgpt.com" title="Mexico trade balance, percent of GDP">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1,972,550 km²&lt;/strong> — 13th-largest country globally. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=MX&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Mexico">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Mexico City&lt;/strong> (CDMX). (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=MX&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Mexico">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Mexico City, Guadalajara, Monterrey, Puebla, Tijuana, León, Ciudad Juárez, Mérida, Toluca, Querétaro&lt;/strong> (by metro size / economic weight). (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=MX&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Mexico">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Oil &amp;amp; Gas:&lt;/strong> Pemex (state oil company, ~1.6–1.8 mb/d, heavy debt). (&lt;a href="https://en.wikipedia.org/wiki/Mexico?utm_source=chatgpt.com" title="Mexico">PEMEX&lt;/a>) &lt;strong>Telecom:&lt;/strong> América Móvil (regional giant, Forbes Global 2000 #1 MX). (&lt;a href="https://datacommons.org/ranking/Count_Person/Place/country/MEX?utm_source=chatgpt.com" title="City populations in Mexico">Wikipedia&lt;/a>) &lt;strong>Beverages &amp;amp; Retail:&lt;/strong> FEMSA (Coca-Cola bottling, OXXO convenience stores). (&lt;a href="https://datacommons.org/ranking/Count_Person/Place/country/MEX?utm_source=chatgpt.com" title="City populations in Mexico">Wikipedia&lt;/a>) &lt;strong>Food:&lt;/strong> Grupo Bimbo (global bakery leader). (&lt;a href="https://disfold.com/mexico/companies/?utm_source=chatgpt.com" title="Largest Mexican companies by market cap">CareerAddict&lt;/a>) &lt;strong>Mining / Metals:&lt;/strong> Grupo México, major copper/metal miner. (&lt;a href="https://pubs.usgs.gov/periodicals/mcs2024/mcs2024.pdf?utm_source=chatgpt.com" title="USGS Mineral Commodity Summaries 2024">Companies Market Cap&lt;/a>) &lt;strong>Cement:&lt;/strong> Cemex (global cement/concrete). (&lt;a href="https://www.worldbank.org/en/country/mexico/overview?utm_source=chatgpt.com" title="Mexico Overview">Co-Production International, Inc.&lt;/a>) &lt;strong>Retail:&lt;/strong> Walmart de México y Centroamérica (largest retailer in Latin America). (&lt;a href="https://www.census.gov/foreign-trade/statistics/highlights/top/top2312yr.html?utm_source=chatgpt.com" title="U.S. Trade in Goods with Mexico (2024)">Wikipedia&lt;/a>) Key sectors: &lt;strong>automotive &amp;amp; auto parts, electronics, food &amp;amp; beverages, oil &amp;amp; gas, mining, tourism, retail &amp;amp; logistics.&lt;/strong> (&lt;a href="https://freedomhouse.org/country/mexico/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Mexico">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mexico is &lt;strong>resource-rich&lt;/strong>: world’s leading silver producer (~24% of global output), with major deposits in Zacatecas, Guanajuato, etc. (&lt;a href="https://www.ebsco.com/research-starters/mining-and-mineral-resources/mexicos-natural-resources?utm_source=chatgpt.com" title="Mexico's natural resources | Research Starters">EBSCO&lt;/a>) Proven hydrocarbon reserves ~8.4 bn barrels of oil equivalent (2024), with crude reserves just under 6 bn barrels and large associated gas. (&lt;a href="https://www.argusmedia.com/en/news-and-insights/latest-market-news/2577106-mexico-s-proven-reserves-rise-despite-dip-in-crude?utm_source=chatgpt.com" title="Mexico's proven reserves rise despite dip in crude">Argus Media&lt;/a>) Vast &lt;strong>arable land&lt;/strong> in coastal plains and central plateau supports grains, fruits, vegetables, and livestock; Mexico is a major exporter of avocados, berries, beer, and processed foods. (&lt;a href="https://www.ebsco.com/research-starters/mining-and-mineral-resources/mexicos-natural-resources?utm_source=chatgpt.com" title="Mexico's natural resources | Research Starters">EBSCO&lt;/a>) Substantial &lt;strong>lithium and other minerals&lt;/strong> (copper, zinc, lead, gold), plus rich marine resources in Pacific &amp;amp; Gulf.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very strong and diversified resource base (minerals, hydrocarbons, arable land, fisheries). Main limitations are declining conventional oil production, environmental pressures, and governance issues in mining and hydrocarbon sectors.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Highly diverse climate: Tropic of Cancer splits &lt;strong>temperate north&lt;/strong> from &lt;strong>tropical south&lt;/strong>; elevation adds further variation (cooler highlands vs hot coasts). (&lt;a href="https://en.wikipedia.org/wiki/Climate_of_Mexico?utm_source=chatgpt.com" title="Climate of Mexico">Climate of Mexico&lt;/a>) Many areas have comfortable year-round temperatures (~19–22 °C in key tourist regions) with abundant sunshine. (&lt;a href="https://en.climate-data.org/north-america/mexico/mexico-21/?utm_source=chatgpt.com" title="Temperature, climate graph, Climate table for Mexico">Climate Data&lt;/a>) &lt;strong>Urbanization ~81.9%&lt;/strong> (2024) with large metro systems and growing infrastructure. (&lt;a href="https://tradingeconomics.com/mexico/urban-population-percent-of-total-wb-data.html?utm_source=chatgpt.com" title="Mexico - Urban Population (% Of Total) - 2025 Data 2026 ...">Trading Economics&lt;/a>) However, Mexico faces &lt;strong>significant natural hazards&lt;/strong>: major earthquakes (Pacific subduction zones), hurricanes on both coasts, drought in the north. (&lt;a href="https://climateknowledgeportal.worldbank.org/country/mexico?utm_source=chatgpt.com" title="Mexico - Country Overview | Climate Change Knowledge Portal">Climate Knowledge Portal&lt;/a>) Livability is heavily constrained by &lt;strong>high violent crime&lt;/strong>: homicide rate around &lt;strong>25–26 per 100,000&lt;/strong> in recent years — among the highest outside active war zones. (&lt;a href="https://www.unodc.org/documents/data-and-analysis/gsh/2023/GSH_2023_LAC_web.pdf?utm_source=chatgpt.com" title="HOMICIDE AND ORGANIZED CRIME IN LATIN AMERICA ...">UNODC&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Natural climate and geography are attractive and diverse, and core urban areas have improving infrastructure. But high crime, localized pollution, congestion, and disaster risks significantly reduce overall livability compared with its income peers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong> – Mexico has ~3,200 km of border with the U.S. plus borders with Guatemala and Belize, and long coastlines on the Pacific and Gulf/Caribbean. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=MX&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Mexico">Wikipedia&lt;/a>) Mountain ranges (Sierra Madre Occidental/Oriental, volcanic belt) create interior barriers and complicate internal control, aiding both defense and internal fragmentation. Coastal exposure and flat northern deserts make it hard to fully control flows of people and goods (migration, trafficking). &lt;strong>Geopolitics (40%)&lt;/strong> – Member of &lt;strong>USMCA&lt;/strong>, OECD, G20, APEC, CPTPP and WTO; deeply integrated into North American production networks. (&lt;a href="https://freedomhouse.org/country/mexico/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Mexico">Economy of Mexico&lt;/a>) Over 80% of merchandise exports go to the United States; U.S.–Mexico trade reached record levels in 2024, making Mexico the &lt;strong>largest goods exporter to the U.S.&lt;/strong> (&lt;a href="https://ustr.gov/countries-regions/americas/mexico?utm_source=chatgpt.com" title="Mexico | United States Trade Representative">USTR&lt;/a>) This gives strong leverage as a near-shoring hub but also exposes Mexico to U.S. tariffs and policy volatility. (&lt;a href="https://www.reuters.com/world/americas/imf-sees-mexico-growth-improving-mildly-2026-urges-debt-cuts-2025-09-19/?utm_source=chatgpt.com" title="IMF sees Mexico growth improving mildly in 2026, urges debt cuts">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography provides access to two oceans and the U.S. market, a huge advantage for trade and near-shoring. But long, porous borders and rugged interior terrain complicate security, while geopolitical dependence on the U.S. limits strategic autonomy.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> Mexico rated &lt;strong>“Partly Free”&lt;/strong>, score &lt;strong>60/100&lt;/strong>, with concerns over violence, corruption, and attacks on journalists. (&lt;a href="https://freedomhouse.org/country/mexico/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Mexico">Freedom House&lt;/a>) &lt;strong>Transparency International CPI 2024:&lt;/strong> score &lt;strong>26/100&lt;/strong>, rank &lt;strong>~140/180&lt;/strong>, indicating high perceived corruption. (&lt;a href="https://www.transparency.org/en/countries/mexico?utm_source=chatgpt.com" title="Mexico">Transparency International&lt;/a>) &lt;strong>WJP Rule of Law Index 2024:&lt;/strong> score &lt;strong>0.41&lt;/strong>, rank &lt;strong>118/143&lt;/strong> — well below global and regional averages. (&lt;a href="https://cdn-others.timesofmalta.com/c6836eb8511b72b62d3dadbb5287170099c1b582.pdf?utm_source=chatgpt.com" title="The World Justice Project The World ...">World Justice Project&lt;/a>) HDI &lt;strong>0.789 (2023, rank 81)&lt;/strong> suggests human development is relatively high for its income, but inequality and local disparities are sizeable. (&lt;a href="https://hdr.undp.org/sites/default/files/2025_HDR/HDR25_Statistical_Annex_HDI_Table.pdf?utm_source=chatgpt.com" title="Human Development Index and its components">UNDP&lt;/a>) Human Rights Watch notes structural failures in the criminal justice system: impunity, slow investigations, and risks for both victims and accused. (&lt;a href="https://www.hrw.org/report/2025/02/19/double-injustice/how-mexicos-criminal-justice-system-fails-victims-and-accused?utm_source=chatgpt.com" title="Double Injustice: How Mexico's Criminal Justice System ...">Human Rights Watch&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Formal democratic institutions exist and elections are competitive, but rule-of-law performance, judicial independence, and corruption control are weak. High levels of organized crime and impunity structurally undermine governance and investor confidence.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">2024: GDP ≈ &lt;strong>2.0 tn USD&lt;/strong>, GDP per capita ≈ &lt;strong>15k USD nominal&lt;/strong>, &lt;strong>25.8k USD PPP&lt;/strong>. (&lt;a href="https://www.imf.org/en/Countries/MEX" title="Mexico and the IMF">IMF&lt;/a>) Economic structure: services ~65%, industry ~32%, agriculture ~4%; strong &lt;strong>manufacturing base&lt;/strong> (autos, electronics), food processing, mining, oil &amp;amp; gas, and tourism. (&lt;a href="https://freedomhouse.org/country/mexico/freedom-world/2024?utm_source=chatgpt.com" title="Freedom in the World 2024 - Mexico">Economy of Mexico&lt;/a>) Trade is very open: exports 36.8% and imports 37.9% of GDP, with manufactured goods dominating and the U.S. as the key partner. (&lt;a href="https://www.theglobaleconomy.com/Mexico/Trade_balance/?utm_source=chatgpt.com" title="Mexico trade balance, percent of GDP">TheGlobalEconomy.com&lt;/a>) Growth decelerated to about &lt;strong>1.3% in 2024&lt;/strong>, and IMF projects only ~1–1.5% in mid-2020s amid trade tensions and infrastructure/fiscal constraints. (&lt;a href="https://elpais.com/mexico/economia/2025-01-30/mexico-crecio-un-13-en-2024-pese-a-la-caida-del-ultimo-trimestre.html?utm_source=chatgpt.com" title="México creció un 1,3% en 2024, pese a la caída del último trimestre">El País&lt;/a>) Strengths: macro stability, moderate inflation, near-shoring boom potential. Weaknesses: low investment, heavy &lt;strong>Pemex debt and declining oil output&lt;/strong>, institutional uncertainty, and persistent inequality/poverty (~30% in poverty). (&lt;a href="https://resourcegovernance.org/publications/national-oil-company-profile-pemex-mexico?utm_source=chatgpt.com" title="National Oil Company Profile: Pemex">NRGI&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">A diversified, industrialized economy with strong external connections and human capital, but stuck in a low-growth equilibrium due to underinvestment, infrastructure gaps, and institutional weaknesses. Near-shoring could shift this if reforms and public investment keep pace.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Large, diversified economy with a strong manufacturing base; rich in hydrocarbons, minerals (world-leading silver producer), and arable land; highly urbanized and relatively high HDI for its income; deeply integrated into North American value chains via USMCA; strategic geography with access to both Pacific and Atlantic basins and a central role in near-shoring from Asia. (&lt;a href="https://theoregongroup.com/commodities/gold/mining-in-mexico-no-more-uncertainty/?utm_source=chatgpt.com" title="Mining in Mexico, no more uncertainty">The Oregon Group&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Chronic issues with rule of law, corruption, and organized crime; high homicide rates and impunity erode social trust and business environment; heavy fiscal and operational burdens from Pemex and energy policy; strong dependence on U.S. market and vulnerability to tariffs or political frictions; underinvestment in infrastructure and human capital relative to potential. (&lt;a href="https://cdn-others.timesofmalta.com/c6836eb8511b72b62d3dadbb5287170099c1b582.pdf?utm_source=chatgpt.com" title="The World Justice Project The World ...">World Justice Project&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mexico is positioned to &lt;strong>benefit significantly from near-shoring and reconfiguration of global supply chains&lt;/strong>, especially in autos, electronics, and logistics, provided infrastructure and institutional gaps are addressed. If governance and security conditions improve, Mexico could move toward higher, sustained growth and climb into high-income status over the long term. Conversely, continued weak rule of law, Pemex-related fiscal stress, and trade tensions with the U.S. could keep growth in the ~1–2% range and lock the country into a “missing middle-income” trap. (&lt;a href="https://www.reuters.com/world/americas/imf-sees-mexico-growth-improving-mildly-2026-urges-debt-cuts-2025-09-19/?utm_source=chatgpt.com" title="IMF sees Mexico growth improving mildly in 2026, urges debt cuts">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Israel</title><link>https://h3sun.github.io/post/2025-11-13-one-country-a-day-israel/</link><pubDate>Thu, 13 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-13-one-country-a-day-israel/</guid><description>&lt;h2 id="-israel---day-44100-of-one-country-a-day-project">🇮🇱 Israel - Day 44/100 of One Country a Day Project&lt;/h2>
&lt;p>Israel stands as one of the world&amp;rsquo;s most remarkable success stories—a nation forged from adversity that has transformed itself into a global technology powerhouse and innovation hub despite profound geographic constraints and persistent security challenges. From the high-tech clusters of Tel Aviv and the &amp;ldquo;Startup Nation&amp;rdquo; ecosystem to the agricultural innovations that made the desert bloom, Israel has leveraged its human capital, strategic alliances, and entrepreneurial culture to achieve high-income status and global influence. Yet the country faces existential questions: unresolved conflicts with Palestinians, regional isolation, demographic pressures, and the ongoing challenge of balancing security imperatives with democratic values. Today we examine how this small Mediterranean state navigates its complex geopolitical environment while maintaining one of the world&amp;rsquo;s most dynamic and technologically advanced economies.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$611 billion&lt;/strong> USD — IMF WEO estimate for Israel&amp;rsquo;s GDP, current prices (around 2024) (&lt;a href="https://www.imf.org/external/datamapper/profile/ISR?utm_source=chatgpt.com" title="Israel">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$57,800&lt;/strong> USD per person — IMF GDP per capita, current prices (NGDPDPC) (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$55,800** international $ PPP per person — IMF PPP-based GDP per capita (PPPPC) (&lt;a href="https://www.imf.org/external/datamapper/profile/ISR?utm_source=chatgpt.com" title="Israel">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>9.4 million&lt;/strong> (2024) — World Bank / Worldometers latest estimates (&lt;a href="https://data.worldbank.org/country/israel?utm_source=chatgpt.com" title="Israel | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −2.4% of GDP&lt;/strong> (trade &lt;em>surplus&lt;/em> ≈ +2.42% of GDP in 2024 → net importer &lt;strong>no&lt;/strong>, net &lt;em>exporter&lt;/em> of goods &amp;amp; services overall) (&lt;a href="https://www.theglobaleconomy.com/Israel/Trade_balance/?utm_source=chatgpt.com" title="Israel Trade balance, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 22,070 km²&lt;/strong> — World Bank surface area data (&lt;a href="https://tradingeconomics.com/israel/surface-area-sq-km-wb-data.html?utm_source=chatgpt.com" title="Israel - Surface Area (sq. Km) - 2025 Data 2026 Forecast ...">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Jerusalem&lt;/strong> (seat of government and declared capital; status of East Jerusalem disputed internationally) (&lt;a href="https://en.wikipedia.org/wiki/List_of_cities_in_Israel?utm_source=chatgpt.com" title="List of cities in Israel">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Jerusalem, Tel Aviv–Yafo, Haifa, Petah Tikva, Rishon LeZion, Ashdod, Netanya, Beersheba, Holon, Bnei Brak&lt;/strong> — largest urban centers by population (&lt;a href="https://datacommons.org/ranking/Count_Person/City/country/ISR?utm_source=chatgpt.com" title="Ranking by Population - Cities in Israel - Place Rankings">Data Commons&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Highly diversified &lt;strong>advanced economy&lt;/strong>: (1) &lt;strong>High-tech &amp;amp; cyber&lt;/strong> – Check Point Software, NICE, Mobileye, Wix, monday.com, CyberArk; (2) &lt;strong>Pharma &amp;amp; chemicals&lt;/strong> – Teva Pharmaceutical, ICL Group / Dead Sea Works (potash, bromine); (3) &lt;strong>Defense &amp;amp; aerospace&lt;/strong> – Elbit Systems, Israel Aerospace Industries; (4) &lt;strong>Finance&lt;/strong> – Bank Leumi, Bank Hapoalim; (5) &lt;strong>Energy&lt;/strong> – offshore gas consortia developing Tamar &amp;amp; Leviathan fields (&lt;a href="https://disfold.com/israel/companies/?utm_source=chatgpt.com" title="Top 256 largest Israeli Companies by Market Cap">Disfold&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Offshore &lt;strong>Leviathan&lt;/strong> gas field (~22.9 TCF recoverable; ~600 bcm) and &lt;strong>Tamar&lt;/strong> give Israel sizeable natural-gas reserves and energy export capacity, underpinning large regional gas deals (e.g., long-term supply to Egypt). (&lt;a href="https://newmedenergy.com/operations/leviathan/?utm_source=chatgpt.com" title="Leviathan Natural Gas Field">NewMed Energy&lt;/a>) Significant &lt;strong>Dead Sea minerals&lt;/strong> (potash, bromine, magnesium) via ICL/Dead Sea Works; reserves of potash alone in the hundreds of Mt range, central to global fertilizer markets. (&lt;a href="https://pubs.usgs.gov/myb/vol3/2020-21/myb3-2020-21-israel.pdf?utm_source=chatgpt.com" title="The Mineral Industry of Israel in 2020-2021">U.S. Geological Survey&lt;/a>) However, arable land is limited and around 90% of national territory is arid or semi-arid with chronic water scarcity; Israel mitigates this through world-leading desalination and wastewater reuse (≈87–90% of treated wastewater reused, mostly for irrigation). (&lt;a href="https://www.researchgate.net/figure/Map-of-KOeppen-Climatic-Classi-fi-cation-of-Israel-and-the-location-of-the-study-area-with_fig1_256606928?utm_source=chatgpt.com" title="Map of KÖppen Climatic Classi fi cation of Israel and the ...">ResearchGate&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong &lt;em>strategic&lt;/em> resource endowment in &lt;strong>gas and minerals&lt;/strong>, but constrained in land and freshwater. Technology, desalination, and water recycling allow Israel to &amp;ldquo;manufacture&amp;rdquo; water and sustain intensive agriculture, yet food imports remain structurally important. Resource base is solid but not comparable to hydrocarbon giants.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Highly varied climate: &lt;strong>Mediterranean (Csa/Csb)&lt;/strong> along coastal and northern areas; &lt;strong>semi-arid (BSh/BSk)&lt;/strong> in central belt; &lt;strong>hot desert (BWh)&lt;/strong> across most of the Negev. (&lt;a href="https://ims.gov.il/he/node/2575?utm_source=chatgpt.com" title="Map of climate zones in Israel based on the Köppen ...">ims.gov.il&lt;/a>) Summers are hot and dry; winters mild and wet on the coast. Climate change is bringing rising temperatures, declining rainfall, and more frequent heatwaves. (&lt;a href="https://en.wikipedia.org/wiki/Climate_change_in_Israel?utm_source=chatgpt.com" title="Climate change in Israel">Wikipedia&lt;/a>) The country sits on the &lt;strong>Dead Sea Transform&lt;/strong> fault and is exposed to moderate but potentially damaging earthquakes. (&lt;a href="https://www.usgs.gov/programs/cmhrp/news/imaging-israels-dead-sea-fault-understand-how-continents-stretch-and-rift?utm_source=chatgpt.com" title="Imaging Israel's Dead Sea Fault to Understand How ...">U.S. Geological Survey&lt;/a>) On the livability side, Israel has &lt;strong>very high HDI (0.919, rank ≈27)&lt;/strong>, life expectancy ≈83 years, and is &amp;gt;92% urbanized, with strong health and education systems. (&lt;a href="https://hdr.undp.org/data-center/country-insights?utm_source=chatgpt.com" title="Country Insights - Human Development Reports">Human Development Reports&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Coastal and upland areas offer &lt;strong>high day-to-day livability&lt;/strong> by global standards, supported by strong infrastructure and social indicators. Risks come from &lt;strong>water stress, heat, and seismic hazards&lt;/strong>, plus localized security threats. Overall comfort and human development are high, but physical environmental constraints pull the score down slightly.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong> – Small, narrow state on the eastern Mediterranean, bordered by Lebanon, Syria, Jordan, Egypt and the Palestinian territories (Gaza, West Bank). Strategic maritime access via the Mediterranean and proximity to the Suez route and Eastern Med gas basin. Terrain includes coastal plain (exposed but urbanized), central hills (defensible interior), and the Jordan Rift Valley. The country faces potential multi-front threats from Hezbollah in Lebanon, armed groups in Gaza, and Iran-aligned actors, but has layered missile defense, air superiority, and advanced intelligence capabilities. (&lt;a href="https://www.reuters.com/world/middle-east/amid-gaza-war-israel-defence-exports-jump-13-2024-record-15-bln-2025-06-04/?utm_source=chatgpt.com" title="Amid Gaza war, Israel defence exports jump 13% in 2024 to record $15 bln">Reuters&lt;/a>) &lt;strong>Geopolitics (40%)&lt;/strong> – Close strategic alignment with the &lt;strong>United States&lt;/strong> and other Western partners; OECD and WTO member; growing ties with Gulf states via the Abraham Accords and energy cooperation with Egypt and Jordan. At the same time, the ongoing wars in Gaza and periodic escalation with Hezbollah, plus contentious policies in the West Bank, generate significant diplomatic friction and sanctions risk in some forums, and keep risk premia high; credit rating remains A/A-1 with a &lt;strong>negative outlook&lt;/strong>. (&lt;a href="https://www.reuters.com/world/middle-east/sp-affirms-israels-credit-ratings-amid-heightened-security-risks-economic-2025-05-09/?utm_source=chatgpt.com" title="S&amp;amp;P affirms Israel's credit ratings amid heightened security risks, economic uncertainty">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography gives &lt;strong>considerable strategic leverage&lt;/strong> (gas, tech, transit position) but also &lt;strong>persistent security exposure&lt;/strong> and high defense burden. Strong alliances, advanced military capabilities and regional energy/tech partnerships are partially offset by the intensity and duration of conflicts and the political costs of the occupation, yielding a solid but risk-clouded geo-score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Israel is classified &amp;ldquo;&lt;strong>Free&lt;/strong>&amp;rdquo; by Freedom House with a &lt;strong>73/100&lt;/strong> score in Freedom in the World 2024, reflecting robust elections and civil liberties for most residents while highlighting systemic discrimination and rights concerns regarding Palestinians and certain minorities. (&lt;a href="https://freedomhouse.org/country/israel/freedom-world/2024?utm_source=chatgpt.com" title="Israel: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) Transparency International&amp;rsquo;s CPI 2024 gives a &lt;strong>score of 64/100, rank 30/180&lt;/strong>, indicating relatively low perceived corruption. (&lt;a href="https://www.transparency.org/en/countries/israel?utm_source=chatgpt.com" title="Israel">Transparency.org&lt;/a>) World Bank governance indicators place Israel well above the global average on &lt;strong>rule of law&lt;/strong> (≈0.78 on a −2.5 to 2.5 scale in 2023). (&lt;a href="https://www.theglobaleconomy.com/Israel/wb_ruleoflaw/?utm_source=chatgpt.com" title="Israel Rule of law - data, chart">TheGlobalEconomy.com&lt;/a>) Israel also scores very highly in innovation and R&amp;amp;D intensity (GII 2024, #1 globally in business R&amp;amp;D share of GDP and ICT service exports share of trade). (&lt;a href="https://www.wipo.int/edocs/gii-ranking/2024/il.pdf?utm_source=chatgpt.com" title="Israel ranking in the Global Innovation Index 2024">WIPO&lt;/a>) However, recent &lt;strong>judicial reform efforts&lt;/strong> increasing political influence over judges have triggered mass protests and concern over judicial independence. (&lt;a href="https://www.reuters.com/world/middle-east/israeli-parliament-passes-law-giving-politicians-greater-say-judges-selection-2025-03-28/?utm_source=chatgpt.com" title="Israeli parliament passes law giving politicians greater say on judges' selection">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are &lt;strong>strong by global standards&lt;/strong>—competitive elections, independent courts, relatively clean administration, and world-class innovation policy. But there are &lt;strong>deep structural tensions&lt;/strong>: contested governance in occupied territories, debates over the balance of powers, and polarisation around religion, ethnicity and security. Net effect: solid but clearly under strain, with downside risk if institutional checks weaken further.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High-income, &lt;strong>advanced, innovation-driven economy&lt;/strong>. Nominal GDP ≈ $611 bn; GDP per capita ≈ $58k, PPP HDI ≈0.919. (&lt;a href="https://www.imf.org/external/datamapper/profile/ISR?utm_source=chatgpt.com" title="Israel">IMF&lt;/a>) The &lt;strong>high-tech sector&lt;/strong> contributes ≈17–20% of GDP and ~60% of exports, centred on software, cyber, AI, and advanced electronics. (&lt;a href="https://innovationisrael.org.il/en/report/the-israeli-high-tech-sector/?utm_source=chatgpt.com" title="Part 1 - The Israeli High-Tech Sector - English Innovation Site">רשות החדשנות&lt;/a>) 2024 growth slowed sharply (≈0.9%) due to the Gaza war and mobilisation, with a large &lt;strong>budget deficit (6.9% of GDP)&lt;/strong>, but OECD and S&amp;amp;P project a rebound to 3–3.5% growth in 2025 and higher thereafter, contingent on easing security risks. (&lt;a href="https://www.reuters.com/world/middle-east/oecd-sees-israeli-economic-rebound-military-conflicts-ebb-2025-04-02/?utm_source=chatgpt.com" title="OECD sees Israeli economic rebound as military conflicts ebb">Reuters&lt;/a>) Defence exports hit a **record ~$15 bn** in 2024, and cyber firms alone raised ~$4 bn that year; tech funding and M&amp;amp;A reached record levels in 2025 despite the war. (&lt;a href="https://www.reuters.com/world/middle-east/amid-gaza-war-israel-defence-exports-jump-13-2024-record-15-bln-2025-06-04/?utm_source=chatgpt.com" title="Amid Gaza war, Israel defence exports jump 13% in 2024 to record $15 bln">Reuters&lt;/a>) Gas exports (Leviathan, Tamar) underpin long-term energy revenues and regional integration. (&lt;a href="https://www.reuters.com/business/energy/israels-leviathan-signs-35-billion-natural-gas-supply-deal-with-egypt-2025-08-07/?utm_source=chatgpt.com" title="Israel's Leviathan signs $35 billion natural gas supply deal with Egypt">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">On pure &lt;strong>development &amp;amp; innovation metrics&lt;/strong>, Israel ranks among the world&amp;rsquo;s leaders: high income, very high HDI, strong human capital and a globally significant tech ecosystem. Medium-term risks come from &lt;strong>protracted conflict, fiscal strain, housing costs and inequality&lt;/strong>, but barring severe escalation, the structural base for growth and innovation remains robust.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1. &lt;strong>World-class innovation hub&lt;/strong> with top-tier R&amp;amp;D intensity, a dense startup ecosystem, and globally important cyber/AI capabilities. (&lt;a href="https://www.wipo.int/edocs/gii-ranking/2024/il.pdf?utm_source=chatgpt.com" title="Israel ranking in the Global Innovation Index 2024">WIPO&lt;/a>) 2. &lt;strong>Natural-gas and mineral endowment&lt;/strong> (Leviathan/Tamar + Dead Sea potash/bromine) providing energy security and export revenues. (&lt;a href="https://newmedenergy.com/operations/leviathan/?utm_source=chatgpt.com" title="Leviathan Natural Gas Field">NewMed Energy&lt;/a>) 3. &lt;strong>Very high human development&lt;/strong> – long life expectancy, strong education, high urbanization and advanced healthcare. (&lt;a href="https://tradingeconomics.com/israel/life-expectancy-at-birth-total-years-wb-data.html?utm_source=chatgpt.com" title="Life Expectancy At Birth, Total (years) - Israel">Trading Economics&lt;/a>) 4. &lt;strong>Strategic alliances&lt;/strong>, especially with the US and OECD partners, and growing regional economic ties via energy and tech. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Israel?utm_source=chatgpt.com" title="Economy of Israel">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1. &lt;strong>Chronic security exposure&lt;/strong> on multiple fronts (Gaza, Lebanon/Hezbollah, Iran-aligned groups), with high defence burden and periodic disruptions to growth and fiscal stability. (&lt;a href="https://www.reuters.com/world/middle-east/oecd-sees-israeli-economic-rebound-military-conflicts-ebb-2025-04-02/?utm_source=chatgpt.com" title="OECD sees Israeli economic rebound as military conflicts ebb">Reuters&lt;/a>) 2. &lt;strong>Political and governance strains&lt;/strong>: contested judicial reforms, polarised politics, rights concerns in the West Bank/Gaza, and reputational costs that may affect investment and diplomatic space. (&lt;a href="https://freedomhouse.org/country/israel/freedom-world/2024?utm_source=chatgpt.com" title="Israel: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) 3. &lt;strong>Structural constraints in land and water&lt;/strong>, plus high housing costs and inequality, limiting inclusive growth and putting pressure on infrastructure. (&lt;a href="https://www.researchgate.net/figure/Map-of-KOeppen-Climatic-Classi-fi-cation-of-Israel-and-the-location-of-the-study-area-with_fig1_256606928?utm_source=chatgpt.com" title="Map of KÖppen Climatic Classi fi cation of Israel and the ...">ResearchGate&lt;/a>) 4. Small domestic market, leading to dependence on exports and global capital flows, which amplifies exposure to external shocks. (&lt;a href="https://www.jefferies.com/wp-content/uploads/sites/4/2025/07/Israel-in-the-New-Middle-East-July-2025.pdf?utm_source=chatgpt.com" title="Israel in the New Middle East Economic Resurgence and ...">Jefferies.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Israel is likely to remain a &lt;strong>small but systemically important advanced economy&lt;/strong>, anchored by its tech, defence, and energy sectors. Baseline forecasts from the OECD and rating agencies envision a &lt;strong>post-war rebound&lt;/strong> in growth from 2025 onward, assuming some easing of hostilities. (&lt;a href="https://www.reuters.com/world/middle-east/oecd-sees-israeli-economic-rebound-military-conflicts-ebb-2025-04-02/?utm_source=chatgpt.com" title="OECD sees Israeli economic rebound as military conflicts ebb">Reuters&lt;/a>) The country&amp;rsquo;s long-term trajectory hinges on (1) whether security conflicts can be contained or partially resolved; (2) how debates over judicial reform and minority rights are navigated; and (3) the ability to broaden the benefits of high-tech growth to lagging groups and regions. A scenario of &lt;strong>continued innovation with managed, but persistent, geopolitical risk&lt;/strong> is more likely than either full regional integration or severe isolation, but tail-risks in both directions are non-trivial.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Morocco</title><link>https://h3sun.github.io/post/2025-11-13-one-country-a-day-morocco/</link><pubDate>Thu, 13 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-13-one-country-a-day-morocco/</guid><description>&lt;h2 id="-morocco---day-42100-of-one-country-a-day-project">🇲🇦 Morocco - Day 42/100 of One Country a Day Project&lt;/h2>
&lt;p>Morocco stands at the crossroads of Africa, Europe, and the Arab world—a nation that has skillfully navigated its strategic position to become one of the continent&amp;rsquo;s most stable and economically dynamic states. From the ancient medinas of Fez and Marrakech to the modernizing port of Tanger Med, Morocco bridges Mediterranean trade routes and Atlantic commerce while maintaining deep cultural and economic ties to both its Maghreb neighbors and European partners. The kingdom&amp;rsquo;s deliberate diversification beyond agriculture and phosphates into manufacturing, renewable energy, and tourism has positioned it as a regional hub for investment and logistics. Yet challenges persist: water scarcity in an increasingly arid climate, youth unemployment, and the unresolved Western Sahara question continue to shape Morocco&amp;rsquo;s trajectory. Today we examine how this North African monarchy balances tradition and modernization, resource constraints and economic ambition, regional leadership and global integration.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$155 billion USD** — IMF/World Bank-based estimates for 2024 (GDP current US$ ≈ 154–155 bn). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Morocco?utm_source=chatgpt.com" title="Economy of Morocco">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$4,100 USD** — IMF WEO 2024-style estimates (current US$ per capita). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Morocco?utm_source=chatgpt.com" title="Economy of Morocco">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$9,100 USD PPP** — IMF WEO Database 2024 (GDP PPP ≈ $398 bn, PPP per capita ≈ $9.1k). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Morocco?utm_source=chatgpt.com" title="Economy of Morocco">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>37.7 million&lt;/strong> (2024 est.) — IMF &amp;amp; Freedom House country data. (&lt;a href="https://www.imf.org/en/countries/mar?utm_source=chatgpt.com" title="Morocco and the IMF">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 9% of GDP (net importer)&lt;/strong> — trade balance in goods &amp;amp; services ≈ −9.2% of GDP in 2024 (so net imports ≈ +9.2%). (&lt;a href="https://www.theglobaleconomy.com/Morocco/Trade_balance/?utm_source=chatgpt.com" title="Morocco Trade balance, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 446,550 km²&lt;/strong> — World Bank surface area data. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km)">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Rabat&lt;/strong> — political and administrative capital. (&lt;a href="https://en.wikipedia.org/wiki/Morocco?utm_source=chatgpt.com" title="Morocco">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Casablanca&lt;/strong> (largest economic hub), &lt;strong>Rabat&lt;/strong>, &lt;strong>Fès&lt;/strong>, &lt;strong>Marrakesh&lt;/strong>, &lt;strong>Tangier&lt;/strong>, &lt;strong>Agadir&lt;/strong>, &lt;strong>Meknès&lt;/strong>, &lt;strong>Oujda&lt;/strong>, &lt;strong>Kenitra&lt;/strong>, &lt;strong>Tétouan&lt;/strong>. (&lt;a href="https://en.wikipedia.org/wiki/Morocco?utm_source=chatgpt.com" title="Morocco">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Phosphates &amp;amp; Fertilizers:&lt;/strong> OCP Group (controls ~70% of world phosphate rock reserves, major global exporter). (&lt;a href="https://www.crugroup.com/en/communities/thought-leadership/2023/morocco-mining-indaba-a-significant-phosphates-producer/?utm_source=chatgpt.com" title="Morocco: A market mover in phosphates">CRU Group Website&lt;/a>) &lt;strong>Automotive &amp;amp; EV supply chain:&lt;/strong> Renault plants in Tangier/Casablanca; Stellantis Kenitra; automotive exports hit a record &lt;strong>≈157 bn dirhams (~$17 bn) in 2024&lt;/strong>, now top export sector. (&lt;a href="https://auto.economictimes.indiatimes.com/news/industry/stellantis-expands-production-capacity-at-morocco-plant/122743779?utm_source=chatgpt.com" title="Stellantis expands production capacity at Morocco plant">ETAuto.com&lt;/a>) &lt;strong>Tourism:&lt;/strong> record &lt;strong>17.4 m visitors in 2024&lt;/strong>, ≈7% of GDP. (&lt;a href="https://www.reuters.com/world/africa/morocco-receives-174-million-tourists-2024-up-20-2023-2025-01-09/?utm_source=chatgpt.com" title="Morocco receives 17.4 million tourists in 2024, up 20% on 2023">Reuters&lt;/a>) &lt;strong>Telecoms:&lt;/strong> Maroc Telecom. (&lt;a href="https://blueberriesconsulting.com/en/quien-es-hajar-alafifi-la-lider-global-marroqui-ahora-al-frente-de-ocp-africa/?utm_source=chatgpt.com" title="Who is Hajar Alafifi? The Moroccan global leader now ...">Blueberries Consulting&lt;/a>) &lt;strong>Banking &amp;amp; finance:&lt;/strong> Attijariwafa Bank, Banque Populaire, Bank of Africa. (&lt;a href="https://reamby.substack.com/p/morocco-north-africas-industrial?utm_source=chatgpt.com" title="Morocco - North Africa's Industrial Powerhouse">Reamby&lt;/a>) &lt;strong>Aerospace &amp;amp; renewables:&lt;/strong> growing clusters around Casablanca/Tangier; mega-projects like the 580 MW Noor Ouarzazate solar complex. (&lt;a href="https://worldofrenewables.com/case-study-noor-ouarzazate-solar-complex/?utm_source=chatgpt.com" title="Case Study: Noor Ouarzazate Solar Complex">World of Renewables&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Phosphates:&lt;/strong> Morocco holds &lt;strong>≈50 bn tons&lt;/strong> of phosphate rock reserves, around &lt;strong>70% of known global reserves&lt;/strong>, giving it systemic leverage in fertilizer and (increasingly) battery supply chains. (&lt;a href="https://worldpopulationreview.com/country-rankings/phosphate-reserves-by-country?utm_source=chatgpt.com" title="Phosphate Reserves by Country 2025">World Population Review&lt;/a>) &lt;br>• &lt;strong>Other minerals:&lt;/strong> barite, cobalt, silver, lead, zinc and others, but on a far smaller scale than phosphates. (&lt;a href="https://en.wikipedia.org/wiki/Mining_industry_of_Morocco?utm_source=chatgpt.com" title="Mining industry of Morocco">Wikipedia&lt;/a>) &lt;br>• &lt;strong>Energy resources:&lt;/strong> very limited domestic oil/gas; the country is a &lt;strong>net energy importer&lt;/strong>, but has excellent &lt;strong>solar and wind potential&lt;/strong> and one of the world&amp;rsquo;s largest CSP/PV complexes at Noor Ouarzazate (580 MW). (&lt;a href="https://worldofrenewables.com/case-study-noor-ouarzazate-solar-complex/?utm_source=chatgpt.com" title="Case Study: Noor Ouarzazate Solar Complex">World of Renewables&lt;/a>) &lt;br>• &lt;strong>Renewables:&lt;/strong> renewables&amp;rsquo; share in installed power capacity rose to &lt;strong>~45% by late 2024&lt;/strong>, with a target of &lt;strong>52% by 2030&lt;/strong> (and plans to add ~7 GW of new renewables by 2027). (&lt;a href="https://www.elibrary.imf.org/downloadpdf/view/journals/002/2024/324/article-A003-en.pdf?utm_source=chatgpt.com" title="Morocco">IMF eLibrary&lt;/a>) &lt;br>• &lt;strong>Land &amp;amp; water:&lt;/strong> significant arable areas, especially in coastal plains, but &lt;strong>chronic drought, overuse of aquifers and climate change&lt;/strong> have pushed the state to invest heavily in desalination, dams and water-transfer canals. (&lt;a href="https://www.reuters.com/sustainability/boards-policy-regulation/morocco-invests-desalination-waterways-mitigate-drought-2025-06-13/?utm_source=chatgpt.com" title="Morocco invests in desalination, waterways to mitigate drought">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional &lt;strong>phosphate endowment&lt;/strong> plus strong &lt;strong>solar/wind resources&lt;/strong> give Morocco strategic weight in fertilizers, batteries and green energy. However, scarcity of fossil fuels and tightening &lt;strong>water stress&lt;/strong> limit the breadth of its resource base and create structural vulnerabilities for agriculture and rural livelihoods. Overall, an above-average but not all-round resource profile.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Climate zones:&lt;/strong> Mediterranean along the Atlantic and Mediterranean coasts, transitioning to &lt;strong>semi-arid steppe&lt;/strong> inland and &lt;strong>Sahara desert&lt;/strong> in the southeast; the &lt;strong>Atlas ranges&lt;/strong> create altitude-driven microclimates, with snow in the High Atlas (Toubkal) and cooler valleys. (&lt;a href="https://en.wikipedia.org/wiki/Geography_of_Morocco?utm_source=chatgpt.com" title="Geography of Morocco">Wikipedia&lt;/a>) &lt;br>• &lt;strong>Hazards:&lt;/strong> recurrent &lt;strong>droughts&lt;/strong> affecting crops, livestock and rural employment; heatwaves increasingly frequent; and significant &lt;strong>seismic risk&lt;/strong>, illustrated by the &lt;strong>2023 Al Haouz earthquake&lt;/strong> (Mw ~6.8–6.9, nearly 3,000 deaths, $7 bn damage). (&lt;a href="https://www.reuters.com/sustainability/boards-policy-regulation/morocco-invests-desalination-waterways-mitigate-drought-2025-06-13/?utm_source=chatgpt.com" title="Morocco invests in desalination, waterways to mitigate drought">Reuters&lt;/a>) &lt;br>• &lt;strong>Air quality &amp;amp; environment:&lt;/strong> generally better than many emerging peers (limited heavy industry concentration), but urban air pollution and traffic congestion are issues in Casablanca and other big cities. &lt;br>• &lt;strong>Livability:&lt;/strong> major cities combine relatively good infrastructure, expanding high-speed rail (Tangier–Casablanca and planned extension to Marrakesh/Agadir) and airport upgrades aiming to nearly double capacity by 2030. (&lt;a href="https://www.reuters.com/world/africa/morocco-double-airport-capacity-by-2030-2024-12-16/?utm_source=chatgpt.com" title="Morocco to double airport capacity by 2030">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Coastal and mountain areas enjoy &lt;strong>pleasant Mediterranean climates&lt;/strong> that are attractive for tourism and urban living, while the Atlas offers comfortable summer retreats. At the same time, &lt;strong>drought, water scarcity and seismic risk&lt;/strong> undermine rural resilience and expose gaps in building safety and reconstruction capacity. Infrastructure upgrades are improving livability, but climate adaptation is now a core development challenge.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: &lt;br>• &lt;strong>Location:&lt;/strong> controls long Atlantic frontage and Mediterranean access, facing Spain across the Strait of Gibraltar, giving it important sea-lane and migration-route relevance to Europe. &lt;br>• &lt;strong>Terrain:&lt;/strong> the &lt;strong>Rif and Atlas mountains&lt;/strong> provide substantial defensive depth and complicate any large-scale land incursion; desert to the southeast acts as a natural barrier. &lt;br>• &lt;strong>Borders &amp;amp; disputes:&lt;/strong> relatively stable borders with Spain (Ceuta/Melilla issues), Mauritania and Algeria; the &lt;strong>Western Sahara dispute&lt;/strong> remains unresolved but increasingly tilted diplomatically toward Rabat via the 2007 autonomy plan, which several Western states now endorse as &amp;ldquo;serious and credible.&amp;rdquo; (&lt;a href="https://en.wikipedia.org/wiki/Western_Sahara_Autonomy_Proposal?utm_source=chatgpt.com" title="Western Sahara Autonomy Proposal">Wikipedia&lt;/a>) &lt;br>&lt;br>&lt;strong>Geopolitics (40%)&lt;/strong>: &lt;br>• &lt;strong>Alliances:&lt;/strong> designated a &lt;strong>Major Non-NATO Ally&lt;/strong> of the US in 2004, underpinning deep defense cooperation and regular joint exercises. (&lt;a href="https://www.federalregister.gov/documents/2004/06/18/04-13951/designation-of-the-kingdom-of-morocco-as-a-major-non-nato-ally?utm_source=chatgpt.com" title="Designation of the Kingdom of Morocco as a Major Non- ...">Federal Register&lt;/a>) &lt;br>• &lt;strong>EU ties:&lt;/strong> Euro-Mediterranean Association Agreement in force since 2000; &lt;strong>&amp;ldquo;advanced status&amp;rdquo;&lt;/strong> with the EU since 2008; EU is Morocco&amp;rsquo;s top trade and investment partner. (&lt;a href="https://trade.ec.europa.eu/access-to-markets/en/content/eu-morocco-association-agreement?utm_source=chatgpt.com" title="EU-Morocco Association Agreement | Access2Markets">EU Trade&lt;/a>) &lt;br>• &lt;strong>Regional role:&lt;/strong> rejoined the &lt;strong>African Union in 2017&lt;/strong>, with active economic diplomacy in West and Central Africa; co-host of the 2030 FIFA World Cup with Spain and Portugal. (&lt;a href="https://www.aljazeera.com/news/2017/1/31/morocco-rejoins-the-african-union-after-33-years?utm_source=chatgpt.com" title="Morocco rejoins the African Union after 33 years">Al Jazeera&lt;/a>) &lt;br>• &lt;strong>Middle East diplomacy:&lt;/strong> normalization with Israel in 2020 under the Abraham Accords, in exchange for US recognition of Moroccan sovereignty claims over Western Sahara; this boosts security cooperation but also generates domestic and regional controversy. (&lt;a href="https://en.wikipedia.org/wiki/Israel%E2%80%93Morocco_normalization_agreement?utm_source=chatgpt.com" title="Israel–Morocco normalization agreement">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Morocco couples &lt;strong>strong geographic defensibility&lt;/strong> (mountain belts, desert buffers) with a highly advantageous position as a &lt;strong>bridge between Europe and Africa&lt;/strong>. Its status as a &lt;strong>US Major Non-NATO Ally&lt;/strong>, deep EU ties, and growing African footprint raise its geopolitical weight. The main drag is the &lt;strong>Western Sahara conflict&lt;/strong> and tense rivalry with Algeria, which absorbs diplomatic bandwidth and defense resources, but overall the geo-position is solidly favorable.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Political system:&lt;/strong> constitutional monarchy with significant executive power concentrated in the king; multiparty elections exist but with constrained opposition and limited parliamentary influence. &lt;br>• &lt;strong>Democracy/freedom:&lt;/strong> Freedom House 2024 rates Morocco &lt;strong>37/100 (&amp;ldquo;Partly Free&amp;rdquo;)&lt;/strong>, with concerns over limits on political rights, civil liberties, and repression of activists and online speech. (&lt;a href="https://freedomhouse.org/country/morocco/freedom-world/2024?utm_source=chatgpt.com" title="Morocco: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) &lt;br>• &lt;strong>Corruption:&lt;/strong> Transparency International&amp;rsquo;s CPI 2024 gives Morocco a score of &lt;strong>37/100&lt;/strong>, ranking &lt;strong>99th of 180&lt;/strong> — worse than the global average and slightly below the MENA regional mean. (&lt;a href="https://www.transparency.org/en/countries/morocco?utm_source=chatgpt.com" title="Morocco">Transparency.org&lt;/a>) &lt;br>• &lt;strong>Rule of law:&lt;/strong> World Justice Project&amp;rsquo;s 2024 Rule of Law Index places Morocco &lt;strong>92nd of 142 countries&lt;/strong>, with an overall score around &lt;strong>0.48&lt;/strong>, reflecting middling performance, relatively better on order/security than on fundamental rights and accountability. (&lt;a href="https://worldjusticeproject.org/sites/default/files/documents/Morocco_2.pdf?utm_source=chatgpt.com" title="Morocco Ranks 92 out of 142 in the ...">World Justice Project&lt;/a>) &lt;br>• &lt;strong>Human rights &amp;amp; civic space:&lt;/strong> prosecutions of activists (including those criticizing earthquake response and ties with Israel) highlight underlying constraints on dissent. (&lt;a href="https://www.reuters.com/world/africa/moroccan-activist-defending-quake-victims-gets-jail-sentence-2025-03-04/?utm_source=chatgpt.com" title="Moroccan activist defending quake victims gets jail sentence">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are &lt;strong>more stable and capable&lt;/strong> than in many low-income states, and Morocco scores better than some regional peers on order, security and basic administration. However, &lt;strong>concentrated executive power&lt;/strong>, persistent corruption, limited judicial independence and recurring crackdowns on activists keep the country in the &lt;strong>&amp;ldquo;partly free / mid-range rule-of-law&amp;rdquo;&lt;/strong> band. Incremental reforms have not yet translated into substantial improvements in scores.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Income level &amp;amp; structure:&lt;/strong> lower-middle-income country with nominal GDP ~$155 bn and per-capita income ~$4.1k (≈$9.1k PPP). Services dominate GDP, with **industry (especially automotive, phosphates and aerospace) gaining share**. ([Wikipedia][1]) &lt;br>• **Growth:** the World Bank projects **~2.9% real GDP growth in 2024**, slowed by agricultural contraction due to drought but supported by robust non-agricultural activity; a stronger rebound is expected from 2025. ([World Bank][27]) &lt;br>• **Key sectors:** &lt;br>– **Automotive:** exports hit a record **157 bn dirhams (~$17 bn) in 2024**, making cars and parts the top export and drawing major EV-battery investments. (&lt;a href="https://auto.economictimes.indiatimes.com/news/industry/stellantis-expands-production-capacity-at-morocco-plant/122743779?utm_source=chatgpt.com" title="Stellantis expands production capacity at Morocco plant">ETAuto.com&lt;/a>) &lt;br>– &lt;strong>Phosphates/fertilizers:&lt;/strong> OCP is a global champion and key foreign-currency earner. (&lt;a href="https://www.crugroup.com/en/communities/thought-leadership/2023/morocco-mining-indaba-a-significant-phosphates-producer/?utm_source=chatgpt.com" title="Morocco: A market mover in phosphates">CRU Group Website&lt;/a>) &lt;br>– &lt;strong>Tourism:&lt;/strong> &lt;strong>17.4 m tourists in 2024&lt;/strong>, 20% up on 2023; tourism ≈7% of GDP and crucial for jobs and FX. (&lt;a href="https://www.reuters.com/world/africa/morocco-receives-174-million-tourists-2024-up-20-2023-2025-01-09/?utm_source=chatgpt.com" title="Morocco receives 17.4 million tourists in 2024, up 20% on 2023">Reuters&lt;/a>) &lt;br>– &lt;strong>Renewables &amp;amp; green industries:&lt;/strong> aggressive pipeline to reach &lt;strong>52% of installed capacity from renewables by 2030&lt;/strong>, linked to green hydrogen and battery value-chains. (&lt;a href="https://www.elibrary.imf.org/downloadpdf/view/journals/002/2024/324/article-A003-en.pdf?utm_source=chatgpt.com" title="Morocco">IMF eLibrary&lt;/a>) &lt;br>• &lt;strong>Macro stability:&lt;/strong> fiscal deficit narrowed to about &lt;strong>4% of GDP in 2024&lt;/strong>, with ongoing consolidation; current-account deficits are moderate but the country remains a &lt;strong>net importer&lt;/strong>, especially of energy and some foodstuffs. (&lt;a href="https://www.bkam.ma/en/content/download/829003/9037353/EN%20Communiqu%C3%A9%20RA%202024_F.pdf?utm_source=chatgpt.com" title="PRESS RELEASE">bkam.ma&lt;/a>) &lt;br>• &lt;strong>Social outcomes:&lt;/strong> UNDP classifies Morocco as &lt;strong>&amp;ldquo;High Human Development&amp;rdquo;&lt;/strong> but near the lower end of that group, with stubborn &lt;strong>youth unemployment, rural poverty and informality&lt;/strong>; per-capita consumption has only just re-reached pre-COVID levels. (&lt;a href="https://barlamantoday.com/2025/05/07/morocco-ranks-120th-in-un-human-development-index-as-a-high-development-country/?utm_source=chatgpt.com" title="Morocco Ranks 120th in UN Human Development Index as ...">Barlaman Today&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Morocco&amp;rsquo;s economy is &lt;strong>diversified for its income level&lt;/strong>, with globally competitive clusters in &lt;strong>automotive, fertilizers, tourism and renewables&lt;/strong>. Macroeconomic management is generally prudent. Yet growth is &lt;strong>volatile (drought-sensitive)&lt;/strong>, social inclusion lags, and the investment climate still suffers from bureaucracy, governance concerns and limited competition. Medium-term prospects are good if reforms keep pace with ambitious industrial and green-transition plans.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">• &lt;strong>Strategic geography&lt;/strong> at the junction of Atlantic, Mediterranean and Africa–Europe trade/migration routes, with good defensive terrain and deep ties to both the EU and US.&lt;br>• &lt;strong>Extraordinary phosphate reserves&lt;/strong> and strong &lt;strong>automotive, fertilizer, tourism and renewable-energy sectors&lt;/strong>, giving Morocco a more diversified base than many resource-rich peers.&lt;br>• &lt;strong>Relatively robust institutions and macro management&lt;/strong> for its income bracket; inflation and fiscal deficits are being contained while still funding large infrastructure and social programs.&lt;br>• Ambitious &lt;strong>green transition strategy&lt;/strong> (renewables ~45% of installed capacity, coal phase-out by ~2040, big investments in solar, wind, LNG and transmission), positioning the country as a potential &lt;strong>green-energy and battery hub&lt;/strong> for Europe and Africa. (&lt;a href="https://www.elibrary.imf.org/downloadpdf/view/journals/002/2024/324/article-A003-en.pdf?utm_source=chatgpt.com" title="Morocco">IMF eLibrary&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>| &lt;strong>Weaknesses&lt;/strong> | • &lt;strong>Governance constraints&lt;/strong>: persistent corruption, limited judicial independence, and restrictions on civil liberties keep Morocco in the &amp;ldquo;partly free&amp;rdquo; governance band, which can weigh on innovation, entrepreneurship and social trust. (&lt;a href="https://freedomhouse.org/country/morocco/freedom-world/2024?utm_source=chatgpt.com" title="Morocco: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) &lt;br>• &lt;strong>High dependence on imported energy and food&lt;/strong>, with structurally negative net trade in goods and services (~9% of GDP net imports). (&lt;a href="https://www.theglobaleconomy.com/Morocco/Trade_balance/?utm_source=chatgpt.com" title="Morocco Trade balance, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>) &lt;br>• &lt;strong>Climate vulnerability&lt;/strong>: multi-year droughts, water stress and seismic risk (as seen in the 2023 earthquake) create ongoing reconstruction burdens and threaten rural livelihoods. (&lt;a href="https://www.reuters.com/sustainability/boards-policy-regulation/morocco-invests-desalination-waterways-mitigate-drought-2025-06-13/?utm_source=chatgpt.com" title="Morocco invests in desalination, waterways to mitigate drought">Reuters&lt;/a>) &lt;br>• &lt;strong>Social inclusion gaps&lt;/strong>: high youth unemployment, regional inequality (especially in rural and Amazigh mountain areas) and relatively modest HDI performance compared with upper-middle-income aspirants. (&lt;a href="https://www.worldbank.org/en/news/press-release/2024/07/18/morocco-s-economy-proves-resilient-but-private-sector-faces-challenges?utm_source=chatgpt.com" title="Morocco's Economy Proves Resilient but Private Sector ...">World Bank&lt;/a>) |&lt;/p>
&lt;p>| &lt;strong>Trajectory (2020s–2030s)&lt;/strong> | Morocco is likely to &lt;strong>continue its gradual rise as a mid-tier regional power&lt;/strong> and Africa–Europe bridge. The strategy centers on: (1) consolidating status as a &lt;strong>manufacturing and logistics hub&lt;/strong> (ports like Tanger Med, high-speed rail, airport expansion, and deepening automotive/aerospace clusters); (2) leveraging &lt;strong>phosphate and renewable-energy advantages&lt;/strong> to move up the value chain into green hydrogen, EV batteries and advanced fertilizers; and (3) sustaining &lt;strong>tourism growth&lt;/strong> ahead of hosting AFCON 2025 and the 2030 World Cup. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Morocco?utm_source=chatgpt.com" title="Economy of Morocco">Wikipedia&lt;/a>) The key uncertainties are internal governance reform, successful adaptation to climate change, and how the &lt;strong>Western Sahara dispute&lt;/strong> evolves—issues that will shape whether Morocco climbs into the higher ranks of emerging economies or remains structurally constrained just below that tier. |&lt;/p>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Oman</title><link>https://h3sun.github.io/post/2025-11-13-one-country-a-day-oman/</link><pubDate>Thu, 13 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-13-one-country-a-day-oman/</guid><description>&lt;h2 id="-oman---day-43100-of-one-country-a-day-project">🇴🇲 Oman - Day 43/100 of One Country a Day Project&lt;/h2>
&lt;p>Oman occupies a unique position in the Arabian Peninsula—a sultanate that has carved out a distinctive role as a neutral mediator and stable partner in a volatile region. From its strategic location controlling the Strait of Hormuz, one of the world&amp;rsquo;s most critical maritime chokepoints, to its Musandam exclave that overlooks Persian Gulf shipping lanes, Oman wields geopolitical influence far beyond its modest population of 5.3 million. The country has leveraged its hydrocarbon wealth to build strong institutions, achieve very high human development, and pursue ambitious diversification through Vision 2040. Yet Oman faces profound challenges: severe water scarcity in an arid climate, dependence on finite oil and gas reserves, and the structural constraints of a small domestic market. Today we examine how this Gulf state balances its strategic geography, resource wealth, and diplomatic neutrality to navigate an uncertain regional and global landscape.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 105–110 billion&lt;/strong> — IMF Article IV table for Oman gives nominal GDP of about &lt;strong>USD 105.9–109.9 bn&lt;/strong> around 2023–24. (&lt;a href="https://www.imf.org/en/news/articles/2025/01/22/pr25011-oman-imf-executive-board-concludes-2024-article-iv-consultation?utm_source=chatgpt.com" title="IMF Executive Board Concludes 2024 Article IV ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 20,000–20,300&lt;/strong> — World Bank economy profile shows &lt;strong>USD 20,248&lt;/strong> per capita in current US$ for 2024. (&lt;a href="https://data360.worldbank.org/en/economy/OMN?utm_source=chatgpt.com" title="Oman - Economy">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 42,000&lt;/strong> (international dollars, PPP) — IMF WEO PPP per-capita series (PPPPC). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>5.3 million&lt;/strong> (2024) — World Bank population estimate; other datasets put 2025 population around 5.5m. (&lt;a href="https://data.worldbank.org/?locations=OM-XD&amp;amp;utm_source=chatgpt.com" title="Data for Oman, High income">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>−15% of GDP&lt;/strong> (net &lt;strong>exports&lt;/strong>) — external balance of goods &amp;amp; services shows a surplus around &lt;strong>16% of GDP&lt;/strong> recently, while the current-account surplus is about &lt;strong>2–3% of GDP&lt;/strong> in 2023–24. (&lt;a href="https://chartingtheglobe.com/region/oman/trade/trade-balance?indicator=balance-goods-and-services-gdp-percentage&amp;amp;utm_source=chatgpt.com" title="External balance of trade in goods and services ...">chartingtheglobe.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈309,500 km²&lt;/strong> — World Bank / UNCTAD land area. (&lt;a href="https://unctadstat.unctad.org/CountryProfile/GeneralProfile/en-GB/512/index.html?utm_source=chatgpt.com" title="General Profile: Oman | UNCTADstat Data Hub">UNCTADstat&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Muscat&lt;/strong> — capital and largest city. (&lt;a href="https://en.wikipedia.org/wiki/Oman?utm_source=chatgpt.com" title="Oman">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Muscat, Seeb, Salalah, Bawshar, Sohar, As Suwayq, Ibri, Saham, Barka, Rustaq, Nizwa, Sur&lt;/strong> — based on recent city population rankings. (&lt;a href="https://www.worldometers.info/world-population/oman-population/?utm_source=chatgpt.com" title="Oman Population (2025)">Worldometer&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy / Hydrocarbons:&lt;/strong> Petroleum Development Oman (PDO – main oil &amp;amp; gas producer), OQ (state energy &amp;amp; petrochemicals group), Oman LNG. (&lt;a href="https://en.wikipedia.org/wiki/Petroleum_Development_Oman?utm_source=chatgpt.com" title="Petroleum Development Oman">Wikipedia&lt;/a>) &lt;strong>Finance:&lt;/strong> Bank Muscat (largest bank; on Forbes Middle East lists). (&lt;a href="https://en.wikipedia.org/wiki/Bank_Muscat?utm_source=chatgpt.com" title="Bank Muscat">Wikipedia&lt;/a>) &lt;strong>Telecoms / ICT:&lt;/strong> Omantel (leading integrated telecom operator). (&lt;a href="https://www.omantel.om/About%20us/?utm_source=chatgpt.com" title="About Oman Telecommunications Company | Omantel">Omantel&lt;/a>) &lt;strong>Logistics &amp;amp; Ports:&lt;/strong> Port of Duqm &amp;amp; Special Economic Zone at Duqm (SEZAD), plus Sohar and Salalah ports, as logistics/industrial hubs. (&lt;a href="https://www.asyad.om/ports/duqm-port?utm_source=chatgpt.com" title="Duqm Port">ASYAD&lt;/a>) &lt;strong>Emerging sectors:&lt;/strong> tourism, mining (copper, chromite, gold), fisheries, and renewables under Vision 2040 diversification agenda. (&lt;a href="https://blogs.worldbank.org/en/arabvoices/oman-vision-2040-a-blueprint-for-sustainable-growth-and-global-integration?utm_source=chatgpt.com" title="Oman Vision 2040: A Blueprint for Sustainable Growth and ...">World Bank Blogs&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oman is a &lt;strong>medium-size hydrocarbon power&lt;/strong>: largest non-OPEC oil producer in the Middle East, but a full OPEC+ participant; PDO and OQ dominate production. (&lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=24632?utm_source=chatgpt.com" title="Oman is the largest non-OPEC oil producer in the Middle ...">U.S. Energy Information Administration&lt;/a>) Proven oil &amp;amp; gas resources are significant but not on Saudi/Qatari scale. The country has substantial &lt;strong>mineral deposits&lt;/strong> (copper, chromite, gold) in sedimentary formations, and around &lt;strong>82% of land is desert&lt;/strong>. (&lt;a href="https://mara.om/about-oman/presentation/geography/?utm_source=chatgpt.com" title="Geography">Mara&lt;/a>) Arable land and freshwater are scarce; Oman is ranked among the &lt;strong>most water-stressed states globally&lt;/strong>, with rising soil salinity. (&lt;a href="https://belonging.berkeley.edu/climatedisplacement/case-studies/oman?utm_source=chatgpt.com" title="Oman Case Study | Climate Refugees">Othering &amp;amp; Belonging Institute&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong energy and mineral base for a small population, plus strategic hydrocarbon role in OPEC+. But severe water scarcity, limited arable land, and finite reserves constrain long-term resource depth compared to major Gulf peers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate is &lt;strong>hot arid desert&lt;/strong> over most of the territory, with coastal humidity and a unique &lt;strong>khareef monsoon&lt;/strong> in Dhofar (Salalah) that brings seasonal greenery and milder temperatures. (&lt;a href="https://www.audleytravel.com/us/oman/best-time-to-visit?utm_source=chatgpt.com" title="Best Time to Visit Oman | Climate Guide">Audley Travel&lt;/a>) Oman faces &lt;strong>tropical cyclones, flash floods, sand/dust storms and droughts&lt;/strong>, with research noting increasing cyclone intensity and April 2024 extreme rainfall events. (&lt;a href="https://www.tandfonline.com/doi/full/10.1080/1755876X.2024.2444753?utm_source=chatgpt.com" title="Review of tropical cyclones impacting the Western Arabian ...">Taylor &amp;amp; Francis Online&lt;/a>) Despite harsh climate, &lt;strong>life expectancy ~80.5 years&lt;/strong> and under-5 mortality below 10 per 1,000 indicate solid health outcomes and infrastructure. (&lt;a href="https://www.worldometers.info/world-population/oman-population/?utm_source=chatgpt.com" title="Oman Population (2025)">Worldometer&lt;/a>) Urban livability is relatively high in Muscat and major cities, but outdoor comfort and water security are structural challenges.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High human-development and service delivery partially offset a physically harsh, water-stressed and climate-risk-exposed environment. Livability is good by regional standards but heavily dependent on infrastructure, desalination and energy.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Oman controls long stretches of Arabian Sea &amp;amp; Gulf of Oman coastline, plus the &lt;strong>Musandam exclave at the Strait of Hormuz&lt;/strong>, a world-critical chokepoint. (&lt;a href="https://en.wikipedia.org/wiki/Geography_of_Oman?utm_source=chatgpt.com" title="Geography of Oman">Wikipedia&lt;/a>) The Al Hajar Mountains form a defensive barrier between coast and interior; ~82% desert interior makes large-scale invasion costly. (&lt;a href="https://www.omansultanate.com/geography.htm?utm_source=chatgpt.com" title="Oman Sultanate Geography">Oman Sultanate&lt;/a>) Land borders with UAE, Saudi Arabia, and Yemen expose it to the broader Arabian Peninsula security environment, but Oman has avoided direct involvement in regional wars. &lt;strong>Geo-Politics (40%)&lt;/strong>: Member of &lt;strong>GCC&lt;/strong> and an active &lt;strong>OPEC+ partner&lt;/strong> (though not an OPEC member), giving it voice in Gulf energy diplomacy. (&lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=24632?utm_source=chatgpt.com" title="Oman is the largest non-OPEC oil producer in the Middle ...">U.S. Energy Information Administration&lt;/a>) Oman is internationally recognized as a &lt;strong>neutral mediator&lt;/strong>—hosting secret Iran–US talks, mediating ceasefires (e.g., US–Houthis) and regional negotiations, and keeping balanced ties with Iran, GCC states, and Western partners. (&lt;a href="https://www.mdpi.com/2076-0760/14/9/511?utm_source=chatgpt.com" title="Oman's Niche Diplomacy: Middle Power Strategies in a ...">MDPI&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography gives Oman both &lt;strong>defensive depth&lt;/strong> and outsized &lt;strong>strategic leverage&lt;/strong> via Hormuz and Indian Ocean access. Its long-standing &amp;ldquo;quiet diplomacy&amp;rdquo; multiplies this leverage, though small size and proximity to volatile neighbours remain structural vulnerabilities.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oman is an &lt;strong>absolute monarchy&lt;/strong> (Sultanate) with limited political pluralism. Freedom House 2024 rates it &lt;strong>&amp;ldquo;Not Free&amp;rdquo; with 24/100&lt;/strong> (Political Rights 6/40, Civil Liberties 18/60). (&lt;a href="https://freedomhouse.org/country/oman/freedom-world/2024?utm_source=chatgpt.com" title="Oman: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) However, institutional performance is stronger on technocratic dimensions: World Bank &lt;strong>rule-of-law index around 0.61 (rank ~52/200+)&lt;/strong>, above many regional peers. (&lt;a href="https://www.theglobaleconomy.com/rankings/wb_ruleoflaw/?utm_source=chatgpt.com" title="Rule of law by country, around the world">TheGlobalEconomy.com&lt;/a>) &lt;strong>HDI 0.858 (2023)&lt;/strong> puts Oman firmly in the &amp;ldquo;very high human development&amp;rdquo; category. (&lt;a href="https://statbase.org/data/omn-human-development-index/?utm_source=chatgpt.com" title="Human development index | Oman – yearly data, chart ...">Statbase&lt;/a>) Corruption perceptions have &lt;strong>improved sharply&lt;/strong>: Transparency International&amp;rsquo;s 2024 CPI gives Oman &lt;strong>score 55/100, rank 50/180 and 4th in the Arab world&lt;/strong>, up from 43. (&lt;a href="https://en.wikipedia.org/wiki/Corruption_in_Oman?utm_source=chatgpt.com" title="Corruption in Oman">Wikipedia&lt;/a>) Administrative capacity in finance, infrastructure delivery and macro-management is relatively strong, but political rights and open contestation remain constrained.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Political system is &lt;strong>authoritarian but competent&lt;/strong>: low political freedoms, yet comparatively good bureaucratic quality, improving anti-corruption record and solid rule-of-law scores. This is favourable for stability and long-term planning, but limits civic participation and accountability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Upper-middle-income economy with &lt;strong>nominal GDP ≈USD 105–110 bn&lt;/strong> and &lt;strong>per-capita income ≈USD 20k (USD 42k PPP)&lt;/strong>. (&lt;a href="https://www.imf.org/en/news/articles/2025/01/22/pr25011-oman-imf-executive-board-concludes-2024-article-iv-consultation?utm_source=chatgpt.com" title="IMF Executive Board Concludes 2024 Article IV ...">IMF&lt;/a>) IMF and national sources report &lt;strong>real GDP growth around 1.2–1.7% in 2023–24&lt;/strong>, reflecting modest hydrocarbon output but solid non-oil expansion in manufacturing, logistics, tourism and renewables. (&lt;a href="https://www.imf.org/en/news/articles/2025/01/22/pr25011-oman-imf-executive-board-concludes-2024-article-iv-consultation?utm_source=chatgpt.com" title="IMF Executive Board Concludes 2024 Article IV ...">IMF&lt;/a>) Fiscal accounts show &lt;strong>continued surpluses&lt;/strong> (around 4–7% of GDP in recent years) and declining public debt, thanks to hydrocarbon revenues and fiscal reforms. (&lt;a href="https://documents1.worldbank.org/curated/en/099557110152440867/pdf/IDU-1729930a-7be3-47ed-9231-cd0088eaca72.pdf?utm_source=chatgpt.com" title="OMAN">World Bank&lt;/a>) External accounts record &lt;strong>current-account surpluses ~2–3% of GDP and large trade surpluses&lt;/strong>, highlighting strong net-exporter status. (&lt;a href="https://fred.stlouisfed.org/series/OMNBCAGDPGDPPT?utm_source=chatgpt.com" title="Current Account Balance for Oman (OMNBCAGDPGDPPT)">FRED&lt;/a>) &lt;strong>Vision 2040&lt;/strong> targets diversification into fisheries, mining, manufacturing, logistics, tourism and ICT, with Duqm and other SEZs as key platforms. (&lt;a href="https://blogs.worldbank.org/en/arabvoices/oman-vision-2040-a-blueprint-for-sustainable-growth-and-global-integration?utm_source=chatgpt.com" title="Oman Vision 2040: A Blueprint for Sustainable Growth and ...">World Bank Blogs&lt;/a>) Challenges: small domestic market, youth employment pressures, and ongoing dependence on hydrocarbon cycles despite progress.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oman has moved into a &lt;strong>more resilient macro position&lt;/strong> (low debt, fiscal and external surpluses) and is making real diversification gains. Still, oil &amp;amp; gas remain central, and medium-term growth is likely moderate rather than explosive unless productivity and private-sector dynamism accelerate.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1) &lt;strong>Strategic geography&lt;/strong> at the mouth of the Strait of Hormuz and along key Indian Ocean sea lanes, backed by defensible mountains and desert. 2) &lt;strong>Significant hydrocarbon and mineral endowment&lt;/strong> relative to population, delivering sustained trade and current-account surpluses. 3) &lt;strong>Technocratic governance&lt;/strong> with improving corruption scores, strong macro-fiscal management, and very-high HDI outcomes. 4) &lt;strong>Distinct diplomatic brand&lt;/strong> as a neutral mediator between rival regional and global powers, increasing Oman&amp;rsquo;s geopolitical value beyond its size. 5) &lt;strong>Vision 2040 diversification push&lt;/strong> focusing on logistics (Duqm), tourism, mining, fisheries and ICT, supported by SEZs and infrastructure investment.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">1) &lt;strong>Severe water scarcity and environmental stress&lt;/strong>, with Oman among the most water-stressed countries and heavily reliant on desalination. 2) &lt;strong>Climate and disaster risk&lt;/strong> from tropical cyclones, flash floods, heat, and dust storms, with vulnerability rising under climate change. 3) &lt;strong>High dependence on hydrocarbons&lt;/strong>, leaving fiscal and external positions exposed to oil-price cycles despite diversification efforts. 4) &lt;strong>Limited political pluralism and civil liberties&lt;/strong>, as reflected in &amp;ldquo;Not Free&amp;rdquo; ratings, which may constrain innovation, civic trust and long-term legitimacy. 5) &lt;strong>Small domestic market &amp;amp; demographic pressures&lt;/strong>, including youth employment and skills-matching challenges.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oman is likely to &lt;strong>remain a stable, mid-income Gulf state&lt;/strong> that gradually deepens diversification rather than &amp;ldquo;leapfrogging&amp;rdquo; into post-hydrocarbon status. If Vision 2040 reforms continue, and Duqm/logistics, tourism and green-energy projects scale up, per-capita income and economic complexity should improve, even as hydrocarbons remain important. Diplomatically, Oman&amp;rsquo;s &lt;strong>mediator role&lt;/strong> and participation in OPEC+ and GCC will keep it relevant in regional security and energy governance. Key downside risks involve &lt;strong>climate impacts, water security, prolonged low oil prices, or regional conflict spillovers&lt;/strong>; upside scenarios involve successful attraction of investment into logistics, renewables and advanced services, turning Oman into a niche hub linking the Gulf, Indian Ocean and East Africa.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - United Arab Emirates</title><link>https://h3sun.github.io/post/2025-11-11-one-country-a-day-united-arab-emirates/</link><pubDate>Tue, 11 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-11-one-country-a-day-united-arab-emirates/</guid><description>&lt;h2 id="-united-arab-emirates---day-41100-of-one-country-a-day-project">🇦🇪 United Arab Emirates - Day 41/100 of One Country a Day Project&lt;/h2>
&lt;p>Few nations have transformed as dramatically as the United Arab Emirates. In barely half a century, the UAE evolved from pearling towns clustered around desert oases into one of the world&amp;rsquo;s most interconnected hubs for energy, logistics, finance, and tourism. Hydrocarbon windfalls underpinned early investments, but deliberate diversification into aviation, ports, renewables, and advanced services has redefined the federation&amp;rsquo;s economic identity. The UAE&amp;rsquo;s strategic geography at the mouth of the Strait of Hormuz, proactive foreign policy, and ambitious mega-projects (from Masdar City&amp;rsquo;s clean-tech experimentation to Dubai&amp;rsquo;s Expo legacy) position it as both a regional power broker and a global connector. Today we profile how this small but influential Gulf state balances resource wealth, climate adaptation, and governance modernization.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$569 billion&lt;/strong> USD — IMF WEO DataMapper 2024 (current prices). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/ARE?year=2024" title="www.imf.org">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$49–50k&lt;/strong> USD — IMF WEO 2024 (current prices, per capita). (&lt;a href="https://www.imf.org/external/datamapper/profile/ARE" title="www.imf.org">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$84k&lt;/strong> USD PPP — IMF WEO Database 2024. (&lt;a href="https://www.imf.org/external/datamapper/profile/ARE?utm_source=chatgpt.com" title="United Arab Emirates">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>11.0 million&lt;/strong> — World Bank 2024. (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=AE&amp;amp;utm_source=chatgpt.com" title="Population, total - United Arab Emirates">World Bank Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ +15% external balance (surplus) in 2023&lt;/strong> → &lt;strong>net exporter&lt;/strong>; external surplus expected to remain high in 2024 (IMF). (&lt;a href="https://tradingeconomics.com/united-arab-emirates/external-balance-on-goods-and-services-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="External Balance On Goods And Services (% Of GDP)">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 83,600 km²&lt;/strong> — World Bank Data. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=AE&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - United Arab Emirates">World Bank Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Abu Dhabi&lt;/strong>. (&lt;a href="https://en.wikipedia.org/wiki/United_Arab_Emirates?utm_source=chatgpt.com" title="United Arab Emirates">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Dubai, Abu Dhabi, Sharjah, Al Ain, Ajman, Ras al-Khaimah, Fujairah, Umm al-Quwain&lt;/strong>. (&lt;a href="https://www.citypopulation.de/en/uae/cities/?utm_source=chatgpt.com" title="United Arab Emirates: Emirates &amp;amp; Major Cities">City Population&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy:&lt;/strong> ADNOC; &lt;strong>Ports/Logistics:&lt;/strong> DP World; &lt;strong>Airlines:&lt;/strong> Emirates, Etihad; &lt;strong>Telecom:&lt;/strong> e&amp;amp; (Etisalat); &lt;strong>Banking:&lt;/strong> First Abu Dhabi Bank (FAB), Emirates NBD; &lt;strong>Real Estate:&lt;/strong> Emaar; &lt;strong>Sovereign/Investment:&lt;/strong> Mubadala/IHC. (&lt;a href="https://www.adnoc.ae/?utm_source=chatgpt.com" title="ADNOC: Maximum Energy Minimum Emissions">ADNOC&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">OPEC member; large proved oil &amp;amp; gas reserves; ADNOC raising sustainable capacity toward &lt;strong>~5 mb/d&lt;/strong>; LNG expansion (Ruwais) with long-term offtakes; domestic freshwater scarce → heavy &lt;strong>desalination&lt;/strong> reliance. (&lt;a href="https://www.opec.org/assets/assetdb/asb-2024.pdf?utm_source=chatgpt.com" title="OPEC Annual Statistical Bulletin">OPEC&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Hydrocarbon endowment + export infrastructure are world-class; water/agriculture constraints and aridity prevent a perfect score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Hot desert&lt;/strong> climate; recurrent &lt;strong>extreme heat / high wet-bulb&lt;/strong> risk; strong infrastructure and adaptation readiness (&lt;strong>ND-GAIN rank ~32, score 59.9&lt;/strong>). Worker heat exposure remains a policy focus. (&lt;a href="https://gain-new.crc.nd.edu/country/united-arab-emirates?utm_source=chatgpt.com" title="United Arab Emirates | ND-GAIN Index">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High livability in serviced urban cores, but climate stress (heat, water) structurally limits comfort and resilience.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Gulf coastline near &lt;strong>Strait of Hormuz&lt;/strong> chokepoint. &lt;strong>Geopolitics (40%)&lt;/strong>: hosts &lt;strong>US 380th AEW at Al Dhafra&lt;/strong>; &lt;strong>Abraham Accords&lt;/strong> with Israel; active trade-deal strategy (CEPAs). (&lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=65504&amp;amp;utm_source=chatgpt.com" title="Amid regional conflict, the Strait of Hormuz remains critical ...">U.S. Energy Information Administration&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography plus diversified partnerships confer outsized strategic leverage, though proximity to regional flashpoints is a persistent risk.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>18/100 (Not Free)&lt;/strong>; &lt;strong>TI-CPI 2024:&lt;/strong> &lt;strong>68/100 (rank 23/180)&lt;/strong>; &lt;strong>WJP 2024:&lt;/strong> &lt;strong>rank 39/142&lt;/strong> (1st in MENA). (&lt;a href="https://freedomhouse.org/country/united-arab-emirates/freedom-world/2024?utm_source=chatgpt.com" title="United Arab Emirates: Freedom in the World 2024 Country ...">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong administrative capacity and low perceived corruption offset by limited political rights/civil liberties.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP &lt;strong>~$569B**; per-capita **~$49–50k&lt;/strong> (nominal) / &lt;strong>~$84k&lt;/strong> (PPP). &lt;strong>External/fiscal surpluses&lt;/strong> expected to stay high; non-oil trade at &lt;strong>record 3 trn AED (2024)&lt;/strong>; IMF growth &lt;strong>~3.7–4% (2024)&lt;/strong> on diversified services and investment. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/ARE?year=2024" title="www.imf.org">IMF&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Highly open, service-rich economy with sustained reform/trade agenda; cyclical oil exposure remains but buffers are strong.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic position on Hormuz; reliable &lt;strong>security partnerships&lt;/strong> (US/EU/Asia); high-quality infrastructure/logistics (Jebel Ali, DP World); strong &lt;strong>sovereign buffers&lt;/strong>; diversified non-oil engines (finance, tourism, aviation, trade). (&lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=65504&amp;amp;utm_source=chatgpt.com" title="Amid regional conflict, the Strait of Hormuz remains critical ...">U.S. Energy Information Administration&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Climate and water&lt;/strong> stress; dependence on imported food; exposure to Gulf security shocks; constrained civil liberties; demographic reliance on expatriate labor. (&lt;a href="https://gain-new.crc.nd.edu/country/united-arab-emirates?utm_source=chatgpt.com" title="United Arab Emirates | ND-GAIN Index">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Base case: &lt;strong>non-oil expansion&lt;/strong> via CEPAs, logistics, tourism, finance, and tech; hydrocarbons remain fiscal anchor with lower-carbon pivot (gas/LNG, efficiency). Upside from deeper trade links and FDI; downside from sustained regional conflict or climate-related disruptions. (&lt;a href="https://www.reuters.com/world/middle-east/uae-leans-trade-deals-growth-non-oil-trade-jumps-15-2024-2025-02-05/?utm_source=chatgpt.com" title="UAE leans on trade deals for growth as non-oil trade jumps 15% in 2024">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Pakistan</title><link>https://h3sun.github.io/post/2025-11-05-one-country-a-day-pakistan/</link><pubDate>Wed, 05 Nov 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-11-05-one-country-a-day-pakistan/</guid><description>&lt;h2 id="-pakistan---day-40100-of-one-country-a-day-project">🇵🇰 Pakistan - Day 40/100 of One Country a Day Project&lt;/h2>
&lt;p>Pakistan stands as South Asia&amp;rsquo;s second-most populous nation — a country of dramatic mountain ranges and fertile river valleys, strategic geographic position and persistent economic challenges, nuclear capability and developmental aspirations. As the world&amp;rsquo;s fifth-most populous country and a key player in regional geopolitics, Pakistan bridges Central Asia, South Asia, and the Middle East, positioned at the crossroads of major trade routes and energy corridors. Yet decades of political instability, security concerns, fiscal pressures, and natural disasters have shaped a complex development trajectory. From the 1947 partition that created the modern state to the 1971 Bangladesh War, from its role as a Cold War ally to becoming a nuclear power in 1998, from strategic partnerships with both the United States and China to ongoing tensions with India over Kashmir, Pakistan&amp;rsquo;s story is one of resilience: a young nation with immense human capital and strategic location navigating between military influence, democratic transitions, and economic transformation. Today, we examine this South Asian nation that connects the Himalayas to the Arabian Sea, balancing between regional power dynamics and domestic development priorities.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$373 billion&lt;/strong> USD — World Bank country data (most recent 2024 value). (&lt;a href="https://data.worldbank.org/country/pakistan?utm_source=chatgpt.com" title="Pakistan | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$1,585&lt;/strong> USD — IMF WEO (2024 estimate as compiled in IMF/WEO tables). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Pakistan?utm_source=chatgpt.com" title="Economy of Pakistan">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$6,724&lt;/strong> USD (PPP) — IMF WEO Database 2024. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Pakistan?utm_source=chatgpt.com" title="Economy of Pakistan">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>251.3 million&lt;/strong> — World Bank (2024). (&lt;a href="https://data.worldbank.org/country/pakistan?utm_source=chatgpt.com" title="Pakistan | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 6.7% of GDP (net importer)&lt;/strong> — External balance on goods &amp;amp; services (–$24.9 bn in 2024) vs. GDP ($373 bn). World Bank WDI via TradingEconomics; World Bank GDP. (&lt;a href="https://tradingeconomics.com/pakistan/external-balance-on-goods-and-services-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Pakistan - External Balance On Goods And Services">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>881,913 km²&lt;/strong> — World Bank / Government sources. (&lt;a href="https://pakconsulatela.org/about-pakistan/?utm_source=chatgpt.com" title="About Pakistan">Pak Consulate LA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Islamabad&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Karachi, Lahore, Faisalabad, Rawalpindi, Gujranwala, Multan, Hyderabad, Peshawar, Quetta, Islamabad&lt;/strong> — 2023 census tallies. (&lt;a href="https://www.citypopulation.de/en/pakistan/cities/?utm_source=chatgpt.com" title="Pakistan: Provinces and Major Cities - Population Statistics ...">City Population&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy &amp;amp; Resources:&lt;/strong> OGDCL, Pakistan Petroleum; &lt;strong>Fertilizer &amp;amp; Chemicals:&lt;/strong> Engro, Fauji Fertilizer; &lt;strong>Cement:&lt;/strong> Lucky Cement; &lt;strong>Banking:&lt;/strong> HBL, MCB; &lt;strong>Textiles/hosiery:&lt;/strong> Interloop; &lt;strong>IT services:&lt;/strong> Systems Ltd — PSX filings/sector data and recent coverage. (&lt;a href="https://ogdcl.com/all-financial-reports?utm_source=chatgpt.com" title="Financial Reports">OGDCL&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Indus Basin irrigates much of the cropland; major lignite resource at &lt;strong>Thar&lt;/strong> (~175 bn tons); large undeveloped &lt;strong>Reko Diq&lt;/strong> copper-gold project advancing; sizable hydropower potential (e.g., Dasu). (&lt;a href="https://data.worldbank.org/country/pakistan?utm_source=chatgpt.com" title="Pakistan | Data">World Bank&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Considerable minerals/energy endowment and irrigation network, but domestic oil &amp;amp; gas are declining and coal is low-grade; water stress and governance limit extraction benefits.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High exposure to floods/heatwaves (e.g., 2022 floods); &lt;strong>ND-GAIN&lt;/strong> rank ≈ &lt;strong>152&lt;/strong> with low readiness; repeated extreme heat in 2024 noted by AP/UN; sea-level risk on Indus delta. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Pakistan?utm_source=chatgpt.com" title="Economy of Pakistan">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate vulnerability and urban livability challenges (heat, flooding, water stress) weigh on health and productivity despite improving infrastructure in select corridors.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Mountain buffers (Hindu Kush/Karakoram), but long, open plains front with India; &lt;strong>1,046 km&lt;/strong> Arabian Sea coast incl. Karachi/Gwadar. &lt;strong>Geopolitics (40%)&lt;/strong>: Nuclear-armed; &lt;strong>Major non-NATO ally (US)&lt;/strong> since 2004; deep &lt;strong>China&lt;/strong> ties via CPEC; recurrent security risks. (&lt;a href="https://tradingeconomics.com/pakistan/external-balance-on-goods-and-services-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Pakistan - External Balance On Goods And Services">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic location bridging South/Central Asia and the Gulf with credible deterrence and multiple patrons; however, border frictions and internal security concerns constrain leverage.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>32/100 (Partly Free)&lt;/strong>; &lt;strong>Transparency Intl CPI 2024:&lt;/strong> &lt;strong>27/100 (rank 135/180)&lt;/strong>; &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>rank 129/142&lt;/strong>. (&lt;a href="https://pakconsulatela.org/about-pakistan/?utm_source=chatgpt.com" title="About Pakistan">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Persistent constraints on civil liberties, corruption risks, and weak judicial/administrative performance dampen investment climate and policy credibility.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP ≈ &lt;strong>$373 bn** (2024); GDP pc (nominal) ≈ **$1.6k&lt;/strong>; PPP pc ≈ &lt;strong>$6.7k&lt;/strong>; FY25 growth ~&lt;strong>2–3%&lt;/strong>; IMF program support; export base concentrated in textiles; external financing pressures flagged by rating agencies. (&lt;a href="https://www.citypopulation.de/en/pakistan/cities/?utm_source=chatgpt.com" title="Pakistan: Provinces and Major Cities - Population Statistics ...">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Large, young market with stabilization under IMF and improving energy mix, yet low productivity, narrow export basket, and dollar/liquidity constraints cap near-term momentum.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic location with &lt;strong>Arabian Sea access&lt;/strong> and overland links to China/Central Asia; &lt;strong>nuclear deterrent&lt;/strong> and multiple external partners; large domestic market; substantial &lt;strong>coal (Thar)&lt;/strong> and &lt;strong>copper-gold (Reko Diq)&lt;/strong> potential; hydropower pipeline. (&lt;a href="https://data.worldbank.org/country/pakistan?utm_source=chatgpt.com" title="Pakistan | Data">Pak Consulate LA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High &lt;strong>climate vulnerability&lt;/strong> (floods/heat/sea-level) and &lt;strong>water stress&lt;/strong>; governance/corruption concerns; external-financing dependence; export concentration (textiles); periodic security disruptions. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Pakistan?utm_source=chatgpt.com" title="Economy of Pakistan">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Base case: gradual stabilization under IMF with &lt;strong>modest growth&lt;/strong> and incremental reforms; upside from &lt;strong>CPEC/REKO Diq/hydropower&lt;/strong> if execution and security improve; downside from climate shocks, commodity swings, and reform slippage. (&lt;a href="https://tradingeconomics.com/pakistan/external-balance-on-goods-and-services-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Pakistan - External Balance On Goods And Services">AP News&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Algeria</title><link>https://h3sun.github.io/post/2025-10-31-one-country-a-day-algeria/</link><pubDate>Fri, 31 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-31-one-country-a-day-algeria/</guid><description>&lt;h2 id="-algeria---day-39100-of-one-country-a-day-project">🇩🇿 Algeria - Day 39/100 of One Country a Day Project&lt;/h2>
&lt;p>Algeria stands as North Africa&amp;rsquo;s largest nation — a country of vast desert landscapes and Mediterranean coastlines, abundant hydrocarbon wealth and economic diversification challenges, colonial trauma and post-independence identity. As Africa&amp;rsquo;s largest country by land area and one of the continent&amp;rsquo;s top economies, Algeria possesses the world&amp;rsquo;s tenth-largest proven natural gas reserves and sixteenth-largest oil reserves. Yet decades of resource dependency, political transitions, and regional instability have shaped a complex development trajectory. From the 1962 War of Independence that ended 132 years of French colonial rule to the 1990s civil conflict, from the strategic Mediterranean position that made it a key energy supplier to Europe to the ongoing challenges of youth unemployment and economic reform, Algeria&amp;rsquo;s story is one of transformation: rich natural endowments seeking pathways beyond hydrocarbons. Today, we examine this North African nation that bridges the Sahara and the Mediterranean, balancing between resource wealth and economic modernization.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$288 billion&lt;/strong> — IMF WEO DataMapper 2024/25 (country page shows 2024 value). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$6.1k&lt;/strong> — IMF WEO 2024. (&lt;a href="https://www.imf.org/external/datamapper/profile/DZA?utm_source=chatgpt.com" title="Algeria">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$17.6k–18.5k** international $ — World Bank 2024; IMF 2024/25. (&lt;a href="https://tradingeconomics.com/algeria/gdp-per-capita-ppp-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Algeria - GDP Per Capita, PPP (current International $)">tradingeconomics.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>46.8 million&lt;/strong> (2024) — World Bank. (&lt;a href="https://data.worldbank.org/country/algeria?utm_source=chatgpt.com" title="Algeria - World Bank Open Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –3% to –4%&lt;/strong> (i.e., &lt;strong>net exporter&lt;/strong>) — external balance on goods &amp;amp; services +3.6% of GDP in 2023 (WB WDI). (&lt;a href="https://www.lloydsbanktrade.com/en/market-potential/algeria/trade-profile?utm_source=chatgpt.com" title="Foreign trade figures of Algeria - International Trade Portal">Lloyds Bank Trade&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>2,381,740 km²&lt;/strong> — World Bank. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Algiers&lt;/strong>. (&lt;a href="https://www.britannica.com/place/Algiers?utm_source=chatgpt.com" title="Algiers | Algeria, Map, Population, &amp;amp; Facts">Encyclopedia Britannica&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Algiers, Oran, Constantine, Annaba, Blida, Batna, Sétif, Sidi Bel Abbès, Biskra, Béjaïa, Tlemcen&lt;/strong>. (&lt;a href="https://www.citypopulation.de/en/algeria/cities/?utm_source=chatgpt.com" title="Algeria: Provinces &amp;amp; Major Cities">City Population&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Hydrocarbons (Sonatrach, Naftal), Power &amp;amp; Gas (Sonelgaz), Telecom (Algérie Télécom), Air Transport (Air Algérie), Conglomerates/Consumer (Cevital)&lt;/strong> — representative national/sector sources. (&lt;a href="https://www.eia.gov/international/content/analysis/countries_long/Algeria/?utm_source=chatgpt.com" title="Table 1. Algeria's energy overview, 2023">eia.gov&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">OPEC member; &lt;strong>largest natural gas producer in Africa&lt;/strong> and a top LNG exporter (Arzew &amp;amp; Skikda). Hydrocarbons ≈ &lt;strong>90% of exports&lt;/strong>; ongoing upstream deals (e.g., Sonatrach–Eni; Sonatrach–Midad). Water stress drives a national &lt;strong>desalination&lt;/strong> build-out (3.7 m m³/day by end-2024). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">eia.gov&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class oil &amp;amp; gas endowment and export infrastructure; vulnerability in water and agriculture resources tempers the perfect score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">North: Mediterranean/coastal; interior: &lt;strong>semi-arid/ Saharan&lt;/strong> (≈80% of land). Drought and water rationing episodes; dams ~⅓ capacity in parts of 2024; long-run warming above global avg; ND-GAIN rank ~&lt;strong>89–90&lt;/strong>. (&lt;a href="https://www.imf.org/external/datamapper/profile/DZA?utm_source=chatgpt.com" title="Algeria">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Comfortable zones along the coast, but heat, aridity, wildfire risk, and water scarcity weigh on overall livability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Broad depth, mountainous north, sparsely populated Sahara, limited high-value targets inland; Mediterranean frontage aids sea access. Land borders with &lt;strong>Tunisia, Libya, Niger, Mali, Mauritania, Western Sahara/Morocco&lt;/strong> (border with Morocco closed at times). &lt;strong>Geopolitics (40%)&lt;/strong>: Europe-facing gas pipelines (TransMed, Medgaz) + LNG give leverage; OPEC/GECF member; authorized to join &lt;strong>BRICS NDB&lt;/strong> (2024). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">eia.gov&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Favorable depth and energy-route leverage, offset by Sahel/Maghreb neighborhood risks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024: 32/100 (Not Free)&lt;/strong>; &lt;strong>TI-CPI 2024: 34/100 (rank 107/180)&lt;/strong>; &lt;strong>WJP Rule of Law 2024: 0.49 (rank 84/142)&lt;/strong>. (&lt;a href="https://tradingeconomics.com/algeria/gdp-per-capita-ppp-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Algeria - GDP Per Capita, PPP (current International $)">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions remain state-centric with constrained civic space; gradual rule-of-law improvements from a low base.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP ≈ &lt;strong>$288B**; **$6.1k&lt;/strong> GDP/cap nominal; &lt;strong>$17–18k PPP/cap&lt;/strong>. &lt;strong>2023 growth 4.1%&lt;/strong> (WB). Exports concentrated in hydrocarbons; efforts to diversify into petrochemicals, mining, renewables, agri-processing; unemployment ~11% (2024 WB). (&lt;a href="https://data.worldbank.org/country/algeria?utm_source=chatgpt.com" title="Algeria - World Bank Open Data">IMF&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid macro buffers from energy receipts, but diversification and private-sector dynamism are still limited; medium-term resilience hinges on energy cycle and reform pace.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic &lt;strong>gas &amp;amp; LNG&lt;/strong> supplier to Europe; sizeable &lt;strong>sovereign hydrocarbon base&lt;/strong>; &lt;strong>defensible geography&lt;/strong> with depth; large domestic market; improving rule-of-law metrics off a low base. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">eia.gov&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Water scarcity&lt;/strong> and climate stress; high &lt;strong>export concentration&lt;/strong> in hydrocarbons; governance constraints on private investment; labor-market frictions (double-digit unemployment). (&lt;a href="https://www.imf.org/external/datamapper/profile/DZA?utm_source=chatgpt.com" title="Algeria">The Guardian&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Base case: &lt;strong>energy-anchored&lt;/strong> growth with incremental diversification (petrochem, mining, renewables, services). Upside via pipeline/LNG contracts and BRICS-linked finance; downside from &lt;strong>Sahel security&lt;/strong>, prolonged drought, or slow reforms. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">eia.gov&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Iran</title><link>https://h3sun.github.io/post/2025-10-30-one-country-a-day-iran/</link><pubDate>Thu, 30 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-30-one-country-a-day-iran/</guid><description>&lt;h2 id="-iran---day-38100-of-one-country-a-day-project">🇮🇷 Iran - Day 38/100 of One Country a Day Project&lt;/h2>
&lt;p>Iran stands as one of the Middle East&amp;rsquo;s most complex and influential nations — a country of ancient civilization and revolutionary ideology, vast energy resources and severe economic constraints, strategic location and deep internal divisions. As the second-largest economy in the region (after Saudi Arabia) with the world&amp;rsquo;s third-largest proven oil reserves and second-largest gas reserves, Iran commands enormous natural wealth. Yet decades of international sanctions, conflict, and governance challenges have limited its economic potential. From the 1979 Islamic Revolution that reshaped the country&amp;rsquo;s identity to ongoing nuclear tensions with Western powers, from the strategic Strait of Hormuz that carries one-third of the world&amp;rsquo;s seaborne oil to severe water scarcity affecting its agricultural heartland, Iran&amp;rsquo;s story is one of paradox: immense resources constrained by geopolitical isolation. Today, we examine this Middle Eastern powerhouse that balances between regional dominance and international isolation.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$436.9 billion&lt;/strong> — World Bank WDI 2024. (&lt;a href="https://data.worldbank.org/country/iran-islamic-rep?utm_source=chatgpt.com" title="Iran, Islamic Rep.">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$4,771&lt;/strong> — World Bank WDI 2024. (&lt;a href="https://data.worldbank.org/country/iran-islamic-rep?utm_source=chatgpt.com" title="Iran, Islamic Rep.">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$20,000** (int'l $) — IMF WEO Data Mapper 2025 (Iran 19.96k, using 2024 vintage). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/CYP/IRQ/IRN?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>91.6 million&lt;/strong> — World Bank WDI 2024.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>~4% of GDP (deficit)&lt;/strong> — External balance on goods &amp;amp; services, 2024 estimate. (&lt;a href="https://www.theglobaleconomy.com/Iran/Trade_balance/?utm_source=chatgpt.com" title="Iran Trade balance, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1,745,150 km²&lt;/strong> — World Bank Data (surface area). (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Tehran&lt;/strong>. (&lt;a href="https://en.wikipedia.org/wiki/Iran?utm_source=chatgpt.com" title="Iran">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Tehran, Mashhad, Isfahan, Karaj, Tabriz, Shiraz, Qom, Ahvaz, Kermanshah, Urmia&lt;/strong>. (&lt;a href="https://datacommons.org/ranking/Count_Person/City/country/IRN?utm_source=chatgpt.com" title="Ranking by Population - Cities in Iran">Data Commons&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Hydrocarbons &amp;amp; petrochemicals&lt;/strong> (PGPIC); &lt;strong>Automotive&lt;/strong> (Iran Khodro, SAIPA); &lt;strong>Power &amp;amp; engineering&lt;/strong> (MAPNA); &lt;strong>Telecom&lt;/strong> (MCI &amp;ldquo;Hamrah-e Aval&amp;rdquo;, MTN Irancell); &lt;strong>Airlines &amp;amp; logistics&lt;/strong> (Mahan Air). (&lt;a href="https://pgpic.ir/en/About-us/About-PGPIC/PGPIC?utm_source=chatgpt.com" title="PGPIC">PGPIC&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~&lt;strong>209 bn bbl&lt;/strong> proved oil (OPEC member); &lt;strong>~34 tcm&lt;/strong> proved gas (2nd globally); arable land ~&lt;strong>9.7%&lt;/strong> of area; significant minerals; chronic &lt;strong>water stress&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/iran-islamic-rep?utm_source=chatgpt.com" title="Iran, Islamic Rep.">OPEC Digital Publications&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class hydrocarbons endowment with petrochemical base; constraints are water scarcity and limited cultivable land share.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diverse climates; &lt;strong>high seismic risk&lt;/strong> in Alborz/Zagros; &lt;strong>air-pollution episodes&lt;/strong> (Tehran closures 2025); ND-GAIN: &lt;strong>Rank 87&lt;/strong>, score 48.2; moderate vulnerability, low readiness. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/CYP/IRQ/IRN?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">MDPI&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Livability pressured by earthquakes, dust/smog, and water stress; adaptation capacity middling.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: mountainous buffers, long coasts on Persian Gulf/Oman &amp;amp; Caspian; leverage over &lt;strong>Strait of Hormuz&lt;/strong> (¼+ of 2024 seaborne oil trade). &lt;strong>Geopolitics (40%)&lt;/strong>: &lt;strong>SCO&lt;/strong> member (2023), &lt;strong>BRICS+&lt;/strong> member (Jan 1 2024), but extensive &lt;strong>U.S./EU sanctions&lt;/strong>. (&lt;a href="https://www.theglobaleconomy.com/Iran/Trade_balance/?utm_source=chatgpt.com" title="Iran Trade balance, percent of GDP - data, chart">eia.gov&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong geostrategic position and deterrent geography offset by isolation/sanctions and episodic regional tensions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Freedom House &lt;strong>11/100 (Not Free)&lt;/strong>; WJP Rule of Law &lt;strong>0.39 (rank 128/142)&lt;/strong>; Transparency Int&amp;rsquo;l &lt;strong>CPI 2024: 23/100 (rank ≈151/180)&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Concentrated power, weak checks/balances, and high perceived corruption weigh on institutions and investment.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Nominal GDP &lt;strong>$437B**, growth **~3% (2024)**; PPP-pc ~**$20k&lt;/strong>; oil-led with growing downstream petrochemicals; trade openness ~&lt;strong>38% of GDP&lt;/strong>; sanctions constrain FDI/tech access. (&lt;a href="https://en.wikipedia.org/wiki/Iran?utm_source=chatgpt.com" title="Iran">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Medium-income hydrocarbon economy adapting via petrochemicals and regional trade, but volatility and sanctions limit productivity gains.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Top-tier &lt;strong>oil &amp;amp; gas&lt;/strong> reserves and petrochemical capacity; &lt;strong>strategic chokepoint&lt;/strong> leverage (Hormuz); large/educated population and diversified industrial base (autos, power equipment, chemicals). (&lt;a href="https://data.worldbank.org/country/iran-islamic-rep?utm_source=chatgpt.com" title="Iran, Islamic Rep.">eia.gov&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Institutional weakness&lt;/strong> (low freedom/rule-of-law/CPI); &lt;strong>sanctions&lt;/strong> limiting exports, finance and technology; &lt;strong>environmental stress&lt;/strong> (air pollution, water scarcity), seismic risk. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/CYP/IRQ/IRN?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">Freedom House&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Baseline: steady but &lt;strong>constrained growth&lt;/strong> anchored by hydrocarbons/petrochemicals, cautious regional integration (SCO/BRICS). Upside requires &lt;strong>governance reforms&lt;/strong> and sanctions relief; downside from regional shocks and climate/water pressures. (&lt;a href="https://www.theglobaleconomy.com/Iran/Trade_balance/?utm_source=chatgpt.com" title="Iran Trade balance, percent of GDP - data, chart">European Parliament&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study another country as we continue exploring the world&amp;rsquo;s diverse nations.&lt;/p></description></item><item><title>One Country a Day - Egypt</title><link>https://h3sun.github.io/post/2025-10-29-one-country-a-day-egypt/</link><pubDate>Wed, 29 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-29-one-country-a-day-egypt/</guid><description>&lt;h2 id="-egypt---day-37100-of-one-country-a-day-project">🇪🇬 Egypt - Day 37/100 of One Country a Day Project&lt;/h2>
&lt;p>Egypt stands as one of the world&amp;rsquo;s oldest civilizations and a pivotal geopolitical player at the crossroads of Africa, Asia, and Europe. As the most populous Arab nation and home to the strategic Suez Canal, Egypt wields outsized influence despite economic challenges. The Nile River sustains 95% of the population in just 5% of its territory, creating both a lifeline and vulnerability. From ancient pharaonic monuments to modern megaprojects like the New Administrative Capital, Egypt&amp;rsquo;s story blends millennia of history with contemporary struggles: rapid population growth, water security concerns, dependence on Suez Canal revenues, and ambitious development plans. Today, we examine this North African powerhouse that bridges continents, cultures, and economic aspirations.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$350–440 billion** USD — IMF WEO DataMapper shows Egypt around **$349–347B&lt;/strong> in 2024–25 (rounding; frequent revisions). Source: IMF WEO DataMapper (NGDPD). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/DZA/ZAF/MAR/NGA/EGY/ETH?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$3.2k&lt;/strong> USD — IMF WEO DataMapper (NGDPDPC, 2024). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$21.8k&lt;/strong> USD PPP — IMF WEO DataMapper (PPPPC, 2024). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/THA/EGY?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>116.5 million&lt;/strong> (2024). — World Bank WDI. (&lt;a href="https://data.worldbank.org/country/egypt-arab-rep?utm_source=chatgpt.com" title="Egypt, Arab Rep.">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>8% of GDP (net importer)&lt;/strong> — Imports of goods &amp;amp; services ≈ &lt;strong>23.2% of GDP (2024)&lt;/strong>; Exports ≈ &lt;strong>15.1% of GDP (latest)&lt;/strong> → net imports ≈ &lt;strong>~8%&lt;/strong> (imports–exports). World Bank WDI (derived). (&lt;a href="https://tradingeconomics.com/egypt/imports-of-goods-and-services-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="Egypt - Imports Of Goods And Services (% Of GDP)">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>1,001,450 km²&lt;/strong> — World Bank Data. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Cairo&lt;/strong>. — World Bank country page. (&lt;a href="https://data.worldbank.org/country/egypt-arab-rep?utm_source=chatgpt.com" title="Egypt, Arab Rep.">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Cairo, Alexandria, Giza, Shubra El-Kheima, Port Said, Suez, Luxor, Mansoura, Tanta, Asyut (largest agglomerations). — Datacommons / WorldPopulationReview. (&lt;a href="https://datacommons.org/ranking/Count_Person/City/country/EGY?utm_source=chatgpt.com" title="Ranking by Population - Cities in Egypt">Data Commons&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Banking/Finance:&lt;/strong> Commercial International Bank (CIB), QNB Egypt, EFG Holding. &lt;strong>Telecom:&lt;/strong> Telecom Egypt, Vodafone Egypt. &lt;strong>Energy/Industrial:&lt;/strong> Elsewedy Electric, EGPC. &lt;strong>Real estate/Construction:&lt;/strong> Talaat Moustafa Group (TMG), Orascom companies. &lt;strong>Payments/Tech:&lt;/strong> Fawry. — Forbes ME &amp;ldquo;Egypt&amp;rsquo;s Top 50 Listed Companies&amp;rdquo; (2024–25 roundups). (&lt;a href="https://www.forbesmiddleeast.com/lists/egypts-top-50-listed-companies-2025/?utm_source=chatgpt.com" title="Egypt's Top 50 Listed Companies 2025">Forbes ME&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Proven gas (Zohr field) and some oil; phosphates, gold; fertile but &lt;strong>narrow arable belt&lt;/strong> along the Nile; &lt;strong>extreme water stress&lt;/strong> in a desert country dependent on Nile flows. Suez Canal is a rent source (not a natural resource but location-based). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/DZA/ZAF/MAR/NGA/EGY/ETH?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP, current prices">AP News&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Moderate hydrocarbons and minerals, but severe land/water constraints limit broad-based resource leverage beyond specific rents (gas/Suez).&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Arid climate&lt;/strong>, heat extremes; Nile Delta exposed to &lt;strong>sea-level rise&lt;/strong>; ND-GAIN rank ~&lt;strong>105–106&lt;/strong> (lower readiness); disaster risk and water scarcity flagged by UNDP/IFRC profiles. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">gain-new.crc.nd.edu&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Livability challenged by heat, water scarcity, and coastal vulnerability; adaptation capacity improving but still limited.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Two seas (Mediterranean/Red Sea), mostly desert buffers; chokepoint at &lt;strong>Suez Canal&lt;/strong>; exposed Sinai/Gaza/Libya borders. &lt;strong>Geopolitics (40%)&lt;/strong>: Long-standing ties with U.S./GCC; ongoing IMF program; 2024 &lt;strong>Red Sea crisis&lt;/strong> cut Suez revenues &lt;strong>~60%&lt;/strong> (~$4.0B vs $10.25B in 2023), showing exposure to regional shocks. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/DZA/ZAF/MAR/NGA/EGY/ETH?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP, current prices">AP News&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional geostrategic leverage via Suez, balanced by regional conflict exposure and internal security burdens.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>18/100 (Not Free)&lt;/strong>. &lt;strong>Transparency Int&amp;rsquo;l CPI 2024:&lt;/strong> &lt;strong>30/100 (rank ≈130/180)&lt;/strong>. &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>rank 135/142; score ≈0.35&lt;/strong>. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/THA/EGY?utm_source=chatgpt.com" title="GDP per capita, current prices">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Concentrated executive power, weak checks and balances, corruption concerns; incremental legal reforms but low overall scores.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">GDP ≈ &lt;strong>$350–440B**; **nominal GDP pc ≈ $3.2k&lt;/strong>, &lt;strong>PPP pc ≈ $21.8k&lt;/strong>; 2023/24 growth slowed (~&lt;strong>2.4%&lt;/strong>) amid devaluation and inflation; IMF &lt;strong>EFF/RSF&lt;/strong> packages expanded in 2025; &lt;strong>Suez/tourism/remittances&lt;/strong> key; manufacturing and energy gradually expanding. (&lt;a href="https://data.worldbank.org/country/egypt-arab-rep?utm_source=chatgpt.com" title="Egypt, Arab Rep.">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Low-middle-income level with macro strains; reforms and FDI (esp. GCC) support medium-term stabilization, but external shocks remain material.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Commanding &lt;strong>Suez Canal&lt;/strong> position; large domestic market; growing &lt;strong>gas&lt;/strong> output and industrial base; diversified services (tourism, logistics); strong banking leaders (e.g., &lt;strong>CIB&lt;/strong>). (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/DZA/ZAF/MAR/NGA/EGY/ETH?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP, current prices">AP News&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Water scarcity&lt;/strong>; narrow arable land; low governance/Rule-of-Law scores; external-financing dependence; inflation/devaluation pass-through; exposure of Suez revenues to &lt;strong>regional insecurity&lt;/strong>. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">UNDP Acquia Files&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Stabilization-then-incremental growth&lt;/strong> if IMF-anchored reforms, privatization, and FDI proceed; adaptation spending for Nile Delta/coastal risks is pivotal; upside from near-shoring/logistics if Red Sea routes normalize. Downside from governance bottlenecks and recurring regional shocks. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/THA/EGY?utm_source=chatgpt.com" title="GDP per capita, current prices">AP News&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Iran as we continue exploring the Middle East.&lt;/p></description></item><item><title>One Country a Day - Saudi Arabia</title><link>https://h3sun.github.io/post/2025-10-28-one-country-a-day-saudi-arabia/</link><pubDate>Tue, 28 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-28-one-country-a-day-saudi-arabia/</guid><description>&lt;h2 id="-saudi-arabia---day-36100-of-one-country-a-day-project">🇸🇦 Saudi Arabia - Day 36/100 of One Country a Day Project&lt;/h2>
&lt;p>Saudi Arabia stands as the economic and spiritual heart of the Islamic world, wielding massive influence through its vast oil reserves, strategic location, and religious significance. As the world&amp;rsquo;s largest oil exporter and a founding member of OPEC, Saudi Arabia has leveraged its hydrocarbon wealth to transform from a desert kingdom to a global economic power. However, under Vision 2030, the kingdom is undergoing an ambitious diversification away from oil dependency, investing trillions in megaprojects, technology, tourism, and renewable energy. From its custodianship of Islam&amp;rsquo;s two holiest cities to its pivotal role in global energy markets and ambitious NEOM smart city project, Saudi Arabia&amp;rsquo;s story is one of resource abundance, modernization challenges, and strategic positioning. Today, we examine this Middle Eastern heavyweight that balances religious leadership with economic transformation.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$1.25 trillion&lt;/strong> USD — source (IMF WEO / World Bank 2024). (&lt;a href="https://www.imf.org/external/datamapper/profile/SAU?utm_source=chatgpt.com" title="Saudi Arabia - IMF DataMapper">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$35,000&lt;/strong> USD — IMF/WB 2024.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$74,000–75,000&lt;/strong> USD PPP — IMF WEO Database 2024.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>36.3 million&lt;/strong> — World Bank 2024.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>External balance&lt;/strong> on goods &amp;amp; services &lt;strong>+3.5%&lt;/strong> of GDP in &lt;strong>2024&lt;/strong> → &lt;strong>net exporter&lt;/strong> (WDI). (&lt;a href="https://data.worldbank.org/indicator/NE.RSB.GNFS.ZS?locations=SA&amp;amp;utm_source=chatgpt.com" title="External balance on goods and services (% of GDP)">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>2,149,690 km²&lt;/strong> — World Bank Data. (&lt;a href="https://www.reuters.com/world/middle-east/saudi-arabia-sits-fence-over-brics-with-eye-vital-ties-with-us-2025-05-08/?utm_source=chatgpt.com" title="Saudi Arabia sits on fence over BRICS with eye on vital ties with US">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Riyadh&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Riyadh, Jeddah, Mecca (Makkah), Medina (Madinah), Dammam/Khobar, Taif, Tabuk, Buraidah, Abha/Khamis Mushait, Jizan.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Oil &amp;amp; gas:&lt;/strong> Saudi Aramco · &lt;strong>Petrochemicals:&lt;/strong> SABIC · &lt;strong>Mining:&lt;/strong> Ma&amp;rsquo;aden · &lt;strong>Utilities:&lt;/strong> Saudi Electricity Co. · &lt;strong>Telecom:&lt;/strong> stc · &lt;strong>Banking:&lt;/strong> Al Rajhi Bank, Saudi National Bank · &lt;strong>Power/Water &amp;amp; Renewables:&lt;/strong> ACWA Power · &lt;strong>Food:&lt;/strong> Almarai · &lt;strong>Shipping/Logistics:&lt;/strong> Bahri. (&lt;a href="https://www.reuters.com/business/energy/saudi-aramco-oil-colossus-2024-05-30/?utm_source=chatgpt.com" title="Saudi Aramco: the oil colossus">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~&lt;strong>2nd&lt;/strong>-largest proven crude reserves globally (OPEC), very low lift costs; associated gas and growing non-associated gas fields; sizable &lt;strong>phosphate, bauxite, gold&lt;/strong> deposits (Ma&amp;rsquo;aden); &lt;strong>severe freshwater scarcity&lt;/strong> mitigated by the world&amp;rsquo;s largest &lt;strong>desalination&lt;/strong> system (SWA/SWCC). (&lt;a href="https://www.imf.org/external/datamapper/profile/SAU?utm_source=chatgpt.com" title="Saudi Arabia - IMF DataMapper">OPEC&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Hydrocarbon endowment and extractive cost advantage are world-class; water scarcity is structural but technologically offset (at high capex/energy cost).&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Arid desert&lt;/strong> climate; extreme heat and dust storms; &lt;strong>water stress&lt;/strong> structurally high; disaster risk (earthquakes, cyclones) relatively low; major cities have high-quality urban services powered by desalination and AC. (&lt;a href="https://data.worldbank.org/indicator/NE.RSB.GNFS.ZS?locations=SA&amp;amp;utm_source=chatgpt.com" title="External balance on goods and services (% of GDP)">TIME&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Environmental comfort is limited outside modern urban cores; livability relies on energy-intensive water and cooling infrastructure.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Large territory, interior desert buffers, &lt;strong>long Red Sea &amp;amp; Gulf coasts&lt;/strong>, but exposed land borders incl. &lt;strong>Yemen&lt;/strong>; high air/missile defense demand. &lt;strong>Geopolitics (40%)&lt;/strong>: &lt;strong>G20&lt;/strong>, OPEC+ swing producer; close U.S./GCC ties while expanding ties with Asia; energy leverage notable. (&lt;a href="https://www.reuters.com/world/middle-east/saudi-arabia-sits-fence-over-brics-with-eye-vital-ties-with-us-2025-05-08/?utm_source=chatgpt.com" title="Saudi Arabia sits on fence over BRICS with eye on vital ties with US">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography offers depth and sea access but also border exposure; geopolitical centrality via energy gives outsized influence.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>8/100&lt;/strong> (&amp;ldquo;Not Free&amp;rdquo;). &lt;strong>Transparency Int&amp;rsquo;l CPI 2024:&lt;/strong> &lt;strong>59/100&lt;/strong> (rank &lt;strong>38/180&lt;/strong>). &lt;strong>Rule-of-Law&lt;/strong> indicators low by WJP/WB standards. (&lt;a href="https://www.reuters.com/business/energy/saudi-aramco-oil-colossus-2024-05-30/?utm_source=chatgpt.com" title="Saudi Aramco: the oil colossus">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Authoritarian governance and rights constraints weigh on institutional quality, despite anticorruption and administrative reforms.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>High-income&lt;/strong> status; 2024 &lt;strong>real GDP +1.3%&lt;/strong> with &lt;strong>non-oil +4.3%&lt;/strong> and oil down on OPEC+ cuts; strong fiscal buffers, low debt; active &lt;strong>Vision 2030&lt;/strong> diversification (tourism, logistics, mining, sports, renewables). (&lt;a href="https://www.reuters.com/world/middle-east/saudi-arabia-sits-fence-over-brics-with-eye-vital-ties-with-us-2025-05-08/?utm_source=chatgpt.com" title="Saudi Arabia sits on fence over BRICS with eye on vital ties with US">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Non-oil momentum is real but base remains hydrocarbon-centric; execution and global oil cycles remain key sensitivities.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class &lt;strong>oil &amp;amp; gas&lt;/strong> reserves with very low costs; &lt;strong>energy swing producer&lt;/strong> status; large domestic market with improving non-oil growth; &lt;strong>strategic coasts and location&lt;/strong>; massive &lt;strong>desalination&lt;/strong> capacity supporting urban resilience. (&lt;a href="https://www.imf.org/external/datamapper/profile/SAU?utm_source=chatgpt.com" title="Saudi Arabia - IMF DataMapper">OPEC&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Climate stress&lt;/strong> and water scarcity; &lt;strong>institutional constraints&lt;/strong> (rights, rule-of-law); exposure to &lt;strong>oil price/production cycles&lt;/strong>; border security risks (esp. Yemen). (&lt;a href="https://data.worldbank.org/indicator/NE.RSB.GNFS.ZS?locations=SA&amp;amp;utm_source=chatgpt.com" title="External balance on goods and services (% of GDP)">Freedom House&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Continued push to &lt;strong>diversify&lt;/strong> (mining, tourism, entertainment, logistics, green energy) while maintaining oil leadership; success hinges on &lt;strong>execution capacity&lt;/strong>, fiscal discipline through cycles, and gradual regulatory/institutional upgrades to crowd-in private/FDI. (&lt;a href="https://www.reuters.com/world/middle-east/saudi-arabia-sits-fence-over-brics-with-eye-vital-ties-with-us-2025-05-08/?utm_source=chatgpt.com" title="Saudi Arabia sits on fence over BRICS with eye on vital ties with US">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Iran as we continue exploring the Middle East.&lt;/p></description></item><item><title>One Country a Day - Finland</title><link>https://h3sun.github.io/post/2025-10-27-one-country-a-day-finland/</link><pubDate>Mon, 27 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-27-one-country-a-day-finland/</guid><description>&lt;h2 id="-finland---day-35100-of-one-country-a-day-project">🇫🇮 Finland - Day 35/100 of One Country a Day Project&lt;/h2>
&lt;p>Finland stands as one of Europe&amp;rsquo;s most innovative and resilient nations, consistently ranking as the world&amp;rsquo;s happiest country while maintaining a small but advanced economy. From its Finnish defense during WWII against the Soviet Union to its current role as NATO&amp;rsquo;s newest member (joined 2023) and a global leader in education, technology, and environmental sustainability, Finland has transformed itself from a resource-dependent economy to a knowledge-based powerhouse. The country&amp;rsquo;s success story is built on strong institutions, forest resources, technological innovation, and a commitment to social welfare. Today, we examine this Nordic nation that has leveraged its human capital and strategic positioning to become a model of sustainable development and technological excellence.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$300–306 billion&lt;/strong> USD — IMF WEO 2024/Oct extracts &amp;amp; summaries. (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp.php?utm_source=chatgpt.com" title="Finland GDP 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$54–56k** USD — IMF WEO 2024/Oct (IMF Data Mapper shows Finland ≈ mid-$50k). (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp-per-capita.php?utm_source=chatgpt.com" title="Finland GDP per capita 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$64–66k&lt;/strong> USD PPP — IMF/World Bank series (2024 round). (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp-per-capita.php?utm_source=chatgpt.com" title="Finland GDP per capita 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>5.6 million&lt;/strong> — World Bank WDI 2024. (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=FI" title="Population, total - Finland | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>~2.8% of GDP (net importer)&lt;/strong> — WDI/WITS &amp;ldquo;Trade balance (% of GDP)&amp;rdquo; latest (Dec 2024 update). (&lt;a href="https://wits.worldbank.org/countrysnapshot/FIN?utm_source=chatgpt.com" title="Finland Trade | WITS Data">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈338,480 km²&lt;/strong> — World Bank. (&lt;a href="https://databank.worldbank.org/reports.aspx?country=FIN&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Helsinki&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Helsinki; Espoo; Tampere; Vantaa; Oulu; Turku; Jyväskylä; Kuopio; Lahti; Pori — latest municipal counts. (&lt;a href="https://stat.fi/tup/suoluk/suoluk_vaesto_en.html?utm_source=chatgpt.com" title="Population and society | Statistics Finland">Statistics Finland&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Telecom/Tech:&lt;/strong> Nokia; &lt;strong>Industrial:&lt;/strong> KONE, Wärtsilä; &lt;strong>Energy:&lt;/strong> Fortum, &lt;strong>Neste&lt;/strong> (renewables &amp;amp; refining); &lt;strong>Forestry/Paper:&lt;/strong> UPM-Kymmene, Stora Enso; &lt;strong>Finance/Insurance:&lt;/strong> Sampo; &lt;strong>Retail:&lt;/strong> Kesko; &lt;strong>Gaming:&lt;/strong> Supercell/Rovio — representative firms from Helsinki market &amp;amp; rankings. (&lt;a href="https://disfold.com/finland/companies/?utm_source=chatgpt.com" title="Top 117 largest Finnish Companies by Market Cap">Disfold&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Extensive boreal forests (major pulp &amp;amp; paper sector); very high freshwater endowment (lake-rich geography); notable &lt;strong>battery-metal&lt;/strong> base — nickel &amp;amp; cobalt output via Terrafame; lithium project (Keliber) advancing; limited hydrocarbons. (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp.php?utm_source=chatgpt.com" title="Finland GDP 2024">GTK&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong timber and critical-minerals position in the EU boosts strategic relevance; agricultural land and fossil reserves limited, tempering the overall resource score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Cold continental/subarctic climate; low seismic risk; robust infrastructure &amp;amp; social services. Finland remains &lt;strong>#1 &amp;ldquo;World Happiness&amp;rdquo;&lt;/strong> (2024/2025 reports). Very high HDI (~0.95). (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp-per-capita.php?utm_source=chatgpt.com" title="Finland GDP per capita 2024">Business Insider&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Harsh winters reduce climatic comfort, but excellent urban services, safety, education and social trust underpin top-tier livability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Long, forest-and-lake-buffered terrain; ~&lt;strong>1,340 km&lt;/strong> land border with Russia; Baltic access. &lt;strong>Geopolitics (40%)&lt;/strong>: EU &amp;amp; &lt;strong>NATO&lt;/strong> member (since 2023); external EU/NATO frontier; Russia border closures amid &amp;ldquo;instrumentalized migration.&amp;rdquo; (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=FI" title="Population, total - Finland | Data">AP News&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">NATO membership, geography, and high readiness significantly deter threats, but the extended Russia border and Baltic exposure remain non-trivial risks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024: 100/100 (Free);&lt;/strong> &lt;strong>Transparency Int&amp;rsquo;l CPI 2024: 88/100 (rank #2);&lt;/strong> &lt;strong>WJP Rule of Law 2024: #3/142 (score ≈0.87).&lt;/strong> (&lt;a href="https://wits.worldbank.org/countrysnapshot/FIN?utm_source=chatgpt.com" title="Finland Trade | WITS Data">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Among the world&amp;rsquo;s best on democracy, low corruption, and rule-of-law — a hallmark long-run advantage for policy credibility and investment.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Advanced, diversified small open economy; 2024 output around &lt;strong>$300b&lt;/strong>; weak 2024 growth (flat to slight contraction), recovery projected in 2025; fossil-free electricity &lt;strong>~95% of domestic generation (nuclear ~38–40%, wind ~24–26%)&lt;/strong>; fiscal deficit and ageing weigh on medium-term. (&lt;a href="https://databank.worldbank.org/reports.aspx?country=FIN&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">Statistics Times&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High human capital, innovation and very clean power mix support resilience; cyclical softness, high openness to trade shocks, and demographics are headwinds.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Elite institutions and rule-of-law; EU/NATO anchor; high-quality human capital &amp;amp; R&amp;amp;D; clean, reliable power (nuclear + wind); strategic &lt;strong>battery-minerals&lt;/strong> role in the EU; globally competitive firms in telecoms, machinery, renewables, and forest products. (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp.php?utm_source=chatgpt.com" title="Finland GDP 2024">World Justice Project&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Small, trade-exposed economy with volatile external demand; cold climate &amp;amp; long distances; ageing population &amp;amp; rising public debt; long frontier with Russia creates persistent security &amp;amp; migration-hybrid-pressure management costs. (&lt;a href="https://statisticstimes.com/economy/country/finland-gdp-per-capita.php?utm_source=chatgpt.com" title="Finland GDP per capita 2024">OECD&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Near-term: modest growth as 2024 slump fades; medium-term focus on energy-intensive green industry (data centers, hydrogen, battery value chain) leveraging very low-carbon electricity; continued defense integration within NATO and EU strategic autonomy. Fiscal consolidation and productivity reforms remain pivotal. (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=FI" title="Population, total - Finland | Data">OECD&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Belgium as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Netherlands</title><link>https://h3sun.github.io/post/2025-10-26-one-country-a-day-netherlands/</link><pubDate>Sun, 26 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-26-one-country-a-day-netherlands/</guid><description>&lt;h2 id="-netherlands---day-34100-of-one-country-a-day-project">🇳🇱 Netherlands - Day 34/100 of One Country a Day Project&lt;/h2>
&lt;p>The Netherlands stands as one of Europe&amp;rsquo;s most advanced economies and a global gateway connecting Europe to the world. As a founding member of the European Union, NATO, and numerous international organizations, the Netherlands has leveraged its strategic location at the mouth of the Rhine delta to become one of the world&amp;rsquo;s most competitive and innovative economies. From its iconic water management systems and centuries of maritime trading tradition to its current role as a global logistics hub, financial center, and technology leader, the Netherlands&amp;rsquo; story is one of geographic mastery, economic transformation, and institutional excellence. Today, we examine this small but mighty nation that punches far above its weight in global commerce, innovation, and international affairs.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$1.22 trillion&lt;/strong> USD — source: IMF WEO Oct-2024 (via StatisticsTimes). (&lt;a href="https://statisticstimes.com/economy/country/netherlands-gdp.php?utm_source=chatgpt.com" title="Netherlands GDP 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$73,000&lt;/strong> USD — IMF WEO DataMapper 2024. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/USA/DEU?utm_source=chatgpt.com" title="IMF: GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$84,000&lt;/strong> USD PPP — IMF WEO DataMapper 2024. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP per capita, ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>18.0 million&lt;/strong> (17,994,237 in 2024) — World Bank WDI. (&lt;a href="https://data.worldbank.org/country/netherlands?utm_source=chatgpt.com" title="Netherlands | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −12%&lt;/strong> (i.e., &lt;strong>net exporter&lt;/strong>) — exports ≈84.1% of GDP vs imports ≈72.0% (2024, WDI). (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=NLD&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 41,540 km²&lt;/strong> — World Bank. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Amsterdam&lt;/strong> (seat of government: &lt;strong>The Hague&lt;/strong>). (&lt;a href="https://www.cia.gov/the-world-factbook/countries/netherlands/?utm_source=chatgpt.com" title="Netherlands - The World Factbook">CIA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Amsterdam, Rotterdam, The Hague, Utrecht, Eindhoven, Tilburg, Groningen, Almere, Breda, Nijmegen. (&lt;a href="https://en.wikipedia.org/wiki/Template%3ALargest_cities_of_the_Netherlands?utm_source=chatgpt.com" title="Template:Largest cities of the Netherlands">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Semiconductors &amp;amp; equipment&lt;/strong> (ASML); &lt;strong>Banking/Fintech&lt;/strong> (ING Group, Rabobank, Adyen); &lt;strong>Food &amp;amp; beverage&lt;/strong> (Heineken); &lt;strong>Retail&lt;/strong> (Ahold Delhaize); &lt;strong>Health tech&lt;/strong> (Philips); &lt;strong>Chemicals/Coatings&lt;/strong> (DSM-Firmenich, AkzoNobel). (Forbes Global 2000; company reports). (&lt;a href="https://www.forbes.com/lists/global2000/?utm_source=chatgpt.com" title="Forbes' 2025 Global 2000 List - The World's Largest ...">Forbes&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Large &lt;strong>North Sea&lt;/strong> EEZ; legacy &lt;strong>natural gas&lt;/strong> (Groningen) now &lt;strong>permanently closed&lt;/strong> (law passed in 2024); rapid &lt;strong>offshore wind&lt;/strong> build-out (govt target ≈21 GW by 2032). (&lt;a href="https://statisticstimes.com/economy/country/netherlands-gdp.php?utm_source=chatgpt.com" title="Netherlands GDP 2024">Offshore Technology&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited hydrocarbons going forward and few strategic minerals; strength is maritime wind and agro-logistics. Closure of Groningen reduces domestic gas leverage but improves seismic risk outcomes.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Temperate oceanic climate; very high &lt;strong>flood-risk management&lt;/strong> (Delta Works; Delta Programme 2025). ~&lt;strong>26% below sea level&lt;/strong>; ~&lt;strong>55% at flood risk&lt;/strong> (sea or river). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/USA/DEU?utm_source=chatgpt.com" title="IMF: GDP per capita, current prices">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Excellent infrastructure and adaptation capacity, yet structural exposure to sea-level rise and river flooding keeps risk non-trivial. Housing tightness also weighs on livability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: flat, low-lying terrain; long North Sea coast; major &lt;strong>Rhine-Meuse delta&lt;/strong> port (Rotterdam). &lt;strong>Geopolitics (40%)&lt;/strong>: core &lt;strong>EU/NATO&lt;/strong> member; hosts international courts (&lt;strong>ICC&lt;/strong> in The Hague); pushing toward ≥2% GDP defense outlays. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP per capita, ...">CIA&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Geography is defensively challenging, but alliance depth, legal-diplomatic stature, and logistics hubs (ports) provide strong strategic buffers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> 97/100 &amp;ldquo;Free&amp;rdquo;; &lt;strong>TI-CPI 2024:&lt;/strong> &lt;strong>78/100&lt;/strong> (rank ≈9/180); &lt;strong>WJP Rule of Law 2024:&lt;/strong> score &lt;strong>0.83&lt;/strong>, &lt;strong>rank 8/142&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/netherlands?utm_source=chatgpt.com" title="Netherlands | Data">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Liberal-democratic institutions, low corruption, and very strong rule-of-law. Recent political churn doesn&amp;rsquo;t materially weaken institutional quality.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High-income, &lt;strong>trade-intensive&lt;/strong> economy (surplus ≈&lt;strong>12% of GDP&lt;/strong> in 2024); &lt;strong>innovation&lt;/strong> powerhouse (&lt;strong>GII 2024 rank: 8th&lt;/strong>); OECD projects modest growth (~0.9% in 2024, re-accelerating thereafter). (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=NLD&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diversified (semiconductor equipment, logistics, finance, food), highly productive, strong firms (ASML/Adyen/Heineken/Ahold). Exposure to external demand and tariffs is a key swing factor.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class institutions and rule-of-law; leading innovation ecosystem (GII top-10); powerhouse in high-tech manufacturing (ASML) and payments (Adyen); Europe&amp;rsquo;s key logistics hub with persistent trade surplus; advanced flood-risk management. (&lt;a href="https://statisticstimes.com/economy/country/netherlands-gdp.php?utm_source=chatgpt.com" title="Netherlands GDP 2024">WIPO&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Extremely low-lying geography; long-term sea-level/river-flood exposure; domestic hydrocarbons effectively retired; housing tightness; small strategic depth. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/USA/DEU?utm_source=chatgpt.com" title="IMF: GDP per capita, current prices">PBL&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Green-tech &amp;amp; services-led&lt;/strong> growth with continued &lt;strong>offshore wind&lt;/strong> buildout and high-value export services; institutional continuity supports investment; risks from global trade frictions and climate adaptation costs are manageable but non-negligible. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/OEMDC/ADVEC/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP per capita, ...">RVO.nl&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Belgium as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Ukraine</title><link>https://h3sun.github.io/post/2025-10-25-one-country-a-day-ukraine/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-25-one-country-a-day-ukraine/</guid><description>&lt;h2 id="-ukraine---day-33100-of-one-country-a-day-project">🇺🇦 Ukraine - Day 33/100 of One Country a Day Project&lt;/h2>
&lt;p>Ukraine stands as Europe&amp;rsquo;s largest country by area and a critical geopolitical pivot point between Russia and the West, currently navigating one of the most challenging periods in its modern history. As a nation with vast agricultural potential, significant energy resources, and strategic location spanning Eastern Europe and the Black Sea region, Ukraine represents both immense opportunity and profound vulnerability. From its rich cultural heritage and historical role as &amp;ldquo;the breadbasket of Europe&amp;rdquo; to its current position as a frontline state in the struggle for European security and democracy, Ukraine&amp;rsquo;s story is one of resilience, transformation, and strategic importance. Today, we examine this pivotal nation that balances enormous potential with immediate existential challenges, while serving as a crucial test case for European security architecture and democratic resilience in the face of authoritarian aggression.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$191 billion** USD — World Bank 2024 current US$ (IMF WEO also used for cross-checks). (&lt;a href="https://data.worldbank.org/country/ukraine?utm_source=chatgpt.com" title="Ukraine | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$5,390&lt;/strong> USD — World Bank 2024. (&lt;a href="https://data.worldbank.org/country/ukraine?utm_source=chatgpt.com" title="Ukraine | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$18,550** USD (current international $) — World Bank 2024. (&lt;a href="https://tradingeconomics.com/ukraine/gdp-per-capita-ppp-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Ukraine - GDP Per Capita, PPP (current International $)">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>37.9 million&lt;/strong> (2024). Note: figures exclude occupied territories; war-time displacement creates uncertainty. (&lt;a href="https://data.worldbank.org/country/ukraine?utm_source=chatgpt.com" title="Ukraine | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>~17% of GDP (net importer)&lt;/strong> — external balance on goods &amp;amp; services (trade balance % of GDP ≈ &lt;strong>-16.8%&lt;/strong>, 2024). (&lt;a href="https://wits.worldbank.org/countrysnapshot/UKR?utm_source=chatgpt.com" title="Ukraine Trade | WITS Data">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>603,550 km²&lt;/strong> — World Bank. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=UA&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Ukraine">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Kyiv&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Kyiv, Kharkiv, Odesa, Dnipro, Lviv, Zaporizhzhia, Kryvyi Rih, Mykolaiv, Vinnytsia, Chernihiv.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy:&lt;/strong> Naftogaz, Energoatom, Ukrnafta, Ukrgazvydobuvannya; &lt;strong>Transport:&lt;/strong> Ukrzaliznytsia; &lt;strong>Metals:&lt;/strong> Metinvest; &lt;strong>Agri-food:&lt;/strong> Kernel, MHP; &lt;strong>Retail:&lt;/strong> ATB-Market, Silpo; &lt;strong>IT/Tech:&lt;/strong> SoftServe, Grammarly (UA-founded). (&lt;a href="https://ubn.news/which-ukrainian-companies-achieved-the-highest-revenue-in-2024/?utm_source=chatgpt.com" title="Which Ukrainian companies achieved the highest revenue in ...">UBN&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">One of the world&amp;rsquo;s largest expanses of fertile &lt;strong>chernozem&lt;/strong> soils; major grains &amp;amp; oilseeds exporter pre-war; iron ore &amp;amp; coal endowments; large nuclear fleet (Energoatom). War-related &lt;strong>mining/UXO&lt;/strong> contamination has removed ~2–3% of agricultural land from use and depresses output. (&lt;a href="https://data.worldbank.org/country/ukraine?utm_source=chatgpt.com" title="Ukraine | Data">UBN&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong agricultural base and minerals; near-term usability constrained by contamination and frontline risks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mostly &lt;strong>humid continental&lt;/strong> climate; ND-GAIN overall rank ~70 (score ~51.2) indicating moderate vulnerability/readiness; livability heavily impacted by attacks on energy, displacement, and security risks. (&lt;a href="https://tradingeconomics.com/ukraine/gdp-per-capita-ppp-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Ukraine - GDP Per Capita, PPP (current International $)">Climate Knowledge Portal&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Climate is temperate and agriculturally favorable, but wartime shocks (energy grid, housing, security) materially reduce livability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: broad plains with key river barriers (Dnipro); extensive land borders and Black Sea frontage — defensible chokepoints limited. &lt;strong>Geopolitics (40%)&lt;/strong>: EU &lt;strong>accession talks formally opened June 25, 2024&lt;/strong>; multiple bilateral &lt;strong>10-year security agreements&lt;/strong> with G7 states; GPI 2024 ranks Ukraine &lt;strong>159/163&lt;/strong> (active war). (&lt;a href="https://wits.worldbank.org/countrysnapshot/UKR?utm_source=chatgpt.com" title="Ukraine Trade | WITS Data">European Commission&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic alignment is improving (EU path, security compacts), but ongoing invasion and exposed terrain weigh very heavily.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Freedom House &lt;strong>49/100 (Partly Free)&lt;/strong>; WJP Rule of Law 2024 &lt;strong>score ~0.49, rank 88/142&lt;/strong>; Transparency Intl CPI 2024 &lt;strong>35/100, rank ~105/180&lt;/strong> (gradual anticorruption progress but still weak). (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=UA&amp;amp;utm_source=chatgpt.com" title="Surface area (sq. km) - Ukraine">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Wartime governance shows resilience and reform momentum, yet institutions remain strained; corruption and rule-of-law gaps persist.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">2024 GDP ≈ &lt;strong>$191 bn**; nominal GDP pc ≈ **$5.4k&lt;/strong>; PPP pc ≈ &lt;strong>$18.6k**. Growth in 2024 estimated **~3–4%**, slowing amid labor shortages, infrastructure attacks; large **trade &amp; current-account gaps**; reconstruction needs estimated **>$500 bn&lt;/strong> over next decade. (&lt;a href="https://ubn.news/which-ukrainian-companies-achieved-the-highest-revenue-in-2024/?utm_source=chatgpt.com" title="Which Ukrainian companies achieved the highest revenue in ...">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Economy stabilized with external support and policy discipline; medium-term upside tied to security, EU integration, and reconstruction execution.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional agricultural endowment and export know-how; diversified heavy industry/steel base; strong human capital and globally competitive IT services; deepening EU alignment and multi-year security agreements; nuclear generation supports energy security and decarbonization. (&lt;a href="https://data.worldbank.org/country/ukraine?utm_source=chatgpt.com" title="Ukraine | Data">UBN&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Active large-scale war; exposed geography; extensive mine/UXO contamination; high trade &amp;amp; current-account deficits; governance/corruption challenges; demographic shock and out-migration. (&lt;a href="https://tradingeconomics.com/ukraine/gdp-per-capita-ppp-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Ukraine - GDP Per Capita, PPP (current International $)">Vision of Humanity&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Base case: &lt;strong>gradual EU acquis convergence&lt;/strong>, institutional reforms, and stepwise reconstruction; growth rebounds with logistics/energy rebuild and agri/IT exports; risks include prolonged conflict, financing fatigue, and demographic shortfall. Upside: ceasefire + accelerated demining + EU market access could lift medium-term growth and investment. (&lt;a href="https://wits.worldbank.org/countrysnapshot/UKR?utm_source=chatgpt.com" title="Ukraine Trade | WITS Data">European Commission&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Poland as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Romania</title><link>https://h3sun.github.io/post/2025-10-24-one-country-a-day-romania/</link><pubDate>Fri, 24 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-24-one-country-a-day-romania/</guid><description>&lt;h2 id="-romania---day-32100-of-one-country-a-day-project">🇷🇴 Romania - Day 32/100 of One Country a Day Project&lt;/h2>
&lt;p>Romania stands as Eastern Europe&amp;rsquo;s second-largest economy and a key strategic bridge between Central Europe and the Balkans, with growing influence in the Black Sea region. As a NATO and EU member since 2004 and 2007 respectively, Romania has transformed from a post-communist transition economy into a dynamic market economy with significant potential in technology, manufacturing, and energy sectors. From its rich cultural heritage spanning Roman, Ottoman, and Austro-Hungarian influences to its current role as a regional energy hub and cybersecurity leader, Romania&amp;rsquo;s story is one of resilience, modernization, and strategic positioning. Today, we examine this Balkan powerhouse that leverages its geographic advantages, human capital, and EU integration while navigating the complex dynamics of Eastern European geopolitics and economic development.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$420–425 bn&lt;/strong> USD — source: IMF WEO DataMapper (Oct 2025 vintage, 2024–25 est.) (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$22.4k&lt;/strong> USD — IMF WEO 2024/25 DataMapper (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/ROU/HUN?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$48.9k&lt;/strong> USD (PPP) — IMF WEO Database 2024/25 DataMapper (&lt;a href="https://www.imf.org/external/datamapper/profile/ROU?utm_source=chatgpt.com" title="IMF DataMapper - Romania">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>19.1 million&lt;/strong> — World Bank (latest, 2024) (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=RO&amp;amp;utm_source=chatgpt.com" title="Population, total - Romania">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>~+6.9% of GDP (net importer)&lt;/strong> — Exports ≈42.5% vs. Imports ≈49.4% of GDP (WDI/WITS, latest update Dec 2024; 2024 values) (&lt;a href="https://wits.worldbank.org/countrysnapshot/ROM?utm_source=chatgpt.com" title="Romania Trade | WITS Data">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>238,400 km²&lt;/strong> — World Bank Data (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Bucharest&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Bucharest; Cluj-Napoca; Iași; Constanța; Timișoara; Brașov; Craiova; Galați; Oradea; Ploiești (by latest census ranks) (&lt;a href="https://www.citypopulation.de/en/romania/cities/?utm_source=chatgpt.com" title="Romania: Counties and Major Cities">City Population&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy &amp;amp; Utilities:&lt;/strong> Hidroelectrica (largest BSE listing, 2023 IPO); Romgaz; OMV Petrom (upstream/refining). &lt;strong>Auto/Manufacturing:&lt;/strong> Dacia (Renault Group). &lt;strong>IT &amp;amp; Software:&lt;/strong> UiPath (RPA, NYSE); Bitdefender (cybersecurity). &lt;strong>Telecom/Media:&lt;/strong> Digi (RCS&amp;amp;RDS). &lt;strong>Banking:&lt;/strong> Banca Transilvania (largest by assets). (&lt;a href="https://www.reuters.com/markets/deals/romanias-hidroelectrica-tops-10-bln-valuation-historic-ipo-2023-07-05/?utm_source=chatgpt.com" title="Romania's Hidroelectrica tops $10 billion valuation in ' ...">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Onshore gas &amp;amp; oil (Romgaz; OMV Petrom) and &lt;strong>large Black Sea gas&lt;/strong> project (Neptun Deep) moving toward first gas ~&lt;strong>2027&lt;/strong> (≈100 bcm recoverable); significant &lt;strong>hydropower&lt;/strong> (Hidroelectrica), plus arable land ~60% and forests ~29%. Coal (lignite) still present but declining. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid, diversified energy base with a major gas upside that can shift Romania to net exporter status; agricultural endowment is good, but mineral endowment is moderate.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Temperate-continental climate; hot summers/cold winters. &lt;strong>Seismic risk&lt;/strong> concentrated in &lt;strong>Vrancea&lt;/strong> zone (historic M7+); flood/heatwave risks rising. Urban air quality varies. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/ROU/HUN?utm_source=chatgpt.com" title="GDP per capita, current prices">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Generally livable climate across regions and improving infrastructure, but earthquake risk (esp. Bucharest) and episodic pollution/weather extremes temper the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Carpathians shield center; Danube barrier south; &lt;strong>Black Sea coast&lt;/strong> (~225 km) enables access but also exposure. Hosts &lt;strong>Aegis Ashore (Deveselu)&lt;/strong>; NATO posture expanding (MK air base). &lt;strong>Geopolitics (40%)&lt;/strong>: EU &amp;amp; &lt;strong>NATO member&lt;/strong> since 2004; &lt;strong>full Schengen&lt;/strong> from &lt;strong>Jan 1, 2025&lt;/strong> (air/sea since Mar 31, 2024). Defense outlays &amp;gt;2% GDP (moving toward 2.5–3%). (&lt;a href="https://www.imf.org/external/datamapper/profile/ROU?utm_source=chatgpt.com" title="IMF DataMapper - Romania">NATO&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong alliance architecture and strategic position on NATO&amp;rsquo;s eastern flank raise deterrence and connectivity; exposure to Black Sea tensions and Ukraine border is the main risk.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> &lt;em>Free&lt;/em>, &lt;strong>83/100&lt;/strong>. &lt;strong>WJP Rule of Law 2024:&lt;/strong> score ~0.62, &lt;strong>rank 41/142&lt;/strong>. &lt;strong>Transparency Intl CPI 2024:&lt;/strong> &lt;strong>46/100&lt;/strong> (rank ~65/180). (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=RO&amp;amp;utm_source=chatgpt.com" title="Population, total - Romania">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Democratic institutions broadly robust but corruption and administrative capacity constraints persist relative to EU peers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Upper-middle/high-income convergence path. 2024 growth &lt;strong>~0.9%&lt;/strong> (WB), weighed by EU slowdown; &lt;strong>very high fiscal deficit ~9.3% of GDP&lt;/strong> triggers EU corrective steps; consolidation expected 2025–26. Strong IT/services &amp;amp; autos; large EU funds pipeline. (&lt;a href="https://wits.worldbank.org/countrysnapshot/ROM?utm_source=chatgpt.com" title="Romania Trade | WITS Data">World Bank&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diversified economy with competitive niches (IT, autos, energy). Near-term risks: fiscal consolidation drag and external demand; medium-term upside from EU funds and gas.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">EU/NATO anchoring; growing Black Sea gas (Neptun Deep); sizeable industrial &amp;amp; IT services base; hydropower backbone; Schengen integration improves flows. (&lt;a href="https://www.imf.org/external/datamapper/NGDPD%40WEO/WEOWORLD?utm_source=chatgpt.com" title="World Economic Outlook (October 2025) - GDP, current ...">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High fiscal and current-account deficits; governance/corruption gaps versus EU average; earthquake exposure (Vrancea); reliance on EU demand cycles. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/ROU/HUN?utm_source=chatgpt.com" title="GDP per capita, current prices">Economy and Finance&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Base case:&lt;/strong> gradual fiscal repair and EU-fund-backed investment → steady convergence; &lt;strong>energy upside&lt;/strong> from offshore gas enhances security and export potential; defense role on NATO&amp;rsquo;s eastern flank deepens. Risks: policy slippage on deficits, external shocks in the Black Sea region. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO/ROU/HUN?utm_source=chatgpt.com" title="GDP per capita, current prices">Economy and Finance&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Bulgaria as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Norway</title><link>https://h3sun.github.io/post/2025-10-23-one-country-a-day-norway/</link><pubDate>Thu, 23 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-23-one-country-a-day-norway/</guid><description>&lt;h2 id="-norway---day-31100-of-one-country-a-day-project">🇳🇴 Norway - Day 31/100 of One Country a Day Project&lt;/h2>
&lt;p>Norway stands as one of the world&amp;rsquo;s wealthiest nations per capita, built on a foundation of abundant natural resources, particularly oil and gas, combined with exceptional governance and social welfare systems. As a founding NATO member with a unique position bridging Europe and the Arctic, Norway leverages its strategic location, vast energy reserves, and innovative approach to sustainable development. From its Viking heritage to its current role as a global leader in renewable energy transition and Arctic governance, Norway&amp;rsquo;s story is one of resource wealth managed responsibly, technological innovation, and strategic neutrality within strong alliances. Today, we examine this Nordic powerhouse that balances energy exports with environmental stewardship while maintaining its position as one of the world&amp;rsquo;s most prosperous and well-governed nations.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$483.7 billion USD&lt;/strong> — World Bank WDI for 2024. (&lt;a href="https://www.theglobaleconomy.com/Norway/GDP_current_USD/?utm_source=chatgpt.com" title="Norway GDP, current U.S. dollars - data, chart - The Global Economy">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$86,810 USD&lt;/strong> — World Bank data 2024. (&lt;a href="https://data360.worldbank.org/en/economy/NOR?utm_source=chatgpt.com" title="Norway - Economy">Data 360&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$100,000 USD PPP&lt;/strong> (estimate) — derived from high-income status and other sources (nominal ~86.8k, PPP premium implied) (&lt;a href="https://en.wikipedia.org/wiki/Norway?utm_source=chatgpt.com" title="Norway">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>5.57 million&lt;/strong> — World Bank/UN estimate for 2024. (&lt;a href="https://fred.stlouisfed.org/series/POPTOTNOA647NWDB?utm_source=chatgpt.com" title="Population, Total for Norway (POPTOTNOA647NWDB) - FRED">FRED&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Roughly &lt;strong>net exporter&lt;/strong>: exports of goods &amp;amp; services ~47.6% of GDP (2024) and imports ~33.7% of GDP → trade surplus ~13.9% of GDP. (&lt;a href="https://www.theglobaleconomy.com/Norway/exports/?utm_source=chatgpt.com" title="Norway Exports, percent of GDP - data, chart">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>385,178 km²&lt;/strong> — World Bank Data. (&lt;a href="https://databank.worldbank.org/reports.aspx?country=NOR&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oslo&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Oslo; Bergen; Stavanger; Trondheim; Tromsø; Kristiansand; Drammen; Fredrikstad; Porsgrunn–Skien; Sandnes.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Key sectors: Oil &amp;amp; gas (Equinor), shipping (Wilhelmsen), seafood &amp;amp; aquaculture (Mowi), renewable energy, offshore technology, maritime equipment, forestry.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Norway has substantial renewable energy (hydro, wind), very large petroleum &amp;amp; natural gas reserves in the North Sea/Barents Sea, forestry and freshwater resources; arable land is limited.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">The country&amp;rsquo;s abundant hydrocarbons and renewables give strategic resource leverage; limitation is the concentration on oil/gas and climate transition risk.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Moderate coastal climate in south, sub-arctic in north; low risk of major catastrophes; top human development; high infrastructure and social services. (&lt;a href="https://www.theglobaleconomy.com/Norway/GDP_current_USD/?utm_source=chatgpt.com" title="Norway GDP, current U.S. dollars - data, chart - The Global Economy">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very high livability and institutional quality; slightly penalised by harsh northern geography for parts of population.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: extensive coastline, rugged terrain, relatively low population density, Arctic/LNG access; &lt;strong>Geopolitics (40%)&lt;/strong>: member of NATO, important energy exporter into Europe, strong Nordic region ties.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very favourable strategic position in Europe and energy markets; defence geography favourable though large coastline and Arctic exposure pose complexity.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Rated &amp;ldquo;Free&amp;rdquo; by Freedom House (99/100) in 2024. (&lt;a href="https://data360.worldbank.org/en/economy/NOR?utm_source=chatgpt.com" title="Norway - Economy">Freedom House&lt;/a>) High economic freedom (Heritage index score ~78.3). (&lt;a href="https://en.wikipedia.org/wiki/Norway?utm_source=chatgpt.com" title="Norway">The Heritage Foundation&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Among the world&amp;rsquo;s highest in governance, transparency and institutional strength; minor issues only.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Highly developed, high income, diversified beyond oil (services, maritime, tech), strong sovereign wealth fund. Growth moderate (transitioning from oil dependence). (&lt;a href="https://fred.stlouisfed.org/series/POPTOTNOA647NWDB?utm_source=chatgpt.com" title="Population, Total for Norway (POPTOTNOA647NWDB) - FRED">IMF&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Excellent development level and resilience, but growth is moderate and transition away from hydrocarbons presents medium-term challenge.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional governance and rule of law; strong natural resource endowment (hydro, oil/gas, forestry); high living standards; strategic energy/export position; stable and diversified economy with substantial fiscal buffers (sovereign wealth).&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Heavy reliance on hydrocarbons poses transition risk; relatively small domestic market; geographic challenges (northern latitudes, sparse population in many areas) for infrastructure and connectivity; export exposure to cyclical global demand.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Likely continued shift toward renewable energy, green technologies and offshore/Arctic opportunities; managing decline of oil/gas legacy and diversifying economy; further integration in European energy markets and increasing role in climate/energy geopolitics; growth expected to remain stable but subdued compared to emerging markets, with focus on quality and sustainability.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Denmark as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Sweden</title><link>https://h3sun.github.io/post/2025-10-22-one-country-a-day-sweden/</link><pubDate>Wed, 22 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-22-one-country-a-day-sweden/</guid><description>&lt;h2 id="-sweden---day-30100-of-one-country-a-day-project">🇸🇪 Sweden - Day 30/100 of One Country a Day Project&lt;/h2>
&lt;p>Sweden stands as Scandinavia&amp;rsquo;s largest economy and a global leader in innovation, sustainability, and social welfare. As one of the world&amp;rsquo;s most developed nations with exceptional quality of life indicators, Sweden combines vast natural resources with cutting-edge technology and strong democratic institutions. From its Viking heritage to its current role as a neutral power with growing NATO integration, Sweden&amp;rsquo;s story is one of progressive governance, technological advancement, and strategic positioning. Today, we examine this Nordic powerhouse that leverages its geographic advantages while maintaining its commitment to neutrality, sustainability, and social equality in an increasingly complex geopolitical environment.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$609 bn&lt;/strong> — IMF WEO (Oct 2024, compiled) (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp.php?utm_source=chatgpt.com" title="Sweden GDP 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$57,200&lt;/strong> — IMF WEO 2024 (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp-per-capita.php?utm_source=chatgpt.com" title="Sweden GDP per capita 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$71,700** (int'l $) — IMF WEO 2024 (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp-per-capita.php?utm_source=chatgpt.com" title="Sweden GDP per capita 2024">Statistics Times&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>10.57 million&lt;/strong> (2024) — World Bank (&lt;a href="https://data.worldbank.org/country/sweden?utm_source=chatgpt.com" title="Sweden | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –4.4%&lt;/strong> (i.e., &lt;strong>net exporter&lt;/strong>; Exports 54.6% vs Imports 50.2% of GDP, 2024) — World Bank WDI (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=SWE&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>447,420 km²&lt;/strong> — World Bank Data (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=SWE&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Stockholm&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Stockholm; Gothenburg; Malmö; Uppsala; Västerås; Örebro; Linköping; Helsingborg; Jönköping; Norrköping. (&lt;a href="https://www.worldatlas.com/articles/the-biggest-cities-in-sweden.html?utm_source=chatgpt.com" title="Biggest Cities In Sweden">WorldAtlas&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Industrials &amp;amp; Engineering:&lt;/strong> Atlas Copco, Sandvik, SKF; &lt;strong>Vehicles:&lt;/strong> Volvo Group, Volvo Cars; &lt;strong>Telecom:&lt;/strong> Ericsson; &lt;strong>Consumer &amp;amp; Retail:&lt;/strong> IKEA, H&amp;amp;M; &lt;strong>Tech &amp;amp; Media:&lt;/strong> Spotify; &lt;strong>Pharma/Biotech:&lt;/strong> AstraZeneca (SE–UK). (&lt;a href="https://companiesmarketcap.com/sweden/largest-companies-in-sweden-by-market-cap/?utm_source=chatgpt.com" title="Largest Swedish companies by market capitalization">Companies Market Cap&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">EU&amp;rsquo;s leading &lt;strong>iron ore&lt;/strong> producer via LKAB; extensive &lt;strong>forests&lt;/strong> (timber/biomass); abundant &lt;strong>freshwater&lt;/strong>; modest &lt;strong>arable land&lt;/strong> (~6% of land). Power mix dominated by &lt;strong>hydro, nuclear, and growing wind&lt;/strong>. (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp.php?utm_source=chatgpt.com" title="Sweden GDP 2024">SGU Resource&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid mineral base and renewable electricity; limited arable land tempers food self-sufficiency but low-carbon power is a structural advantage.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Cool temperate to sub-arctic; low catastrophe frequency; top-tier &lt;strong>adaptation readiness&lt;/strong> (ND-GAIN rank ≈5) and very high &lt;strong>human development&lt;/strong>; strong urban infrastructure and social services. (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp-per-capita.php?utm_source=chatgpt.com" title="Sweden GDP per capita 2024">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High livability/HDI and resilience, though winters and latitude impose climatic constraints.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: long Baltic coastline, interior forests; proximity to Arctic &amp;amp; Baltic SLOCs. &lt;strong>Geopolitics (40%)&lt;/strong>: &lt;strong>NATO member since 7 Mar 2024&lt;/strong>, tight Nordic/Baltic cooperation; active EU policy; expanding &amp;ldquo;total defense.&amp;rdquo; (&lt;a href="https://data.worldbank.org/country/sweden?utm_source=chatgpt.com" title="Sweden | Data">NATO&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">NATO accession markedly improves deterrence and alliance depth; geography is defensible with allied depth, though exposure to Baltic tensions persists.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House:&lt;/strong> 99/100 (Free). &lt;strong>Transparency Intl CPI 2024:&lt;/strong> &lt;strong>80/100&lt;/strong> (rank 8). &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>Rank 4&lt;/strong>, score ≈ 0.86. (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=SWE&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Among the world&amp;rsquo;s best on democratic quality, corruption control, and rule-of-law institutions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very open, diversified, innovation-led economy (&lt;strong>GII 2024 rank 2&lt;/strong>). 2024 output roughly flat-to-modest (+~1%) and recovery expected in 2025–26; strong public finances; trade-exposed to global tariffs/cycle. (&lt;a href="https://www.worldatlas.com/articles/the-biggest-cities-in-sweden.html?utm_source=chatgpt.com" title="Biggest Cities In Sweden">WIPO&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High productivity/innovation offset near-term external headwinds; medium-term resilience remains strong.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class governance and rule of law; low-carbon, reliable power mix (hydro-nuclear-wind); EU&amp;rsquo;s premier iron-ore base; highly innovative firms and R&amp;amp;D ecosystem; NATO membership deepens security guarantees. (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp.php?utm_source=chatgpt.com" title="Sweden GDP 2024">IEA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Small domestic market; high trade exposure to global downturns/tariffs; limited arable land and high latitude climate; housing/interest-rate sensitivity in cycles. (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp-per-capita.php?utm_source=chatgpt.com" title="Sweden GDP per capita 2024">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Continued shift toward electrified, fossil-free industry (e.g., green steel), scaling wind/nuclear amid grid expansion; deeper Nordic-Baltic defense integration within NATO; growth moderate but underpinned by innovation intensity and strong institutions. (&lt;a href="https://statisticstimes.com/economy/country/sweden-gdp.php?utm_source=chatgpt.com" title="Sweden GDP 2024">IEA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Norway as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Poland</title><link>https://h3sun.github.io/post/2025-10-21-one-country-a-day-poland/</link><pubDate>Tue, 21 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-21-one-country-a-day-poland/</guid><description>&lt;h2 id="-poland---day-29100-of-one-country-a-day-project">🇵🇱 Poland - Day 29/100 of One Country a Day Project&lt;/h2>
&lt;p>Poland stands as Central Europe&amp;rsquo;s largest economy and most populous nation, serving as a crucial bridge between Western and Eastern Europe while maintaining strong Atlantic ties. As the EU&amp;rsquo;s 6th-largest economy and a key NATO member, Poland combines strategic geographic positioning with robust democratic institutions and growing economic diversification. From its complex history of partition and occupation to its current role as a leading voice in EU defense policy and energy security, Poland&amp;rsquo;s story is one of resilience, transformation, and strategic positioning. Today, we examine this Central European powerhouse that leverages its geographic advantages while navigating complex relationships with its neighbors and maintaining its commitment to democratic values and Atlantic partnerships.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$915 billion** USD — World Bank current US$ (2024). (&lt;a href="https://tradingeconomics.com/poland/gdp?utm_source=chatgpt.com" title="Poland GDP">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$24.8k&lt;/strong> USD — IMF WEO (Oct 2024/Apr 2025 database for 2024). (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Poland?utm_source=chatgpt.com" title="Economy of Poland">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$52–55k&lt;/strong> USD PPP — IMF WEO DataMapper (2024–25 view). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/RUS/IRN/POL?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>36.6 million&lt;/strong> — World Bank (2024). (&lt;a href="https://data.worldbank.org/country/poland?utm_source=chatgpt.com" title="Poland | Data">World Bank Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –1.1%&lt;/strong> (net &lt;strong>exporter&lt;/strong>; exports 61.7% vs imports 60.6% of GDP, latest WDI/WITS). (&lt;a href="https://wits.worldbank.org/CountryProfile/en/POL?utm_source=chatgpt.com" title="Poland Trade Statistics | WITS">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 312,690 km²&lt;/strong> — World Bank. (&lt;a href="https://databank.worldbank.org/reports.aspx?country=POL&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Warsaw&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Warsaw, Kraków, Łódź, Wrocław, Poznań, Gdańsk, Szczecin, Bydgoszcz, Lublin, Katowice.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Energy &amp;amp; Chemicals:&lt;/strong> Orlen; &lt;strong>Banking/Insurance:&lt;/strong> PKO Bank Polski, Bank Pekao, PZU; &lt;strong>Utilities:&lt;/strong> PGE; &lt;strong>Metals/Mining:&lt;/strong> KGHM (major copper/silver producer); &lt;strong>Retail:&lt;/strong> Dino Polska; &lt;strong>Tech/Platforms:&lt;/strong> Allegro, Asseco; &lt;strong>Gaming/Creative:&lt;/strong> CD Projekt; &lt;strong>Apparel:&lt;/strong> LPP (Reserved, House). (Forbes Global 2000/firm reports). (&lt;a href="https://en.wikipedia.org/wiki/List_of_largest_Polish_companies?utm_source=chatgpt.com" title="List of largest Polish companies">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Significant &lt;strong>coal&lt;/strong> endowment (still central in power mix); &lt;strong>copper &amp;amp; silver&lt;/strong> via KGHM (among top global electrolytic copper producers); broad &lt;strong>arable land&lt;/strong> and freshwater basins (Vistula, Oder). Transition policies are pushing away from coal, but mining remains material. (&lt;a href="https://tradingeconomics.com/poland/gdp?utm_source=chatgpt.com" title="Poland GDP">kghm.com&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid but uneven resource base: strong in coal and copper/silver, modest in oil/gas; leverage improving through electrification &amp;amp; EU transition funds.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Temperate climate; &lt;strong>air quality&lt;/strong> improving yet still a concern (EEA/WHO; EU tightened limits for 2030). Urban services and HDI high for region; ND-GAIN rank ~28–29 indicates relatively strong readiness. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Poland?utm_source=chatgpt.com" title="Economy of Poland">European Environment Agency&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Good livability and infrastructure offset by winter smog/PM2.5 pockets; policy momentum (Clean Air program) is positive. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/RUS/IRN/POL?utm_source=chatgpt.com" title="GDP per capita, current prices">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Flat &lt;strong>North European Plain&lt;/strong>, exposure on Belarus/Kaliningrad borders; robust &lt;strong>NATO&lt;/strong> integration and major &lt;strong>rearmament&lt;/strong> (defense outlays ≈4.1–4.2% of GDP in 2024, highest in NATO). &lt;strong>Geopolitics (40%)&lt;/strong>: EU &amp;amp; NATO memberships, frontline support to Ukraine; elevated hybrid threats but strong alliance cover. (&lt;a href="https://data.worldbank.org/country/poland?utm_source=chatgpt.com" title="Poland | Data">NATO&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.9&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Terrain is defensively challenging, but alliance depth, spending surge (air/missile defense, armor, aviation) and EU positioning lift composite strength. (&lt;a href="https://wits.worldbank.org/CountryProfile/en/POL?utm_source=chatgpt.com" title="Poland Trade Statistics | WITS">European Security &amp;amp; Defence&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House: 82/100 (Free)&lt;/strong>; &lt;strong>Transparency Intl CPI 2024: 53/100 (rank 53/180)&lt;/strong>; &lt;strong>WJP Rule of Law Index 2024: rank 33; &amp;ldquo;most-improved.&amp;rdquo;&lt;/strong> (&lt;a href="https://databank.worldbank.org/reports.aspx?country=POL&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions are broadly strong with recent improvements in rule of law; lingering concerns on corruption/media legacy weigh on the score. (&lt;a href="https://en.wikipedia.org/wiki/List_of_largest_Polish_companies?utm_source=chatgpt.com" title="List of largest Polish companies">Freedom House&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Large, diversified &lt;strong>manufacturing-services&lt;/strong> economy; &lt;strong>2024 real GDP ≈ 2.9%&lt;/strong> with 2025 ~3.2% outlook (OECD/EU). Inflation normalized but fiscal deficit widened; EU funds and nearshoring support investment; high export openness; exposure to global tariff shifts. (&lt;a href="https://www.oecd.org/en/publications/2024/12/oecd-economic-outlook-volume-2024-issue-2_67bb8fac/full-report/poland_92d0d323.html?utm_source=chatgpt.com" title="Poland: OECD Economic Outlook, Volume 2024 Issue 2">OECD&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Competitive cost-quality mix, deep EU supply-chain integration and human capital underpin resilience; key risks: demographics, energy transition costs, fiscal consolidation.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">EU/NATO anchor; highest NATO defense effort (~4% of GDP) raising deterrence; diversified export base with strong auto/white goods/IT services; improving rule-of-law trend; sizable EU funds pipeline; major copper/silver producer (KGHM). (&lt;a href="https://tradingeconomics.com/poland/gdp?utm_source=chatgpt.com" title="Poland GDP">NATO&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Flat terrain and exposed eastern frontier; air quality challenges in heating season; fiscal pressures from defense/social outlays; demographic headwinds; energy system still coal-intensive during transition. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Poland?utm_source=chatgpt.com" title="Economy of Poland">European Environment Agency&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Likely &lt;strong>steady convergence&lt;/strong>: mid-3% growth potential aided by re-shoring/EU funds, with &lt;strong>defense-industrial scale-up&lt;/strong> and energy transition as twin priorities. Outcomes hinge on sustained fiscal consolidation, clean-air/efficiency upgrades, and preserving rule-of-law gains. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/RUS/IRN/POL?utm_source=chatgpt.com" title="GDP per capita, current prices">OECD&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Sweden as we continue exploring major economies across different continents.&lt;/p></description></item><item><title>One Country a Day - Kazakhstan</title><link>https://h3sun.github.io/post/2025-10-19-one-country-a-day-kazakhstan/</link><pubDate>Sun, 19 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-19-one-country-a-day-kazakhstan/</guid><description>&lt;h2 id="-kazakhstan---day-27100-of-one-country-a-day-project">🇰🇿 Kazakhstan - Day 27/100 of One Country a Day Project&lt;/h2>
&lt;p>Kazakhstan stands as Central Asia&amp;rsquo;s largest and most economically significant nation, serving as a crucial bridge between Europe and Asia while wielding substantial natural resource wealth. As the world&amp;rsquo;s 9th-largest country by land area and a major energy exporter, Kazakhstan combines vast territorial expanse with strategic positioning between major powers. From its Soviet past to its current role as a key player in the Belt and Road Initiative and Eurasian Economic Union, Kazakhstan&amp;rsquo;s story is one of resource wealth, strategic balancing, and economic transformation. Today, we examine this Central Asian giant that leverages its geographic advantages while navigating complex relationships with Russia, China, and the West in pursuit of strategic autonomy and economic diversification.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$300.1 billion&lt;/strong> USD — IMF WEO DataMapper (Oct-2025 release, 2024 value). (&lt;a href="https://www.imf.org/external/datamapper/profile/KAZ/WEO?utm_source=chatgpt.com" title="Kazakhstan">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$14.8k&lt;/strong> USD — IMF WEO (2024). (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$44.8k&lt;/strong> USD (PPP) — IMF WEO Database 2024. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>20.59 million&lt;/strong> — World Bank (2024). (&lt;a href="https://data.worldbank.org/country/kazakhstan?utm_source=chatgpt.com" title="Kazakhstan | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −7% of GDP (net exporter)&lt;/strong> — World Bank &amp;ldquo;External balance on goods &amp;amp; services&amp;rdquo; shows &lt;strong>+$18.48 bn&lt;/strong> in 2023 (≈ 7% of 2023 GDP). (&lt;a href="https://tradingeconomics.com/kazakhstan/external-balance-on-goods-and-services-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Kazakhstan - External Balance On Goods And Services">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>2,724,902 km²&lt;/strong> — World Bank Data. (&lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?utm_source=chatgpt.com" title="Surface area (sq. km) | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Astana&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Almaty, Astana, Shymkent, Aktobe, Karaganda, Taraz, Oskemen (Ust-Kamenogorsk), Pavlodar, Atyrau, Semey&lt;/strong>. (&lt;a href="https://www.citypopulation.de/en/kazakhstan/cities/?utm_source=chatgpt.com" title="Kazakhstan: Regions, Major Cities &amp;amp; Settlements">City Population&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Oil &amp;amp; Gas:&lt;/strong> KazMunayGas (state energy) • &lt;strong>Uranium:&lt;/strong> Kazatomprom (world&amp;rsquo;s largest producer) • &lt;strong>Fintech/Banking:&lt;/strong> Kaspi.kz, Halyk Bank (both on Forbes Global 2000) • &lt;strong>Metals/Mining:&lt;/strong> KAZ Minerals, Kazakhmys, ERG • &lt;strong>Airline:&lt;/strong> Air Astana. (&lt;a href="https://ar2024.kmg.kz/en?utm_source=chatgpt.com" title="KazMunayGas 2024 Annual Report">KazMunayGas Annual Report 2024&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~&lt;strong>30 bn bbl&lt;/strong> proved oil reserves; 3 super-giant fields (Tengiz, Kashagan, Karachaganak). &lt;strong>Top global uranium supplier&lt;/strong> (≈&lt;strong>39%&lt;/strong> of world mine output in 2024). Significant gas &amp;amp; coal; large steppe for renewables potential. (&lt;a href="https://www.imf.org/external/datamapper/profile/KAZ/WEO?utm_source=chatgpt.com" title="Kazakhstan">U.S. Energy Information Administration&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional endowment in hydrocarbons and uranium with strong export leverage; some concentration risk (few fields, infrastructure bottlenecks).&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Harsh &lt;strong>continental&lt;/strong> climate (very cold winters/hot summers); &lt;strong>air-quality issues&lt;/strong> in industrial basins (e.g., Karaganda among world&amp;rsquo;s most polluted in 2024). &lt;strong>ND-GAIN&lt;/strong> readiness/vulnerability composite &lt;strong>score ~58 (rank ~37)&lt;/strong>. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">The Times Of Central Asia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Livability is mixed: infrastructure improving and adaptation capacity is decent, but air pollution, aridity and seismic risk (SE Kazakhstan) weigh on comfort/health.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Landlocked; long borders with &lt;strong>Russia, China&lt;/strong>; Caspian access but no open-sea outlet ⇒ supply-route sensitivity. &lt;strong>Geopolitics (40%)&lt;/strong>: &amp;ldquo;Multi-vector&amp;rdquo; ties; member of &lt;strong>CSTO/EAEU/SCO&lt;/strong>; building &lt;strong>Trans-Caspian Middle Corridor&lt;/strong> to diversify away from Russia routes. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO?utm_source=chatgpt.com" title="GDP per capita, current prices">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic location bridging China–EU gives leverage, but dependence on neighbors and sanctions spillovers create balancing act. Middle Corridor is an upside if capacity and customs reforms scale.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> 23/100 (&amp;ldquo;Not Free&amp;rdquo;). &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>0.54 (rank 65/142)&lt;/strong>. &lt;strong>TI-CPI 2024:&lt;/strong> &lt;strong>40/100 (rank 88/180)&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/kazakhstan?utm_source=chatgpt.com" title="Kazakhstan | Data">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Incremental rule-of-law improvements, but persistent constraints on political rights, media freedom and corruption control drag institutional quality.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Real GDP +4.8% (2024)&lt;/strong>; nominal GDP &lt;strong>$300 bn**; **GDP/capita $14.8k&lt;/strong> (PPP &lt;strong>$44.8k&lt;/strong>). &lt;strong>HDI ~0.84 (rank ≈60)&lt;/strong>. Fintech (Kaspi.kz) dynamic; diversification beyond hydrocarbons advancing slowly; logistics overhaul underway. (&lt;a href="https://tradingeconomics.com/kazakhstan/external-balance-on-goods-and-services-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Kazakhstan - External Balance On Goods And Services">IMF&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid medium-term growth with rising services/finance; resilience hinges on energy prices, transport diversification, and state-owned sector reforms.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">World-class &lt;strong>uranium&lt;/strong> and sizeable &lt;strong>oil &amp;amp; gas&lt;/strong> reserves; pivotal &lt;strong>Eurasian transit hub&lt;/strong> potential; improving infrastructure; rising consumer/fintech sector; relatively high &lt;strong>HDI&lt;/strong> for the region. (&lt;a href="https://www.imf.org/external/datamapper/profile/KAZ/WEO?utm_source=chatgpt.com" title="Kazakhstan">World Nuclear Association&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Landlocked with &lt;strong>route dependency&lt;/strong>; governance/corruption constraints; &lt;strong>air pollution&lt;/strong> hotspots; export base still &lt;strong>commodity-heavy&lt;/strong>; exposure to neighbors&amp;rsquo; shocks/sanctions. (&lt;a href="https://www.imf.org/external/datamapper/NGDPDPC%40WEO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - GDP per capita ...">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Base case: steady growth (high-single-digit in good commodity cycles), gradual institutional gains, and &lt;strong>Middle Corridor&lt;/strong> scaling to reduce transit risk. Upside from petrochemicals, uranium value-chain, and renewables; downside from external shocks or reform slippage. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO?utm_source=chatgpt.com" title="GDP per capita, current prices">World Bank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Poland as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - United Kingdom</title><link>https://h3sun.github.io/post/2025-10-19-one-country-a-day-united-kingdom/</link><pubDate>Sun, 19 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-19-one-country-a-day-united-kingdom/</guid><description>&lt;h2 id="-united-kingdom---day-28100-of-one-country-a-day-project">🇬🇧 United Kingdom - Day 28/100 of One Country a Day Project&lt;/h2>
&lt;p>The United Kingdom stands as one of the world&amp;rsquo;s most influential nations, wielding significant economic, cultural, and strategic power despite its relatively small size. As the world&amp;rsquo;s 6th-largest economy and a permanent member of the UN Security Council, the UK combines historical global reach with modern innovation capabilities, from financial services to advanced technology. From its imperial past to its current role as a key NATO ally and post-Brexit global player, the UK&amp;rsquo;s story is one of adaptation, resilience, and strategic repositioning. Today, we examine this island nation that balances European proximity with global ambitions, leveraging its institutional strengths while navigating the complex challenges of Brexit, demographic change, and geopolitical realignment.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$3.59 trillion&lt;/strong> USD — IMF WEO Oct-2024 (current prices, 2024). (&lt;a href="https://www.imf.org/en/Publications/WEO/weo-database/2024/October?utm_source=chatgpt.com" title="World Economic Outlook Database, October 2024">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$52,400&lt;/strong> USD — IMF WEO Oct-2024. (&lt;a href="https://www.imf.org/en/Publications/WEO/weo-database/2024/October?utm_source=chatgpt.com" title="World Economic Outlook Database, October 2024">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ **$62,600** USD (international $) — IMF WEO Database 2024. (&lt;a href="https://www.imf.org/en/Publications/WEO/weo-database/2024/October?utm_source=chatgpt.com" title="World Economic Outlook Database, October 2024">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>69.2&lt;/strong> USD — World Bank/WDI 2024; ONS mid-2024 estimate 69.28m (corroboration). (&lt;a href="https://data.worldbank.org/country/united-kingdom?utm_source=chatgpt.com" title="United Kingdom | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>+1.1%&lt;/strong> (net &lt;strong>importer&lt;/strong>) — Imports 31.8% vs Exports 30.6% of GDP in 2024 (World Bank data via TradingEconomics). (&lt;a href="https://tradingeconomics.com/united-kingdom/imports-of-goods-and-services-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="United Kingdom - Imports Of Goods And Services (% Of GDP)">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>243,610 km²&lt;/strong> — World Bank Data. (&lt;a href="https://tradingeconomics.com/united-kingdom/surface-area-sq-km-wb-data.html?utm_source=chatgpt.com" title="United Kingdom - Surface Area (sq. Km) - 2025 Data 2026 ...">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">London.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">London; Birmingham; Manchester; Glasgow; Leeds; Liverpool; Sheffield; Edinburgh; Bristol; Leicester (ONS urban areas &amp;amp; census references). (&lt;a href="https://en.wikipedia.org/wiki/List_of_ONS_built-up_areas_in_England_by_population?utm_source=chatgpt.com" title="List of ONS built-up areas in England by population">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Services (~80% of GVA): &lt;strong>HSBC, Barclays, Lloyds&lt;/strong> (finance); &lt;strong>BP, Shell&lt;/strong> (energy); &lt;strong>AstraZeneca, GSK&lt;/strong> (pharma); &lt;strong>BAE Systems, Rolls-Royce&lt;/strong> (aerospace/defense); &lt;strong>Unilever, Tesco&lt;/strong> (consumer/retail); &lt;strong>Vodafone&lt;/strong> (telecom). Sources: ONS sector shares; Forbes Global 2000 / Fortune Global 500. (&lt;a href="https://commonslibrary.parliament.uk/research-briefings/cbp-8353/?utm_source=chatgpt.com" title="Industries in the UK - The House of Commons Library">House of Commons Library&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mature &lt;strong>North Sea&lt;/strong> hydrocarbons (declining), limited critical minerals; strong offshore &lt;strong>wind&lt;/strong> endowment; high arable productivity but food-import reliant.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Resource base is modest for a G7; energy transition assets (wind, CCS potential) help, but overall leverage is limited.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Temperate maritime&lt;/strong> climate; high livability and infrastructure, but rising &lt;strong>heatwave&lt;/strong>/flood risks per UK CCRA (2022) and CCC 2025 updates. (&lt;a href="https://www.imf.org/en/Publications/WEO/weo-database/2024/October?utm_source=chatgpt.com" title="World Economic Outlook Database, October 2024">GOV.UK Assets&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Comfortable baseline climate and services offset by increasing adaptation needs (overheating in schools/health facilities; flood exposure). (&lt;a href="https://data.worldbank.org/country/united-kingdom?utm_source=chatgpt.com" title="United Kingdom | Data">NHS England&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Island geography, global navy, &lt;strong>CASD&lt;/strong> nuclear deterrent (Trident), NATO defense spend ≈&lt;strong>2.3%&lt;/strong> of GDP (2024). &lt;strong>Geopolitics (40%)&lt;/strong>: NATO founding member, &lt;strong>UNSC P5&lt;/strong> seat, Five Eyes, dense alliance network. (&lt;a href="https://tradingeconomics.com/united-kingdom/imports-of-goods-and-services-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="United Kingdom - Imports Of Goods And Services (% Of GDP)">GOV.UK&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional strategic depth and alliance architecture; insular terrain aids defense and power projection despite post-Brexit trade frictions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 92/100 (Free);&lt;/strong> &lt;strong>WJP Rule of Law&lt;/strong> rank &lt;strong>15/142&lt;/strong> (2024); &lt;strong>CPI 2024:&lt;/strong> score &lt;strong>71&lt;/strong> (rank ~20). (&lt;a href="https://tradingeconomics.com/united-kingdom/surface-area-sq-km-wb-data.html?utm_source=chatgpt.com" title="United Kingdom - Surface Area (sq. Km) - 2025 Data 2026 ...">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong democratic institutions and legal predictability; some integrity/standards concerns vs. top OECD peers keep it shy of the maximum.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Advanced, services-heavy economy (~&lt;strong>80%&lt;/strong> GVA); IMF 2024 growth ~&lt;strong>1.1%&lt;/strong>; services exports world-leading; productivity headwinds and &lt;strong>Brexit&lt;/strong> trade frictions persist. (&lt;a href="https://en.wikipedia.org/wiki/List_of_ONS_built-up_areas_in_England_by_population?utm_source=chatgpt.com" title="List of ONS built-up areas in England by population">House of Commons Library&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High income, diversified, innovative—yet medium-term growth is modest and capex/productivity lag peers.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Global alliances (NATO, Five Eyes, UNSC P5), strong rule of law, deep capital markets and professional/financial services, leading life-sciences and aerospace, credible defense posture including nuclear &lt;strong>CASD&lt;/strong>. (&lt;a href="https://www.imf.org/en/Publications/WEO/weo-database/2024/October?utm_source=chatgpt.com" title="World Economic Outlook Database, October 2024">GOV.UK&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited extractive resources; productivity and business investment constraints; trade frictions post-Brexit; high housing costs and regional inequality; growing climate-adaptation bill. (&lt;a href="https://data.worldbank.org/country/united-kingdom?utm_source=chatgpt.com" title="United Kingdom | Data">Amwal Al Ghad&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Baseline: steady but &lt;strong>below-US&lt;/strong> growth; policy aims to lift defense to ~&lt;strong>2.5%&lt;/strong> of GDP and expand clean-energy/advanced manufacturing; net-zero/CCRA actions will shape infrastructure and urban resilience. (&lt;a href="https://tradingeconomics.com/united-kingdom/imports-of-goods-and-services-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="United Kingdom - Imports Of Goods And Services (% Of GDP)">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Kazakhstan as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Italy</title><link>https://h3sun.github.io/post/2025-10-18-one-country-a-day-italy/</link><pubDate>Sat, 18 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-18-one-country-a-day-italy/</guid><description>&lt;h2 id="-italy---day-26100-of-one-country-a-day-project">🇮🇹 Italy - Day 26/100 of One Country a Day Project&lt;/h2>
&lt;p>Italy stands as one of Europe&amp;rsquo;s most culturally influential and economically significant nations, serving as the heart of Mediterranean civilization and a key bridge between Europe and North Africa. As the world&amp;rsquo;s 8th-largest economy and a founding EU member, Italy combines rich cultural heritage with modern industrial capabilities, from luxury fashion to advanced manufacturing. From its Roman imperial legacy to its current role as a Mediterranean power and EU leader, Italy&amp;rsquo;s story is one of cultural renaissance, economic transformation, and strategic positioning. Today, we examine this Mediterranean nation that balances European integration with regional influence, leveraging its cultural assets while addressing structural challenges in its economy and governance.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$2.37T&lt;/strong> USD — World Bank country data (2024). (&lt;a href="https://data.worldbank.org/country/italy?utm_source=chatgpt.com" title="Italy | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$40,226&lt;/strong> USD — World Bank (2024). (&lt;a href="https://data.worldbank.org/country/italy?utm_source=chatgpt.com" title="Italy | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$63,100&lt;/strong> USD PPP — IMF WEO Database (Oct-2024). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/POL/GRC/ITA?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>59.0 million&lt;/strong> — World Bank (2024). (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=IT&amp;amp;utm_source=chatgpt.com" title="Population, total - Italy">World Bank Open Data&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>-1.5%&lt;/strong> (i.e., small &lt;strong>net exporter&lt;/strong>) — World Bank/WITS trade balance (% of GDP), latest update Dec-2024. (&lt;a href="https://wits.worldbank.org/CountryProfile/en/Country/ITA/Year/LTST/Summary?utm_source=chatgpt.com" title="Italy Trade Summary | WITS Data">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈301,340–302,070 km²&lt;/strong> — World Bank DataBank/indicator series. (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=ITA&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Rome&lt;/strong>.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Rome, Milan, Naples, Turin, Palermo, Genoa, Bologna, Florence, Bari, Catania, Verona, Venice. (&lt;a href="https://en.wikipedia.org/wiki/List_of_cities_in_Italy?utm_source=chatgpt.com" title="List of cities in Italy">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Energy &amp;amp; Utilities (&lt;strong>ENI, Enel&lt;/strong>); Banking &amp;amp; Insurance (&lt;strong>Intesa Sanpaolo, UniCredit, Generali&lt;/strong>); Luxury/Automotive (&lt;strong>Ferrari, Stellantis&lt;/strong>); Aerospace/Defense (&lt;strong>Leonardo&lt;/strong>); Eyewear &amp;amp; Fashion (&lt;strong>EssilorLuxottica, Prada, Pirelli&lt;/strong>). (Forbes Global 2000 / industry sources). (&lt;a href="https://en.wikipedia.org/wiki/List_of_largest_Italian_companies?utm_source=chatgpt.com" title="List of largest Italian companies">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited hydrocarbons; significant arable land (~24% of land area); hydropower &amp;amp; geothermal niches; very large official gold reserves (Bank of Italy) but high &lt;strong>energy import&lt;/strong> reliance in the EU context. (&lt;a href="https://data.worldbank.org/country/italy?utm_source=chatgpt.com" title="Italy | Data">TheGlobalEconomy.com&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Resource base is serviceable for agriculture and renewables but constrained in fuels/metals; strategic vulnerability from energy imports.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Predominantly Mediterranean climate; &lt;strong>very high longevity&lt;/strong> (life expectancy ~83.4y, 2024); exposure to &lt;strong>earthquakes/volcanoes&lt;/strong> (Campi Flegrei swarm May-2024) and heat/flood risks; OECD well-being mixed but solid. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/POL/GRC/ITA?utm_source=chatgpt.com" title="GDP per capita, current prices">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Comfortable climate and strong services offset by notable natural-hazard exposure in parts of the country.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Alpine barrier north; long central-Med coastline with island outposts (Sicily, Sardinia). &lt;strong>Geopolitics (40%)&lt;/strong>: EU, &lt;strong>NATO founding member (1949)&lt;/strong>, &lt;strong>G7 presidency 2024&lt;/strong>; hosts key NATO/US assets. (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=IT&amp;amp;utm_source=chatgpt.com" title="Population, total - Italy">NATO&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong alliance embedment and pivotal Med location; maritime exposure and energy import routes remain risks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024: 90/100 (Free)&lt;/strong>; &lt;strong>Transparency Int&amp;rsquo;l CPI 2024: 54/100 (rank ~52/180)&lt;/strong>; &lt;strong>WJP Rule of Law 2024: score ~0.66, rank 32/142&lt;/strong>. (&lt;a href="https://wits.worldbank.org/CountryProfile/en/Country/ITA/Year/LTST/Summary?utm_source=chatgpt.com" title="Italy Trade Summary | WITS Data">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mature democracy with solid institutions; lingering issues around corruption and judicial efficiency keep scores below top OECD peers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Advanced, diversified economy (machinery, luxury goods, agri-food, energy/electrics); &lt;strong>GDP ≈ $2.37T (2024)**; **PPP p.c. ≈ $63k&lt;/strong>; 2024 growth ~0.7% with positive net-export contribution; structural headwinds: aging demographics, modest productivity, high public debt. (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=ITA&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">High income with export strengths and world-class brands; medium-term growth constrained without productivity/demographic gains.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Central Mediterranean position; deep alliance network (EU/NATO/G7); diversified industrial base with strong branding (luxury, machinery, agri-food); high life expectancy and services quality. (&lt;a href="https://data.worldbank.org/country/italy?utm_source=chatgpt.com" title="Italy | Data">NATO&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Energy import dependence and gas-price exposure; natural-hazard clusters (quakes/volcanoes); governance frictions (CPI, WJP); aging/declining population. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/POL/GRC/ITA?utm_source=chatgpt.com" title="GDP per capita, current prices">Reuters&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Baseline: low-to-moderate growth (~0.5–1%) as reforms and EU funds support investment; export mix resilient but sensitive to external shocks/trade frictions; success hinges on accelerating permitting, energy transition, and productivity reforms. (&lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=IT&amp;amp;utm_source=chatgpt.com" title="Population, total - Italy">Economy and Finance&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study UK as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Spain</title><link>https://h3sun.github.io/post/2025-10-17-one-country-a-day-spain/</link><pubDate>Fri, 17 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-17-one-country-a-day-spain/</guid><description>&lt;h2 id="-spain---day-25100-of-one-country-a-day-project">🇪🇸 Spain - Day 25/100 of One Country a Day Project&lt;/h2>
&lt;p>Spain stands as one of Europe&amp;rsquo;s most culturally rich and strategically positioned nations, serving as the gateway between Europe and Africa while maintaining strong transatlantic connections. As the world&amp;rsquo;s 14th-largest economy and a key EU member, Spain combines Mediterranean lifestyle with modern industrial capabilities, from automotive manufacturing to renewable energy leadership. From its imperial past to its current role as a bridge between continents, Spain&amp;rsquo;s story is one of cultural diversity, economic transformation, and strategic positioning. Today, we examine this Iberian nation that balances European integration with Mediterranean influence, leveraging its geographic advantages while addressing structural challenges in its economy and governance.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$1.72–$1.73 trillion&lt;/strong> USD — IMF WEO Database 2024. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/FRA/DEU/ESP?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$35–36k&lt;/strong> USD — IMF WEO 2024. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/FRA/DEU/ESP?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$56–57k&lt;/strong> USD PPP — IMF WEO Database 2024. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/FRA/DEU/ESP?utm_source=chatgpt.com" title="GDP per capita, current prices">IMF&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>48.6–48.8 million (2024)&lt;/strong> — Eurostat / EU profile; World Bank country page. (&lt;a href="https://european-union.europa.eu/principles-countries-history/eu-countries/spain_en?utm_source=chatgpt.com" title="Spain – EU country profile | European Union">European Union&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ −1.4% (net exporter)&lt;/strong> — Exports ≈ 41.6% vs. imports ≈ 40.1% of GDP (latest WITS/WB). (&lt;a href="https://wits.worldbank.org/CountryProfile/en/ESP?utm_source=chatgpt.com" title="Spain Trade Statistics | WITS">World Integrated Trade Solution&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ 505,983 km²&lt;/strong> — EU/Eurostat; World Bank similar. (&lt;a href="https://european-union.europa.eu/principles-countries-history/eu-countries/spain_en?utm_source=chatgpt.com" title="Spain – EU country profile | European Union">European Union&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Madrid&lt;/strong> — EU country profile. (&lt;a href="https://european-union.europa.eu/principles-countries-history/eu-countries/spain_en?utm_source=chatgpt.com" title="Spain – EU country profile | European Union">European Union&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Madrid, Barcelona, Valencia, Zaragoza, Seville, Málaga, Murcia, Palma, Las Palmas de Gran Canaria, Alicante, Bilbao&lt;/strong> (INE 2024 ranks). (&lt;a href="https://en.wikipedia.org/wiki/Ranked_lists_of_Spanish_municipalities?utm_source=chatgpt.com" title="Ranked lists of Spanish municipalities">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Banking&lt;/strong> (Santander, BBVA, CaixaBank), &lt;strong>Utilities &amp;amp; Renewables&lt;/strong> (Iberdrola, Endesa, Naturgy), &lt;strong>Energy&lt;/strong> (Repsol), &lt;strong>Telecom&lt;/strong> (Telefónica), &lt;strong>Apparel&lt;/strong> (Inditex/Zara), &lt;strong>Travel Tech&lt;/strong> (Amadeus), &lt;strong>Construction/Concessions&lt;/strong> (ACS, Ferrovial) — market-cap / Global 2000 snapshots (2024–25). (&lt;a href="https://ceoworld.biz/2024/02/12/spains-largest-companies-by-market-capitalization-2024/?utm_source=chatgpt.com" title="Spain's Largest Companies by market capitalization, 2024">CEOWorld Biz&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Spain lacks major hydrocarbons but is &lt;strong>renewables-rich&lt;/strong>: in &lt;strong>2024 renewables generated ~56–57% of electricity&lt;/strong>; wind ~23%, solar ~17%, hydro rebound; system set record output (REE). (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/FRA/DEU/ESP?utm_source=chatgpt.com" title="GDP per capita, current prices">Red Eléctrica&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited fossil/mineral leverage, &lt;strong>strong solar/wind endowment&lt;/strong>, growing grid/storage ambitions; water stress in the south tempers score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mediterranean &amp;amp; oceanic zones; very high &lt;strong>life expectancy ~83–84 years&lt;/strong> (OECD/World Bank). Floods &amp;amp; heatwaves surged in &lt;strong>late-2024 Valencia floods&lt;/strong>; ND-GAIN &lt;strong>rank ~30, score ~60&lt;/strong> (moderate vulnerability, good readiness). (&lt;a href="https://european-union.europa.eu/principles-countries-history/eu-countries/spain_en?utm_source=chatgpt.com" title="Spain – EU country profile | European Union">OECD&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Generally comfortable climate &amp;amp; urban amenities, world-class healthcare; &lt;strong>increasing climate risks (drought/flood/heat)&lt;/strong> keep it below top tier.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Iberian peninsula with &lt;strong>Pyrenees barrier&lt;/strong>, long Atlantic/Mediterranean coasts, controlling side of &lt;strong>Strait of Gibraltar chokepoint&lt;/strong>; island outposts (Balearics, Canaries, Ceuta/Melilla). &lt;strong>Geopolitics (40%)&lt;/strong>: &lt;strong>EU &amp;amp; Eurozone&lt;/strong> member (since 1986/1999), &lt;strong>Schengen&lt;/strong> (1995), &lt;strong>NATO&lt;/strong> (1982); allied basing &amp;amp; missions; current debate over &lt;strong>defense-spending levels&lt;/strong>. (&lt;a href="https://wits.worldbank.org/CountryProfile/en/ESP?utm_source=chatgpt.com" title="Spain Trade Statistics | WITS">University of Navarra&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Valuable &lt;strong>maritime position + alliance network&lt;/strong>; limited strategic depth and spending frictions modestly dilute leverage.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024: 90/100 (Free)&lt;/strong>; &lt;strong>WJP Rule of Law 2024: score ~0.71, rank 25/142&lt;/strong>; &lt;strong>TI-CPI 2024: 56/100, rank ~46/180&lt;/strong> (mid-EU). (&lt;a href="https://en.wikipedia.org/wiki/Ranked_lists_of_Spanish_municipalities?utm_source=chatgpt.com" title="Ranked lists of Spanish municipalities">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Liberal democracy with solid institutions and judiciary; &lt;strong>perceived public-sector corruption moderate&lt;/strong> by EU standards.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Growth outperformed euro area in 2024&lt;/strong> (OECD proj. ~3.0%–3.4%); services (tourism), autos, agri-food, and fast-growing &lt;strong>green-energy ecosystem&lt;/strong>; long-run headwinds: &lt;strong>productivity &amp;amp; ageing&lt;/strong>, still-elevated unemployment. (&lt;a href="https://ceoworld.biz/2024/02/12/spains-largest-companies-by-market-capitalization-2024/?utm_source=chatgpt.com" title="Spain's Largest Companies by market capitalization, 2024">OECD&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Diversified, reforming economy&lt;/strong> with EU funds tailwind; resilience up, but structural productivity gaps persist.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic &lt;strong>Euro-Atlantic location&lt;/strong> at a global chokepoint; &lt;strong>EU/Eurozone/NATO&lt;/strong> integration; &lt;strong>renewables leadership&lt;/strong> with record 2024 green power; diversified services &amp;amp; industrial base; high longevity/health outcomes. (&lt;a href="https://www.imf.org/external/datamapper/PPPPC%40WEO/FRA/DEU/ESP?utm_source=chatgpt.com" title="GDP per capita, current prices">University of Navarra&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited domestic hydrocarbons; &lt;strong>periodic climate shocks&lt;/strong> (drought/floods/heat); &lt;strong>productivity &amp;amp; labour duality&lt;/strong> issues; persistent though declining unemployment; exposure to tourism cycles. (&lt;a href="https://european-union.europa.eu/principles-countries-history/eu-countries/spain_en?utm_source=chatgpt.com" title="Spain – EU country profile | European Union">files.emdat.be&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Solid, &lt;strong>above-EU growth&lt;/strong> near term as EU funds and decarbonisation drive investment; competitiveness buoyed by cheap renewables; medium-term outcome hinges on &lt;strong>executing productivity reforms&lt;/strong>, strengthening grid/interconnections, and adapting to climate stress. (&lt;a href="https://wits.worldbank.org/CountryProfile/en/ESP?utm_source=chatgpt.com" title="Spain Trade Statistics | WITS">OECD&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Italy as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Turkey</title><link>https://h3sun.github.io/post/2025-10-16-one-country-a-day-turkey/</link><pubDate>Thu, 16 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-16-one-country-a-day-turkey/</guid><description>&lt;h2 id="-turkey---day-24100-of-one-country-a-day-project">🇹🇷 Turkey - Day 24/100 of One Country a Day Project&lt;/h2>
&lt;p>Turkey stands as a unique bridge between Europe and Asia, wielding significant geopolitical influence as a NATO member with a foot in both continents. As the world&amp;rsquo;s 19th-largest economy and a key regional power, Turkey combines strategic geography with a diverse economy spanning agriculture, manufacturing, and services. From its Ottoman imperial past to its current role as a major regional player in the Middle East, Balkans, and Central Asia, Turkey&amp;rsquo;s story is one of strategic positioning, economic transformation, and complex diplomatic balancing. Today, we examine this Eurasian nation that controls crucial waterways, manages complex regional relationships, and navigates between Western alliances and Eastern partnerships while pursuing its own strategic autonomy.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Key Facts / Estimates&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td>≈ &lt;strong>$1.32 trillion USD&lt;/strong> — &lt;a href="https://www.worldbank.org/en/country/turkey/overview">World Bank&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td>≈ &lt;strong>$15,463&lt;/strong> — &lt;a href="https://www.ceicdata.com/en/indicator/turkey/gdp-per-capita">CEIC Data&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td>≈ &lt;strong>$35,294&lt;/strong> — &lt;a href="https://tradingeconomics.com/turkey/gdp-per-capita-ppp">Trading Economics&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td>≈ &lt;strong>85.66 million&lt;/strong> — &lt;a href="https://www.aa.com.tr/en/turkiye/turkiyes-population-in-2024-hit-8566m/3473454">Anadolu Agency&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td>&lt;strong>≈ 27.78%&lt;/strong> — &lt;a href="https://tradingeconomics.com/turkey/imports-of-goods-and-services-percent-of-gdp-wb-data.html">Trading Economics&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td>&lt;strong>783,356 km²&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Ankara&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td>Istanbul, Ankara, Izmir, Bursa, Antalya, Adana, Gaziantep, Konya, Mersin, Kayseri&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Key Sectors / Companies&lt;/strong>&lt;/td>
&lt;td>Automotive (Ford Otosan), Banking (Is Bankasi, Akbank), Airlines (Turkish Airlines), Conglomerates (Koç Holding, Sabancı Holding), Retail (BIM) — &lt;a href="https://www.forbes.com/global2000/">Forbes Global 2000&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited oil &amp;amp; gas; heavy energy import dependence; coal (incl. lignite) significant; growing wind/solar; new Black Sea gas field under development; 2024 power mix still &amp;gt;50% fossil though clean share rose on strong hydro. (&lt;a href="https://www.iea.org/countries/turkiye/energy-mix?utm_source=chatgpt.com" title="Türkiye - Countries &amp;amp; Regions - IEA">IEA&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Resource base is moderate and import-reliant; domestic renewables rising and Black Sea gas helps margins but doesn&amp;rsquo;t transform fundamentals.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Mediterranean/continental climates; major seismic risk (Anatolian faults); rapid urbanization; ND-GAIN 2024: overall rank &lt;strong>53&lt;/strong>, &amp;ldquo;well positioned to adapt&amp;rdquo; with mid-pack vulnerability/readiness. (&lt;a href="https://gain-new.crc.nd.edu/country/turkey?utm_source=chatgpt.com" title="Turkey | ND-GAIN Index">gain-new.crc.nd.edu&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Generally livable climates and infrastructure hubs, but earthquake exposure and air/urban stresses cap the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: Mountain barriers, interior plateau, long coasts on Black Sea/Aegean/Mediterranean; control of Bosporus &amp;amp; Dardanelles under &lt;strong>Montreux Convention&lt;/strong>. &lt;strong>Geopolitics (40%)&lt;/strong>: NATO member since &lt;strong>1952&lt;/strong>; pivotal between Europe, Russia/Black Sea, Middle East; balances multiple relationships (EU, Russia, Gulf). (&lt;a href="https://en.wikipedia.org/wiki/Geography_of_Turkey?utm_source=chatgpt.com" title="Geography of Turkey">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Exceptional straits leverage and interior defensibility, offset by many contentious borders and complex neighborhood management.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Freedom House 2024:&lt;/strong> 33/100 (&amp;ldquo;Not Free&amp;rdquo;); &lt;strong>TI CPI 2024:&lt;/strong> 34/100 (rank 107/180); &lt;strong>WJP 2024:&lt;/strong> rank &lt;strong>117/142&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/turkey?utm_source=chatgpt.com" title="Turkey: Country Profile">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.1&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Institutions have capacity but checks-and-balances, judicial independence, and corruption control remain weak versus OECD peers.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Upper-middle-income, diversified (autos, white goods, machinery, defense, tourism, agri-food). 2024 GDP ≈ &lt;strong>$1.32T&lt;/strong>, growth ~&lt;strong>3.2%&lt;/strong> per WB; macro policy normalization underway per OECD/IMF. Persistent high inflation but improving policy mix. (&lt;a href="https://www.worldbank.org/en/country/turkey/overview?utm_source=chatgpt.com" title="Turkey Overview: Development news, research, data">World Bank&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong manufacturing base, logistics hub and tourism; medium-term growth solid if disinflation and reforms persist.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strategic control of the Turkish Straits; NATO security umbrella; diversified industrial ecosystem (autos, appliances, defense, tourism); large domestic market; accelerating renewables build-out. (&lt;a href="https://www.iea.org/countries/turkiye/energy-mix?utm_source=chatgpt.com" title="Türkiye - Countries &amp;amp; Regions - IEA">Encyclopedia Britannica&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Energy import dependence; inflationary history and FX sensitivity; governance/rule-of-law deficits; seismic risk; external balances exposed to energy/commodity cycles. (&lt;a href="https://gain-new.crc.nd.edu/country/turkey?utm_source=chatgpt.com" title="Turkey | ND-GAIN Index">IEA&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s–2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Gradual macro-stabilization and disinflation targeted; continued pivot to wind/solar and Black Sea gas to trim import bill; geopolitically remains a balancing power between Euro-Atlantic and Eurasian spheres. Baseline growth ~3%–4% if reform momentum holds. (&lt;a href="https://en.wikipedia.org/wiki/Geography_of_Turkey?utm_source=chatgpt.com" title="Geography of Turkey">OECD&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Spain as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - France</title><link>https://h3sun.github.io/post/2025-10-15-one-country-a-day-france/</link><pubDate>Wed, 15 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-15-one-country-a-day-france/</guid><description>&lt;h2 id="-france---day-23100-of-one-country-a-day-project">🇫🇷 France - Day 23/100 of One Country a Day Project&lt;/h2>
&lt;p>France stands as one of Europe&amp;rsquo;s most influential nations, combining rich cultural heritage with significant economic and geopolitical power. As the world&amp;rsquo;s seventh-largest economy and a permanent member of the UN Security Council, France wields considerable influence through its nuclear capabilities, cultural exports, and strategic positioning in Europe and Africa. From its revolutionary history to its current role as a key EU leader and global military power, France&amp;rsquo;s story is one of cultural pride, strategic independence, and continental leadership. Today, we examine this European powerhouse that balances tradition with innovation, maintaining its unique position as both a European integrator and a champion of strategic autonomy.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts / Estimates&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 3,162.1 billion&lt;/strong> (2024) (&lt;a href="https://tradingeconomics.com/france/gdp?utm_source=chatgpt.com" title="France GDP - Trading Economics">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~ &lt;strong>USD 46,150&lt;/strong> (2024 estimate) (&lt;a href="https://datacommons.org/place/country/FRA?utm_source=chatgpt.com" title="France - Data Commons">Data Commons&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>USD 3,814 billion PPP total&lt;/strong>, which implies ~ &lt;strong>USD 55,600–60,000 PPP per capita&lt;/strong> (depending on population) (&lt;a href="https://www.worldeconomics.com/GrossDomesticProduct/Real-GDP-PPP/France.aspx?utm_source=chatgpt.com" title="France GDP PPP 2024 Estimate and 2025 Projection">World Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~ &lt;strong>68.4 million&lt;/strong> (2024) (&lt;a href="https://tradingeconomics.com/france/population?utm_source=chatgpt.com" title="France Population - Trading Economics">Trading Economics&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">France is typically a &lt;strong>net importer of goods&lt;/strong>, especially energy; goods balance shows structural deficits, though services exports (tourism, etc.) help offset that. (&lt;a href="https://santandertrade.com/en/portal/analyse-markets/france/foreign-trade-in-figures?utm_source=chatgpt.com" title="French foreign trade in figures - Santandertrade.com">Santander Trade&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~ 551,000 km² (metropolitan + overseas) (&lt;a href="https://en.wikipedia.org/wiki/France?utm_source=chatgpt.com" title="France - Wikipedia">Wikipedia&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital / Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Paris (capital); major cities include Marseille, Lyon, Toulouse, Nice, Nantes, Strasbourg, Bordeaux, Lille, etc.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Key Sectors / Companies&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong in aerospace (Airbus), luxury goods, tourism, agri-food, nuclear energy, automotive, services &amp;amp; finance.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Trends&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">France has modest mineral/energy endowments. Some nuclear capacity provides energy leverage. Good agricultural land especially in north &amp;amp; west. Freshwater plentiful.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Not resource-rich compared to major resource powers, but adequate base for food and renewable/energy infrastructure support.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Generally temperate climate, good infrastructure, high human development. Some exposure to floods, heat waves, especially in southern France.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong livability and infrastructure, though climate stress rising.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60%)&lt;/strong>: moderate: western European location, Atlantic/Mediterranean access, EU border region. &lt;strong>Geopolitics (40%)&lt;/strong>: central EU/NATO player, active diplomacy, soft power (Francophonie, culture), but exposed to external pressures (EU energy, migration, global dependencies).&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Decent strategic position, strong alliances, though some geopolitical vulnerabilities.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">France is a robust democracy, with high civil liberties, free press, independent judiciary. Freedom House classifies it as &amp;ldquo;Free.&amp;rdquo; (&lt;a href="https://tradingeconomics.com/france/gdp?utm_source=chatgpt.com" title="France GDP - Trading Economics">Freedom House&lt;/a>) Rule of Law ranking ~22/142 in WJP index. (&lt;a href="https://datacommons.org/place/country/FRA?utm_source=chatgpt.com" title="France - Data Commons">World Justice Project&lt;/a>) Corruption perception decent: CPI ≈ 67 (2024) (&lt;a href="https://www.worldeconomics.com/GrossDomesticProduct/Real-GDP-PPP/France.aspx?utm_source=chatgpt.com" title="France GDP PPP 2024 Estimate and 2025 Projection">Transparency.org&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong governance and rule of law, though occasional tensions over executive authority, security laws, and civil liberties.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diversified, high-income, advanced industrial + service economy. Growth modest (~1.1 % in 2024) (&lt;a href="https://tradingeconomics.com/france/population?utm_source=chatgpt.com" title="France Population - Trading Economics">Trading Economics&lt;/a>) Structural challenges: public debt, demographic aging, dependency on imports, global competition.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Very high base, though moderate growth and structural constraints limit a perfect score.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Diversified, high-value economy; strong democratic institutions; central role in European &amp;amp; global affairs; cultural and soft-power reach; high livability and infrastructure.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited natural resource base; net goods importer, especially energy; moderate growth and high public debt burdens; demographic aging and dependency on external supply chains.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s – 2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Likely to remain a leading developed European power, but success will depend on managing structural reforms (fiscal, demographic, energy transition) and preserving its global influence.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Turkey as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Germany</title><link>https://h3sun.github.io/post/2025-10-07-one-country-a-day-germany/</link><pubDate>Tue, 07 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-07-one-country-a-day-germany/</guid><description>&lt;h2 id="-germany---day-22100-of-one-country-a-day-project">🇩🇪 Germany - Day 22/100 of One Country a Day Project&lt;/h2>
&lt;p>Germany stands as Europe&amp;rsquo;s economic powerhouse and most populous nation, serving as the continent&amp;rsquo;s manufacturing and technological heart. As the fourth-largest economy globally and the largest in Europe, Germany combines advanced industrial capabilities with strong democratic institutions, innovative engineering, and strategic positioning at the heart of the European Union. From its post-war economic miracle to its current role as Europe&amp;rsquo;s leading exporter and a key player in global supply chains, Germany&amp;rsquo;s story is one of reconstruction, innovation, and strategic integration. Today, we examine this Central European giant that drives European prosperity through its engineering excellence, robust institutions, and pivotal role in continental affairs.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$4.66 trillion USD&lt;/strong> — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO Oct 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$55,800 USD&lt;/strong> — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>$72,600 USD&lt;/strong> — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO Database 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ &lt;strong>83.6 million&lt;/strong> — &lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=DE">World Bank&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Net Imports (% of GDP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>≈ –6.5 % (2024)&lt;/strong> — Persistent &lt;em>trade surplus&lt;/em> (~6–7 % of GDP); sources: &lt;a href="https://data.worldbank.org/indicator/NE.EXP.GNFS.ZS?locations=DE">World Bank WDI&lt;/a>, &lt;a href="https://www.destatis.de/EN/Home/_node.html">Destatis 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>357,114 km²&lt;/strong> — &lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=DE">World Bank Data&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Berlin&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Berlin, Hamburg, Munich, Cologne, Frankfurt, Stuttgart, Düsseldorf, Leipzig, Dresden, Dortmund&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies / Sectors&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Volkswagen Group, BMW, Mercedes-Benz Group, Siemens, BASF, Bayer, SAP, Allianz, Deutsche Bank — &lt;a href="https://www.forbes.com/global2000/">Forbes Global 2000 (2024)&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Key Data &amp;amp; Trends&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td>Germany is not especially rich in high-value mineral or energy resources. It does have lignite (brown coal), potash, salt, timber, and some minor natural gas operations. (&lt;a href="https://en.wikipedia.org/wiki/Economy_of_Germany?utm_source=chatgpt.com" title="Economy of Germany">Wikipedia&lt;/a>) Arable land is significant (productive agriculture in many states). Freshwater is adequate, though climate change pressures water stress zones.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td>The country&amp;rsquo;s natural-resource base is modest relative to its size and economic role; it must import substantial energy and many raw materials. But its land, soil, water, and forestry give it a mid-level base.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Germany has generally temperate climates, good infrastructure, high life expectancy, high urbanization. However increasing heat waves, floods, droughts, and climate-related damage are emerging issues. (&lt;a href="https://www.munichre-foundation.org/en/climate-mitigation/Dialogue_forums/DF-2024Climate-change-and-natural-hazards.html?utm_source=chatgpt.com" title="Climate change and natural hazards in Germany">Munich Re Foundation&lt;/a>) Disaster risk moderate (flooding, storms) rather than extreme.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td>High baseline of livability, good infrastructure, but growing climate stress and adaptation needs pull the score down somewhat.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Geo-Defense (60 %)&lt;/strong>: Central location in European continental core, good infrastructure connectivity, in EU / Schengen, significant coastline on North Sea / Baltic. Terrain is moderate; limited natural defense barriers but good internal mobility. &lt;strong>Geopolitics (40 %)&lt;/strong>: A leading EU power, NATO member, strong alliances, but exposed to supply-chain risks, energy dependency (especially for gas) and shifts in global power balances.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td>Germany&amp;rsquo;s position in Europe gives it strategic integration and influence, though its defense depth is limited and energy/geopolitical dependencies are vulnerabilities.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>Germany is generally rated very high in political rights, civil liberties, rule of law, and low corruption. Freedom House rates Germany as &amp;ldquo;Free&amp;rdquo; with high scores. (&lt;a href="https://freedomhouse.org/country/germany/freedom-world/2024?utm_source=chatgpt.com" title="Germany: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) The state is transparent, judicially independent, with active civil society.&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td>Strong democratic institutions, checks and balances, transparency, and civil freedoms. Some political tensions (e.g. right-wing populist movements) but overall robust.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>Germany is among the richest and most advanced economies in the world. It is highly diversified, with strong industrial base, export orientation, innovation, and high human development. However, recent headwinds: energy crisis after Russian gas cutoff, slowing growth, demographic aging, structural challenges. (&lt;a href="https://en.wikipedia.org/wiki/German_economic_crisis_%282022%E2%80%93present%29?utm_source=chatgpt.com" title="German economic crisis (2022–present)">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:center">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td>Very high level, though not perfect — structural challenges and external shocks reduce room for perfect scoring.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Globally competitive industrial and technological base; strong democracy, rule of law, and institutional stability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Limited natural resources, aging population, and high energy dependence pose medium-term challenges.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s – 2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Remains a core European power with robust institutions; focus shifts to innovation and sustainable energy transition.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study France as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>One Country a Day - Russia</title><link>https://h3sun.github.io/post/2025-10-06-one-country-a-day-russia/</link><pubDate>Mon, 06 Oct 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-10-06-one-country-a-day-russia/</guid><description>&lt;h2 id="-russia---day-21100-of-one-country-a-day-project">🇷🇺 Russia - Day 21/100 of One Country a Day Project&lt;/h2>
&lt;p>The Russian Federation stands as the world&amp;rsquo;s largest country by land area, spanning across eleven time zones from Europe to Asia. As a nuclear-armed superpower with vast natural resources, Russia plays a crucial role in global geopolitics, energy markets, and regional security. From its imperial past to its current position as a major energy exporter and geopolitical player, Russia&amp;rsquo;s story is one of territorial expansion, resource wealth, and strategic positioning between East and West. Today, we examine this Eurasian giant that bridges continents and influences global affairs through its natural resources, military might, and strategic geography.&lt;/p>
&lt;h3 id="-key-facts">📊 Key Facts&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Facts (Best Current Estimates)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Population&lt;/strong>&lt;/td>
&lt;td style="text-align:left">~146.0 million &lt;em>(including Crimea)&lt;/em> — &lt;a href="https://data.worldbank.org/indicator/SP.POP.TOTL?locations=RU">World Bank&lt;/a>, &lt;a href="https://population.un.org/wpp/">UN World Population Prospects 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ $2.18 trillion USD — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO Oct 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (Nominal)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ $14,900 USD — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP per Capita (PPP)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">≈ $40,500 USD — &lt;a href="https://www.imf.org/en/Publications/WEO">IMF WEO Database 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Surface Area&lt;/strong>&lt;/td>
&lt;td style="text-align:left">17,098,242 km² — &lt;a href="https://data.worldbank.org/indicator/AG.SRF.TOTL.K2?locations=RU">World Bank Data&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Capital&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Moscow&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Major Cities&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Moscow, Saint Petersburg, Novosibirsk, Yekaterinburg, Kazan, Nizhny Novgorod, Chelyabinsk, Omsk, Samara, Rostov-on-Don — &lt;a href="https://rosstat.gov.ru/">Rosstat Urban Data 2024&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Famous Companies&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Gazprom, Rosneft, Lukoil, Sberbank, Norilsk Nickel, Rosatom, Russian Railways, Aeroflot, Yandex, VTB Bank — &lt;a href="https://www.forbes.com/global2000/">Forbes Global 2000 (2024)&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-5-dimension-analsysis">🌍 5-Dimension Analsysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Dimension&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Key Data &amp;amp; Facts (2024)&lt;/strong>&lt;/th>
&lt;th style="text-align:center">&lt;strong>Score (0–5)&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Rationale / Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>1. Natural Resources&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Top-3 global gas reserves (~20 % share, BP Statistical Review 2023); major oil, coal, nickel, palladium, uranium, timber exports. ≈ 20 % of world&amp;rsquo;s liquid freshwater (Lake Baikal). Arable land ~120 M ha (~7.5 % of territory).&lt;/td>
&lt;td style="text-align:center">&lt;strong>5.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Among the world&amp;rsquo;s richest and most diverse resource bases; energy and food security strong.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>2. Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&amp;gt; 60 % sub-arctic or continental; permafrost ~65 % land; harsh winters, short growing season, high infrastructure costs. Low natural-disaster frequency. Livable areas concentrated in west and south. Sources: &lt;a href="https://climateknowledgeportal.worldbank.org/country/russian-federation">NOAA Climate Atlas&lt;/a>, World Bank climate data.&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Severe climate and low population density reduce livability despite limited disaster risk.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>3. Geo Composite&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;strong>Geo-Defense (60 %) ≈ 4.5:&lt;/strong> Vast territory, defensible heartland, nuclear triad, Arctic and Pacific access. &lt;strong>Geopolitics (40 %) ≈ 1.0:&lt;/strong> Under sanctions (EU/US), few alliances (except China/Iran), tense relations with NATO. Sources: SIPRI 2024, CSIS Brief &amp;ldquo;Russia&amp;rsquo;s Geopolitical Outlook 2024&amp;rdquo;.&lt;/td>
&lt;td style="text-align:center">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Strong defensive geography but international isolation reduces strategic flexibility.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>4. Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Freedom House 2024 score 16 / 100; Transparency International CPI 2024 = 26 / 100; corruption and media restrictions severe. Judicial independence weak.&lt;/td>
&lt;td style="text-align:center">&lt;strong>1.0&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Authoritarian stability with low rule of law and civil liberty scores.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>5. Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td style="text-align:left">GDP ≈ $2.18 T nominal / ≈ $5 T PPP; energy &amp;gt; 50 % exports. Industrial diversification limited; tech and FDI weak. Moderate growth (~2 %) via state control. Sources: IMF WEO 2024; OECD Economic Outlook 2024.&lt;/td>
&lt;td style="text-align:center">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Resource-based stability but low innovation capacity and sanction constraints.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-summary-analysis">📊 Summary Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">&lt;strong>Summary&lt;/strong>&lt;/th>
&lt;th style="text-align:left">&lt;strong>Interpretation&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Strengths&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Immense natural resources and territorial depth ensure strategic and energy resilience.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Weaknesses&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Harsh climate, weak institutions, and global isolation limit growth and human capital development.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>Trajectory (2020s – 2030s)&lt;/strong>&lt;/td>
&lt;td style="text-align:left">Stable in resources and defense dimensions but declining in innovation and geopolitical integration.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Tomorrow, I will study Germany as we continue exploring Europe and Central Asia.&lt;/p></description></item><item><title>Write on the Air</title><link>https://h3sun.github.io/post/2025-09-26-writing-in-the-air/</link><pubDate>Fri, 26 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-26-writing-in-the-air/</guid><description>&lt;p>All time in PST, as my iphone does not switch time zone during the flight.&lt;/p>
&lt;ul>
&lt;li>1:15 - 2:15 吃饭 etc&lt;/li>
&lt;li>2:15 - 3:15 阅读，阿特拉斯耸耸肩&lt;/li>
&lt;li>3:15 - 4:30 阅读，阿特拉斯耸耸肩&lt;/li>
&lt;li>4:30 - 7:15 睡觉&lt;/li>
&lt;li>7:15 - 8:15 阅读，阿特拉斯耸耸肩&lt;/li>
&lt;li>8:15 - 10:00 政治光谱&lt;/li>
&lt;li>10:00 - 11:00 Andrej Karpathy&lt;/li>
&lt;li>11:00 - 11:40 南方公园 American Dad&lt;/li>
&lt;li>11:40 - 12:40 漫无目的的 browsing&lt;/li>
&lt;li>12:40 - 13:20 Andrej Karpathy&lt;/li>
&lt;li>13:20 - 14:20 收拾东西 etc&lt;/li>
&lt;/ul></description></item><item><title>One Country a Day - United States</title><link>https://h3sun.github.io/post/2025-09-15-one-country-a-day-united-states/</link><pubDate>Mon, 15 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-15-one-country-a-day-united-states/</guid><description>&lt;h2 id="-united-states---day-20100-of-one-country-a-day-project">🇺🇸 United States - Day 20/100 of One Country a Day Project&lt;/h2>
&lt;p>The United States of America stands as the world&amp;rsquo;s most powerful nation, wielding unprecedented economic, military, and cultural influence across the globe. From its founding as a revolutionary experiment in democracy to its current position as the sole superpower, America&amp;rsquo;s story is one of remarkable transformation, innovation, and global leadership. Today, we examine this continental nation that spans from the Atlantic to the Pacific, exploring its natural wealth, strategic advantages, and the complex challenges that define its 21st-century reality.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~331 million (2020 census)&lt;/li>
&lt;li>&lt;strong>GDP (Nominal)&lt;/strong>: ~$25.5 trillion (2024)&lt;/li>
&lt;li>&lt;strong>GDP per Capita&lt;/strong>: ~$77,000 (2024)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 9,833,517 km² (including Alaska and Hawaii)&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Washington, D.C.&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: New York, Los Angeles, Chicago, Houston, Phoenix, Philadelphia, San Antonio, San Diego, Dallas, San Jose&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Apple, Microsoft, Amazon, Google (Alphabet), Tesla, Meta, Berkshire Hathaway, Johnson &amp;amp; Johnson, JPMorgan Chase, Walmart&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key indicators (latest reliable data)&lt;/th>
&lt;th>Evidence (sources)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>Largest oil &amp;amp; gas producer; vast coal endowment; ~16–17% arable land (~158M ha); large national freshwater endowment with regional stress.&lt;/td>
&lt;td>U.S. EIA (oil/gas, coal); USDA/World Bank (arable land); USGS; World Bank freshwater series.&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Strong readiness but rising disaster frequency &amp;amp; cost.&lt;/td>
&lt;td>ND-GAIN (readiness/vulnerability); NOAA NCEI &amp;ldquo;Billion-Dollar Disasters&amp;rdquo;.&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense, 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>Two-ocean buffers, friendly land neighbors, global power projection; dense alliance network; USD reserve role; USMCA/NATO leadership.&lt;/td>
&lt;td>SIPRI/DoD (spend); IMF/COFER (reserves); NATO; USMCA texts &amp;amp; trade stats.&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>Liberal democracy with solid but not top-tier rule-of-law/corruption scores.&lt;/td>
&lt;td>Freedom House; World Justice Project; Transparency International CPI.&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>High-income, highly diversified, innovation-intensive; moderate medium-term growth.&lt;/td>
&lt;td>World Bank (income, sector share); BEA/BLS; IMF WEO (growth).&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>The United States represents the pinnacle of global power and influence, combining exceptional natural resources, strategic geography, and institutional strength. Its position as the world&amp;rsquo;s sole superpower is built on a foundation of economic might, military dominance, and technological leadership. However, the nation faces significant challenges including political polarization, infrastructure aging, climate change adaptation, and maintaining its competitive edge in an increasingly multipolar world.&lt;/p>
&lt;p>Next week, I will study Europe and Central Asia countries, starting with Russia.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Resource Superpower&lt;/strong>: America&amp;rsquo;s natural resource endowment is unmatched, providing energy independence and agricultural abundance that few nations can rival.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Geographic Fortress&lt;/strong>: The continent-spanning geography with ocean buffers provides exceptional strategic depth and defensive advantages.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Innovation Engine&lt;/strong>: The US remains the global leader in technology, research, and development, driving economic growth and maintaining competitive advantages.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Institutional Resilience&lt;/strong>: Despite political challenges, America&amp;rsquo;s democratic institutions and rule of law provide a strong foundation for continued prosperity.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Global Leadership&lt;/strong>: The US maintains unparalleled global influence through military presence, economic power, and cultural reach, though this position faces increasing challenges.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/unitedstates">World Bank United States Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/united-states/">CIA World Factbook - United States&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.bea.gov/">Bureau of Economic Analysis&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.federalreserve.gov/">Federal Reserve&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.state.gov/">Department of State&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Canada</title><link>https://h3sun.github.io/post/2025-09-14-one-country-a-day-canada/</link><pubDate>Sun, 14 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-14-one-country-a-day-canada/</guid><description>&lt;h2 id="-canada---day-19-of-one-country-a-day-project">🇨🇦 Canada - Day 19 of One Country a Day Project&lt;/h2>
&lt;p>Today I begin my systematic study of North America with Canada — the world&amp;rsquo;s second-largest country by land area, a resource-rich developed nation with strong institutions, diverse economy, and strategic position between the United States and Arctic regions.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~40.8 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$2.2–$2.4 trillion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$54,000–$59,000 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 9,984,670 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Ottawa&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Toronto, Montreal, Vancouver, Calgary, Edmonton, Ottawa, Winnipeg&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Royal Bank of Canada, Canadian National Railway, Shopify, Brookfield Asset Management, Magna International, Bombardier&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (latest where available)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~4.4%&lt;/strong> (2022, WB). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.ARBL.ZS?locations=CA&amp;amp;utm_source=chatgpt.com" title="Arable land (% of land area) - Canada">World Bank Data&lt;/a>) • &lt;strong>Forest area ~39.5%&lt;/strong> of land (2022, WB). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.FRST.ZS?utm_source=chatgpt.com" title="Forest area (% of land area)">World Bank Data&lt;/a>) • &lt;strong>Renewable internal freshwater ≈ 74–80k m³/person&lt;/strong> (2015–21 range, WB). (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=CAN%2CLIC&amp;amp;series=ER.H2O.INTR.PC&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>) • &lt;strong>Oil reserves ~171 bn bbl&lt;/strong> (mostly oil sands). (&lt;a href="https://natural-resources.canada.ca/energy-sources/fossil-fuels/oil-resources?utm_source=chatgpt.com" title="Oil Resources">Natural Resources Canada&lt;/a>) • &lt;strong>Potash:&lt;/strong> world&amp;rsquo;s largest producer (2023). (&lt;a href="https://natural-resources.canada.ca/minerals-mining/mining-data-statistics-analysis/minerals-metals-facts/potash-facts?utm_source=chatgpt.com" title="Potash facts - Natural Resources Canada">Natural Resources Canada&lt;/a>) • &lt;strong>Uranium:&lt;/strong> among top global producers. (&lt;a href="https://natural-resources.canada.ca/minerals-mining/mining-data-statistics-analysis/minerals-metals-facts/uranium-nuclear-power-facts?utm_source=chatgpt.com" title="Uranium and nuclear power facts - Natural Resources Canada">Natural Resources Canada&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High readiness/low vulnerability:&lt;/strong> &lt;strong>ND-GAIN rank 11 (2023)&lt;/strong>. (&lt;a href="https://gain-new.crc.nd.edu/country/canada?utm_source=chatgpt.com" title="Canada">ND-GAIN Index&lt;/a>) • Rising hazard exposure: &lt;strong>record wildfires in 2023 burned ~18.4M ha&lt;/strong> (NASA/NRCan). (&lt;a href="https://earthobservatory.nasa.gov/images/151985/tracking-canadas-extreme-2023-fire-season?utm_source=chatgpt.com" title="Tracking Canada's Extreme 2023 Fire Season">Earth Observatory&lt;/a>) • WB climate profile highlights risks from &lt;strong>wildfire, floods, extreme precipitation&lt;/strong>. (&lt;a href="https://climateknowledgeportal.worldbank.org/country/canada?utm_source=chatgpt.com" title="Canada - Country Overview | Climate Change Knowledge Portal">Climate Knowledge Portal&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> &lt;strong>Island-buffered tri-oceanic state&lt;/strong> with the world&amp;rsquo;s &lt;strong>longest coastline (~202,080 km)&lt;/strong>; only land border is the U.S.; growing &lt;strong>Arctic&lt;/strong> relevance. (&lt;a href="https://www.cia.gov/the-world-factbook/about/archives/2023/countries/canada/?utm_source=chatgpt.com" title="Canada - The World Factbook">CIA&lt;/a>) &lt;strong>Geopolitics:&lt;/strong> Founding &lt;strong>NATO&lt;/strong> member; &lt;strong>NORAD&lt;/strong> bi-national defence with the U.S. (ongoing modernization); &lt;strong>USMCA/CUSMA&lt;/strong> governs North American trade; &lt;strong>Five Eyes&lt;/strong> intelligence partnership. (&lt;a href="https://www.international.gc.ca/world-monde/international_relations-relations_internationales/nato-otan/index.aspx?lang=eng&amp;amp;utm_source=chatgpt.com" title="Canada and the North Atlantic Treaty Organization">Global Affairs Canada&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>97/100 – Free&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/canada/freedom-world/2025?utm_source=chatgpt.com" title="Canada: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>75/100&lt;/strong>, &lt;strong>rank 15/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/canada?utm_source=chatgpt.com" title="Canada">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>full democracy&lt;/strong>, reported score &lt;strong>~8.7&lt;/strong>. (&lt;a href="https://www.hilltimes.com/story/2025/03/03/canadian-democracy-remains-strong-but-trust-is-low-in-politicians-and-parties-reports/452556/?utm_source=chatgpt.com" title="Canadian democracy remains strong, but trust is low in ...">The Hill Times&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High income:&lt;/strong> &lt;strong>GDP per capita (current US$)&lt;/strong> &lt;strong>$54,283 (2024)&lt;/strong> (WB). (&lt;a href="https://data.worldbank.org/country/canada?utm_source=chatgpt.com" title="Canada | Data">World Bank Data&lt;/a>) • &lt;strong>IMF 2025 real GDP growth&lt;/strong> projection &lt;strong>~1.6%&lt;/strong>. (&lt;a href="https://www.imf.org/en/Countries/CAN?utm_source=chatgpt.com" title="Canada and the IMF">IMF&lt;/a>) • Trade-exposed, diversified mix (energy, autos, machinery/services); &lt;strong>energy exports $176.2B in 2024&lt;/strong> (StatCan). (&lt;a href="https://www150.statcan.gc.ca/n1/daily-quotidien/250205/dq250205a-eng.pdf?utm_source=chatgpt.com" title="Canadian international merchandise trade, December 2024">Statistics Canada&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Canada represents a highly developed nation with exceptional natural resources, strong institutions, and strategic positioning. Its future success depends on managing climate change, maintaining productivity growth, and leveraging its Arctic and resource advantages while addressing demographic and competitiveness challenges.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Resource Superpower&lt;/strong>: Abundant natural resources provide economic foundation but also create vulnerability to commodity price cycles.&lt;/li>
&lt;li>&lt;strong>Arctic Advantage&lt;/strong>: Climate change is opening new opportunities in Arctic shipping, resources, and sovereignty.&lt;/li>
&lt;li>&lt;strong>US Integration&lt;/strong>: Deep economic and security ties with the United States provide stability but limit policy autonomy.&lt;/li>
&lt;li>&lt;strong>Immigration Strategy&lt;/strong>: Skilled immigration is crucial for addressing demographic challenges and economic growth.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/canada">World Bank Canada Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/canada/">CIA World Factbook - Canada&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.statcan.gc.ca/">Statistics Canada&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.bankofcanada.ca/">Bank of Canada&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Nepal</title><link>https://h3sun.github.io/post/2025-09-13-one-country-a-day-nepal/</link><pubDate>Sat, 13 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-13-one-country-a-day-nepal/</guid><description>&lt;h2 id="-nepal---day-18-of-one-country-a-day-project">🇳🇵 Nepal - Day 18 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic study of South Asia with Nepal — a landlocked Himalayan nation with unique geographic advantages, significant hydropower potential, and strategic position between India and China in one of the world&amp;rsquo;s most challenging mountain environments.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~30.9 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$45–$50 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$1,450–$1,620 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 147,181 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Kathmandu&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Kathmandu, Pokhara, Lalitpur, Bharatpur, Biratnagar, Birgunj&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Nepal Airlines, Nabil Bank, Himalayan Bank, Chaudhary Group, Yeti Airlines&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (latest where available)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~12.6% of land&lt;/strong> (2022, WDI via TradingEconomics). (&lt;a href="https://tradingeconomics.com/nepal/arable-land-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Nepal - Arable Land (% Of Land Area) - 2025 Data 2026 ...">Trading Economics&lt;/a>) • &lt;strong>Forest cover ~41.6%&lt;/strong> (2022, WDI). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.FRST.ZS?locations=NP&amp;amp;utm_source=chatgpt.com" title="Forest area (% of land area) - Nepal">World Bank Open Data&lt;/a>) • &lt;strong>Avg. precipitation ~1,500 mm/yr&lt;/strong>; &lt;strong>renewable internal water ~198.2 km³&lt;/strong> and &lt;strong>~7,100 m³ per capita&lt;/strong> (FAO AQUASTAT; SDG6). (&lt;a href="https://storage.googleapis.com/fao-aquastat.appspot.com/countries_regions/factsheets/summary_statistics/en/NPL-CF.pdf?utm_source=chatgpt.com" title="Country Fact Sheet Area - Googleapis.com">Google Cloud Storage&lt;/a>) • &lt;strong>Hydropower potential ~83,000 MW (technical), ~42,000 MW (economic)&lt;/strong>; no domestic oil/gas. (&lt;a href="https://www.nbr.org/publication/balanced-hydropower-development-in-nepal/?utm_source=chatgpt.com" title="Balanced Hydropower Development in Nepal">National Bureau of Asian Research&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Very high exposure to &lt;strong>earthquakes, landslides, floods&lt;/strong>; &lt;strong>ND-GAIN 2023: rank 126, high vulnerability/low readiness&lt;/strong>. (&lt;a href="https://gain-new.crc.nd.edu/country/nepal?utm_source=chatgpt.com" title="Nepal | ND-GAIN Index">gain-new.crc.nd.edu&lt;/a>) • &lt;strong>Climate/Disaster risk&lt;/strong> repeatedly flagged by WB; &lt;strong>Germanwatch CRI&lt;/strong> places Nepal among the &lt;strong>top-10 most affected&lt;/strong> historically. (&lt;a href="https://documents.worldbank.org/en/publication/documents-reports/documentdetail/099511210252413915/idu1a6b7751e10051a5c913a740a4c1c89?utm_source=chatgpt.com" title="Nepal Disaster Resilience Second DPC with Cat DDO ...">World Bank&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.3&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense (~3.2/5):&lt;/strong> &lt;strong>Landlocked&lt;/strong> Himalayan state; &lt;strong>borders:&lt;/strong> India ~&lt;strong>1,751 km&lt;/strong>, China ~&lt;strong>1,389–1,415 km&lt;/strong>; terrain is highly defensible but logistics vulnerable. (&lt;a href="https://www.indembkathmandu.gov.in/about-india-nepal-relations?utm_source=chatgpt.com" title="About India Nepal Relations">Embassy of India Kathmandu&lt;/a>) &lt;strong>Geopolitics (~2.8/5):&lt;/strong> Deep &lt;strong>economic/transit dependence on India&lt;/strong> but growing leverage via &lt;strong>power trade (India to import 10,000 MW over 10 years)&lt;/strong>; participates in &lt;strong>SAARC&lt;/strong> and &lt;strong>BIMSTEC&lt;/strong>; &lt;strong>MCC Compact&lt;/strong> in force since &lt;strong>Aug 30, 2023&lt;/strong> to strengthen grid/transmission. (&lt;a href="https://www.reuters.com/world/asia-pacific/india-import-10000-mw-hydroelectricity-nepal-over-10-years-2024-01-04/?utm_source=chatgpt.com" title="India to import 10000 MW of hydroelectricity from Nepal ...">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>62/100 – Partly Free&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/nepal/freedom-world/2025?utm_source=chatgpt.com" title="Nepal: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>34/100, rank 107/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/nepal?utm_source=chatgpt.com" title="Nepal">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>4.60 (rank 96)&lt;/strong> → &lt;em>hybrid regime&lt;/em>. (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>) • &lt;strong>2025 unrest/social-media ban episodes&lt;/strong> highlight institutional stress. (&lt;a href="https://www.reuters.com/world/asia-pacific/nepal-lifts-social-media-ban-after-protests-leave-19-dead-minister-says-2025-09-09/?utm_source=chatgpt.com" title="Nepal lifts social media ban after protests leave 19 dead, minister says">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$)&lt;/strong> ~latest WDI series (2024) in the low &lt;strong>$1.4–1.6k&lt;/strong> range; &lt;strong>IMF 2025 real GDP growth projection: 4.0%&lt;/strong>; &lt;strong>World Bank FY25: ~4.5%&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=NP&amp;amp;utm_source=chatgpt.com" title="GDP per capita (current US$) - Nepal">World Bank Open Data&lt;/a>) • &lt;strong>Remittances extremely high&lt;/strong> (≈ &lt;strong>33% of GDP in 2024&lt;/strong>, WB series); &lt;strong>hydropower exports rising&lt;/strong> (FY 2024/25: ~&lt;strong>2.35 billion kWh&lt;/strong> sold, NPR &lt;strong>17.46 bn&lt;/strong>). (&lt;a href="https://tradingeconomics.com/nepal/workers-remittances-and-compensation-of-employees-received-percent-of-gdp-wb-data.html?utm_source=chatgpt.com" title="Personal remittances, received (% of GDP) in Nepal ...">Trading Economics&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Nepal represents a nation with significant untapped potential, particularly in hydropower and tourism, while facing challenges of landlocked geography, political instability, and infrastructure development. Its ability to balance relations with India and China while developing its natural resources will shape its future trajectory.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Hydropower Potential&lt;/strong>: Massive untapped water resources offer the greatest economic opportunity for development and export revenue.&lt;/li>
&lt;li>&lt;strong>Geographic Constraints&lt;/strong>: Landlocked status and mountainous terrain create both natural advantages and development challenges.&lt;/li>
&lt;li>&lt;strong>Dual Dependence&lt;/strong>: Economic reliance on both India (trade/transit) and China (investment/infrastructure) requires careful balancing.&lt;/li>
&lt;li>&lt;strong>Remittance Economy&lt;/strong>: Large diaspora remittances provide stability but also create vulnerability to external economic shocks.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/nepal">World Bank Nepal Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/nepal/">CIA World Factbook - Nepal&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://cbs.gov.np/">Central Bureau of Statistics&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.nrb.org.np/">Nepal Rastra Bank&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-next-regional-focus">🚀 Next Regional Focus&lt;/h3>
&lt;p>Next, I will focus on North America, studying the United States and Canada to complete the global analysis.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Sri Lanka</title><link>https://h3sun.github.io/post/2025-09-12-one-country-a-day-sri-lanka/</link><pubDate>Fri, 12 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-12-one-country-a-day-sri-lanka/</guid><description>&lt;h2 id="-sri-lanka---day-17-of-one-country-a-day-project">🇱🇰 Sri Lanka - Day 17 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic study of South Asia with Sri Lanka — an island nation at the crossroads of Indian Ocean trade routes, recovering from economic crisis while leveraging its strategic location, natural beauty, and human capital potential.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~22.2 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$95–$105 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$4,300–$4,700 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 65,610 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Colombo (commercial), Sri Jayawardenepura Kotte (administrative)&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Colombo, Kandy, Galle, Jaffna, Negombo, Kurunegala&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: John Keells Holdings, Dialog Axiata, Commercial Bank of Ceylon, Ceylon Tea, MAS Holdings&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (latest where available)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~22.2%&lt;/strong> (2022, WB); &lt;strong>forest area ~34.1%&lt;/strong> (2022). (&lt;a href="https://wdi.worldbank.org/table/3.1?utm_source=chatgpt.com" title="3.1 - World Development Indicators | The World Bank">wdi.worldbank.org&lt;/a>) • &lt;strong>Avg. precipitation ~1,712 mm/yr&lt;/strong> (FAO AQUASTAT); &lt;strong>renewable internal freshwater&lt;/strong> per capita reported in WDI (latest series) shows low-mid thousands m³. (&lt;a href="https://storage.googleapis.com/fao-aquastat.appspot.com/countries_regions/factsheets/summary_statistics/en/LKA-CF.pdf?utm_source=chatgpt.com" title="Country Fact Sheet Area - Googleapis.com">Google Cloud Storage&lt;/a>) • Minerals: &lt;strong>graphite&lt;/strong> (global producer, though small share), &lt;strong>heavy mineral sands&lt;/strong> (ilmenite/rutile/zircon) at &lt;strong>Pulmoddai&lt;/strong>; &lt;strong>no domestic oil/gas production&lt;/strong>—high import dependence for energy. (&lt;a href="https://pubs.usgs.gov/myb/vol3/2020-21/myb3-2020-21-sri-lanka.pdf?utm_source=chatgpt.com" title="The Mineral Industry of Sri Lanka in 2020-2021">U.S. Geological Survey&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Exposed to &lt;strong>floods, landslides, cyclones&lt;/strong> (WB climate risk profile). (&lt;a href="https://climateknowledgeportal.worldbank.org/sites/default/files/2021-05/15507-WB_Sri%20Lanka%20Country%20Profile-WEB.pdf?utm_source=chatgpt.com" title="SRI LANKA - Climate Change Knowledge Portal">Climate Knowledge Portal&lt;/a>) • &lt;strong>ND-GAIN rank ~110–111&lt;/strong> (moderate vulnerability/readiness). (&lt;a href="https://gain-new.crc.nd.edu/ranking?utm_source=chatgpt.com" title="Country Rankings">gain-new.crc.nd.edu&lt;/a>) • &lt;strong>WorldRiskIndex 2023&lt;/strong> places Sri Lanka mid-risk (rank &lt;strong>~77&lt;/strong>). (&lt;a href="https://www.researchgate.net/publication/374029957_The_WorldRiskIndex_2023?utm_source=chatgpt.com" title="(PDF) The WorldRiskIndex 2023">ResearchGate&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Island state&lt;/strong> with &lt;strong>~1,340 km coastline&lt;/strong> and &lt;strong>EEZ ~510–533k km²&lt;/strong>; sits on major Indian Ocean sea lanes; &lt;strong>Colombo&lt;/strong> is a large &lt;strong>transshipment hub&lt;/strong> (record &lt;strong>7.78M TEU in 2024&lt;/strong>). (&lt;a href="https://en.wikipedia.org/wiki/List_of_countries_by_length_of_coastline?utm_source=chatgpt.com" title="List of countries by length of coastline">Wikipedia&lt;/a>) • &lt;strong>Hambantota&lt;/strong> port under a &lt;strong>99-year lease&lt;/strong> to a Chinese operator since 2017; India and partners stepping up &lt;strong>defense/energy&lt;/strong> cooperation (e.g., &lt;strong>2025 India–Sri Lanka defense MoU&lt;/strong>; &lt;strong>India–UAE Trincomalee energy hub&lt;/strong>). (&lt;a href="https://www.csis.org/analysis/game-loans-how-china-bought-hambantota?utm_source=chatgpt.com" title="Game of Loans: How China Bought Hambantota">CSIS&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>Partly Free, 58/100&lt;/strong> (country page). (&lt;a href="https://freedomhouse.org/country/sri-lanka?utm_source=chatgpt.com" title="Sri Lanka: Country Profile">Freedom House&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>32/100, rank 121/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/sri-lanka?utm_source=chatgpt.com" title="Sri Lanka">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>6.19 (rank 67)&lt;/strong> → &lt;em>flawed democracy&lt;/em>. (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="[PDF] Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$)&lt;/strong> &lt;strong>$4,516 (2024, WB)&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/sri-lanka?utm_source=chatgpt.com" title="Sri Lanka | Data">World Bank Open Data&lt;/a>) • &lt;strong>Growth outlook 2025:&lt;/strong> &lt;strong>~3.5% (World Bank)&lt;/strong>; recovering under the &lt;strong>IMF EFF (approved Mar 2023; 4th review completed Jul 2025)&lt;/strong>; &lt;strong>Fitch&lt;/strong> upgraded to &lt;strong>CCC+&lt;/strong> after bond deal (Dec 2024). (&lt;a href="https://www.reuters.com/world/asia-pacific/sri-lankas-economy-grow-35-2025-despite-us-tariff-headwinds-world-bank-says-2025-04-23/?utm_source=chatgpt.com" title="Sri Lanka's economy to grow 3.5% in 2025 despite US tariff headwinds, World Bank says">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Sri Lanka represents a nation in transition, leveraging its strategic location and natural advantages while addressing governance and economic challenges. Its recovery from the 2022 crisis and ability to balance geopolitical relationships will shape its future trajectory.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Strategic Geography&lt;/strong>: Island location on key shipping lanes provides both security and economic opportunities.&lt;/li>
&lt;li>&lt;strong>Crisis Recovery&lt;/strong>: Post-2022 economic crisis has forced difficult but necessary reforms in governance and fiscal management.&lt;/li>
&lt;li>&lt;strong>Geopolitical Balancing&lt;/strong>: Position between India and China requires careful navigation of competing interests.&lt;/li>
&lt;li>&lt;strong>Tourism Potential&lt;/strong>: Natural beauty and cultural heritage offer significant untapped tourism potential post-recovery.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/srilanka">World Bank Sri Lanka Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/sri-lanka/">CIA World Factbook - Sri Lanka&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.statistics.gov.lk/">Department of Census and Statistics&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cbsl.gov.lk/">Central Bank of Sri Lanka&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Bangladesh</title><link>https://h3sun.github.io/post/2025-09-11-one-country-a-day-bangladesh/</link><pubDate>Thu, 11 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-11-one-country-a-day-bangladesh/</guid><description>&lt;h2 id="-bangladesh---day-16-of-one-country-a-day-project">🇧🇩 Bangladesh - Day 16 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic study of South Asia with Bangladesh — a densely populated delta nation with strong economic growth, significant climate vulnerability, and strategic location between India and Myanmar in the Bay of Bengal.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~174 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$460–$500 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$2,650–$2,900 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 147,570 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Dhaka&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Dhaka, Chittagong, Khulna, Rajshahi, Sylhet, Barisal&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Grameen Bank, BRAC, Square Pharmaceuticals, Beximco, Summit Group&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (latest where available)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>Arable land &lt;strong>60.5%&lt;/strong> of land area (2022); agricultural land &lt;strong>72.35%&lt;/strong> (2022). Forest cover &lt;strong>≈14.5%&lt;/strong> (2022). Renewable internal freshwater availability is &lt;strong>low (~600–800 m³/person/yr)&lt;/strong>, i.e., at/under water-stress thresholds. Energy endowment: legacy &lt;strong>onshore gas&lt;/strong> is depleting; remaining reserves and output are falling; rising reliance on &lt;strong>LNG&lt;/strong> and &lt;strong>coal&lt;/strong> in the power mix. (&lt;a href="https://tradingeconomics.com/bangladesh/arable-land-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Bangladesh - Arable Land (% Of Land Area) - 2025 Data ...">Trading Economics&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td>Exceptional arable endowment but modest minerals/energy and tight freshwater per capita pull the score down.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Among the &lt;strong>most climate-vulnerable&lt;/strong> globally: WorldRiskIndex &lt;strong>#9/193 (2023)&lt;/strong>; ND-GAIN &lt;strong>rank 178/192, score 32.9&lt;/strong> (very low readiness). High exposure to &lt;strong>cyclones, floods, storm surge&lt;/strong>; 2024 floods destroyed ~&lt;strong>1.1 Mt&lt;/strong> of rice. (&lt;a href="https://www.climatecentre.org/wp-content/uploads/RCCC-ICRC-Country-profiles-Bangladesh_2022-V6.pdf?utm_source=chatgpt.com" title="Bangladesh">Climate Centre&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>1.6&lt;/strong>&lt;/td>
&lt;td>Hazard exposure + sea-level and riverine flood risks are severe despite notable disaster-management gains.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> (60% Geo-Defense + 40% Geopolitics)&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> Flat deltaic terrain; borders: &lt;strong>India ~4,096.7 km&lt;/strong>, &lt;strong>Myanmar 271 km&lt;/strong>; &lt;strong>coastline ~580 km&lt;/strong> on Bay of Bengal—no control of a choke-point; defense depth limited. &lt;strong>Geopolitics:&lt;/strong> Non-aligned balancing with India/China; active in &lt;strong>UN peacekeeping (top contributor)&lt;/strong>; regional blocs &lt;strong>SAARC, BIMSTEC, IORA&lt;/strong>; major partners (WB/IMF) financing port/infra (e.g., Bay Terminal at Chattogram). (&lt;a href="https://en.wikipedia.org/wiki/The_Economist_Democracy_Index?utm_source=chatgpt.com" title="The Economist Democracy Index">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td>Geography is defensively challenging; geopolitical ties and peacekeeping stature add leverage but don&amp;rsquo;t offset terrain/exposure.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> Global Freedom &lt;strong>45/100 (Partly Free)&lt;/strong>; 2024–25 saw political upheaval and interim gov&amp;rsquo;t. &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>23/100&lt;/strong>, &lt;strong>rank 151/180&lt;/strong> (lowest in 13 years). (&lt;a href="https://freedomhouse.org/country/bangladesh/freedom-world/2025" title="Bangladesh: Freedom in the World 2025 Country Report | Freedom House">Freedom House&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>1.9&lt;/strong>&lt;/td>
&lt;td>Partial political freedoms; corruption perceptions are poor even after the 2024 transition—keeping the score low.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Income level:&lt;/strong> &lt;strong>Lower-middle income&lt;/strong> (World Bank). &lt;strong>Growth outlook:&lt;/strong> FY2024/25 &lt;strong>~3.3–4.1%&lt;/strong> (WB/ADB) and &lt;strong>~3.8%&lt;/strong> (IMF) amid uncertainty; FY2025/26 seen improving. &lt;strong>Export structure:&lt;/strong> &lt;strong>Apparel/RMG ≈84.6%&lt;/strong> of exports (FY2024); FY2024/25 RMG ≈ &lt;strong>$39.35 bn&lt;/strong> of &lt;strong>$48.3 bn&lt;/strong> exports. &lt;strong>Remittances:&lt;/strong> &lt;strong>~$30 bn&lt;/strong> in FY2024/25 (record). (&lt;a href="https://data.worldbank.org/?locations=BD-XN&amp;amp;utm_source=chatgpt.com" title="Data for Bangladesh, Lower middle income">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td>Strong long-run development record, but near-term growth cooled and exports remain highly concentrated in garments; remittances are a major stabilizer.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Bangladesh represents a remarkable development success story despite extreme climate vulnerability and governance challenges. Its future depends on economic diversification, climate adaptation, and institutional strengthening while managing demographic transition and regional dynamics.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Climate Paradox&lt;/strong>: Despite being the world&amp;rsquo;s most climate-vulnerable country, Bangladesh has achieved strong economic growth and poverty reduction.&lt;/li>
&lt;li>&lt;strong>Garment Success&lt;/strong>: Textile industry transformation has been the engine of growth, but diversification is critical for sustainability.&lt;/li>
&lt;li>&lt;strong>Demographic Transition&lt;/strong>: Population growth slowing, urbanization accelerating, requiring massive job creation and infrastructure investment.&lt;/li>
&lt;li>&lt;strong>Regional Dynamics&lt;/strong>: Strategic location between India and China offers opportunities but also creates dependency and complexity.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/bangladesh">World Bank Bangladesh Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/bangladesh/">CIA World Factbook - Bangladesh&lt;/a>&lt;/li>
&lt;li>&lt;a href="http://bbs.gov.bd/">Bangladesh Bureau of Statistics&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.bb.org.bd/">Bangladesh Bank&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - India</title><link>https://h3sun.github.io/post/2025-09-10-one-country-a-day-india/</link><pubDate>Wed, 10 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-10-one-country-a-day-india/</guid><description>&lt;h2 id="-india---day-15-of-one-country-a-day-project">🇮🇳 India - Day 15 of One Country a Day Project&lt;/h2>
&lt;p>Today I begin my systematic study of South Asia with India — the world&amp;rsquo;s largest democracy, fifth-largest economy, and a rising power with vast human capital, diverse natural resources, and growing geopolitical influence across the Indo-Pacific region.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~1.44 billion (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$4.1–$4.3 trillion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$2,850–$3,000 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 3,287,263 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: New Delhi&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Mumbai, Delhi, Bangalore, Hyderabad, Chennai, Kolkata, Ahmedabad, Pune&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Reliance Industries, TCS, Infosys, HDFC Bank, ICICI Bank, Wipro, HCL Technologies, Bharti Airtel&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (evidence)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>Arable land ≈ &lt;strong>51.9%&lt;/strong> of land (2022 WB); forest area ≈ &lt;strong>24.4%&lt;/strong> (2022 WB); average precipitation &lt;strong>~1,170 mm/yr&lt;/strong> (FAO); per-capita renewable water availability &lt;strong>~1,486 m³&lt;/strong> (2021, CWC—water-stress threshold &amp;lt;1,700 m³); coal output &lt;strong>&amp;gt;1.0 billion t in FY25&lt;/strong>; strong iron-ore/bauxite output (GoI). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.ARBL.ZS?locations=IN&amp;amp;utm_source=chatgpt.com" title="Arable land (% of land area) - India">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High disaster risk:&lt;/strong> India ranks &lt;strong>#3&lt;/strong> globally on the &lt;strong>WorldRiskIndex 2023&lt;/strong>; &lt;strong>ND-GAIN&lt;/strong>: rank &lt;strong>115&lt;/strong> (score &lt;strong>43.5&lt;/strong>) = relatively high vulnerability/limited readiness; repeated extreme &lt;strong>heatwaves&lt;/strong> with significant mortality in &lt;strong>2024&lt;/strong>; WB climate profile flags rising heat/flood risk. (&lt;a href="https://weltrisikobericht.de/wp-content/uploads/2024/01/WorldRiskReport_2023_english_online.pdf?utm_source=chatgpt.com" title="WorldRiskReport 2023">Welt Risikobericht&lt;/a>)&lt;/td>
&lt;td>&lt;strong>2.1&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense (60%)&lt;/strong>: Long coastline (&lt;strong>~7,516 km&lt;/strong>; A&amp;amp;N islands astride approaches to the &lt;strong>Strait of Malacca&lt;/strong>), Himalayas as major northern barrier, but active land borders with &lt;strong>China/Pakistan&lt;/strong> elevate exposure. &lt;strong>Geopolitics (40%)&lt;/strong>: Member of the &lt;strong>Quad&lt;/strong> (US-JP-AUS-IND), &lt;strong>BRICS&lt;/strong>, &lt;strong>SCO&lt;/strong>; ongoing &lt;strong>border disengagement talks with China&lt;/strong> since 2024–25. (&lt;a href="https://shipmin.gov.in/sites/default/files/Length%20of%20Indias%20Coastline%20Circular_0.pdf?utm_source=chatgpt.com" title="the length of India's coastline">Ship Ministry&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;em>Partly Free&lt;/em>, &lt;strong>63/100&lt;/strong>; &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>38/100&lt;/strong>, rank &lt;strong>96/180&lt;/strong>; &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>7.29&lt;/strong>, rank &lt;strong>41&lt;/strong> (&lt;em>flawed democracy&lt;/em>). (&lt;a href="https://freedomhouse.org/country/india/freedom-world/2025?utm_source=chatgpt.com" title="India: Freedom in the World 2025 Country Report">Freedom House&lt;/a>)&lt;/td>
&lt;td>&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$)&lt;/strong> ≈ &lt;strong>$2,697 (2024, WB)&lt;/strong>; &lt;strong>growth outlook 2025:&lt;/strong> &lt;strong>~6.4%&lt;/strong> (IMF WEO July 2025); diversification improving: &lt;strong>services exports hit $387.5 bn in FY25&lt;/strong> (record); electronics/smartphone exports rising under &lt;strong>PLI&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/india?utm_source=chatgpt.com" title="India | Data">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>India represents a rising power with exceptional human capital, natural resources, and strategic positioning. Its development trajectory depends on infrastructure investment, skill development, governance reforms, and managing climate risks while leveraging its demographic dividend and technological capabilities.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Demographic Dividend&lt;/strong>: Young population (median age ~28) provides workforce advantage but requires massive job creation and skill development.&lt;/li>
&lt;li>&lt;strong>Technology Leadership&lt;/strong>: Strong IT sector and growing tech ecosystem position India as a global innovation hub.&lt;/li>
&lt;li>&lt;strong>Strategic Balancing&lt;/strong>: Non-alignment tradition allows flexibility but also limits deep partnerships; Quad membership signals Indo-Pacific focus.&lt;/li>
&lt;li>&lt;strong>Infrastructure Challenge&lt;/strong>: Massive investment needed in transport, energy, water, and digital infrastructure to unlock growth potential.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/india">World Bank India Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/india/">CIA World Factbook - India&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.mospi.gov.in/">Ministry of Statistics and Programme Implementation&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.rbi.org.in/">Reserve Bank of India&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another south-asia country, according to the regional study strategy it will be Bangladesh.&lt;/p>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Cambodia</title><link>https://h3sun.github.io/post/2025-09-07-one-country-a-day-cambodia/</link><pubDate>Sun, 07 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-07-one-country-a-day-cambodia/</guid><description>&lt;h2 id="-cambodia---day-14-of-one-country-a-day-project">🇰🇭 Cambodia - Day 14 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Cambodia — a lower-middle-income Mekong country with a youthful population, strong garment/footwear manufacturing base, deep cultural heritage, and rising integration with regional supply chains.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~17.3 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$34–$38 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$1,900–$2,200 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 181,035 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Phnom Penh&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Phnom Penh, Siem Reap, Battambang, Sihanoukville, Kampong Cham&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: ACLEDA Bank, Chip Mong Group, Royal Group of Companies&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (evidence)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>Arable land ≈ &lt;strong>23.3%&lt;/strong> of land; forest cover ≈ &lt;strong>43.9%&lt;/strong> (2022). Renewable freshwater ≈ &lt;strong>7,400 m³/person&lt;/strong> (latest WB point). No meaningful oil &amp;amp; gas output after the 2021 KrisEnergy halt; minerals include the &lt;strong>Okvau&lt;/strong> gold mine (&lt;strong>114,076 oz&lt;/strong> in FY24).&lt;/td>
&lt;td>&lt;strong>2.7&lt;/strong> (&lt;a href="https://www.theglobaleconomy.com/Cambodia/arable_land_percent/?utm_source=chatgpt.com" title="Cambodia Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>, &lt;a href="https://tradingeconomics.com/cambodia/forest-area-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Cambodia - Forest Area (% Of Land Area) - 2025 Data ...">Trading Economics&lt;/a>, &lt;a href="https://www.indexmundi.com/facts/cambodia/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Cambodia - Renewable internal freshwater resources per ...">Index Mundi&lt;/a>, &lt;a href="https://minedocs.com/27/Okvau-MR-08292024.pdf?utm_source=chatgpt.com" title="Expansion to Underground Resource at Okvau">MineDocs&lt;/a>, &lt;a href="https://www.emeraldresources.com.au/wp-content/uploads/2024/10/Emerald-AR24-Single-Page.pdf?utm_source=chatgpt.com" title="ANNUAL REPORT 2024">Emerald Resources&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Monsoonal, avg rainfall &lt;strong>~1,836 mm/yr&lt;/strong> (1991–2020). High exposure to &lt;strong>floods &amp;amp; droughts&lt;/strong>; low climate readiness (&lt;strong>ND-GAIN rank 161/…&lt;/strong>). Regionally high disaster risk per WorldRiskReport methodology.&lt;/td>
&lt;td>&lt;strong>2.0&lt;/strong> (&lt;a href="https://climateknowledgeportal.worldbank.org/sites/default/files/country-profiles/16814-WB_Cambodia%20Country%20Profile-WEB.pdf?utm_source=chatgpt.com" title="CAMBODIA - Climate Change Knowledge Portal">climateknowledgeportal.worldbank.org&lt;/a>, &lt;a href="https://gain-new.crc.nd.edu/country/cambodia?utm_source=chatgpt.com" title="Cambodia">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> Lowlands around Mekong/Tonlé Sap; short &lt;strong>coastline ~443 km&lt;/strong> on Gulf of Thailand; land borders with TH/LA/VN—limited natural barriers. &lt;strong>Geopolitics:&lt;/strong> ASEAN member (&lt;strong>since 1999&lt;/strong>), RCEP &lt;strong>in force since 2022&lt;/strong>; close China ties; selective Western pressure (EU &lt;strong>partial EBA withdrawal&lt;/strong> in 2020; targeted U.S. sanctions).&lt;/td>
&lt;td>&lt;strong>2.6&lt;/strong> (&lt;a href="https://user.iiasa.ac.at/~marek/fbook/04/fields/2060.html?utm_source=chatgpt.com" title="CIA - The World Factbook -- Field Listing - Coastline">user.iiasa.ac.at&lt;/a>, &lt;a href="https://asean.org/expo-2025-osaka/asean-member-states/?utm_source=chatgpt.com" title="ASEAN Member States">ASEAN Main Portal&lt;/a>, &lt;a href="https://www.dfat.gov.au/trade/agreements/in-force/rcep?utm_source=chatgpt.com" title="Regional Comprehensive Economic Partnership ...">DFAT&lt;/a>, &lt;a href="https://www.eeas.europa.eu/eeas/tradehuman-rights-commission-decides-partially-withdraw-cambodias-preferential-access-eu-market_en?utm_source=chatgpt.com" title="Cambodia's preferential access to the EU market - EEAS">European External Action Service&lt;/a>, &lt;a href="https://home.treasury.gov/news/press-releases/jy0475?utm_source=chatgpt.com" title="Treasury Targets Corrupt Military Officials in Cambodia">U.S. Department of the Treasury&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;em>Not Free&lt;/em>, &lt;strong>23/100&lt;/strong>; &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>21/100&lt;/strong>, rank &lt;strong>158/180&lt;/strong>; &lt;strong>EIU Democracy Index 2024:&lt;/strong> Cambodia classified as &lt;strong>authoritarian regime&lt;/strong>.&lt;/td>
&lt;td>&lt;strong>1.2&lt;/strong> (&lt;a href="https://freedomhouse.org/country/cambodia/freedom-world/2025?utm_source=chatgpt.com" title="Cambodia: Freedom in the World 2025 Country Report">Freedom House&lt;/a>, &lt;a href="https://www.transparency.org/en/countries/cambodia?utm_source=chatgpt.com" title="Cambodia">Transparency.org&lt;/a>, &lt;a href="https://www.eiu.com/n/democracy-index-2024/?utm_source=chatgpt.com" title="EIU's 2024 Democracy Index: trend of global democratic ...">Economist Intelligence Unit&lt;/a>)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>Lower-middle income: GDP per capita (current US$) **\~$2,628 (2024)**; growth: &lt;strong>~6.0% (2024)&lt;/strong> WB, &lt;strong>~4.0% (2025 proj.)&lt;/strong> IMF. Economy concentrated in &lt;strong>garments/footwear/travel goods&lt;/strong>, agri (rice), tourism; integration via &lt;strong>RCEP&lt;/strong>; near-term external-demand &amp;amp; tariff risks.&lt;/td>
&lt;td>&lt;strong>2.8&lt;/strong> (&lt;a href="https://data.worldbank.org/country/cambodia?utm_source=chatgpt.com" title="Cambodia | Data">World Bank Open Data&lt;/a>, &lt;a href="https://www.worldbank.org/en/country/cambodia/overview?utm_source=chatgpt.com" title="The World Bank in Cambodia">World Bank&lt;/a>, &lt;a href="https://www.imf.org/en/Countries/KHM?utm_source=chatgpt.com" title="Cambodia and the IMF">IMF&lt;/a>, &lt;a href="https://www.dfat.gov.au/trade/agreements/in-force/rcep?utm_source=chatgpt.com" title="Regional Comprehensive Economic Partnership ...">DFAT&lt;/a>)&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Cambodia’s development hinges on sustaining export-led manufacturing while upgrading skills, infrastructure, and governance. Managing climate risk around the Mekong–Tonle Sap system and improving rule of law will be critical to unlocking higher-value investment and raising living standards.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Tonle Sap Dynamics&lt;/strong>: Fisheries and agriculture rely on the flood pulse; upstream hydrology changes have system-wide effects.&lt;/li>
&lt;li>&lt;strong>Supply Chain Shift&lt;/strong>: Beneficiary of China+1 and ASEAN integration, especially in light manufacturing and bikes/electronics assembly.&lt;/li>
&lt;li>&lt;strong>Institutional Upgrading&lt;/strong>: Investment in education, logistics, and governance reforms are the catalysts for moving up the value chain.&lt;/li>
&lt;li>&lt;strong>Tourism Rebuild&lt;/strong>: Siem Reap–Angkor recovery and diversification beyond heritage sites to eco/cultural tourism improve resilience.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/cambodia">World Bank Cambodia Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/cambodia/">CIA World Factbook - Cambodia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.nis.gov.kh/nis/">National Institute of Statistics, Cambodia&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;p>Next week, I will study South Asia.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Mongolia</title><link>https://h3sun.github.io/post/2025-09-06-one-country-a-day-mongolia/</link><pubDate>Sat, 06 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-06-one-country-a-day-mongolia/</guid><description>&lt;h2 id="-mongolia---day-13-of-one-country-a-day-project">🇲🇳 Mongolia - Day 13 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Mongolia — a vast, landlocked resource economy between Russia and China, with extreme continental climate, low population density, and a development path tightly linked to mining and cross-border logistics.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~3.5 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$20–$22 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$5,600–$6,300 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 1,564,116 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Ulaanbaatar&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Ulaanbaatar, Erdenet, Darkhan, Choibalsan, Ölgii&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Oyu Tolgoi LLC (Rio Tinto + Erdenes Oyu Tolgoi), Erdenes Tavan Tolgoi, Mongolian Mining Corporation, APU Company&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>#&lt;/th>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>1&lt;/td>
&lt;td>&lt;strong>Natural Resources&lt;/strong>&lt;/td>
&lt;td>World-class &lt;strong>copper &amp;amp; gold&lt;/strong> (Oyu Tolgoi ramp-up), &lt;strong>coal&lt;/strong>, &lt;strong>fluorspar&lt;/strong>; uranium &amp;amp; rare earth prospects (USGS). &lt;strong>Forest&lt;/strong> ≈ &lt;strong>9.1%&lt;/strong> (2022, WB). &lt;strong>Arable land&lt;/strong> ≈ &lt;strong>0.7%&lt;/strong> (very limited). Extremely dry climate; long-term precip ~&lt;strong>230–276 mm/yr&lt;/strong>. 2024 coal exports &lt;strong>&amp;gt;80 Mt&lt;/strong> (record). (&lt;a href="https://pubs.usgs.gov/myb/vol3/2023/myb3-2023-mongolia.pdf?utm_source=chatgpt.com" title="The Mineral Industry of Mongolia in 2023">USGS Publications&lt;/a>, &lt;a href="https://tradingeconomics.com/mongolia/forest-area-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Mongolia - Forest Area (% Of Land Area) - 2025 Data 2026 ...">Trading Economics&lt;/a>, &lt;a href="https://www.theglobaleconomy.com/Mongolia/arable_land_percent/?utm_source=chatgpt.com" title="Mongolia Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>, &lt;a href="https://montsame.mn/en/read/359045?utm_source=chatgpt.com" title="Coal Exports Surpass 80 Million Tons for the First Time">Montsame&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>2&lt;/td>
&lt;td>&lt;strong>Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Harsh continental extremes with recurrent &lt;strong>dzud&lt;/strong> winters (≥&lt;strong>5–7 million&lt;/strong> livestock deaths in 2023/24). &lt;strong>Desertification&lt;/strong> affects ~&lt;strong>77%&lt;/strong> of land. ND-GAIN (2023) shows mid-pack readiness/vulnerability. Urban &lt;strong>air pollution&lt;/strong> in winter is a persistent issue. (&lt;a href="https://reliefweb.int/report/mongolia/mongolias-extreme-winter-52-million-livestock-dead-children-miss-out-school?utm_source=chatgpt.com" title="Mongolia's extreme winter: 5.2 million livestock dead as ...">ReliefWeb&lt;/a>, &lt;a href="https://apnews.com/article/42192fdc8e9462d3983c37943a9969b0?utm_source=chatgpt.com" title="Heavy snows and drought of deadly 'dzud' kill more than 7 million head of livestock in Mongolia">AP News&lt;/a>, &lt;a href="https://www.undp.org/mongolia/stories/thriving-mongolia-fight-against-biodiversity-loss-climate-change-and-desertification?utm_source=chatgpt.com" title="For a Thriving Mongolia: The Fight Against Biodiversity ...">UNDP&lt;/a>, &lt;a href="https://gain-new.crc.nd.edu/country/mongolia?utm_source=chatgpt.com" title="Mongolia">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.4&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>3&lt;/td>
&lt;td>&lt;strong>Geo Composite&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Landlocked&lt;/strong> between &lt;strong>China &amp;amp; Russia&lt;/strong> (no chokepoint leverage). Export corridors hinge on China; &lt;strong>Tavantolgoi–Gashuunsukhait rail&lt;/strong> opened &lt;strong>Sept 2022&lt;/strong> to speed coal flows. &lt;strong>“Third-neighbor” policy&lt;/strong> seeks ties with US/EU/Asia to balance neighbors. (&lt;a href="https://user.iiasa.ac.at/~marek/fbook/04/print/mg.html?utm_source=chatgpt.com" title="CIA - The World Factbook -- Mongolia">user.iiasa.ac.at&lt;/a>, &lt;a href="https://www.railjournal.com/freight/mongolia-celebrates-opening-of-tavantolgoi-gashuunsukhait-railway/?utm_source=chatgpt.com" title="Mongolia celebrates opening of Tavantolgoi">International Railway Journal&lt;/a>, &lt;a href="https://mn.usembassy.gov/our-relationship/policy-history/?utm_source=chatgpt.com" title="Policy &amp;amp; History">mn.usembassy.gov&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>4&lt;/td>
&lt;td>&lt;strong>Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>84/100 – Free&lt;/strong>. &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>33/100 (rank 114/180)&lt;/strong>. &lt;strong>EIU Democracy Index 2024:&lt;/strong> (country classified mid-tier). &lt;strong>2025 political shock:&lt;/strong> PM Oyun-Erdene resigned after a no-confidence vote amid protests. (&lt;a href="https://freedomhouse.org/country/mongolia/freedom-world/2025?utm_source=chatgpt.com" title="Mongolia: Freedom in the World 2025 Country Report">Freedom House&lt;/a>, &lt;a href="https://www.transparency.org/en/countries/mongolia?utm_source=chatgpt.com" title="Mongolia">Transparency.org&lt;/a>, &lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>, &lt;a href="https://www.reuters.com/world/china/mongolian-pm-resigns-after-losing-parliament-backing-street-protests-2025-06-03/?utm_source=chatgpt.com" title="Mongolian PM resigns after losing parliament backing, street protests">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>5&lt;/td>
&lt;td>&lt;strong>Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Lower-middle/high-$6k GDP pc&lt;/strong> with heavy &lt;strong>commodities&lt;/strong> focus (coal, copper). &lt;strong>IMF projects ~6.0% real GDP growth in 2025&lt;/strong>; growth buoyed by Oyu Tolgoi underground ramp-up; &lt;strong>HDI 0.747&lt;/strong> (“High”). (&lt;a href="https://tradingeconomics.com/mongolia/gdp-per-capita-us-dollar-wb-data.html?utm_source=chatgpt.com" title="Mongolia - GDP Per Capita - 2025 Data 2026 Forecast ...">Trading Economics&lt;/a>, &lt;a href="https://www.imf.org/en/Countries/MNG?utm_source=chatgpt.com" title="Mongolia and the IMF">IMF&lt;/a>, &lt;a href="https://www.riotinto.com/en/mn/oyu-tolgoi/oyu-tolgoi-underground-project?utm_source=chatgpt.com" title="Oyu Tolgoi underground | Mongolia">Rio Tinto&lt;/a>, &lt;a href="https://www.undp.org/sites/g/files/zskgke326/files/2025-05/english_country_note-human_development_report_2025_1.pdf?utm_source=chatgpt.com" title="mongolia">UNDP&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Mongolia’s development hinges on turning exceptional mineral endowment into broad-based prosperity while mitigating climate exposure and neighbor dependence. Rail connectivity, governance reforms in extractives, and renewable energy projects are pivotal levers for resilience and diversification.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Copper-Gold Flywheel&lt;/strong>: Oyu Tolgoi’s ramp-up can anchor external balances and fiscal space if governance remains prudent.&lt;/li>
&lt;li>&lt;strong>Connectivity is Destiny&lt;/strong>: New rail to China border crossings and transit agreements directly shape export capacity and costs.&lt;/li>
&lt;li>&lt;strong>Climate Adaptation&lt;/strong>: Dzud/drought resilience, urban heating transition, and pastureland management are core to livelihoods and health.&lt;/li>
&lt;li>&lt;strong>Third Neighbor Strategy&lt;/strong>: Diversifying partners for finance, technology, and education reduces single-market risk.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/mongolia">World Bank Mongolia Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/mongolia/">CIA World Factbook - Mongolia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.1212.mn/">National Statistics Office of Mongolia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.adb.org/countries/mongolia/main">Asian Development Bank - Mongolia&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Hong Kong SAR, China</title><link>https://h3sun.github.io/post/2025-09-05-one-country-a-day-hong-kong-sar-china/</link><pubDate>Fri, 05 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-05-one-country-a-day-hong-kong-sar-china/</guid><description>&lt;h2 id="-hong-kong-sar-china---day-12-of-one-country-a-day-project">🇭🇰 Hong Kong SAR, China - Day 12 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Hong Kong SAR — a high-income, services-led global hub for finance, trade, aviation, and logistics at the mouth of the Pearl River Delta, tightly integrated with the Greater Bay Area economy.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~7.5 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$360–$410 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$48k–$55k (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 1,106 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: — (Special Administrative Region)&lt;/li>
&lt;li>&lt;strong>Major Areas&lt;/strong>: Central &amp;amp; Western, Kowloon, New Territories, Lantau Island&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: HSBC, AIA, CK Hutchison, Hong Kong Exchanges and Clearing (HKEX), MTR Corporation, Cathay Pacific&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~1.9%&lt;/strong> (2021, WB). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.ARBL.ZS?utm_source=chatgpt.com" title="Arable land (% of land area) | Data">World Bank Open Data&lt;/a>) • &lt;strong>Forests ≈ one-fifth&lt;/strong> of land area (AFCD). (&lt;a href="https://www.afcd.gov.hk/english/conservation/Con_hkbsap/bsap2016/files/HKBSAP16-21_E.pdf?utm_source=chatgpt.com" title="Hong Kong - Biodiversity Strategy and Action Plan">afcd.gov.hk&lt;/a>) • &lt;strong>Very high rainfall&lt;/strong> (≈1,400–3,000 mm/yr across the territory). (&lt;a href="https://www.hko.gov.hk/en/cis/climahk.htm?utm_source=chatgpt.com" title="Climate of Hong Kong">Hong Kong Observatory&lt;/a>) • &lt;strong>Structural water dependence&lt;/strong>: &lt;strong>~70–80%&lt;/strong> of freshwater imported from &lt;strong>Dongjiang&lt;/strong>; &lt;strong>816 million m³&lt;/strong> imported in 2023/24. (&lt;a href="https://www.wsd.gov.hk/en/publications-and-statistics/pr-publications/the-facts/index.html?utm_source=chatgpt.com" title="Hong Kong: The Facts - Water Supplies">wsd.gov.hk&lt;/a>) • &lt;strong>Desalination&lt;/strong>: Tseung Kwan O plant &lt;strong>135,000 m³/day&lt;/strong> (≈5% of demand) commissioned Dec 22, 2023; fully commissioned July 2024. (&lt;a href="https://www.info.gov.hk/gia/general/202312/21/P2023122100381.htm?utm_source=chatgpt.com" title="Tseung Kwan O Desalination Plant to be commissioned ...">GovHK&lt;/a>, &lt;a href="https://binnies.com/news/hong-kong-tseung-kwan-o-desalination-plant-named-desalination-plant-of-the-year-at-global-water-awards-2025/?utm_source=chatgpt.com" title="Hong Kong Tseung Kwan O Desalination Plant Named ...">Binnies&lt;/a>) • &lt;strong>No indigenous energy resources&lt;/strong> (imports dominate). (&lt;a href="https://www.emsd.gov.hk/energyland/en/energy/energy_use/energy_scene.html?utm_source=chatgpt.com" title="Energyland - The Energy Scene of Hong Kong, China">EMS Department&lt;/a>)&lt;/td>
&lt;td>&lt;strong>1.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Typhoon &amp;amp; extreme-rain exposure&lt;/strong> (e.g., record “black rain” events; &lt;strong>heaviest August rain on record&lt;/strong> in Aug 2025). (&lt;a href="https://www.reuters.com/sustainability/climate-energy/hong-kong-reels-heaviest-august-rain-since-1884-2025-08-05/?utm_source=chatgpt.com" title="Hong Kong reels from heaviest August rain since 1884">Reuters&lt;/a>) • &lt;strong>Sea-level rise&lt;/strong> projected &lt;strong>+0.37–0.82 m (SSP2-4.5)&lt;/strong> and &lt;strong>+0.57–1.08 m (SSP5-8.5)&lt;/strong> by 2100 (HKO). (&lt;a href="https://www.hko.gov.hk/en/climate_change/proj_hk_msl.htm?utm_source=chatgpt.com" title="Mean sea level projection for Hong Kong">Hong Kong Observatory&lt;/a>) • Robust infrastructure and services mitigate day-to-day livability.&lt;/td>
&lt;td>&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> Compact, mountainous &lt;strong>island/peninsula&lt;/strong> with &lt;strong>deep natural harbour (Victoria Harbour)&lt;/strong>; on South China Sea routes but not a chokepoint. (&lt;a href="https://en.wikipedia.org/wiki/Victoria_Harbour?utm_source=chatgpt.com" title="Victoria Harbour">Wikipedia&lt;/a>) • &lt;strong>Defense/foreign affairs&lt;/strong> handled by Beijing per &lt;strong>Basic Law (Arts. 13–14)&lt;/strong>. (&lt;a href="https://www.basiclaw.gov.hk/en/basiclaw/chapter2.html?utm_source=chatgpt.com" title="Basic Law - Chapter II (EN)">Basic Law Hong Kong&lt;/a>) &lt;strong>Geopolitics:&lt;/strong> Separate &lt;strong>WTO&lt;/strong> member / &lt;strong>customs territory&lt;/strong> (“Hong Kong, China”) but &lt;strong>U.S. ended special treatment in 2020&lt;/strong>; recent &lt;strong>tariff disputes&lt;/strong> in 2025. (&lt;a href="https://www.wto.org/english/thewto_e/countries_e/hong_kong_china_e.htm?utm_source=chatgpt.com" title="WTO | Hong Kong, China - Member information">World Trade Organization&lt;/a>, &lt;a href="https://www.theguardian.com/world/2020/jul/15/trump-targets-china-with-executive-order-ending-hong-kongs-special-status?utm_source=chatgpt.com" title="China promises 'firm response' to Trump's order ending Hong Kong's special status">The Guardian&lt;/a>, &lt;a href="https://apnews.com/article/05a31fff43542cda30351428e847f303?utm_source=chatgpt.com" title="Hong Kong to file complaint with WTO on US tariffs">AP News&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025: 40/100 – Partly Free&lt;/strong> (further declines noted). (&lt;a href="https://freedomhouse.org/country/hong-kong?utm_source=chatgpt.com" title="Hong Kong: Country Profile">Freedom House&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>5.09 (rank 87)&lt;/strong> → &lt;em>hybrid/authoritarian-leaning&lt;/em>. (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>74/100 (rank 17/180)&lt;/strong> — public sector remains comparatively clean. (&lt;a href="https://www.transparency.org/en/countries/hong-kong?utm_source=chatgpt.com" title="Hong Kong">Transparency.org&lt;/a>)&lt;/td>
&lt;td>&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High income:&lt;/strong> &lt;strong>GDP per capita (current US$) ≈ $54,107 (2024, WB)&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=1W&amp;amp;utm_source=chatgpt.com" title="GDP per capita (current US$) - World">World Bank Open Data&lt;/a>) • &lt;strong>IMF 2025 real GDP growth projection: 1.5%&lt;/strong>; local gov’t forecast &lt;strong>2–3%&lt;/strong> (2025). (&lt;a href="https://www.imf.org/en/Countries/HKG?utm_source=chatgpt.com" title="People's Republic of China - Hong Kong Special ...">IMF&lt;/a>, &lt;a href="https://www.brandhk.gov.hk/docs/default-source/factsheets-library/hong-kong-themes/2025-05-27/economic-performance-and-outlook_en_may-25.pdf?utm_source=chatgpt.com" title="Economic performance and outlook">Brand Hong Kong&lt;/a>) • &lt;strong>Hub economy&lt;/strong>: finance, trade/logistics, tourism &amp;amp; professional services; strong re-exports link with Mainland. (&lt;a href="https://www.tid.gov.hk/en/our_work/statistics/tradestat/rxdes.html?utm_source=chatgpt.com" title="Hong Kong's Re-exports by Main Destination, 2024">Transport Department&lt;/a>, &lt;a href="https://research.hktdc.com/en/article/MzIwNjkzNTY5?utm_source=chatgpt.com" title="Economic and Trade Information: Hong Kong">HKTDC Research&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Hong Kong remains a pivotal financial and logistics node in Asia with world-class infrastructure and administrative capacity. Its long-run trajectory is shaped by Greater Bay Area integration, evolving institutional arrangements, and the ability to reposition toward innovation while managing real estate, demographics, and external demand cycles.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Gateway Function&lt;/strong>: Intermediates capital, trade, and talent flows between mainland China and global markets.&lt;/li>
&lt;li>&lt;strong>Institutional Duality&lt;/strong>: Commercial-rule-of-law strength alongside tightened political controls post-2020.&lt;/li>
&lt;li>&lt;strong>GBA Integration&lt;/strong>: Deepening links with Shenzhen and the Pearl River Delta drive new growth vectors.&lt;/li>
&lt;li>&lt;strong>Resilience via Networks&lt;/strong>: Aviation, maritime, and financial networks sustain relevance amid regional competition.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/china/brief/hong-kong-sar">World Bank Hong Kong SAR Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.censtatd.gov.hk/">Hong Kong Census and Statistics Department&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.hkma.gov.hk/">Hong Kong Monetary Authority&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.hko.gov.hk/en/index.html">Hong Kong Observatory&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.devb.gov.hk/en/issues_in_focus/dongjiang_water_supply/index.html">Development Bureau — Dongjiang Water Supply&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Singapore</title><link>https://h3sun.github.io/post/2025-09-04-one-country-a-day-singapore/</link><pubDate>Thu, 04 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-04-one-country-a-day-singapore/</guid><description>&lt;h2 id="-singapore---day-11-of-one-country-a-day-project">🇸🇬 Singapore - Day 11 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Singapore — a global city-state and trade-finance-technology hub at the crossroads of the Malacca–Singapore Straits, renowned for its world-class governance and high-income, services-led economy.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~5.9 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$460–$560 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$75k–$90k (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 734 km² (approx.)&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Singapore (city-state)&lt;/li>
&lt;li>&lt;strong>Major Areas&lt;/strong>: Central Region, Jurong, Tampines, Punggol, Tuas&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: DBS, OCBC, UOB, Singapore Airlines, Keppel, Sembcorp, Grab (HQ), Sea Limited (HQ)&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~0.8%&lt;/strong> (very limited); &lt;strong>forest area ~21.2%&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/AG.LND.ARBL.ZS?locations=SG&amp;amp;utm_source=chatgpt.com" title="Arable land (% of land area) - Singapore">World Bank Open Data&lt;/a>, &lt;a href="https://tradingeconomics.com/singapore/forest-area-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Singapore - Forest Area (% Of Land Area) - 2025 Data ...">Trading Economics&lt;/a>) • &lt;strong>Renewable internal freshwater ~110 m³/person (2021)&lt;/strong> → structurally water-scarce; mitigated by the &lt;strong>“Four National Taps”&lt;/strong> (local catchment, imports, NEWater recycling, desalination). (&lt;a href="https://databank.worldbank.org/data/reports.aspx?country=SGP%2CCYM&amp;amp;series=ER.H2O.INTR.PC&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>, &lt;a href="https://www.pub.gov.sg/Public/WaterLoop/OurWaterStory?utm_source=chatgpt.com" title="Singapore Water Story">PUB, Singapore’s National Water Agency&lt;/a>) • Long-term &lt;strong>avg rainfall ~2,534 mm/yr&lt;/strong> (very wet but small catchments). (&lt;a href="https://www.weather.gov.sg/wp-content/uploads/2023/03/acar_2022.pdf?utm_source=chatgpt.com" title="Overview of Singapore's Climate in 2022">Meteorological Service Singapore&lt;/a>) • Energy/minerals: &lt;strong>no domestic hydrocarbons; heavy import dependence.&lt;/strong> (&lt;a href="https://www.eia.gov/international/analysis/country/SGP?utm_source=chatgpt.com" title="Singapore">U.S. Energy Information Administration&lt;/a>)&lt;/td>
&lt;td>&lt;strong>1.9&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Equatorial, hot-humid climate; &lt;strong>very high readiness &amp;amp; low vulnerability&lt;/strong> on &lt;strong>ND-GAIN&lt;/strong> (rank &lt;strong>6&lt;/strong>, readiness &lt;strong>0.804&lt;/strong>). (&lt;a href="https://gain-new.crc.nd.edu/country/singapore?utm_source=chatgpt.com" title="Singapore | ND-GAIN Index">ND-GAIN Index&lt;/a>, &lt;a href="https://gain.nd.edu/our-work/country-index/rankings/?utm_source=chatgpt.com" title="Rankings - Notre Dame Global Adaptation Initiative">Gain&lt;/a>) • Main physical risks: &lt;strong>sea-level rise&lt;/strong> (planning to protect coasts; raised reclamation levels; PUB coastal studies ongoing) and episodic &lt;strong>transboundary haze&lt;/strong>. (&lt;a href="https://www.nccs.gov.sg/singapores-climate-action/coastal-protection/?utm_source=chatgpt.com" title="Coastal Protection - Singapore">National Climate Change Secretariat&lt;/a>, &lt;a href="https://www.pub.gov.sg/Public/KeyInitiatives/Flood-Resilience/Coastal-Protection?utm_source=chatgpt.com" title="Coastal Protection | PUB, Singapore's National Water Agency">PUB, Singapore’s National Water Agency&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> &lt;strong>Island state, no land borders; coastline ~193 km&lt;/strong>—low invasion exposure; sits astride the &lt;strong>Singapore &amp;amp; Malacca Straits&lt;/strong>, a global chokepoint (≈&lt;strong>30% of traded goods&lt;/strong>). (&lt;a href="https://www.cia.gov/the-world-factbook/about/archives/2023/countries/singapore/?utm_source=chatgpt.com" title="Singapore - The World Factbook">CIA&lt;/a>, &lt;a href="https://www.weforum.org/stories/2024/02/worlds-busiest-ocean-shipping-routes-trade/?utm_source=chatgpt.com" title="These are the world's most vital waterways for global trade">World Economic Forum&lt;/a>) &lt;strong>Geopolitics:&lt;/strong> Embedded in &lt;strong>FPDA&lt;/strong> (with UK–Aus–NZ–Malaysia) and deep U.S. security ties (&lt;strong>1990 MOU&lt;/strong> renewed &lt;strong>2019&lt;/strong> for 15 more years to &lt;strong>2035&lt;/strong>). (&lt;a href="https://www.reuters.com/world/asia-pacific/five-powers-plan-bigger-deeper-asia-military-drills-2024-05-31/?utm_source=chatgpt.com" title="Five powers plan bigger, deeper Asia military drills">Reuters&lt;/a>, &lt;a href="https://www.mindef.gov.sg/news-and-events/latest-releases/24sep19_nr/?utm_source=chatgpt.com" title="Singapore and the US Renew Memorandum of Understanding">Ministry of Defence&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>48/100 – Partly Free&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/singapore/freedom-world/2025?utm_source=chatgpt.com" title="Singapore: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>Transparency Int’l CPI 2024:&lt;/strong> &lt;strong>84/100, rank 3/180&lt;/strong> (very clean public sector). (&lt;a href="https://www.transparency.org/en/countries/singapore?utm_source=chatgpt.com" title="Singapore - Corruption Perceptions Index">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> &lt;strong>6.18&lt;/strong>, &lt;strong>rank 68/167&lt;/strong> (&lt;em>flawed democracy&lt;/em>). (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">d1qqtien6gys07.cloudfront.net&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High-income:&lt;/strong> &lt;strong>GDP per capita (current US$)** ≈ **$90,674 (2024)&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/singapore?utm_source=chatgpt.com" title="Singapore | Data">World Bank Open Data&lt;/a>) • &lt;strong>IMF 2025 real GDP growth&lt;/strong> projection: &lt;strong>~2.0%&lt;/strong>. (&lt;a href="https://www.imf.org/en/Countries/SGP?utm_source=chatgpt.com" title="Singapore and the IMF">IMF&lt;/a>) • &lt;strong>Diversified hub economy&lt;/strong> (advanced manufacturing—esp. semiconductors—and globally traded services); &lt;strong>services share of total exports ~43.9% (2024)&lt;/strong>; electronics rebound in 2024. (&lt;a href="https://www.mti.gov.sg/-/media/MTI/Resources/Economic-Survey-of-Singapore/2025/Economic-Survey-of-Singapore-First-Quarter-2025/BA_1Q25.pdf?utm_source=chatgpt.com" title="TRENDS IN SINGAPORE'S SERVICES TRADE">mti.gov.sg&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>Singapore exemplifies how strategic geography, superior governance, and open-economy policy can transform a resource-scarce polity into a global node for finance, trade, logistics, and technology. Its principal long-run challenges lie in climate adaptation, demographics, and sustaining frontier innovation.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Hub Economics&lt;/strong>: Value creation as an orchestrator of regional/global flows in finance, trade, data, and talent.&lt;/li>
&lt;li>&lt;strong>Institutional Credibility&lt;/strong>: Predictable policy and strong state capacity underpin investment and innovation.&lt;/li>
&lt;li>&lt;strong>Strategic Balancing&lt;/strong>: Maintains multi-vector ties while reinforcing rules-based order through ASEAN and broad FTA network.&lt;/li>
&lt;li>&lt;strong>Resilience by Design&lt;/strong>: Water, energy, and food security hedge via diversification, tech, and long-term planning.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/singapore">World Bank Singapore Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/singapore/">CIA World Factbook - Singapore&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.singstat.gov.sg/">Singapore Department of Statistics&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.mas.gov.sg/">Monetary Authority of Singapore&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.mpa.gov.sg/">Maritime and Port Authority of Singapore&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.pub.gov.sg/">PUB Singapore (National Water Agency)&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - New Zealand</title><link>https://h3sun.github.io/post/2025-09-03-one-country-a-day-new-zealand/</link><pubDate>Wed, 03 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-03-one-country-a-day-new-zealand/</guid><description>&lt;h2 id="-new-zealand---day-10-of-one-country-a-day-project">🇳🇿 New Zealand - Day 10 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with New Zealand — a high-income, innovation-driven island nation in the South Pacific with strong institutions, a services-heavy economy, and a distinct geopolitical profile anchored in the Five Eyes partnership and deep Asia-Pacific trade ties.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: ~5.3 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: ~$260–$280 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: ~$48k–$52k (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 268,021 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Wellington&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Auckland, Wellington, Christchurch, Hamilton, Tauranga, Dunedin&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Fonterra, Air New Zealand, Fisher &amp;amp; Paykel Healthcare, Meridian Energy, Spark New Zealand, Xero&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land ~2.0%&lt;/strong> (plantation/pasture-heavy); &lt;strong>forest cover ~37.7%&lt;/strong>; &lt;strong>renewable internal freshwater ~63,976 m³/person (2021)&lt;/strong>. Power mix is resource-rich: &lt;strong>88% renewable electricity in 2023&lt;/strong> (hydro, geothermal, wind). &lt;strong>Geothermal capacity ~1.2 GW&lt;/strong> (Tauhara II added in 2024). &lt;strong>Gas reserves are declining&lt;/strong>. (&lt;a href="https://www.theglobaleconomy.com/New-Zealand/arable_land_percent/?utm_source=chatgpt.com" title="New Zealand Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>, &lt;a href="https://data.worldbank.org/country/new-zealand?utm_source=chatgpt.com" title="New Zealand | Data">World Bank Open Data&lt;/a>, &lt;a href="https://databank.worldbank.org/reports.aspx?country=NZL%2CTUN&amp;amp;series=ER.H2O.INTR.PC&amp;amp;source=2&amp;amp;utm_source=chatgpt.com" title="World Development Indicators | DataBank">DataBank&lt;/a>, &lt;a href="https://www.mbie.govt.nz/assets/energy-in-nz-2024.pdf?utm_source=chatgpt.com" title="Energy in New Zealand 2024">MBIE&lt;/a>, &lt;a href="https://www.thinkgeoenergy.com/thinkgeoenergys-top-10-geothermal-countries-2024-power/?utm_source=chatgpt.com" title="ThinkGeoEnergy's Top 10 Geothermal Countries 2024">ThinkGeoEnergy&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td>Abundant water + renewables and usable forests offset limited arable land and modest minerals; gas depletion is a mild drag.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Temperate maritime climate with strong &lt;strong>adaptation readiness&lt;/strong> (&lt;strong>ND-GAIN rank 7, high readiness&lt;/strong>), but exposed to &lt;strong>earthquakes&lt;/strong> (e.g., &lt;strong>2016 Kaikōura&lt;/strong> NZ$2–3 bn losses) and **severe storms** (e.g., **Cyclone Gabrielle 2023**, \~NZ$9–14.5 bn damage). (&lt;a href="https://gain-new.crc.nd.edu/country/new-zealand?utm_source=chatgpt.com" title="New Zealand | ND-GAIN Index">ND-GAIN Index&lt;/a>, &lt;a href="https://pubs.usgs.gov/sir/2017/5146/sir20175146.pdf?utm_source=chatgpt.com" title="7.8 Kaikoura, New Zealand, Earthquake">U.S. Geological Survey&lt;/a>, &lt;a href="https://en.wikipedia.org/wiki/Cyclone_Gabrielle?utm_source=chatgpt.com" title="Cyclone Gabrielle">Wikipedia&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.3&lt;/strong>&lt;/td>
&lt;td>Very livable baseline climate and strong institutions, tempered by seismic and extreme-weather risk that is material and rising.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> Remote &lt;strong>island state&lt;/strong> with &lt;strong>~15,000 km coastline&lt;/strong> and a &lt;strong>~4.0–4.3 million km² EEZ&lt;/strong>—no land borders (low invasion exposure), but limited chokepoint leverage. (&lt;a href="https://teara.govt.nz/en/natural-environment/page-2?utm_source=chatgpt.com" title="Coasts - Natural environment">Te Ara&lt;/a>, &lt;a href="https://environment.govt.nz/assets/Publications/Files/nz-exclusive-economic-zone-discussion-paper-aug07.pdf?utm_source=chatgpt.com" title="new zealand's exclusive economic zone">Ministry for the Environment&lt;/a>) &lt;strong>Geopolitics:&lt;/strong> Deep ties via &lt;strong>Five Eyes&lt;/strong> and &lt;strong>FPDA&lt;/strong>; U.S.–NZ ties normalized via the &lt;strong>Wellington (2010)/Washington (2012) Declarations&lt;/strong>; broad trade integration (&lt;strong>CPTPP in force since Dec 30, 2018; RCEP since Jan 1, 2022&lt;/strong>). (&lt;a href="https://www.nzsis.govt.nz/about-us/working-with-others?utm_source=chatgpt.com" title="Working with others | New Zealand Security Intelligence ...">NZ Security Intelligence&lt;/a>, &lt;a href="https://www.nzdf.mil.nz/nzdf/what-we-do/peace-and-security/security-of-our-region/?utm_source=chatgpt.com" title="Security of our region - New Zealand Defence Force">NZDF&lt;/a>, &lt;a href="https://www.congress.gov/crs_external_products/IF/PDF/IF10389/IF10389.15.pdf?utm_source=chatgpt.com" title="New Zealand–U.S. Relations">Congress.gov&lt;/a>, &lt;a href="https://www.mfat.govt.nz/en/trade/free-trade-agreements/free-trade-agreements-in-force/cptpp/cptpp-accession?utm_source=chatgpt.com" title="CPTPP Accession | New Zealand Ministry of Foreign Affairs and Trade">MFAT&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td>Strong alliance network and strategic depth from remoteness/EEZ; minimal neighbor exposure; fewer coercive levers than chokepoint states.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025: 99/100 (Free)&lt;/strong>; &lt;strong>TI CPI 2024: 83/100, rank 4/180&lt;/strong>; &lt;strong>EIU Democracy Index 2024: 9.61&lt;/strong> (full democracy). (&lt;a href="https://freedomhouse.org/country/new-zealand/freedom-world/2025?utm_source=chatgpt.com" title="New Zealand: Freedom in the World 2025 Country Report">Freedom House&lt;/a>, &lt;a href="https://www.transparency.org/en/countries/new-zealand?utm_source=chatgpt.com" title="New Zealand">Transparency.org&lt;/a>, &lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.8&lt;/strong>&lt;/td>
&lt;td>Among the world’s best on political rights, civil liberties, and clean government.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>High-income:&lt;/strong> &lt;strong>GDP per capita (current US$) \~$48.7k (2024)&lt;/strong>; &lt;strong>IMF 2025 growth ~1.4%&lt;/strong> (modest). Exports are diversified but primary-heavy (&lt;strong>dairy/meat/wood&lt;/strong> lead goods; &lt;strong>tourism/services ≈30% of total exports in 2024&lt;/strong>). (&lt;a href="https://data.worldbank.org/country/new-zealand?utm_source=chatgpt.com" title="New Zealand | Data">World Bank Open Data&lt;/a>, &lt;a href="https://www.imf.org/en/Countries/NZL?utm_source=chatgpt.com" title="New Zealand and the IMF">IMF&lt;/a>, &lt;a href="https://www.stats.govt.nz/information-releases/overseas-merchandise-trade-july-2024/?utm_source=chatgpt.com" title="Overseas merchandise trade: July 2024">Stats NZ&lt;/a>, &lt;a href="https://www.mfat.govt.nz/en/trade/nz-trade-policy?utm_source=chatgpt.com" title="NZ trade policy">MFAT&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.6&lt;/strong>&lt;/td>
&lt;td>Strong income/HDI and credible policy; small scale and primary concentration keep medium-term growth in the mid-1–2% range absent productivity gains.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>New Zealand combines strong governance, rule of law, and human capital with an open, export-oriented economy centered on services, high-value agriculture, tourism, and niche manufacturing. Its geographic isolation provides biosecurity and defense depth but implies long logistics chains and small domestic market scale. Climate exposure (e.g., to extreme weather) and reliance on external demand are balanced by robust institutions, diversified trade relationships, and a credible macro policy framework.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Institutional Strength&lt;/strong>: Consistently ranks high on governance, transparency, and ease of doing business.&lt;/li>
&lt;li>&lt;strong>Economic Structure&lt;/strong>: Services-led economy with strong agrifood, tourism, tech-enabled services, and renewable power base.&lt;/li>
&lt;li>&lt;strong>Trade Integration&lt;/strong>: Deep Asia-Pacific integration (e.g., CPTPP, RCEP) and strong ties with Australia and China; Five Eyes security network with U.S., U.K., Canada, Australia.&lt;/li>
&lt;li>&lt;strong>Human Capital&lt;/strong>: High education outcomes and immigration-friendly policy support skills and innovation.&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/newzealand">World Bank New Zealand Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/new-zealand/">CIA World Factbook - New Zealand&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.stats.govt.nz/">Stats NZ&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.treasury.govt.nz/">New Zealand Treasury&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Myanmar</title><link>https://h3sun.github.io/post/2025-09-02-one-country-a-day-myanmar/</link><pubDate>Tue, 02 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-02-one-country-a-day-myanmar/</guid><description>&lt;h2 id="-myanmar---day-9-of-one-country-a-day-project">🇲🇲 Myanmar - Day 9 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Myanmar (formerly Burma) - Southeast Asia&amp;rsquo;s largest mainland country and a nation at a critical crossroads. Using the 5-dimension framework, I&amp;rsquo;ll analyze Myanmar&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 57.9 million (2025)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $65.1 billion (2024, current US$)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $1,125 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 676,570 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Nay Pyi Taw&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Yangon, Mandalay, Nay Pyi Taw, Mawlamyine, Taunggyi&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Myanmar Oil and Gas Enterprise (MOGE), Myanmar Economic Corporation (MEC), Myanmar Economic Holdings Limited (MEHL)&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Energy/minerals:&lt;/strong> ~15.3 tcf gas reserves; pipeline exports ~10.6 bcm in 2021 to &lt;strong>Thailand&lt;/strong> &amp;amp; &lt;strong>China&lt;/strong>; major &lt;strong>jade&lt;/strong> (Hpakant) industry; rising role in &lt;strong>heavy rare earths&lt;/strong> (Kachin). (&lt;a href="https://www.gem.wiki/Myanmar_and_fossil_gas?utm_source=chatgpt.com" title="Myanmar and fossil gas - Global Energy Monitor - GEM.wiki">Global Energy Monitor&lt;/a>, &lt;a href="https://www.globalwitness.org/en/campaigns/myanmar/cursed-treasure-report/?utm_source=chatgpt.com" title="Cursed Treasure">Global Witness&lt;/a>, &lt;a href="https://www.reuters.com/world/asia-pacific/myanmar-rebels-disrupt-china-rare-earth-trade-sparking-regional-scramble-2025-03-28/?utm_source=chatgpt.com" title="Myanmar rebels disrupt China rare earth trade, sparking regional scramble">Reuters&lt;/a>) • &lt;strong>Arable land:&lt;/strong> &lt;strong>16.8%&lt;/strong> of land (2022). (&lt;a href="https://www.theglobaleconomy.com/Burma-Myanmar/arable_land_percent/?utm_source=chatgpt.com" title="Burma (Myanmar) Arable land, percent of land area">TheGlobalEconomy.com&lt;/a>) • &lt;strong>Forests:&lt;/strong> &lt;strong>42.9%&lt;/strong> of land (2022). (&lt;a href="https://tradingeconomics.com/myanmar/forest-area-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Myanmar - Forest Area (% Of Land Area) - 2025 Data 2026 ...">Trading Economics&lt;/a>) • &lt;strong>Freshwater/precipitation:&lt;/strong> total renewable water ≈ &lt;strong>1,003 km³/yr&lt;/strong>; avg precip &lt;strong>2,091 mm/yr&lt;/strong>. (&lt;a href="https://storage.googleapis.com/fao-aquastat.appspot.com/countries_regions/factsheets/summary_statistics/en/MMR-CF.pdf?utm_source=chatgpt.com" title="Country Fact Sheet Area - Googleapis.com">Google Cloud Storage&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;td>Strong endowments: gas, jade/gems, heavy REE supply; good arable share &amp;amp; abundant water. Monetization hampered by conflict, but the category measures endowment.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>High climate/disaster risk:&lt;/strong> Myanmar is among the most affected countries long-term in the &lt;strong>Germanwatch CRI&lt;/strong>; 2023 &lt;strong>Cyclone Mocha&lt;/strong> caused severe losses; a &lt;strong>M7.7 earthquake (Mar 2025)&lt;/strong> added major damage. (&lt;a href="https://www.germanwatch.org/en/19777?utm_source=chatgpt.com" title="Global Climate Risk Index 2021">Germanwatch&lt;/a>, &lt;a href="https://thedocs.worldbank.org/en/doc/d547c7dcb949a8b07aea2cc2e66a7bbc-0070062023/original/GRADE-CycloneMochaMay23Myanmar.pdf?utm_source=chatgpt.com" title="Extremely Severe Tropical Cyclone Mocha, May 2023, ...">The World Bank&lt;/a>, &lt;a href="https://www.reuters.com/markets/asia/earthquake-worsens-myanmars-economic-decline-world-bank-says-2025-06-12/?utm_source=chatgpt.com" title="Earthquake worsens Myanmar's economic decline, World Bank says">Reuters&lt;/a>) • &lt;strong>Adaptation readiness:&lt;/strong> &lt;strong>ND-GAIN 2023&lt;/strong> rank &lt;strong>163&lt;/strong>, score &lt;strong>36.1&lt;/strong>, readiness &lt;strong>0.237&lt;/strong> (very low). (&lt;a href="https://gain-new.crc.nd.edu/country/myanmar?utm_source=chatgpt.com" title="Myanmar | ND-GAIN Index">gain-new.crc.nd.edu&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>1.8&lt;/strong>&lt;/td>
&lt;td>Exposure to cyclones/floods/heat plus low readiness and current conflict drive poor livability.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>• &lt;strong>Geo-Defense:&lt;/strong> Long &lt;strong>coastline ~1,930 km&lt;/strong> on Bay of Bengal/Andaman Sea; borders &lt;strong>China, India, Thailand, Bangladesh, Laos&lt;/strong>—both opportunity and exposure. (&lt;a href="https://www.cia.gov/the-world-factbook/about/archives/2023/countries/burma/?utm_source=chatgpt.com" title="Burma - The World Factbook">CIA&lt;/a>, &lt;a href="https://en.wikipedia.org/wiki/Myanmar?utm_source=chatgpt.com" title="Myanmar">Wikipedia&lt;/a>) • &lt;strong>Strategic leverage:&lt;/strong> China-Myanmar oil/gas &lt;strong>pipelines&lt;/strong>; &lt;strong>Kyaukphyu&lt;/strong> deep-sea port (BRI) advancing; India&amp;rsquo;s &lt;strong>Sittwe/Kaladan&lt;/strong> corridor under way amid delays. (&lt;a href="https://www.eia.gov/international/content/analysis/special_topics/world_oil_transit_chokepoints/wotc.pdf?utm_source=chatgpt.com" title="[PDF] Country Analysis Brief: World Oil Transit Chokepoints - EIA">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://www.business-humanrights.org/en/latest-news/myanmar-junta-pushes-kyaukphyu-deep-sea-port-project-amid-ongoing-fighting-with-ethnic-army/?utm_source=chatgpt.com" title="Myanmar: Junta pushes Kyaukphyu deep-sea port project ...">Business &amp;amp; Human Rights Resource Centre&lt;/a>, &lt;a href="https://www.irrawaddy.com/news/myanmar-china-watch/chinas-citic-and-myanmar-junta-discuss-progress-on-rakhine-deep-sea-port.html?utm_source=chatgpt.com" title="China's CITIC and Myanmar Junta Discuss Progress on ...">The Irrawaddy&lt;/a>, &lt;a href="https://www.orfonline.org/research/facilitating-india-myanmar-trade-through-sittwe-port-opportunities-and-challenges?utm_source=chatgpt.com" title="Facilitating India-Myanmar Trade Through Sittwe Port">ORF Online&lt;/a>, &lt;a href="https://www.mea.gov.in/rajya-sabha.htm?dtl%2F38808%2FQUESTION+NO+2790+STATUS+OF+KMMTTP+PROJECT=&amp;amp;utm_source=chatgpt.com" title="QUESTION NO- 2790 STATUS OF KMMTTP PROJECT">Ministry of External Affairs&lt;/a>) • &lt;strong>Geopolitics:&lt;/strong> ASEAN &lt;strong>exclusion&lt;/strong> from top summits; &lt;strong>EU&lt;/strong> renewed sanctions (Apr 2025); broad Western sanctions continue. (&lt;a href="https://asiatimes.com/2025/05/asean-exclusion-not-enough-to-force-myanmar-juntas-hand/?utm_source=chatgpt.com" title="ASEAN exclusion not enough to force Myanmar junta's hand">Asia Times&lt;/a>, &lt;a href="https://thediplomat.com/2024/10/asean-again-urges-end-to-myanmar-conflict-but-struggles-for-way-forward/?utm_source=chatgpt.com" title="ASEAN Again Urges End to Myanmar Conflict, but ...">The Diplomat&lt;/a>, &lt;a href="https://sanctionssos.com/myanmar-sanctions/f/us-announce-new-myanmar-sanctions?utm_source=chatgpt.com" title="US announce new Myanmar sanctions">Sanctions SOS&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td>Excellent location &amp;amp; sea access, plus leverage via pipelines/ports; but neighbor exposure, internal war, and sanctions drag down the composite.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Freedom House 2025:&lt;/strong> &lt;strong>7/100 (Not Free)&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/myanmar/freedom-world/2025?utm_source=chatgpt.com" title="Myanmar: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>TI Corruption Perceptions Index 2024:&lt;/strong> &lt;strong>16/100 (rank ~168/180)&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/myanmar?utm_source=chatgpt.com" title="Myanmar">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> score &lt;strong>0.96&lt;/strong>, &lt;strong>rank 166/167&lt;/strong>. (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">d1qqtien6gys07.cloudfront.net&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>0.6&lt;/strong>&lt;/td>
&lt;td>Post-2021 coup environment: extremely weak rights, rule of law, and high corruption.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Income level:&lt;/strong> GDP per capita (current USD) &lt;strong>$1,359 (2024)&lt;/strong>. (&lt;a href="https://data.worldbank.org/country/myanmar?utm_source=chatgpt.com" title="Myanmar | Data">World Bank Data&lt;/a>) • &lt;strong>Growth outlook:&lt;/strong> &lt;strong>IMF&lt;/strong> projects &lt;strong>+1.9% (2025)&lt;/strong>; &lt;strong>World Bank&lt;/strong> (Jun 2025) sees &lt;strong>-2.5%&lt;/strong> for FY2025/26 after the earthquake—very subdued/contracting. (&lt;a href="https://www.imf.org/external/datamapper/NGDP_RPCH%40WEO/THA/IDN/MYS/PHL/VNM/MMR/SGP/BRN/KHM/LAO?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - Real GDP growth">IMF&lt;/a>, &lt;a href="https://documents1.worldbank.org/curated/en/099061125205014652/pdf/P507203-cbcf81b5-0107-4517-8ad7-82b588a6328f.pdf?utm_source=chatgpt.com" title="Myanmar Economic Monitor">World Bank&lt;/a>, &lt;a href="https://www.reuters.com/markets/asia/earthquake-worsens-myanmars-economic-decline-world-bank-says-2025-06-12/?utm_source=chatgpt.com" title="Earthquake worsens Myanmar's economic decline, World Bank says">Reuters&lt;/a>) • &lt;strong>Poverty:&lt;/strong> ~&lt;strong>31–32%&lt;/strong> in 2024, likely worsening post-quake. (&lt;a href="https://www.worldbank.org/en/news/press-release/2025/06/12/earthquake-compounds-myanmar-s-economic-challenges?utm_source=chatgpt.com" title="Earthquake compounds Myanmar's economic challenges">World Bank&lt;/a>) • &lt;strong>Trade structure:&lt;/strong> gas exports remain material (&amp;gt;$2 bn in 8 months of FY2023/24). (&lt;a href="https://www.moi.gov.mm/moi%3Aeng/news/12674?utm_source=chatgpt.com" title="Myanmar's natural gas exports bag over US$2 bln in 8 ...">Ministry Of Information&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>1.6&lt;/strong>&lt;/td>
&lt;td>Low income, macro/FX instability, sanctions, conflict and disasters weigh on medium-term growth and diversification.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 10.9/25 (43.6%)&lt;/strong>&lt;/p>
&lt;p>Myanmar represents a tragic case of a resource-rich nation held back by authoritarian governance and internal conflict. Despite abundant natural resources and strategic geographic position, the 2021 military coup and ongoing civil war have devastated the economy and governance systems, creating one of the world&amp;rsquo;s most challenging humanitarian situations.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Resource Curse&lt;/strong>: Myanmar&amp;rsquo;s abundant natural resources (jade, gems, oil, gas) have been captured by military elites rather than benefiting the population&lt;/li>
&lt;li>&lt;strong>Geographic Potential&lt;/strong>: Strategic location between major powers (China, India) offers economic opportunities that remain unrealized due to political instability&lt;/li>
&lt;li>&lt;strong>Democratic Regression&lt;/strong>: The 2021 coup reversed a decade of democratic progress, returning the country to military dictatorship&lt;/li>
&lt;li>&lt;strong>Humanitarian Crisis&lt;/strong>: Over 3 million internally displaced people and widespread human rights violations create a complex emergency&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/myanmar">World Bank Myanmar Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/myanmar/">CIA World Factbook - Myanmar&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://themimu.info/">Myanmar Information Management Unit&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the regional study strategy it will be New Zealand.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Philippines</title><link>https://h3sun.github.io/post/2025-09-01-one-country-a-day-philippines/</link><pubDate>Mon, 01 Sep 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-09-01-one-country-a-day-philippines/</guid><description>&lt;h2 id="-philippines---day-8-of-one-country-a-day-project">🇵🇭 Philippines - Day 8 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with the Philippines - Southeast Asia&amp;rsquo;s archipelagic nation and a key player in the Indo-Pacific region. Using the 5-dimension framework, I&amp;rsquo;ll analyze the Philippines&amp;rsquo; position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 112.7 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $1.4 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $12,400 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 300,000 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Manila&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Quezon City, Manila, Davao City, Cebu City, Zamboanga City, Antipolo&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: SM Investments, Ayala Corporation, Jollibee Foods, PLDT, Globe Telecom, BDO Unibank&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Nickel, gold, copper&lt;/strong>: among the world&amp;rsquo;s top nickel producers (No. 2 globally); also gold/copper and chromite. (&lt;a href="https://www.ngaphil.com/the-industry?utm_source=chatgpt.com" title="The Industry">ngaphil.com&lt;/a>) • &lt;strong>Geothermal&lt;/strong>: ~1.9 GW installed, &lt;strong>3rd&lt;/strong> largest globally. (&lt;a href="https://www.ren21.net/gsr-2024/modules/energy_supply/02_market_and_industry_trends/03_geothermal/?utm_source=chatgpt.com" title="Market and Industry Trends | Geothermal Power and Heat">REN21&lt;/a>) • &lt;strong>Arable land&lt;/strong>: ~&lt;strong>18.7%&lt;/strong> of land (2022). Forest cover ~&lt;strong>24.3%&lt;/strong> (2022). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.ARBL.ZS?locations=PH&amp;amp;utm_source=chatgpt.com" title="Arable land (% of land area) - Philippines">World Bank Open Data&lt;/a>) • &lt;strong>Freshwater&lt;/strong>: renewable internal freshwater ≈ &lt;strong>4,235 m³ per person&lt;/strong> (2021). (&lt;a href="https://data.worldbank.org/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Renewable internal freshwater resources per capita (cubic ...">World Bank Open Data&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Highest disaster risk globally&lt;/strong> per &lt;strong>World Risk Index 2023&lt;/strong> (No. 1 of 193). (&lt;a href="https://weltrisikobericht.de/wp-content/uploads/2024/01/WorldRiskReport_2023_english_online.pdf?utm_source=chatgpt.com" title="[PDF] WorldRiskReport 2023 - WeltRisikoBericht">WeltRisikoBericht&lt;/a>) • Extremely exposed to &lt;strong>typhoons, floods, storm surge, droughts, earthquakes &amp;amp; volcanoes&lt;/strong>; risks intensifying with climate change (WB profile). (&lt;a href="https://openknowledge.worldbank.org/entities/publication/d75af5f3-d370-540f-a00d-0868df722ac6?utm_source=chatgpt.com" title="Publication: Climate Risk Country Profile: Philippines">Open Knowledge Repository&lt;/a>, &lt;a href="https://climateknowledgeportal.worldbank.org/sites/default/files/2021-08/15852-WB_Philippines%20Country%20Profile-WEB.pdf?utm_source=chatgpt.com" title="PHILIPPINES - Climate Change Knowledge Portal">Climate Knowledge Portal&lt;/a>)&lt;/td>
&lt;td>&lt;strong>1.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo-Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>• &lt;strong>Chokepoints&lt;/strong>: sits on the &lt;strong>Luzon Strait&lt;/strong> between Taiwan &amp;amp; Luzon—vital SLOC between the South China Sea and the Pacific; Manila boosting presence in the north. (&lt;a href="https://www.understandingwar.org/backgrounder/china-taiwan-weekly-update-may-30-2025?utm_source=chatgpt.com" title="China-Taiwan Weekly Update, May 30, 2025">Institute for the Study of War&lt;/a>, &lt;a href="https://www.reuters.com/world/philippines-builds-coastguard-station-islands-near-taiwan-2024-05-24/?utm_source=chatgpt.com" title="Philippines builds coastguard station in islands near Taiwan">Reuters&lt;/a>, &lt;a href="https://news.usni.org/2025/08/29/philippine-military-opens-new-luzon-strait-base-near-taiwan?utm_source=chatgpt.com" title="Philippine Military Opens New Luzon Strait Base Near Taiwan">USNI News&lt;/a>) • &lt;strong>Alliances&lt;/strong>: 1951 &lt;strong>U.S.–PH Mutual Defense Treaty&lt;/strong>; &lt;strong>EDCA&lt;/strong> expanded to 9 sites (2023); &lt;strong>Japan–PH Reciprocal Access Agreement&lt;/strong> signed (Jul 8 2024), set to enter into force &lt;strong>Sept 11 2025&lt;/strong>; &lt;strong>Strategic Partnership&lt;/strong> with Australia incl. joint patrols. (&lt;a href="https://avalon.law.yale.edu/20th_century/phil001.asp?utm_source=chatgpt.com" title="Mutual Defense Treaty Between the United States and ...">Avalon Project&lt;/a>, &lt;a href="https://www.defense.gov/News/Releases/Release/Article/3359459/fact-sheet-us-philippines-22-ministerial-dialogue/?utm_source=chatgpt.com" title="FACT SHEET: U.S.- Philippines 2+2 Ministerial Dialogue">U.S. Department of Defense&lt;/a>, &lt;a href="https://www.mofa.go.jp/s_sa/sea2/ph/pageite_000001_00432.html?utm_source=chatgpt.com" title="Signing of the Japan-Philippines Reciprocal Access ...">Ministry of Foreign Affairs of Japan&lt;/a>, &lt;a href="https://dfa.gov.ph/dfa-news/dfa-releasesupdate/37027-philippines-japan-exchange-diplomatic-notes-on-entry-into-force-of-the-reciprocal-access-agreement?utm_source=chatgpt.com" title="Philippines, Japan Exchange Diplomatic Notes on Entry ...">Department of Foreign Affairs&lt;/a>, &lt;a href="https://news.usni.org/2023/09/11/australia-philippines-commit-to-strategic-partnership-pledge-joint-patrols?utm_source=chatgpt.com" title="Australia, Philippines Commit to Strategic Partnership, Pledge ...">USNI News&lt;/a>) • &lt;strong>External pressure&lt;/strong>: recurring &lt;strong>China Coast Guard&lt;/strong> confrontations at Second Thomas Shoal (water cannons, collisions in 2024). (&lt;a href="https://www.reuters.com/world/asia-pacific/china-coast-guard-says-it-took-measures-against-philippine-vessels-south-china-2024-03-23/?utm_source=chatgpt.com" title="China coastguard uses water cannons against Philippine ...">Reuters&lt;/a>) • &lt;strong>Legal leverage&lt;/strong>: 2016 &lt;strong>PCA award&lt;/strong> favored PH claims under UNCLOS. (&lt;a href="https://pca-cpa.org/cn/cases/7/?utm_source=chatgpt.com" title="South China Sea Arbitration">pca-cpa.org&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>Freedom House 2025&lt;/strong>: &lt;strong>58/100 – Partly Free&lt;/strong> (PR 25/40; CL 33/60). (&lt;a href="https://freedomhouse.org/country/philippines/freedom-world/2025?utm_source=chatgpt.com" title="Philippines: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>Transparency Int&amp;rsquo;l CPI 2024&lt;/strong>: &lt;strong>33/100&lt;/strong>, &lt;strong>rank 114/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/philippines?utm_source=chatgpt.com" title="Philippines">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024&lt;/strong>: &lt;strong>6.63&lt;/strong>, &lt;strong>rank 51/167&lt;/strong> → &lt;em>flawed democracy&lt;/em>.&lt;/td>
&lt;td>&lt;strong>2.6&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>• &lt;strong>GDP per capita (current US$)&lt;/strong>: &lt;strong>$3,985&lt;/strong> (2024, WB). (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?utm_source=chatgpt.com" title="GDP per capita (current US$) | Data">World Bank Open Data&lt;/a>) • &lt;strong>Growth outlook (IMF, Jul 2025)&lt;/strong>: &lt;strong>2025 real GDP +5.5%&lt;/strong>. (&lt;a href="https://www.imf.org/en/Countries/PHL?utm_source=chatgpt.com" title="Philippines and the IMF">IMF&lt;/a>) • &lt;strong>External earnings&lt;/strong>: &lt;strong>Remittances&lt;/strong> record &lt;strong>$38.34 bn (2024)&lt;/strong> (~8% of GDP); &lt;strong>IT-BPM&lt;/strong> revenue &lt;strong>$38 bn (2024)&lt;/strong>, ~&lt;strong>1.82 M&lt;/strong> jobs. (&lt;a href="https://www.bsp.gov.ph/SitePages/MediaAndResearch/MediaDisp.aspx?ItemId=7426&amp;amp;utm_source=chatgpt.com" title="Remittances">Bureau of Small and Medium Enterprises&lt;/a>, &lt;a href="https://english.news.cn/20250217/de5d943ba46948968bcd66afac921e94/c.html?utm_source=chatgpt.com" title="Philippines' remittances hit record high in 2024">Xinhua News&lt;/a>, &lt;a href="https://ibpap.org/news-room/21?utm_source=chatgpt.com" title="Philippine IT-BPM Industry Caps 2024 with Milestone ...">IBPAP&lt;/a>) • &lt;strong>Export mix&lt;/strong>: &lt;strong>Electronics/semiconductors &amp;gt;50%&lt;/strong> of goods exports in 2024. (&lt;a href="https://www.gmanetwork.com/news/money/economy/952166/ph-top-export-semiconductors-electronics-spared-from-trump-s-20-tariff-go/story/?utm_source=chatgpt.com" title="PH top export semiconductors, electronics spared from ...">GMA Network&lt;/a>) • &lt;strong>Energy structure&lt;/strong>: fossil-heavy grid; coal ~&lt;strong>~60%&lt;/strong> of power; Malampaya gas decline driving &lt;strong>LNG imports&lt;/strong>. (&lt;a href="https://legacy.doe.gov.ph/coal-overview?utm_source=chatgpt.com" title="Coal - Department of Energy Philippines - DOE">legacy.doe.gov.ph&lt;/a>, &lt;a href="https://www.icis.com/explore/resources/news/2024/11/22/11053419/overview-of-lng-gas-infrastructure-in-the-philippines/?utm_source=chatgpt.com" title="Overview of LNG, gas infrastructure in the Philippines">ICIS Explore&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 14.8/25 (59.2%)&lt;/strong>&lt;/p>
&lt;p>The Philippines represents a dynamic emerging economy with significant natural resources and strategic geographic positioning. Despite climate vulnerability and governance challenges, its economic trajectory, demographic dividend, and regional integration make it a key player in Southeast Asia&amp;rsquo;s development story.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Archipelagic Advantage&lt;/strong>: The Philippines&amp;rsquo; 7,641 islands provide natural defense depth and abundant marine resources, though they also create governance and infrastructure challenges&lt;/li>
&lt;li>&lt;strong>Economic Resilience&lt;/strong>: Strong BPO sector, electronics manufacturing, and remittances provide economic stability despite external shocks&lt;/li>
&lt;li>&lt;strong>Strategic Location&lt;/strong>: Positioned at the crossroads of major shipping routes and geopolitical tensions, particularly in the South China Sea&lt;/li>
&lt;li>&lt;strong>Demographic Dividend&lt;/strong>: Young population (median age ~25) provides workforce advantages but requires significant job creation&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/philippines">World Bank Philippines Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/philippines/">CIA World Factbook - Philippines&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://psa.gov.ph/">Philippine Statistics Authority&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the regional study strategy it will be Myanmar.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Vietnam</title><link>https://h3sun.github.io/post/2025-08-31-one-country-a-day-vietnam/</link><pubDate>Sun, 31 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-31-one-country-a-day-vietnam/</guid><description>&lt;h2 id="-vietnam---day-7-of-one-country-a-day-project">🇻🇳 Vietnam - Day 7 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Vietnam - Southeast Asia&amp;rsquo;s dynamic emerging economy and a strategic player in the Indo-Pacific region. Using the 5-dimension framework, I&amp;rsquo;ll analyze Vietnam&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 98.2 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $1.4 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $14,458 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 331,212 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Hanoi&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Ho Chi Minh City, Hanoi, Da Nang, Hai Phong, Can Tho, Bien Hoa&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Viettel, Vingroup, FPT Corporation, Vietnam Airlines, PetroVietnam, VinFast&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>#&lt;/th>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>1&lt;/td>
&lt;td>&lt;strong>Natural Resources&lt;/strong>&lt;/td>
&lt;td>Offshore oil &amp;amp; gas (EIA country brief); significant &lt;strong>bauxite&lt;/strong> (USGS) and &lt;strong>rare earths&lt;/strong> potential; &lt;strong>arable land ~21.5%&lt;/strong>; &lt;strong>forest cover ~42%&lt;/strong>; &lt;strong>avg. precip. ~1,821 mm/yr&lt;/strong>; &lt;strong>renewable internal freshwater ~3,700 m³/person&lt;/strong>. (&lt;a href="https://www.eia.gov/international/analysis/country/VNM" title="International - U.S. Energy Information Administration (EIA)">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://policy.trade.ec.europa.eu/eu-trade-relationships-country-and-region/countries-and-regions/viet-nam/eu-viet-nam-agreements_en?utm_source=chatgpt.com" title="EU-Viet Nam agreements - EU Trade - European Union">Trade and Economic Security&lt;/a>, &lt;a href="https://www.fao.org/aquastat/en/geospatial-information/climate-information/?utm_source=chatgpt.com" title="AQUASTAT Climate Information Tool">FAOHome&lt;/a>, &lt;a href="https://data.worldbank.org/indicator/AG.LND.FRST.ZS?locations=VN&amp;amp;utm_source=chatgpt.com" title="Forest area (% of land area) - Viet Nam">World Bank Open Data&lt;/a>, &lt;a href="https://www.reuters.com/markets/asia/vietnam-2024-gdp-growth-quickens-709-2025-01-06/?utm_source=chatgpt.com" title="Vietnam's 2024 GDP growth accelerates to 7.09%, driven by strong exports">Reuters&lt;/a>, &lt;a href="https://storage.googleapis.com/fao-aquastat.appspot.com/countries_regions/factsheets/summary_statistics/en/VNM-CF.pdf?utm_source=chatgpt.com" title="AQUASTAT - Googleapis.com">Google Cloud Storage&lt;/a>, &lt;a href="https://www.indexmundi.com/facts/vietnam/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Vietnam - Renewable internal freshwater resources per ...">Index Mundi&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>2&lt;/td>
&lt;td>&lt;strong>Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>High exposure to &lt;strong>typhoons, floods &amp;amp; sea-level rise&lt;/strong>; WB climate profile projects &lt;strong>&amp;gt;4 million&lt;/strong> exposed to permanent flooding under late-century scenarios; &lt;strong>ND-GAIN rank ~96/182&lt;/strong> (moderate vulnerability, modest readiness). (&lt;a href="https://openknowledge.worldbank.org/bitstreams/192e731d-527c-59df-a804-8b9b354b39f8/download?utm_source=chatgpt.com" title="[PDF] climate risk country profile - World Bank Open Knowledge Repository">Open Knowledge Portal&lt;/a>, &lt;a href="https://gain-new.crc.nd.edu/country/viet-nam" title="Viet Nam | ND-GAIN Index">ND-GAIN Index&lt;/a>)&lt;/td>
&lt;td>&lt;strong>2.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>3&lt;/td>
&lt;td>&lt;strong>Geo Composite&lt;/strong> (60% Geo-Defense + 40% Geopolitics)&lt;/td>
&lt;td>&lt;strong>Geo-Defense:&lt;/strong> Long &lt;strong>3,260 km coastline&lt;/strong> on South China Sea near major SLOCs; mountainous borders with &lt;strong>China/Laos/Cambodia&lt;/strong> create mixed defensibility/exposure. &lt;strong>Geopolitics:&lt;/strong> No formal alliances (&amp;quot;&lt;strong>Three/Four No&amp;rsquo;s&lt;/strong>&amp;quot; defense policy), but deep economic integration: &lt;strong>CPTPP (in force 2019)&lt;/strong>, &lt;strong>RCEP (2022)&lt;/strong>, &lt;strong>EU-Vietnam FTA (2020)&lt;/strong>; &lt;strong>U.S.–Vietnam Comprehensive Strategic Partnership (2023)&lt;/strong>; ongoing SCS disputes with China. (&lt;a href="https://www.mdpi.com/2072-4292/14/10/2476?utm_source=chatgpt.com" title="State of the Vietnamese Coast—Assessing Three Decades (1986 to ...">MDPI&lt;/a>, &lt;a href="https://vietnamembassy-usa.org/vietnam/geography?utm_source=chatgpt.com" title="Geography | Embassy of the Socialist Republic of Vietnam ...">Vietnam Embassy USA&lt;/a>, &lt;a href="https://www.trade.gov/country-commercial-guides/vietnam-defense-and-security-sector?utm_source=chatgpt.com" title="Vietnam - Defense and Security Sector">Trade.gov&lt;/a>, &lt;a href="https://www.dfat.gov.au/trade/agreements/in-force/cptpp/comprehensive-and-progressive-agreement-for-trans-pacific-partnership?utm_source=chatgpt.com" title="Comprehensive and Progressive Agreement for Trans ...">DFAT&lt;/a>, &lt;a href="https://policy.trade.ec.europa.eu/eu-trade-relationships-country-and-region/countries-and-regions/viet-nam/eu-viet-nam-agreements_en?utm_source=chatgpt.com" title="EU-Viet Nam agreements - EU Trade - European Union">Trade and Economic Security&lt;/a>, &lt;a href="https://www.eia.gov/international/analysis/country/VNM?utm_source=chatgpt.com" title="Vietnam">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://www.bpb.de/system/files/dokument_pdf/Statistical_Review_of_World_Energy_2024.pdf?utm_source=chatgpt.com" title="Statistical Review of World Energy">bpb.de&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>4&lt;/td>
&lt;td>&lt;strong>Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025: 20/100 (Not Free)&lt;/strong>; &lt;strong>TI CPI 2024: 40/100 (rank ~88/180)&lt;/strong>; EIU classifies Vietnam as an &lt;strong>authoritarian regime&lt;/strong>. (&lt;a href="https://en.wikipedia.org/wiki/The_Economist_Democracy_Index?utm_source=chatgpt.com" title="The Economist Democracy Index">Wikipedia&lt;/a>, &lt;a href="https://hdr.undp.org/data-center/specific-country-data?utm_source=chatgpt.com" title="Specific country data - Human Development Reports">Human Development Reports&lt;/a>, &lt;a href="https://country.eiu.com/vietnam?utm_source=chatgpt.com" title="Vietnam Economy, Politics and GDP Growth Summary">Economist Intelligence Unit&lt;/a>)&lt;/td>
&lt;td>&lt;strong>1.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>5&lt;/td>
&lt;td>&lt;strong>Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>Lower-middle income, export-manufacturing hub; 2025 &lt;strong>growth outlook 5.2–6.8%&lt;/strong> (IMF/WB/OECD range); electronics now top exports (&lt;strong>phones ~$54 bn; electronics/computers >$70 bn in 2024&lt;/strong>), backed by FTAs/FDI. (&lt;a href="https://www.imf.org/en/Countries/VNM?utm_source=chatgpt.com" title="Vietnam and the IMF">IMF&lt;/a>, &lt;a href="https://www.worldbank.org/en/country/vietnam/overview?utm_source=chatgpt.com" title="The World Bank In Viet Nam">World Bank&lt;/a>, &lt;a href="https://www.oecd.org/en/publications/oecd-economic-surveys-viet-nam-2025_fb37254b-en/full-report/strengthening-the-macroeconomic-foundations-for-growth_b6ed9c4e.html?utm_source=chatgpt.com" title="OECD Economic Surveys: Viet Nam 2025">OECD&lt;/a>, &lt;a href="https://vietnamnews.vn/economy/1691325/electronics-industry-booms-in-2024-with-record-export-turnover.html?utm_source=chatgpt.com" title="Electronics industry booms in 2024 with record export ...">vietnamnews.vn&lt;/a>, &lt;a href="https://en.vietnamplus.vn/computers-electronics-and-components-lead-imports-in-2024-post307684.vnp?utm_source=chatgpt.com" title="Computers, electronics and components lead imports in 2024">Vietnam+ (VietnamPlus)&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 14.0/25 (56.0%)&lt;/strong>&lt;/p>
&lt;p>Vietnam represents a dynamic emerging economy with strong manufacturing capabilities and strategic geographic positioning. Despite governance challenges and climate vulnerability, its economic trajectory and regional integration make it a key player in Southeast Asia&amp;rsquo;s development story.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Manufacturing Powerhouse&lt;/strong>: Vietnam has become a major manufacturing hub, particularly in electronics and textiles, benefiting from US-China trade tensions&lt;/li>
&lt;li>&lt;strong>Strategic Geography&lt;/strong>: Long coastline and proximity to major shipping routes provide significant trade advantages&lt;/li>
&lt;li>&lt;strong>Economic Liberalization&lt;/strong>: While politically authoritarian, economic reforms have created a dynamic business environment&lt;/li>
&lt;li>&lt;strong>Regional Integration&lt;/strong>: Active participation in ASEAN, CPTPP, and RCEP enhances trade and investment opportunities&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/vietnam">World Bank Vietnam Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/vietnam/">CIA World Factbook - Vietnam&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://vir.com.vn/">Vietnam Investment Review&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the regional study strategy it will be Philippines.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Malaysia</title><link>https://h3sun.github.io/post/2025-08-30-one-country-a-day-malaysia/</link><pubDate>Sat, 30 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-30-one-country-a-day-malaysia/</guid><description>&lt;h2 id="-malaysia---day-6-of-one-country-a-day-project">🇲🇾 Malaysia - Day 6 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Malaysia - Southeast Asia&amp;rsquo;s diverse economic hub and a strategic maritime crossroads. Using the 5-dimension framework, I&amp;rsquo;ll analyze Malaysia&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 34.3 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $1.1 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $11,867 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 330,803 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Kuala Lumpur&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Kuala Lumpur, George Town, Johor Bahru, Ipoh, Shah Alam, Melaka&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Petronas, Maybank, CIMB Group, Genting Group, AirAsia, Sime Darby&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key data points (selected)&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>Oil &amp;amp; gas producer with sizeable LNG capacity (Petronas MLNG, PFLNG1/2). • Forest area ≈ &lt;strong>57.7%&lt;/strong> of land (2022). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.FRST.ZS?locations=MY&amp;amp;utm_source=chatgpt.com" title="Forest area (% of land area) - Malaysia">World Bank Data&lt;/a>) • &lt;strong>Arable land ≈ 2.5%&lt;/strong> (plantation-heavy). (&lt;a href="https://www.theglobaleconomy.com/Malaysia/arable_land_percent/?utm_source=chatgpt.com" title="Malaysia Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>) • &lt;strong>Renewable internal freshwater ≈ 16,918 m³/person&lt;/strong> (2021). (&lt;a href="https://data.worldbank.org/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Renewable internal freshwater resources per capita (cubic ...">World Bank Data&lt;/a>) • Avg. precipitation ≈ &lt;strong>3,085 mm/yr&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/AG.LND.PRCP.MM?locations=MY&amp;amp;utm_source=chatgpt.com" title="Average precipitation in depth (mm per year) - Malaysia">World Bank Data&lt;/a>) • &lt;strong>Palm oil exports 2024: 16.9 Mt&lt;/strong>.&lt;/td>
&lt;td>&lt;strong>3.9&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>Equatorial, hot-humid monsoons; very wet (&lt;strong>~3,085 mm/yr&lt;/strong>). (&lt;a href="https://data.worldbank.org/indicator/AG.LND.PRCP.MM?locations=MY&amp;amp;utm_source=chatgpt.com" title="Average precipitation in depth (mm per year) - Malaysia">World Bank Data&lt;/a>) • &lt;strong>Flooding is the primary natural hazard&lt;/strong> highlighted in international risk profiles. (&lt;a href="https://reliefweb.int/report/malaysia/climate-risk-country-profile-malaysia?utm_source=chatgpt.com" title="Climate Risk Country Profile - Malaysia">ReliefWeb&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Chokepoint geography&lt;/strong> astride the Strait of Malacca—one of the world&amp;rsquo;s key maritime corridors. (&lt;a href="https://unctad.org/system/files/official-document/rmt2024overview_en.pdf?utm_source=chatgpt.com" title="Review of Maritime Transport 2024">UN Trade and Development (UNCTAD)&lt;/a>) • Split territory (Peninsula + Borneo) complicates defense; &lt;strong>SCS disputes&lt;/strong> touch Malaysia&amp;rsquo;s EEZ/Spratlys. (&lt;a href="https://www.cfr.org/global-conflict-tracker/conflict/territorial-disputes-south-china-sea?utm_source=chatgpt.com" title="Territorial Disputes in the South China Sea">Council on Foreign Relations&lt;/a>) • Balancing great-power ties; &lt;strong>FPDA&lt;/strong> defense arrangement with UK–Australia–NZ–Singapore remains active. (&lt;a href="https://www.fivepowerdefencearrangements.org/?utm_source=chatgpt.com" title="FPDA">FPDA&lt;/a>, &lt;a href="https://www.reuters.com/world/asia-pacific/five-powers-plan-bigger-deeper-asia-military-drills-2024-05-31/?utm_source=chatgpt.com" title="Five powers plan bigger, deeper Asia military drills">Reuters&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2025: 53/100 (Partly Free).&lt;/strong> (&lt;a href="https://freedomhouse.org/country/malaysia/freedom-world/2025?utm_source=chatgpt.com" title="Malaysia: Freedom in the World 2025 Country Report">Freedom House&lt;/a>) • &lt;strong>Transparency Int&amp;rsquo;l CPI 2024: 50/100, rank 57/180.&lt;/strong> (&lt;a href="https://www.transparency.org/en/countries/malaysia" title="Malaysia">Transparency.org&lt;/a>) • &lt;strong>EIU Democracy Index 2024:&lt;/strong> classified &lt;strong>&amp;ldquo;flawed democracy.&amp;rdquo;&lt;/strong> (&lt;a href="https://d1qqtien6gys07.cloudfront.net/wp-content/uploads/2025/03/Democracy_INDEX_2024.pdf?utm_source=chatgpt.com" title="Table 2 Democracy Index 2024 - Cloudfront.net">CloudFront&lt;/a>)&lt;/td>
&lt;td>&lt;strong>2.8&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$)&lt;/strong> ≈ &lt;strong>$11,867&lt;/strong> (2024, WB). (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?utm_source=chatgpt.com" title="GDP per capita (current US$) | Data">World Bank Data&lt;/a>) • &lt;strong>HDI ≈ 0.819&lt;/strong> (High, latest UNDP). (&lt;a href="https://hdr.undp.org/data-center/country-insights?utm_source=chatgpt.com" title="Country Insights - Human Development Reports">Human Development Reports&lt;/a>) • Exports highly diversified, with &lt;strong>E&amp;amp;E ~40% of total (2023).&lt;/strong> (&lt;a href="https://theedgemalaysia.com/node/741796?utm_source=chatgpt.com" title="Cover Story: Is Malaysia's chip sector prepared for the storm?">The Edge Malaysia&lt;/a>) • &lt;strong>IMF projects ~4.5% real GDP growth in 2025.&lt;/strong> (&lt;a href="https://www.imf.org/en/Countries/MYS" title="Malaysia and the IMF">IMF&lt;/a>)&lt;/td>
&lt;td>&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 17.2/25 (68.8%)&lt;/strong>&lt;/p>
&lt;p>Malaysia represents a strategic Southeast Asian power with strong natural resource endowments and geopolitical positioning. Its location at the crossroads of major maritime trade routes, combined with diverse economic sectors, positions it as a key regional player with significant growth potential.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Strategic Geography&lt;/strong>: Control of Malacca Strait access provides significant geopolitical leverage and economic benefits&lt;/li>
&lt;li>&lt;strong>Resource Wealth&lt;/strong>: Abundant oil, gas, and agricultural resources create strong economic foundations&lt;/li>
&lt;li>&lt;strong>Regional Integration&lt;/strong>: Active ASEAN participation and strategic neutrality enhance diplomatic flexibility&lt;/li>
&lt;li>&lt;strong>Development Trajectory&lt;/strong>: Upper-middle income status with strong growth prospects suggests continued economic advancement&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/malaysia">World Bank Malaysia Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/malaysia/">CIA World Factbook - Malaysia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.mida.gov.my/">Malaysia Investment Development Authority&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the table it will be Viet Nam.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - South Korea</title><link>https://h3sun.github.io/post/2025-08-29-one-country-a-day-south-korea/</link><pubDate>Fri, 29 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-29-one-country-a-day-south-korea/</guid><description>&lt;h2 id="-south-korea---day-5-of-one-country-a-day-project">🇰🇷 South Korea - Day 5 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with South Korea - East Asia&amp;rsquo;s technological powerhouse and a global leader in innovation, manufacturing, and cultural exports. Using the 5-dimension framework, I&amp;rsquo;ll analyze South Korea&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 51.6 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $2.1 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $33,121 (2023, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 100,363 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Seoul&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Seoul, Busan, Incheon, Daegu, Daejeon, Gwangju&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Samsung Electronics, Hyundai Motor Group, LG Corporation, SK Group, POSCO, Kia Corporation&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key datapoints (evidence)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land:&lt;/strong> ~&lt;strong>13.5%&lt;/strong> of land area (WB series). (&lt;a href="https://tradingeconomics.com/south-korea/arable-land-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="South Korea - Arable Land (% Of Land Area) - 2025 Data ...">Trading Economics&lt;/a>) • &lt;strong>Freshwater:&lt;/strong> ~&lt;strong>1,257 m³/person/yr&lt;/strong> (latest WB/FAO series). (&lt;a href="https://www.indexmundi.com/facts/korea/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Korea - Renewable internal freshwater resources per ...">Index Mundi&lt;/a>) • &lt;strong>Energy endowment:&lt;/strong> imports &lt;strong>~96%&lt;/strong> of energy; resource self-sufficiency ~&lt;strong>13.3%&lt;/strong> (incl. overseas projects). Heavy crude dependence on the &lt;strong>Middle East&lt;/strong> (≈&lt;strong>71.5%&lt;/strong> of crude in 2024). (&lt;a href="https://ieefa.org/sites/default/files/2024-03/Final_South%20Korea%27s%20Power%20Trilemma_Mar24_0321.pdf?utm_source=chatgpt.com" title="South Korea's Power Trilemma">IEEFA&lt;/a>, &lt;a href="https://www.mk.co.kr/en/economy/11354061?utm_source=chatgpt.com" title="While imports of Unirana crude oil increased last year ...">MK News&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.2&lt;/strong>&lt;/td>
&lt;td>Limited hydrocarbons and modest arable/water per capita; strong refining/industrial base doesn&amp;rsquo;t offset basic resource scarcity.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>ND-GAIN (2023):&lt;/strong> rank &lt;strong>15&lt;/strong>, score &lt;strong>67.4&lt;/strong> (low vulnerability, high readiness). (&lt;a href="https://gain-new.crc.nd.edu/country/republic-of-korea?utm_source=chatgpt.com" title="Republic of Korea">ND-GAIN Index&lt;/a>) • &lt;strong>WorldRiskIndex 2023:&lt;/strong> &lt;strong>WRI 10.84&lt;/strong>, &lt;strong>rank 49/193&lt;/strong> (moderate disaster risk—quakes, floods, typhoons).&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.1&lt;/strong>&lt;/td>
&lt;td>High adaptive capacity and governance lift livability, but multi-hazard exposure keeps risk non-trivial.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-defense:&lt;/strong> peninsula with one hostile land border (DPRK); sea-lines of communication for energy via &lt;strong>Hormuz → Malacca/Singapore&lt;/strong> chokepoints. (&lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=65504?utm_source=chatgpt.com" title="Amid regional conflict, the Strait of Hormuz remains critical ...">EIA&lt;/a>) • &lt;strong>Geopolitics:&lt;/strong> binding &lt;strong>U.S.–ROK Mutual Defense Treaty&lt;/strong>; deepening &lt;strong>U.S.–Japan–ROK&lt;/strong> trilateral cooperation; &lt;strong>RCEP&lt;/strong> in force for Korea since &lt;strong>Feb 1, 2022&lt;/strong>. (&lt;a href="https://www.usfk.mil/portals/105/documents/sofa/h_mutual%20defense%20treaty_1953.pdf?utm_source=chatgpt.com" title="Mutual Defense Treaty Between the United States and the ...">USFK&lt;/a>, &lt;a href="https://bidenwhitehouse.archives.gov/briefing-room/statements-releases/2023/08/18/the-spirit-of-camp-david-joint-statement-of-japan-the-republic-of-korea-and-the-united-states/?utm_source=chatgpt.com" title="The Spirit of Camp David: Joint Statement of Japan, ...">The White House&lt;/a>, &lt;a href="https://asean.org/rcep-agreement-enters-into-force/?utm_source=chatgpt.com" title="RCEP Agreement enters into force">ASEAN Main Portal&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.8&lt;/strong>&lt;/td>
&lt;td>Strong alliance architecture and advanced forces; vulnerabilities are SLOC/chokepoint exposure and proximate DPRK threat.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>83/100 (Free)&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/south-korea/freedom-world/2024?utm_source=chatgpt.com" title="South Korea: Freedom in the World 2024 Country Report | Freedom House">Freedom House&lt;/a>) • &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>rank 19/142&lt;/strong>. (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/country/2024/Korea%2C%20Rep./?utm_source=chatgpt.com" title="WJP Rule of Law Index | Korea, Rep. Insights">World Justice Project&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>64/100&lt;/strong>, &lt;strong>rank 30/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/south-korea?utm_source=chatgpt.com" title="South Korea">Transparency.org&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;td>Robust civil liberties and institutions; comparatively low perceived corruption by global standards.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$ 2023):&lt;/strong> &lt;strong>$33,121&lt;/strong> (high income by WB threshold). (&lt;a href="https://data.worldbank.org/country/korea-rep?utm_source=chatgpt.com" title="Korea, Rep. | Data">World Bank Data&lt;/a>) • &lt;strong>Growth outlook:&lt;/strong> &lt;strong>~0.8% (IMF 2025)&lt;/strong>; &lt;strong>~1.0% (OECD 2025)&lt;/strong> with a pickup signaled for 2026. (&lt;a href="https://www.imf.org/en/Countries/KOR?utm_source=chatgpt.com" title="Republic of Korea and the IMF">IMF&lt;/a>, &lt;a href="https://www.oecd.org/en/publications/2025/06/oecd-economic-outlook-volume-2025-issue-1_1fd979a8/full-report/korea_0e33c21e.html?utm_source=chatgpt.com" title="OECD Economic Outlook, Volume 2025 Issue 1: Korea">OECD&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td>Advanced, diversified manufacturing-services economy; near-term growth soft (external demand, demographics), medium-term still solid.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 16.9/25 (67.6%)&lt;/strong>&lt;/p>
&lt;p>South Korea represents a remarkable case study in overcoming natural resource limitations through human capital, innovation, and strong governance. Despite scarce natural resources, it has built one of the world&amp;rsquo;s most advanced economies through technological leadership and strategic international partnerships.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Resource Innovation&lt;/strong>: Limited natural resources have driven innovation in technology and efficiency, creating competitive advantages&lt;/li>
&lt;li>&lt;strong>Strategic Alliances&lt;/strong>: Strong U.S. partnership and international integration provide security and economic benefits&lt;/li>
&lt;li>&lt;strong>Human Capital Focus&lt;/strong>: Investment in education and technology has created a highly skilled workforce that drives economic success&lt;/li>
&lt;li>&lt;strong>Geopolitical Complexity&lt;/strong>: Proximity to North Korea and regional tensions create ongoing security challenges despite strong alliances&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/korea">World Bank South Korea Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/korea-south/">CIA World Factbook - South Korea&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.kotra.or.kr/">Korea Trade-Investment Promotion Agency&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another East Asian country, according to the table it will be Malaysia.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Thailand</title><link>https://h3sun.github.io/post/2025-08-28-one-country-a-day-thailand/</link><pubDate>Thu, 28 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-28-one-country-a-day-thailand/</guid><description>&lt;h2 id="-thailand---day-4-of-one-country-a-day-project">🇹🇭 Thailand - Day 4 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Thailand - Southeast Asia&amp;rsquo;s second-largest economy and a regional hub for tourism, manufacturing, and agriculture. Using the 5-dimension framework, I&amp;rsquo;ll analyze Thailand&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 71.6 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $1.4 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $7,345 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 513,120 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Bangkok&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Bangkok, Chiang Mai, Pattaya, Phuket, Hat Yai, Udon Thani&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: PTT Group, Charoen Pokphand Group, Siam Cement Group, Central Group, True Corporation, Kasikorn Bank&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key datapoints (evidence)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land:&lt;/strong> ~&lt;strong>33.6%&lt;/strong> of land area (2022, WB series) — high for Asia. (&lt;a href="https://www.theglobaleconomy.com/Thailand/arable_land_percent/?utm_source=chatgpt.com" title="Thailand Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>) • &lt;strong>Freshwater:&lt;/strong> latest WB/FAO observations show ~&lt;strong>3,300 m³/person/yr&lt;/strong> (declining from historic highs). (&lt;a href="https://www.ceicdata.com/en/thailand/energy-production-and-consumption/th-renewable-internal-freshwater-resources-per-capita?utm_source=chatgpt.com" title="Thailand TH: Renewable Internal Freshwater Resources ...">CEIC Data&lt;/a>, &lt;a href="https://databank.worldbank.org/metadataglossary/millennium-development-goals/series/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Renewable internal freshwater resources per capita (cubic ...">DataBank&lt;/a>) • &lt;strong>Energy/minerals:&lt;/strong> domestic gas output falling; power mix still &lt;strong>gas-heavy&lt;/strong> and increasingly met by &lt;strong>LNG imports&lt;/strong> (e.g., PTT&amp;rsquo;s &lt;strong>2 MTPA&lt;/strong> Alaska LNG deal). (&lt;a href="https://www.reuters.com/business/energy/thailand-exploring-small-modular-nuclear-reactor-technology-says-pm-2024-05-31/?utm_source=chatgpt.com" title="Thailand exploring small modular nuclear reactor technology, says PM">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td>Abundant arable land and adequate (but tightening) freshwater help; limited hydrocarbons and rising import dependence cap the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>ND-GAIN:&lt;/strong> &lt;strong>Score 49.9, rank ~80&lt;/strong> (moderate vulnerability/readiness). (&lt;a href="https://gain-new.crc.nd.edu/country/thailand?utm_source=chatgpt.com" title="Thailand">Gain New&lt;/a>) • &lt;strong>WorldRiskIndex 2023:&lt;/strong> &lt;strong>WRI 21.09 (rank 23)&lt;/strong> → high multi-hazard exposure (floods, storms, quakes). (&lt;a href="https://weltrisikobericht.de/wp-content/uploads/2024/01/WorldRiskReport_2023_english_online.pdf?utm_source=chatgpt.com" title="WorldRiskReport 2023">WeltRisikoBericht&lt;/a>, &lt;a href="https://www.researchgate.net/publication/374029957_The_WorldRiskIndex_2023?utm_source=chatgpt.com" title="(PDF) The WorldRiskIndex 2023">ResearchGate&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.2&lt;/strong>&lt;/td>
&lt;td>Tropical climate is livable, but exposure to coastal flooding, riverine floods, and seismic risk keeps long-term risk elevated.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-defense:&lt;/strong> four land borders (MMR/LAO/KHM/MYS) plus dual coasts (Gulf of Thailand &amp;amp; Andaman Sea); energy and trade lifelines rely on nearby &lt;strong>Strait of Malacca&lt;/strong> chokepoint. (&lt;a href="https://en.wikipedia.org/wiki/Thailand?utm_source=chatgpt.com" title="Thailand">Wikipedia&lt;/a>, &lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=32452&amp;amp;utm_source=chatgpt.com" title="The Strait of Malacca, a key oil trade chokepoint, links ...">U.S. Energy Information Administration&lt;/a>) • &lt;strong>Geopolitics:&lt;/strong> founding &lt;strong>ASEAN&lt;/strong> member; &lt;strong>RCEP in force since Jan 1, 2022&lt;/strong>; &lt;strong>U.S. Major Non-NATO Ally&lt;/strong> status. (&lt;a href="https://asean.org/the-founding-of-asean/?utm_source=chatgpt.com" title="History">ASEAN&lt;/a>, &lt;a href="https://2021-2025.state.gov/u-s-relations-with-thailand/?utm_source=chatgpt.com" title="U.S. Relations With Thailand - United States Department of State">State Department&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.4&lt;/strong>&lt;/td>
&lt;td>Good maritime access and regional integration + treaty ties with the U.S.; vulnerabilities are neighbor exposure and SLOC/chokepoint dependence.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>34/100 (&amp;ldquo;Not Free&amp;rdquo;)&lt;/strong>. (&lt;a href="https://freedomhouse.org/country/thailand?utm_source=chatgpt.com" title="Thailand: Country Profile">Freedom House&lt;/a>) • &lt;strong>WJP Rule of Law 2024:&lt;/strong> &lt;strong>0.50&lt;/strong>, &lt;strong>rank 78/142&lt;/strong>. (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/downloads/WJPIndex2024.pdf?utm_source=chatgpt.com" title="2024 Rule of Law Index">World Justice Project&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>34/100&lt;/strong>, &lt;strong>rank 107/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/thailand?utm_source=chatgpt.com" title="Thailand">Transparency.org&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.3&lt;/strong>&lt;/td>
&lt;td>Competitive politics exist, but civil-liberties constraints and middling rule-of-law/anti-corruption scores weigh down the dimension.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Income level:&lt;/strong> &lt;strong>upper-middle&lt;/strong> (WB). (&lt;a href="https://data.worldbank.org/country/thailand?utm_source=chatgpt.com" title="Thailand | Data">World Bank Open Data&lt;/a>) • &lt;strong>GDP per capita (current US$):&lt;/strong> &lt;strong>~$7,345&lt;/strong> (latest WB series). (&lt;a href="https://data.worldbank.org/country/thailand?utm_source=chatgpt.com" title="Thailand | Data">World Bank Open Data&lt;/a>) • &lt;strong>Growth outlook 2025:&lt;/strong> sources range &lt;strong>~1.8%–2.9%&lt;/strong> (IMF July 2025: &lt;strong>2.0%&lt;/strong>; WB Feb 2025: &lt;strong>2.9%&lt;/strong>; Reuters July 2025: &lt;strong>1.8%&lt;/strong>; ADB Apr 2025: &lt;strong>~2.8%&lt;/strong>). (&lt;a href="https://www.imf.org/en/Countries/THA?utm_source=chatgpt.com" title="Thailand and the IMF">IMF&lt;/a>, &lt;a href="https://www.worldbank.org/en/country/thailand/publication/thailand-economic-monitor-february-2025-unleashing-growth-innovation-smes-and-startups?utm_source=chatgpt.com" title="Thailand Economic Monitor February 2025: Unleashing ...">World Bank&lt;/a>, &lt;a href="https://www.reuters.com/world/asia-pacific/hold-world-bank-cuts-thailands-2025-gdp-growth-outlook-18-29-2025-07-03/?utm_source=chatgpt.com" title="World Bank cuts Thailand's 2025 GDP growth outlook to 1.8% from 2.9%">Reuters&lt;/a>, &lt;a href="https://www.nationthailand.com/business/economy/40048536?utm_source=chatgpt.com" title="ADB revises Thailand's GDP growth forecast to 2.8% in 2025">nationthailand&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.0&lt;/strong>&lt;/td>
&lt;td>Diversified (autos, electronics, agro, tourism) but mature, slower-growing economy; cyclical tourism helps, structural headwinds persist.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 14.1/25 (56.4%)&lt;/strong>&lt;/p>
&lt;p>Thailand represents a case study in geographic advantage and economic potential constrained by governance challenges. Its central location in Southeast Asia, diverse natural resources, and strong economic fundamentals are offset by political instability and governance issues that limit its full potential.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Geographic Advantage&lt;/strong>: Central location in Southeast Asia provides strategic importance for trade and regional integration&lt;/li>
&lt;li>&lt;strong>Resource Diversity&lt;/strong>: Strong agricultural base and moderate natural resources support economic resilience&lt;/li>
&lt;li>&lt;strong>Tourism Economy&lt;/strong>: Heavy dependence on tourism creates vulnerability to external shocks but provides economic benefits&lt;/li>
&lt;li>&lt;strong>Governance Gap&lt;/strong>: Political instability and military influence create uncertainty that limits foreign investment and economic potential&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/thailand">World Bank Thailand Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/thailand/">CIA World Factbook - Thailand&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.boi.go.th/">Thailand Board of Investment&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the table it will be South Korea.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Indonesia</title><link>https://h3sun.github.io/post/2025-08-27-one-country-a-day-indonesia/</link><pubDate>Wed, 27 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-27-one-country-a-day-indonesia/</guid><description>&lt;h2 id="-indonesia---day-3-of-one-country-a-day-project">🇮🇩 Indonesia - Day 3 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Indonesia - the world&amp;rsquo;s largest archipelagic nation and fourth most populous country. Using the 5-dimension framework, I&amp;rsquo;ll analyze Indonesia&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 277.5 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $4.1 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $5,000 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 1.9 million km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Jakarta&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Jakarta, Surabaya, Bandung, Medan, Semarang&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Astra International, Bank Central Asia, Bank Rakyat Indonesia, Indofood Sukses Makmur, Telkom Indonesia, Pertamina&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key datapoints (evidence)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land:&lt;/strong> ~&lt;strong>9.5%&lt;/strong> of land area (WB series) (&lt;a href="https://www.theglobaleconomy.com/Indonesia/arable_land_percent/?utm_source=chatgpt.com" title="Indonesia Arable land, percent of land area - data, chart">TheGlobalEconomy.com&lt;/a>) • &lt;strong>Freshwater:&lt;/strong> ~&lt;strong>7,294 m³/person/yr&lt;/strong> (latest WB) (&lt;a href="https://data.worldbank.org/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="Renewable internal freshwater resources per capita (cubic ...">World Bank Open Data&lt;/a>) • &lt;strong>Minerals/energy:&lt;/strong> world&amp;rsquo;s &lt;strong>#1 nickel&lt;/strong> producer (&amp;gt;50% of 2024 output); &lt;strong>top thermal coal exporter&lt;/strong> (2024 exports &amp;gt;&lt;strong>500 Mt&lt;/strong>; output &lt;strong>836 Mt&lt;/strong>) ; &lt;strong>largest palm-oil producer&lt;/strong> (≈55–59% global). (&lt;a href="https://investingnews.com/daily/resource-investing/base-metals-investing/nickel-investing/top-nickel-producing-countries/?utm_source=chatgpt.com" title="Top 9 Nickel-producing Countries | INN">Investing News Network (INN)&lt;/a>, &lt;a href="https://www.reuters.com/markets/commodities/global-thermal-coal-exports-power-use-hit-new-highs-2024-maguire-2024-12-10/?utm_source=chatgpt.com" title="Global thermal coal exports and power use to hit new highs ...">Reuters&lt;/a>, &lt;a href="https://www.mining.com/web/indonesias-2024-coal-output-hits-record-high/?utm_source=chatgpt.com" title="Indonesia's 2024 coal output hits record high">MINING.COM&lt;/a>, &lt;a href="https://apps.fas.usda.gov/newgainapi/api/Report/DownloadReportByFileName?fileName=Oilseeds+and+Products+Annual_Jakarta_Indonesia_ID2025-0015.pdf&amp;amp;utm_source=chatgpt.com" title="Report Name: Oilseeds and Products Annual">USDA Apps&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td>Very strong mineral/energy endowment (nickel, coal, tin) and soft-commodity base (palm oil); arable land share is modest, but freshwater is ample.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>ND-GAIN:&lt;/strong> score &lt;strong>45.9&lt;/strong>, rank &lt;strong>~98&lt;/strong> (moderate vulnerability, modest readiness). (&lt;a href="https://gain-new.crc.nd.edu/country/indonesia?utm_source=chatgpt.com" title="Indonesia | ND-GAIN Index">Gain New&lt;/a>) • &lt;strong>WorldRiskIndex 2023:&lt;/strong> &lt;strong>#2&lt;/strong> highest global disaster risk (&lt;strong>43.50&lt;/strong>), high exposure to quakes, tsunamis, floods, cyclones.&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.0&lt;/strong>&lt;/td>
&lt;td>Tropical climate is broadly livable, but multi-hazard exposure (Ring of Fire + coastal storms) materially raises long-term risk.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-defense:&lt;/strong> vast archipelago straddling &lt;strong>Malacca/Sunda/Lombok&lt;/strong> SLOCs; few land borders (Malaysia, PNG, Timor-Leste). (&lt;a href="https://www.eia.gov/international/analysis/special-topics/World_Oil_Transit_Chokepoints?utm_source=chatgpt.com" title="World Oil Transit Chokepoints">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://www.lowyinstitute.org/the-interpreter/gallipoli-strait-malacca-why-maritime-choke-points-still-decide-fate-nations?utm_source=chatgpt.com" title="Why maritime choke points still decide the fate of nations">Lowy Institute&lt;/a>, &lt;a href="https://en.wikipedia.org/wiki/Borders_of_Indonesia?utm_source=chatgpt.com" title="Borders of Indonesia">Wikipedia&lt;/a>) • &lt;strong>Geopolitics:&lt;/strong> &lt;strong>ASEAN&lt;/strong> founder; &lt;strong>RCEP in force (Jan 2, 2023)&lt;/strong>; occasional &lt;strong>Natuna&lt;/strong> standoffs with China but non-aligned posture; G20 member. (&lt;a href="https://asean.org/member-states/indonesia/?utm_source=chatgpt.com" title="Indonesia">ASEAN&lt;/a>, &lt;a href="https://www.dfat.gov.au/trade/agreements/in-force/rcep?utm_source=chatgpt.com" title="Regional Comprehensive Economic Partnership ...">dfat.gov.au&lt;/a>, &lt;a href="https://www.channelnewsasia.com/asia/south-china-sea-indonesia-china-natuna-maritime-dispute-prabowo-test-4702526?utm_source=chatgpt.com" title="Chinese vessel in Natuna: Indonesia's response 'shows ...">CNA&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td>Commanding position on key sea lines + regional integration = leverage; vulnerabilities are maritime-chokepoint reliance and sporadic EEZ frictions.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>56/100&lt;/strong> (&amp;ldquo;Partly Free&amp;rdquo;). (&lt;a href="https://freedomhouse.org/country/indonesia?utm_source=chatgpt.com" title="Indonesia: Country Profile">Freedom House&lt;/a>) • &lt;strong>WJP 2024:&lt;/strong> &lt;strong>rank 68/142&lt;/strong>. (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/country/2024/Indonesia/?utm_source=chatgpt.com" title="Indonesia - WJP Rule of Law Index">World Justice Project&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>37/100&lt;/strong>, &lt;strong>rank 99/180&lt;/strong>. (&lt;a href="https://www.transparency.org/en/countries/indonesia?utm_source=chatgpt.com" title="Indonesia">Transparency.org&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td>Democratic institutions with real competition, but civil-liberties constraints and persistent corruption risks.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Income level:&lt;/strong> &lt;strong>upper-middle&lt;/strong> (regained 2023—WB). (&lt;a href="https://www.worldbank.org/en/country/indonesia/overview?utm_source=chatgpt.com" title="Indonesia Overview: Development news, research, data">World Bank&lt;/a>) • &lt;strong>GDP per capita (current US$, 2024 series):&lt;/strong> ~&lt;strong>US$5k&lt;/strong>. (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?locations=ID" title="GDP per capita (current US$) - Indonesia | Data">World Bank Open Data&lt;/a>) • &lt;strong>Growth outlook:&lt;/strong> &lt;strong>~4.7–4.8%&lt;/strong> in &lt;strong>2025&lt;/strong> (OECD/IMF). (&lt;a href="https://www.oecd.org/en/publications/2025/06/oecd-economic-outlook-volume-2025-issue-1_1fd979a8/full-report/indonesia_4c4ce2be.html?utm_source=chatgpt.com" title="OECD Economic Outlook, Volume 2025 Issue 1: Indonesia">OECD&lt;/a>, &lt;a href="https://www.imf.org/en/Countries/IDN?utm_source=chatgpt.com" title="Indonesia and the IMF">IMF&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.2&lt;/strong>&lt;/td>
&lt;td>Large, diversified EM economy with steady ~5% trend and rising EV-supply-chain play; still commodity-tilted and below high-income thresholds.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 15.6/25 (62.4%)&lt;/strong>&lt;/p>
&lt;p>Indonesia represents a fascinating case study in resource wealth, strategic geography, and development challenges. The country&amp;rsquo;s vast natural resources and strategic position provide significant advantages, but governance issues and infrastructure gaps limit its full potential.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Resource Superpower&lt;/strong>: Indonesia&amp;rsquo;s mineral wealth, especially nickel, positions it as a critical player in the global energy transition&lt;/li>
&lt;li>&lt;strong>Strategic Geography&lt;/strong>: Control of key maritime chokepoints gives Indonesia significant geopolitical leverage&lt;/li>
&lt;li>&lt;strong>Development Paradox&lt;/strong>: Rich in resources but facing infrastructure and governance challenges that limit economic potential&lt;/li>
&lt;li>&lt;strong>Regional Leadership&lt;/strong>: Strong ASEAN integration and growing global influence despite domestic challenges&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/indonesia">World Bank Indonesia Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/indonesia/">CIA World Factbook - Indonesia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.bi.go.id/en/">Bank Indonesia&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another Southeast Asian country, according to the table it will be Thailand.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Japan</title><link>https://h3sun.github.io/post/2025-08-26-one-country-a-day-japan/</link><pubDate>Tue, 26 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-26-one-country-a-day-japan/</guid><description>&lt;h2 id="-japan---day-2-of-one-country-a-day-project">🇯🇵 Japan - Day 2 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Japan - the world&amp;rsquo;s third-largest economy and a technological powerhouse in East Asia. Using the 5-dimension framework, I&amp;rsquo;ll analyze Japan&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 125.7 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $4.2 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $32,476 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 377,975 km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Tokyo&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Tokyo, Yokohama, Osaka, Nagoya, Sapporo, Fukuoka&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Toyota Motor, Sony Group, SoftBank Group, Honda Motor, Nissan Motor, Mitsubishi Group, Nintendo&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key datapoints (evidence)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Arable land:&lt;/strong> ~&lt;strong>11.2%&lt;/strong> of land area (WB) (&lt;a href="https://tradingeconomics.com/japan/arable-land-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Japan - Arable Land (% Of Land Area) - 2025 Data 2026 ...">Trading Economics&lt;/a>) • &lt;strong>Freshwater:&lt;/strong> ~&lt;strong>3,400 m³/person/yr&lt;/strong> renewable internal freshwater (WB series) (&lt;a href="https://www.indexmundi.com/facts/indicators/ER.H2O.INTR.PC/rankings?utm_source=chatgpt.com" title="Countries ranked by Renewable internal freshwater ...">Index Mundi&lt;/a>) • &lt;strong>Energy self-sufficiency:&lt;/strong> &lt;strong>~15%&lt;/strong> (highest since 2011 due to nuclear restarts/renewables) (&lt;a href="https://www.meti.go.jp/english/press/2025/0425_002.html?utm_source=chatgpt.com" title="FY2023 Energy Supply and Demand Report (Revised ...">Ministry of Economy, Trade and Industry&lt;/a>) • &lt;strong>Oil sourcing:&lt;/strong> &lt;strong>&amp;gt;90–95%&lt;/strong> of crude imports from the &lt;strong>Middle East&lt;/strong> (METI/IEA) (&lt;a href="https://www.enecho.meti.go.jp/en/category/brochures/pdf/japan_energy_2024.pdf?utm_source=chatgpt.com" title="10questions for understanding the current energy situation">Enecho&lt;/a>, &lt;a href="https://www.eia.gov/international/analysis/country/jpn?utm_source=chatgpt.com" title="Japan">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://www.spglobal.com/commodity-insights/en/news-research/latest-news/lng/080525-japanese-refiners-recognize-need-to-reduce-95-middle-east-crude-dependency?utm_source=chatgpt.com" title="Japanese refiners recognize need to reduce 95% Middle ...">S&amp;amp;P Global&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.0&lt;/strong>&lt;/td>
&lt;td>Resource-poor in hydrocarbons and limited arable land; adequate but not abundant freshwater. Heavy import dependence keeps this low despite recent gains in self-sufficiency.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>ND-GAIN:&lt;/strong> rank ~&lt;strong>20&lt;/strong> (high readiness, moderate vulnerability) (&lt;a href="https://gain.nd.edu/our-work/country-index/rankings/?utm_source=chatgpt.com" title="Rankings - Notre Dame Global Adaptation Initiative">gain.nd.edu&lt;/a>) • &lt;strong>Disaster exposure:&lt;/strong> earthquakes, tsunamis, typhoons; &lt;strong>WorldRisk Index 2023&lt;/strong> risk &lt;strong>9.66 (rank 46)&lt;/strong>; government scenarios of a &lt;strong>Nankai Trough megaquake&lt;/strong> project very large losses. (&lt;a href="https://en.wikipedia.org/wiki/WorldRiskReport?utm_source=chatgpt.com" title="WorldRiskReport">Wikipedia&lt;/a>, &lt;a href="https://www.reuters.com/business/environment/japan-estimates-feared-megaquake-could-cause-18-trln-damage-kill-300000-people-2025-03-31/?utm_source=chatgpt.com" title="Japan estimates feared megaquake could cause $1.8 trln in damage, kill 300,000 people">Reuters&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.7&lt;/strong>&lt;/td>
&lt;td>Excellent adaptive capacity/readiness, but very high seismic &amp;amp; coastal storm exposure keeps livability risks elevated.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geo-defense:&lt;/strong> maritime archipelago (no land borders), long SLOCs; energy lifelines transit &lt;strong>Hormuz/Malacca&lt;/strong>. (&lt;a href="https://www.eia.gov/international/analysis/country/jpn?utm_source=chatgpt.com" title="Japan">U.S. Energy Information Administration&lt;/a>) • &lt;strong>Alliances:&lt;/strong> binding &lt;strong>U.S.–Japan Security Treaty&lt;/strong>; active &lt;strong>Quad&lt;/strong> member; &lt;strong>RCEP&lt;/strong> in force since &lt;strong>Jan 1, 2022&lt;/strong>. (&lt;a href="https://www.mofa.go.jp/region/n-america/us/q%26a/ref/1.html?utm_source=chatgpt.com" title="MOFA: Japan-U.S. Security Treaty">Ministry of Foreign Affairs of Japan&lt;/a>, &lt;a href="https://www.dfat.gov.au/international-relations/regional-architecture/quad?utm_source=chatgpt.com" title="The Quad | Australian Government ...">DFAT&lt;/a>) • &lt;strong>Alignment/sanctions:&lt;/strong> joined sanctions on &lt;strong>Russia&lt;/strong> and has continued updates. (&lt;a href="https://www.mofa.go.jp/erp/c_see/ua/pageite_000001_00740.html?utm_source=chatgpt.com" title="Measures based on the Foreign Exchange and ...">Ministry of Foreign Affairs of Japan&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;td>Strong geography for defense (island buffers) and top-tier alliance network; key vulnerability is reliance on maritime chokepoints for energy and trade.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Freedom House 2024:&lt;/strong> &lt;strong>96/100 (Free)&lt;/strong> (&lt;a href="https://freedomhouse.org/country/japan/freedom-world/2024?utm_source=chatgpt.com" title="Japan: Freedom in the World 2024 Country Report">Freedom House&lt;/a>) • &lt;strong>WJP Rule of Law 2024:&lt;/strong> score &lt;strong>0.79&lt;/strong>, &lt;strong>rank 14/142&lt;/strong> (&lt;a href="https://worldjusticeproject.org/rule-of-law-index/downloads/WJPIndex2024.pdf?utm_source=chatgpt.com" title="2024 Rule of Law Index">World Justice Project&lt;/a>) • &lt;strong>TI CPI 2024:&lt;/strong> &lt;strong>71/100&lt;/strong>, &lt;strong>rank 20/180&lt;/strong> (&lt;a href="https://www.transparency.org/en/countries/japan?utm_source=chatgpt.com" title="Japan">Transparency.org&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;td>Among the world&amp;rsquo;s stronger performers on civil liberties, institutions and rule-of-law; corruption perceptions are low.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>GDP per capita (current US$, 2024):&lt;/strong> &lt;strong>~$32,476&lt;/strong>; &lt;strong>PPP&lt;/strong> &lt;strong>~$51,685&lt;/strong> (WB) (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?utm_source=chatgpt.com" title="GDP per capita (current US$)">World Bank Data&lt;/a>) • &lt;strong>Growth outlook:&lt;/strong> &lt;strong>~0.6–0.7% in 2025&lt;/strong> (IMF &amp;amp; OECD); near-0.4–0.6% in 2026 amid external headwinds and aging. (&lt;a href="https://www.imf.org/external/datamapper/index.php?utm_source=chatgpt.com" title="World Economic Outlook (April 2025) - Real GDP growth">IMF&lt;/a>, &lt;a href="https://www.oecd.org/en/publications/2025/06/oecd-economic-outlook-volume-2025-issue-1_1fd979a8/full-report/japan_cc84dbee.html?utm_source=chatgpt.com" title="OECD Economic Outlook, Volume 2025 Issue 1: Japan">OECD&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.7&lt;/strong>&lt;/td>
&lt;td>High-income, diversified, innovative economy; medium-term growth tempered by demographics and external trade frictions.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 16.9/25 (67.6%)&lt;/strong>&lt;/p>
&lt;p>Japan represents a fascinating case study in resource scarcity overcome by technological innovation and strategic positioning. Despite limited natural resources, Japan has built one of the world&amp;rsquo;s most advanced and stable economies through human capital development and strategic alliances.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Innovation Over Resources&lt;/strong>: Japan demonstrates how technological advancement and human capital can overcome natural resource limitations&lt;/li>
&lt;li>&lt;strong>Strategic Alliances&lt;/strong>: Strong partnerships with the U.S. and regional cooperation provide security and economic benefits&lt;/li>
&lt;li>&lt;strong>Quality Over Quantity&lt;/strong>: Focus on high-value manufacturing and services rather than resource extraction&lt;/li>
&lt;li>&lt;strong>Demographic Challenges&lt;/strong>: Aging population presents long-term economic and social challenges that require innovative solutions&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/japan">World Bank Japan Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/japan/">CIA World Factbook - Japan&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.jetro.go.jp/">Japan External Trade Organization&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another East Asia &amp;amp; Pacific country, according to the table it will be Indonesia.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - Australia</title><link>https://h3sun.github.io/post/2025-08-25-one-country-a-day-australia/</link><pubDate>Mon, 25 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-25-one-country-a-day-australia/</guid><description>&lt;h2 id="-australia---day-1-of-one-country-a-day-project">🇦🇺 Australia - Day 1 of One Country a Day Project&lt;/h2>
&lt;p>Today I continue my systematic country study journey with Australia - the world&amp;rsquo;s sixth-largest country by land area and a major player in the Asia-Pacific region. Using the 5-dimension framework, I&amp;rsquo;ll analyze Australia&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 26.4 million (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $1.7 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $64,408 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 7.7 million km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Canberra&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Sydney, Melbourne, Brisbane, Perth, Adelaide&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: BHP Group, Rio Tinto, Commonwealth Bank, Westpac, ANZ Bank, Telstra, Woolworths Group&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key takeaways &amp;amp; data&lt;/th>
&lt;th>Score (0–5)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Natural resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Very strong in minerals/energy.&lt;/strong> Iron ore remains the #1 export (about &lt;strong>20.9%&lt;/strong> of total exports in 2023–24) and export earnings are projected around &lt;strong>A$116B in 2024–25&lt;/strong> before easing as prices normalize. (&lt;a href="https://www.dfat.gov.au/sites/default/files/australias-goods-services-by-top-25-exports-2023-24.pdf" title="Australia's goods and services by top 25 exports 2023-24">DFAT&lt;/a>, &lt;a href="https://www.industry.gov.au/news/australias-resources-and-energy-exports-set-soften-amid-trade-uncertainties" title="Australia's resources and energy exports set to soften amid ...">Industry.gov.au&lt;/a>) Australia is also a top global &lt;strong>lithium&lt;/strong> producer with large reserves (USGS 2024/2025). (&lt;a href="https://pubs.usgs.gov/periodicals/mcs2024/mcs2024-lithium.pdf" title="Mineral Commodity Summaries 2024 (Lithium) - USGS.gov">U.S. Geological Survey Publications&lt;/a>) Constraints: &lt;strong>arable land is low (~4.1% of land area, 2022)&lt;/strong>, and water availability is uneven. (&lt;a href="https://tradingeconomics.com/australia/arable-land-percent-of-land-area-wb-data.html" title="Australia - Arable Land (% Of Land Area) - 2025 Data 2026 ...">Trading Economics&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.5&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Climate &amp;amp; livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>City livability is world-class:&lt;/strong> EIU 2025 places &lt;strong>Melbourne #4, Sydney #6, Adelaide #9&lt;/strong>. (&lt;a href="https://www.economistgroup.com/press-centre/economist-intelligence/eiu-global-liveability-index-2025-copenhagen-replaces-vienna-as-worlds-most" title="EIU Global Liveability Index 2025 Copenhagen replaces ...">The Economist Group&lt;/a>) &lt;strong>Climate risk is rising:&lt;/strong> Australia has &lt;strong>warmed ~1.51 °C since 1910&lt;/strong> with longer fire seasons and rising seas (BoM/CSIRO &lt;em>State of the Climate 2024&lt;/em>). (&lt;a href="https://www.bom.gov.au/state-of-the-climate/" title="State of the Climate 2024">bom.gov.au&lt;/a>, &lt;a href="https://www.csiro.au/en/research/environmental-impacts/climate-change/state-of-the-climate" title="State of the Climate">CSIRO&lt;/a>) &lt;strong>Adaptive capacity is high:&lt;/strong> ND-GAIN ranks Australia &lt;strong>#10&lt;/strong> overall, &lt;strong>#168 (least vulnerable)&lt;/strong> and &lt;strong>#9 (most ready)&lt;/strong>. (&lt;a href="https://gain-new.crc.nd.edu/country/australia" title="Australia | ND-GAIN Index">gain-new.crc.nd.edu&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Terrain &amp;amp; defense (geo-defense)&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Natural moat:&lt;/strong> an island continent with &lt;strong>0 km land borders&lt;/strong>, aiding border security and defense depth. (&lt;a href="https://www.cia.gov/the-world-factbook/about/archives/2023/countries/australia/" title="Australia - The World Factbook">CIA&lt;/a>) &lt;strong>Challenges:&lt;/strong> very long coastline and reliance on &lt;strong>sea lines of communication&lt;/strong>; Indonesian archipelagic straits are identified as vulnerable choke points for trade. (&lt;a href="https://www.aspistrategist.org.au/war-risks-to-australian-maritime-trade/" title="War risks to Australian maritime trade | The Strategist">The Strategist&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.0&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Geopolitics&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Alliances &amp;amp; partnerships:&lt;/strong> Long-standing &lt;strong>ANZUS&lt;/strong> alliance (1951) and &lt;strong>AUKUS&lt;/strong> (submarine &amp;amp; advanced tech cooperation); also active in the &lt;strong>Quad&lt;/strong>. (&lt;a href="https://www.aph.gov.au/About_Parliament/Parliamentary_departments/Parliamentary_Library/Research/Briefing_Book/47th_Parliament/AustraliaSecurityRelationships" title="Australia's security relationships">Australian Parliament House&lt;/a>, &lt;a href="https://www.minister.defence.gov.au/statements/2024-04-09/aukus-defence-ministers-joint-statement" title="AUKUS Defence Ministers' Joint Statement">Defence Ministers&lt;/a>, &lt;a href="https://www.dfat.gov.au/international-relations/regional-architecture/quad" title="The Quad | Australian Government ...">DFAT&lt;/a>) &lt;strong>Economic ties:&lt;/strong> &lt;strong>China remains the largest two-way trading partner&lt;/strong> (about &lt;strong>25.7%&lt;/strong> of trade in 2023–24), alongside the US, Japan, and Korea—creating both opportunity and concentration-risk. (&lt;a href="https://www.dfat.gov.au/sites/default/files/australias-goods-services-by-top-15-partners-2023-24.pdf" title="Australia's goods and services by top 15 partners 2023-24">DFAT&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.2&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Economy &amp;amp; development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Scale &amp;amp; income:&lt;/strong> 2024 GDP &lt;strong>~US$1.75T&lt;/strong>; GDP per capita &lt;strong>~US$64,408&lt;/strong> (World Bank). (&lt;a href="https://data.worldbank.org/country/australia" title="Australia | Data">World Bank Open Data&lt;/a>) &lt;strong>Momentum:&lt;/strong> recent growth has been soft (Q1 2025 &lt;strong>+0.2% q/q&lt;/strong>, &lt;strong>+1.3% y/y&lt;/strong>; ABS). (&lt;a href="https://www.abs.gov.au/media-centre/media-releases/australian-economy-grew-02-cent-march-quarter" title="Australian economy grew 0.2 per cent in March quarter">Australian Bureau of Statistics&lt;/a>) Export mix still resource-heavy (iron ore, coal, LNG, gold), with services (education, tourism) rebounding. (&lt;a href="https://www.dfat.gov.au/sites/default/files/australias-goods-services-by-top-25-exports-2023-24.pdf" title="Australia's goods and services by top 25 exports 2023-24">DFAT&lt;/a>)&lt;/td>
&lt;td>&lt;strong>4.3&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 21.0/25 (84%)&lt;/strong>&lt;/p>
&lt;p>Australia represents an exceptional case study in resource wealth, strategic geography, and stable governance. The country&amp;rsquo;s unique position as an island continent with abundant natural resources makes it a global leader in several key areas.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Resource Superpower&lt;/strong>: Australia&amp;rsquo;s mineral wealth and energy resources make it a critical supplier to global markets&lt;/li>
&lt;li>&lt;strong>Strategic Isolation&lt;/strong>: Geographic isolation provides natural security advantages while maintaining global connectivity&lt;/li>
&lt;li>&lt;strong>Democratic Stability&lt;/strong>: Strong institutions and rule of law create a stable foundation for long-term development&lt;/li>
&lt;li>&lt;strong>Asia-Pacific Pivot&lt;/strong>: Strategic positioning makes Australia a key player in regional security and economic cooperation&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/australia">World Bank Australia Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/australia/">CIA World Factbook - Australia&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.dfat.gov.au/">Australian Government Department of Foreign Affairs and Trade&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another East Asia &amp;amp; Pacific country, according to the table it will be Japan.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day - China</title><link>https://h3sun.github.io/post/2025-08-24-one-country-a-day-china/</link><pubDate>Sun, 24 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-24-one-country-a-day-china/</guid><description>&lt;h2 id="-china---day-0-of-one-country-a-day-project">🇨🇳 China - Day 0 of One Country a Day Project&lt;/h2>
&lt;p>Today marks the beginning of my systematic country study journey, starting with China - the world&amp;rsquo;s most populous country and second-largest economy. Using the 5-dimension framework, I&amp;rsquo;ll analyze China&amp;rsquo;s position across natural resources, climate, geopolitics, governance, and economic development.&lt;/p>
&lt;h3 id="-quick-facts">📊 Quick Facts&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Population&lt;/strong>: 1.4 billion (2024)&lt;/li>
&lt;li>&lt;strong>GDP&lt;/strong>: $18.3 trillion (2024, PPP)&lt;/li>
&lt;li>&lt;strong>GDP per capita&lt;/strong>: $13,303 (2024, current US$)&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong>: 9.6 million km²&lt;/li>
&lt;li>&lt;strong>Capital&lt;/strong>: Beijing&lt;/li>
&lt;li>&lt;strong>Major Cities&lt;/strong>: Beijing, Shanghai, Guangzhou, Shenzhen, Hangzhou, Nanjing(my hometown)&lt;/li>
&lt;li>&lt;strong>Famous Companies&lt;/strong>: Alibaba Group, Tencent Holdings, Huawei Technologies, BYD Company, China Construction Bank, Industrial and Commercial Bank of China, PetroChina&lt;/li>
&lt;/ul>
&lt;h3 id="-5-dimension-analysis">🌍 5-Dimension Analysis&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Dimension&lt;/th>
&lt;th>Key datapoints (evidence)&lt;/th>
&lt;th style="text-align:right">Score (0–5)&lt;/th>
&lt;th>Why this score&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1) Natural Resources&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Land&lt;/strong>: Arable land ≈ &lt;strong>11.5%&lt;/strong> of total area (FAO/WB)&lt;br>&lt;strong>Water&lt;/strong>: Renewable freshwater ≈ &lt;strong>~2,000 m³ per person&lt;/strong> (WB)&lt;br>&lt;strong>Energy&lt;/strong>: Coal &lt;strong>~62%&lt;/strong> of consumption; largest oil importer &lt;strong>11.1 mb/d&lt;/strong>&lt;br>&lt;strong>Minerals&lt;/strong>: Processes &lt;strong>~90%&lt;/strong> of global rare earth elements (&lt;a href="https://tradingeconomics.com/china/arable-land-percent-of-land-area-wb-data.html?utm_source=chatgpt.com" title="Arable Land (% Of Land Area) - China - Trading Economics">Trading Economics&lt;/a>, &lt;a href="https://www.indexmundi.com/facts/china/indicator/ER.H2O.INTR.PC?utm_source=chatgpt.com" title="China - Renewable internal freshwater resources per ...">Index Mundi&lt;/a>, &lt;a href="https://www.eia.gov/international/content/analysis/countries_long/China/?utm_source=chatgpt.com" title="Table 1. China energy indicators, 2023">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://apnews.com/article/dbaaf84b6863e34975ec341cf3ac1d3a?utm_source=chatgpt.com" title="What to know about China's new regulations on rare earths">AP News&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td>Enormous mineral/energy base (coal, REE processing) boosts score, but limited arable land and per-capita water scarcity are real constraints.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2) Climate &amp;amp; Livability&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Adaptive Capacity&lt;/strong>: ND-GAIN score &lt;strong>58.1&lt;/strong> (rank 36)&lt;br>&lt;strong>Vulnerability&lt;/strong>: Low at &lt;strong>0.382&lt;/strong>&lt;br>&lt;strong>Readiness&lt;/strong>: Higher at &lt;strong>0.544&lt;/strong>&lt;br>&lt;strong>Risk Exposure&lt;/strong>: Very high exposure to floods/typhoons along coast (&lt;a href="https://gain-new.crc.nd.edu/country/china?utm_source=chatgpt.com" title="China | ND-GAIN Index">ND-GAIN Index&lt;/a>, &lt;a href="https://www.preventionweb.net/publication/world-risk-report-2023-focus-diversity?utm_source=chatgpt.com" title="World Risk Report 2023: Focus: Diversity">PreventionWeb&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>2.5&lt;/strong>&lt;/td>
&lt;td>Adaptive capacity is improving, but exposure to extreme weather keeps livability risks moderate.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3) Geo Composite&lt;/strong> &lt;em>(60% Geo_Defense + 40% Geopolitics)&lt;/em>&lt;/td>
&lt;td>&lt;strong>Geographic Defense&lt;/strong>: &lt;strong>14 land neighbors&lt;/strong> (tie for most worldwide)&lt;br>&lt;strong>Maritime Control&lt;/strong>: Energy flows depend on &lt;strong>Strait of Malacca&lt;/strong> chokepoint&lt;br>&lt;strong>Regional Integration&lt;/strong>: Member of &lt;strong>RCEP&lt;/strong> (2022) and &lt;strong>SCO&lt;/strong>&lt;br>&lt;strong>External Constraints&lt;/strong>: Faces &lt;strong>U.S. export controls&lt;/strong> on advanced chips (&lt;a href="https://en.wikipedia.org/wiki/Borders_of_China?utm_source=chatgpt.com" title="Borders of China">Wikipedia&lt;/a>, &lt;a href="https://www.eia.gov/todayinenergy/detail.php?id=32452&amp;amp;utm_source=chatgpt.com" title="The Strait of Malacca, a key oil trade chokepoint, links ...">U.S. Energy Information Administration&lt;/a>, &lt;a href="https://english.www.gov.cn/statecouncil/ministries/202111/04/content_WS61836e1ec6d0df57f98e4832.html?utm_source=chatgpt.com" title="RCEP to take effect on Jan 1, 2022">State Council of China&lt;/a>, &lt;a href="https://eng.sectsco.org/?utm_source=chatgpt.com" title="The Shanghai cooperation organisation">The Shanghai cooperation organisation&lt;/a>, &lt;a href="https://www.bis.gov/media/documents/2023.1.25-updated-faqs-oct-7-advanced-computing-semiconductor-manufacturing-equipment-rule.pdf?utm_source=chatgpt.com" title="Certain Advanced Computing and Semiconductor ...">Bureau of Industry and Security&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td>Strong strategic depth and continental buffers; major trade/multilateral leverage—but chokepoint exposure and tech-control headwinds cap the score.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4) Governance &amp;amp; Rule of Law&lt;/strong>&lt;/td>
&lt;td>&lt;strong>N/A&lt;/strong>&lt;/td>
&lt;td style="text-align:right">&lt;strong>N/A&lt;/strong>&lt;/td>
&lt;td>&lt;strong>N/A&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5) Economy &amp;amp; Development&lt;/strong>&lt;/td>
&lt;td>&lt;strong>Current Status&lt;/strong>: GDP per capita &lt;strong>$13,303&lt;/strong> (upper-middle income)&lt;br>&lt;strong>Growth Projections&lt;/strong>: IMF &lt;strong>~4.8%&lt;/strong> (2025); OECD &lt;strong>~4.7%&lt;/strong> (2025) → &lt;strong>4.3%&lt;/strong> (2026)&lt;br>&lt;strong>Economic Structure&lt;/strong>: Large, diversified manufacturing-services economy&lt;br>&lt;strong>Challenges&lt;/strong>: Property-sector drag and consumption rebalancing needs (&lt;a href="https://data.worldbank.org/indicator/NY.GDP.PCAP.CD?utm_source=chatgpt.com" title="GDP per capita (current US$)">World Bank Open Data&lt;/a>, &lt;a href="https://www.imf.org/en/Countries/CHN?utm_source=chatgpt.com" title="People's Republic of China and the IMF">IMF&lt;/a>, &lt;a href="https://www.oecd.org/en/publications/2025/06/oecd-economic-outlook-volume-2025-issue-1_1fd979a8/full-report/china_bb7827bc.html?utm_source=chatgpt.com" title="OECD Economic Outlook, Volume 2025 Issue 1: China">OECD&lt;/a>, &lt;a href="https://thedocs.worldbank.org/en/doc/8ae5ce818673952a85fee1ee57c3e933-0070012025/original/CEU-June-2025-EN.pdf?utm_source=chatgpt.com" title="China Economic Update (June 2025)">The World Bank Docs&lt;/a>)&lt;/td>
&lt;td style="text-align:right">&lt;strong>3.5&lt;/strong>&lt;/td>
&lt;td>Large, diversified manufacturing-services economy with decent medium-term growth, but below high-income and facing structural headwinds.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="-overall-assessment">🎯 Overall Assessment&lt;/h3>
&lt;p>&lt;strong>Combined Score: 13/20 (65%)&lt;/strong>&lt;/p>
&lt;p>China represents a fascinating case study in rapid development and strategic positioning. The country&amp;rsquo;s massive scale, resource wealth, and strategic geography make it a global power.&lt;/p>
&lt;h3 id="-key-insights">🔍 Key Insights&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Scale Matters&lt;/strong>: China&amp;rsquo;s sheer size and population create unique advantages in manufacturing, consumption, and geopolitical influence&lt;/li>
&lt;li>&lt;strong>Strategic Geography&lt;/strong>: Control of key maritime routes and natural barriers provides significant strategic advantages&lt;/li>
&lt;li>&lt;strong>Global Integration&lt;/strong>: Economic interdependence creates both opportunities and vulnerabilities in international relations&lt;/li>
&lt;/ol>
&lt;h3 id="-further-reading">📚 Further Reading&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.worldbank.org/en/country/china">World Bank China Overview&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.cia.gov/the-world-factbook/countries/china/">CIA World Factbook - China&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.beltroad-initiative.com/">China&amp;rsquo;s Belt and Road Initiative&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="-data-sources--references">🔗 Data Sources &amp;amp; References&lt;/h3>
&lt;h3 id="-tomorrows-country">🚀 Tomorrow&amp;rsquo;s Country&lt;/h3>
&lt;p>Tomorrow I&amp;rsquo;ll continue with another East Asia &amp;amp; Pacific country, according to the table it will be Australia.&lt;/p>
&lt;hr>
&lt;p>&lt;em>This analysis is part of my &amp;ldquo;One Country a Day&amp;rdquo; project, using data-driven approaches to understand global geography, economics, and geopolitics. Follow along as I explore the world, one country at a time.&lt;/em>&lt;/p></description></item><item><title>One Country a Day Project</title><link>https://h3sun.github.io/post/2025-08-23-one-country-a-day-project/</link><pubDate>Sat, 23 Aug 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-08-23-one-country-a-day-project/</guid><description>&lt;h2 id="-one-country-a-day-project">🌍 One Country a Day Project&lt;/h2>
&lt;p>I&amp;rsquo;ve decided to embark on an ambitious learning journey: studying one country every day. This project aims to expand my knowledge of world geography, economics, and cultures through systematic daily exploration.&lt;/p>
&lt;h3 id="-day-1-data-analysis-foundation">📊 Day 1: Data Analysis Foundation&lt;/h3>
&lt;p>For the first day, I conducted a comprehensive data analysis to identify the top 100 countries based on three key metrics:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>GDP (Gross Domestic Product)&lt;/strong> - Economic strength and development&lt;/li>
&lt;li>&lt;strong>Population&lt;/strong> - Human capital and market size&lt;/li>
&lt;li>&lt;strong>Surface Area&lt;/strong> - Geographic scale and natural resources&lt;/li>
&lt;/ul>
&lt;p>This analysis serves as the foundation for my daily country studies, helping me prioritize which countries to explore first and understand the global landscape.&lt;/p>
&lt;p>You can find the complete data analysis and methodology in my &lt;a href="https://github.com/h3sun/cursor-country-data-analysis">GitHub repository&lt;/a>, which includes the World Bank data processing, ranking algorithms, and combined scoring system.&lt;/p>
&lt;h3 id="-data-reference-country-combined-scores">📋 Data Reference: Country Combined Scores&lt;/h3>
&lt;p>The analysis produced a comprehensive &lt;a href="https://github.com/h3sun/cursor-country-data-analysis/blob/main/country_analysis_by_region_and_rank.csv">dataset&lt;/a> that includes:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Country Rankings&lt;/strong>: Individual rankings for population, GDP, surface area, and GDP per capita&lt;/li>
&lt;li>&lt;strong>Combined Scores&lt;/strong>: Overall performance metrics across all dimensions&lt;/li>
&lt;li>&lt;strong>Regional Classification&lt;/strong>: Countries grouped by geographic regions (East Asia &amp;amp; Pacific, Latin America &amp;amp; Caribbean, Sub-Saharan Africa, Europe &amp;amp; Central Asia, Middle East, North America, South Asia)&lt;/li>
&lt;li>&lt;strong>Time Period&lt;/strong>: Data from 2020-2024 with calculated averages&lt;/li>
&lt;/ul>
&lt;p>This dataset serves as the foundation for selecting which countries to study first, prioritizing nations with the highest combined scores across all metrics.&lt;/p>
&lt;h3 id="-regional-study-strategy">🌏 Regional Study Strategy&lt;/h3>
&lt;p>I&amp;rsquo;m planning to study the top 100 countries systematically, region by region, following this order:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>East Asia &amp;amp; Pacific&lt;/strong> - Starting with the dynamic economies of Asia&lt;/li>
&lt;li>&lt;strong>South Asia&lt;/strong> - Exploring the diverse cultures and emerging markets of the Indian subcontinent&lt;/li>
&lt;li>&lt;strong>Middle East&lt;/strong> - Exploring the strategic crossroads of three continents&lt;/li>
&lt;li>&lt;strong>Europe &amp;amp; Central Asia&lt;/strong> - Understanding the historical and economic powerhouses&lt;/li>
&lt;li>&lt;strong>Sub-Saharan Africa&lt;/strong> - Discovering the continent&amp;rsquo;s emerging markets and diverse cultures&lt;/li>
&lt;li>&lt;strong>North America&lt;/strong> - Analyzing the established economic giants&lt;/li>
&lt;li>&lt;strong>Latin America &amp;amp; Caribbean&lt;/strong> - Exploring the region&amp;rsquo;s natural resources and development&lt;/li>
&lt;/ol>
&lt;p>This regional approach will allow me to understand geographic patterns, cultural similarities, and economic relationships within each area before moving to the next region.&lt;/p>
&lt;h3 id="-5-dimensions-framework">📐 5 Dimensions Framework&lt;/h3>
&lt;p>For each country, I&amp;rsquo;ll analyze them across these 5 key dimensions using a 0-5 scoring system:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Natural Resources (0–5)&lt;/strong> – Energy/minerals, arable land, freshwater&lt;/li>
&lt;li>&lt;strong>Climate &amp;amp; Livability (0–5)&lt;/strong> – Long-term climate + disaster risk&lt;/li>
&lt;li>&lt;strong>Geo Composite (0–5)&lt;/strong> – 60% Geo_Defense (terrain, coast/landlocked, chokepoints, neighbor exposure) + 40% Geopolitics (alliances, sanctions/alignment risk, regional integration, external threats, strategic leverage)&lt;/li>
&lt;li>&lt;strong>Governance &amp;amp; Rule of Law (0–5)&lt;/strong> – Political rights, civil liberties, corruption&lt;/li>
&lt;li>&lt;strong>Economy &amp;amp; Development (0–5)&lt;/strong> – Income level, diversification, medium-term growth&lt;/li>
&lt;/ol>
&lt;h3 id="-project-goals">🎯 Project Goals&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Daily Learning&lt;/strong>: Dedicate time each day to study one country&lt;/li>
&lt;li>&lt;strong>Comprehensive Understanding&lt;/strong>: Cover geography, history, culture, economy, and current affairs&lt;/li>
&lt;li>&lt;strong>Data-Driven Approach&lt;/strong>: Use statistics and facts to guide learning priorities&lt;/li>
&lt;li>&lt;strong>Global Perspective&lt;/strong>: Develop a broader worldview through systematic exploration&lt;/li>
&lt;/ul>
&lt;h3 id="-next-steps">📈 Next Steps&lt;/h3>
&lt;p>With the top 100 countries identified, I&amp;rsquo;ll begin my daily deep-dive into each nation, starting with the most significant countries by the combined metrics. Each day will bring new insights and expand my understanding of our diverse world.&lt;/p>
&lt;p>Stay tuned for daily country profiles and insights from this learning journey!&lt;/p></description></item><item><title>作家和短视频创作者的类似与不同</title><link>https://h3sun.github.io/post/2025-05-19-writer-and-content-creator/</link><pubDate>Mon, 19 May 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-05-19-writer-and-content-creator/</guid><description>&lt;p>书和短视频很像，他们都填补了人空闲的时间。&lt;/p>
&lt;p>刷短视频之前是看视频，看视频之前是看电视，电视之前是听广播，广播之前是看书。总体趋势有以下几点：&lt;/p>
&lt;ul>
&lt;li>信息传播的 bit 越来越大，从文本，到音频，再到视频。&lt;/li>
&lt;li>创作的门槛越来越低，从作家发表书，到每个人只要有手机和互联网就能发表短视频。&lt;/li>
&lt;/ul>
&lt;p>最后可能就发展到 AI 生成视频，门槛更低了。&lt;/p>
&lt;p>每个人都能动笔写一些东西，但不是每个人写的东西都能被印成书发表。每个人都能创作视频，但不是每个人
创作的视频都能被算法推送到用户的 feed 里。&lt;/p>
&lt;p>下一步解决的问题可能不是从视频创作者角度来说，应该是从视频消费者角度来说。创作的门槛降低的同时，人自由的时间也随着科技的发展而变多。那么下一步来说随着创作门槛的降低，如果消费端的用户能投入的时间提高，那么不光光更多人就有发声的权利，而且更多人有时间听到其他人的发声。&lt;/p>
&lt;p>那么作为一个视频平台，如果生产力大大提高，人们有了更多的自由时间，绝对是一个好事。&lt;/p></description></item><item><title>D2L - Chapter 3.4 Linear Regression Implementation From Scratch</title><link>https://h3sun.github.io/post/2025-04-20-chapter-3-4-linear-regression-implementation-from-scratch/</link><pubDate>Sun, 20 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-20-chapter-3-4-linear-regression-implementation-from-scratch/</guid><description>&lt;h2 id="34-linear-regression-implementation-from-scratch">3.4 Linear Regression Implementation From Scratch&lt;/h2>
&lt;p>We are now realy to implement the entire method from scratch, including&lt;/p>
&lt;ol>
&lt;li>model&lt;/li>
&lt;li>loss function&lt;/li>
&lt;li>a minibatch stochastic gradient descent optimizer&lt;/li>
&lt;li>training function that stitches all these pieces together&lt;/li>
&lt;/ol>
&lt;h3 id="341-defining-the-model">3.4.1 Defining the Model&lt;/h3>
&lt;p>Initialize weights and bias.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">LinearRegressionScratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">module&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">num_inputs&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">int&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">lr&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">float&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">sigma&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">float&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mf">0.01&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">setup&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">w&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">param&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;w&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">nn&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">initializers&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">normal&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sigma&lt;/span>&lt;span class="p">),&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_inputs&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">param&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;b&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">nn&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">initializers&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">zeros&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Define our model, relating its input and parameters to its output&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegressionScratch&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">forward&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">matmul&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">w&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="342-defining-the-loss-funciton">3.4.2 Defining the Loss Funciton&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegressionScratch&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">y_hat&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply_fn&lt;/span>&lt;span class="p">({&lt;/span>&lt;span class="s1">&amp;#39;params&amp;#34;: params}, *X) # X unpacked from a tuple&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">l&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">y_hat&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">y_hat&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>&lt;span class="p">))&lt;/span> &lt;span class="o">**&lt;/span> &lt;span class="mi">2&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="mi">2&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">mean&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="343-defining-the-optimization-algorithm">3.4.3 Defining the Optimization Algorithm&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">SGD&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">lr&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">init&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">del&lt;/span> &lt;span class="n">params&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">EmptyState&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">update&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">updates&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">del&lt;/span> &lt;span class="n">params&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># When state.apply_gradients method is called to update flax&amp;#39;s train_state object, it internally calls&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">updates&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">tree_util&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">tree_map&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">lambda&lt;/span> &lt;span class="n">g&lt;/span> &lt;span class="p">:&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">lr&lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="n">g&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">updates&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">updates&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__call__&lt;/span>&lt;span class="p">():&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">GradientTransformation&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">init&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">update&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegressionScratch&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">configure_optimizers&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">SGD&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">lr&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="344-training">3.4.4 Training&lt;/h3>
&lt;ul>
&lt;li>Initialize parameters &lt;strong>(𝑤, 𝑏)&lt;/strong>&lt;/li>
&lt;li>Repeat until done:
&lt;ul>
&lt;li>Compute gradient &lt;strong>𝐠&lt;/strong> ← ∂&lt;sub>(𝑤,𝑏)&lt;/sub> (1 / |𝔅|) ∑&lt;sub>𝑖∈𝔅&lt;/sub> 𝑙(𝐱&lt;sup>(𝑖)&lt;/sup>, 𝑦&lt;sup>(𝑖)&lt;/sup>, &lt;strong>𝑤&lt;/strong>, &lt;strong>𝑏&lt;/strong>)&lt;/li>
&lt;li>Update parameters (&lt;strong>𝑤&lt;/strong>, &lt;strong>𝑏&lt;/strong>) ← (&lt;strong>𝑤&lt;/strong>, &lt;strong>𝑏&lt;/strong>) − η &lt;strong>𝐠&lt;/strong>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Trainer&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">prepare_batch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">batch&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Trainer&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">fit_epoch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">training&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="kc">True&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">batch_stats&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Mutable states will be used later (e.g. for batch norm)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">batch&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">(&lt;/span>&lt;span class="n">_&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">mutated_vars&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">grads&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">training_step&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">prepare_batch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">batch&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply_gradients&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">grads&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">grads&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># can be ignored for models without dropout layers&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">replace&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dropout_rng&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">split&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">dropout_rng&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">]))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">replace&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">batch_stats&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">mutated_vars&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;batch_stats&amp;#39;&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_batch_idx&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">batch&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">_&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">grads&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">training_step&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">prepare_batch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">batch&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply_gradients&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">grads&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">grads&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Can be ignored for models without dropout layers&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">replace&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dropout_rng&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">split&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">dropot_rng&lt;/span>&lt;span class="p">)[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_batch_idx&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span> &lt;span class="ow">is&lt;/span> &lt;span class="kc">None&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">training&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="kc">False&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">batch&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">validation_step&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">prepare_batch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">batch&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_batch_idx&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Testing with SyntheticRegressionData classs&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">LinearRegressionScratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">lr&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">0.03&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">data&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">SyntheticRegressionData&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">w&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="mf">3.4&lt;/span>&lt;span class="p">]),&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">4.2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">trainer&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Trainer&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">max_epochs&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">fit&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">params&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">params&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="sa">f&lt;/span>&lt;span class="s2">&amp;#34;error in estimating w: &lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">w&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;w&amp;#39;&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">w&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="sa">f&lt;/span>&lt;span class="s2">&amp;#34;error in estimating b: &lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;b&amp;#39;&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">error&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">estimating&lt;/span> &lt;span class="n">w&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span> &lt;span class="mf">0.07147813&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="mf">0.19255161&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">error&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">estimating&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mf">0.24309802&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="345-summary">3.4.5 Summary&lt;/h3>
&lt;p>We implemented the following:&lt;/p>
&lt;ol>
&lt;li>dataloader&lt;/li>
&lt;li>model&lt;/li>
&lt;li>loss function&lt;/li>
&lt;li>optimization procedure&lt;/li>
&lt;/ol></description></item><item><title>D2L - Chapter 3.5 Concise Implementation of Linear Regression</title><link>https://h3sun.github.io/post/2025-04-20-chapter-3-5-concise-implementation-of-linear-regression/</link><pubDate>Sun, 20 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-20-chapter-3-5-concise-implementation-of-linear-regression/</guid><description>&lt;h2 id="35-concise-implementation-of-linear-regression">3.5 Concise Implementation of Linear Regression&lt;/h2>
&lt;h3 id="351-defining-the-model">3.5.1 Defining the Model&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">LinearRegression&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Module&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">lr&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">float&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">setup&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">net&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">nn&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Dense&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">kernel_init&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">nn&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">initializers&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">normal&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mf">0.01&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegression&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">forward&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">net&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="352-defining-the-loss-function">3.5.2 Defining the Loss Function&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegression&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">y_hat&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply_fn&lt;/span>&lt;span class="p">({&lt;/span>&lt;span class="s1">&amp;#39;params&amp;#39;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">},&lt;/span> &lt;span class="o">*&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">l2_loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">y_hat&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">mean&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="353-defining-the-optimization-algorithm">3.5.3 Defining the Optimization Algorithm&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">LinearRegression&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">configure_optimizers&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sgd&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">lr&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="354-training">3.5.4 Training&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">model = LinearRegression(lr=0.03)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">data = d2l.SyntheticRegressionData(w=jnp.array([2, -3.4]), b=4.2)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">trainer = d2l.Trainer(max_epochs=3)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">trainer.fit(model, data)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">@d2l.add_to_class(LinearRegression) #@save
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">def get_w_b(self, state):
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> net = state.params[&amp;#39;net&amp;#39;]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> return net[&amp;#39;kernel&amp;#39;], net[&amp;#39;bias&amp;#39;]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">w, b = model.get_w_b(trainer.state)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>D2L - Chapter 3.6 Generalization</title><link>https://h3sun.github.io/post/2025-04-20-chapter-3-6-generalization/</link><pubDate>Sun, 20 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-20-chapter-3-6-generalization/</guid><description>&lt;h2 id="36-generalization">3.6 Generalization&lt;/h2>
&lt;ol>
&lt;li>Exploring both what is known about the principles underlying generalization in various models&lt;/li>
&lt;li>Also heuristic techniques that have been found (empirically) to yield improved generalization on tasks of practical interest.&lt;/li>
&lt;/ol>
&lt;h3 id="361-training-error-and-generalization-error">3.6.1 Training Error and Generalization Error&lt;/h3>
&lt;h4 id="3611-model-complexity">3.6.1.1 Model Complexity&lt;/h4>
&lt;h3 id="362-underfitting-or-overfitting">3.6.2 Underfitting or Overfitting&lt;/h3>
&lt;ol>
&lt;li>Underfitting, both error high&lt;/li>
&lt;li>Overfitting, training error low, validation error high&lt;/li>
&lt;/ol>
&lt;h4 id="3621-polynomial-curve-fitting">3.6.2.1 Polynomial Curve Fitting&lt;/h4>
&lt;h4 id="3622-dataset-size">3.6.2.2 Dataset Size&lt;/h4>
&lt;h3 id="363-model-selection">3.6.3 Model Selection&lt;/h3>
&lt;h4 id="3631-cross-validation">3.6.3.1 Cross-validation&lt;/h4>
&lt;ol>
&lt;li>split into k&lt;/li>
&lt;li>train on k - 1, validate on the remaining&lt;/li>
&lt;li>average among all the errors&lt;/li>
&lt;/ol>
&lt;h3 id="364-summary">3.6.4 Summary&lt;/h3></description></item><item><title>D2L - Chapter 3.7 Weight Decay</title><link>https://h3sun.github.io/post/2025-04-20-chapter-3-7-weight-decay/</link><pubDate>Sun, 20 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-20-chapter-3-7-weight-decay/</guid><description>&lt;h2 id="37-weight-decay">3.7 Weight Decay&lt;/h2>
&lt;h3 id="371-norms-and-weight-decay">3.7.1 Norms and Weight Decay&lt;/h3>
&lt;p>The total loss with weight decay is:&lt;/p>
$$
\mathcal{L}_{\text{total}} = \mathcal{L}_{\text{original}} + \lambda \|\mathbf{w}\|^2
$$
&lt;p>Where:&lt;/p>
&lt;ul>
&lt;li>\( \mathcal{L}\_{\text{original}} \) is the original loss (e.g., cross-entropy)&lt;/li>
&lt;li>\( \lambda \) is the weight decay coefficient&lt;/li>
&lt;li>\( \|\mathbf{w}\|^2 \) is the squared L2 norm of the weights&lt;/li>
&lt;/ul>
&lt;p>The weight update rule with weight decay for linear regression is:&lt;/p>
$$
\mathbf{w} \leftarrow (1 - \eta \lambda)\mathbf{w} - \frac{\eta}{|\mathcal{B}|} \sum_{i \in \mathcal{B}} \mathbf{x}^{(i)} \left( \mathbf{w}^\top \mathbf{x}^{(i)} + b - y^{(i)} \right)
$$
&lt;h3 id="372-high-dimensional-linear-regression">3.7.2 High-Dimensional Linear Regression&lt;/h3>
&lt;h3 id="373-implementation-from-scratch">3.7.3 Implementation From Scratch&lt;/h3>
&lt;h4 id="3731-defining-norm-penalty">3.7.3.1. Defining Norm Penalty&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">l2_penalty&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">w&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">w&lt;/span> &lt;span class="o">**&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sum&lt;/span>&lt;span class="p">()&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="mi">2&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="3732-defining-the-model">3.7.3.2. Defining the Model&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">WeightDecayScratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">LinearRegressionScratch&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">lambd&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">int&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nb">super&lt;/span>&lt;span class="p">()&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">lambd&lt;/span> &lt;span class="o">*&lt;/span> &lt;span class="n">l2_penalty&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;w&amp;#39;&lt;/span>&lt;span class="p">]))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">data&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">Data&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">20&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">num_val&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">100&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">num_inputs&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">200&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch_size&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">5&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">trainer&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Trainer&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">max_epochs&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">10&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">train_scratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">lambd&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">WeightDecayScratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">num_inputs&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">200&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">lambd&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">lambd&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">lr&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">0.01&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">yscale&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;log&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">fit&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;L2 norm of w:&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">float&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">l2_penalty&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;w&amp;#39;&lt;/span>&lt;span class="p">])))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="3733-training-without-regularization">3.7.3.3 Training without Regularization&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">train_scratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">train_scratch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="374-concise-implementation">3.7.4. Concise Implementation&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">WeightDecay&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">LinearRegression&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">wd&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">int&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">configure_optimizers&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Weight Decay is not available directly within optax.sgd, but&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># optax allows chaining several transformations together&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">chain&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">additive_weight_decay&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">wd&lt;/span>&lt;span class="p">),&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">optax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sgd&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">lr&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">WeightDecay&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">wd&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">lr&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">0.01&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">yscale&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;log&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">fit&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;L2 norm of w:&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nb">float&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">l2_penalty&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_w_b&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span>&lt;span class="p">)[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">])))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="375-summary">3.7.5. Summary&lt;/h3></description></item><item><title>D2L - Chapter 3.1 Linear Regression</title><link>https://h3sun.github.io/post/2025-04-19-chapter-3-1-linear-regression/</link><pubDate>Sat, 19 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-19-chapter-3-1-linear-regression/</guid><description>&lt;h2 id="31-linear-regression">3.1 Linear Regression&lt;/h2>
&lt;h3 id="311-basics">3.1.1 Basics&lt;/h3>
&lt;h4 id="3111-model">3.1.1.1 Model&lt;/h4>
&lt;ol>
&lt;li>y = wx + b&lt;/li>
&lt;li>search for the best w and b&lt;/li>
&lt;li>measure of the quality of some given model (todo - 1)&lt;/li>
&lt;li>a procedure for updating the model to improve its quality (todo - 2)&lt;/li>
&lt;/ol>
&lt;h4 id="3112-loss-function">3.1.1.2 Loss Function&lt;/h4>
$$
L(\mathbf{w}, b)
= \frac{1}{n} \sum_{i=1}^{n} l^{(i)}(\mathbf{w}, b)
= \frac{1}{n} \sum_{i=1}^{n} \frac{1}{2}\!\left(\mathbf{w}^\top \mathbf{x}^{(i)} + b - y^{(i)}\right)^{2}. \tag{3.1.6}
$$
&lt;h4 id="3113-analytic-solution">3.1.1.3 Analytic Solution&lt;/h4>
$$
\partial_{\mathbf{w}} \| \mathbf{y} - \mathbf{Xw} \|^2 = 2 \mathbf{X}^\top (\mathbf{Xw} - \mathbf{y}) = 0
\quad \text{and hence} \quad
\mathbf{X}^\top \mathbf{y} = \mathbf{X}^\top \mathbf{Xw}. \tag{3.1.8}
$$
&lt;p>Solving for $\mathbf{w}$ provides us with the optimal solution for the optimization problem. Note that this solution&lt;/p>
$$
\mathbf{w}^* = (\mathbf{X}^\top \mathbf{X})^{-1} \mathbf{X}^\top \mathbf{y} \tag{3.1.9}
$$
&lt;h4 id="3114-minibatch-stochastic-gradient-descent">3.1.1.4 Minibatch Stochastic Gradient Descent&lt;/h4>
&lt;ol>
&lt;li>Gradient Descent&lt;/li>
&lt;li>Stochastic Gradient Descent (SGD)&lt;/li>
&lt;li>MiniBatch SGD
$$
\mathbf{w} \leftarrow \mathbf{w} - \frac{\eta}{|\mathcal{B}|} \sum_{i \in \mathcal{B}_t} \partial_{\mathbf{w}} l^{(i)}(\mathbf{w}, b)
= \mathbf{w} - \frac{\eta}{|\mathcal{B}|} \sum_{i \in \mathcal{B}_t} \mathbf{x}^{(i)} \left( \mathbf{w}^\top \mathbf{x}^{(i)} + b - y^{(i)} \right)
\tag{3.1.11}
$$&lt;/li>
&lt;/ol>
$$
b \leftarrow b - \frac{\eta}{|\mathcal{B}|} \sum_{i \in \mathcal{B}_t} \partial_b l^{(i)}(\mathbf{w}, b)
= b - \frac{\eta}{|\mathcal{B}|} \sum_{i \in \mathcal{B}_t} \left( \mathbf{w}^\top \mathbf{x}^{(i)} + b - y^{(i)} \right).
$$
&lt;h4 id="3115-predictions">3.1.1.5 Predictions&lt;/h4>
&lt;p>Plug w and b to predict y&lt;/p>
&lt;h3 id="312-vectorization-for-speed">3.1.2 vectorization for Speed&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jax&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">tensorflow&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">10000&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ones&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">b&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ones&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># JAX arrays are immutable, meaning that once created their contents&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># cannot be changed. For updating individual elements, JAX provides&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># an indexed update syntax that returns an updated copy&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">c&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">zeros&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">t&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">time&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">c&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">c&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">set&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sa">f&lt;/span>&lt;span class="s1">&amp;#39;&lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="p">()&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">t&lt;/span>&lt;span class="si">:&lt;/span>&lt;span class="s1">.5f&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s1"> sec&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">/*&lt;/span> &lt;span class="mi">22&lt;/span>&lt;span class="n">s&lt;/span> &lt;span class="o">*/&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">t&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">time&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">d&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">a&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">b&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sa">f&lt;/span>&lt;span class="s1">&amp;#39;&lt;/span>&lt;span class="si">{&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">time&lt;/span>&lt;span class="p">()&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">t&lt;/span>&lt;span class="si">:&lt;/span>&lt;span class="s1">.5f&lt;/span>&lt;span class="si">}&lt;/span>&lt;span class="s1"> sec&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="o">/*&lt;/span> &lt;span class="mf">0.017&lt;/span>&lt;span class="n">s&lt;/span> &lt;span class="o">*/&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="313-the-normal-distribution-and-squared-loss">3.1.3 The Normal Distribution and Squared Loss&lt;/h3>
&lt;h3 id="314-linear-regression-as-a-neural-network">3.1.4 Linear Regression as a Neural Network&lt;/h3>
&lt;h4 id="3141-biology">3.1.4.1 Biology&lt;/h4>
&lt;h3 id="315-summary">3.1.5 Summary&lt;/h3>
&lt;p>introduced/reviewed linear regression, the cornerstone of deep learning.&lt;/p></description></item><item><title>D2L - Chapter 3.2 Object-Oriented Design for Implementation</title><link>https://h3sun.github.io/post/2025-04-19-chapter-3-2-ood/</link><pubDate>Sat, 19 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-19-chapter-3-2-ood/</guid><description>&lt;h2 id="32-object-oriented-design-for-implementation">3.2 Object-Oriented Design for Implementation&lt;/h2>
&lt;ol>
&lt;li>Module contains models, losses, and optimization methods&lt;/li>
&lt;li>DataModule provides data loaders for training and validation&lt;/li>
&lt;li>Both classes are combined using Trainer class which allows us to train models on a variety of hardware platforms.&lt;/li>
&lt;/ol>
&lt;p>Most code in this book adapts Module and DataModule. We will touch upon the Trainer class only when we discuss GPUs, CPUs, parallel training, and optimization algorithms.&lt;/p>
&lt;h3 id="321-utilities">3.2.1 Utilities&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">Class&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;Register functions as methods in created class.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">wrapper&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">obj&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">setattr&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">Class&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">obj&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="vm">__name__&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">obj&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">wrapper&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">A&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">A&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">A&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">do&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;Class attribute &amp;#34;b&amp;#34; is&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">do&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Class attribute &amp;#34;b&amp;#34; is 1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">HyperParameters&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;The base class of hyperparameters.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">save_hyperparameters&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">ignore&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">[]):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="bp">NotImplemented&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Call the fully implemented HyperParameters class saved in d2l&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">B&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">a&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">c&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">ignore&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;c&amp;#39;&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;self.a =&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;self.b =&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">b&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;There is no self.c =&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="ow">not&lt;/span> &lt;span class="nb">hasattr&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;c&amp;#39;&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">b&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">B&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">c&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">ProgressBoard&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;The board that plots data points in animation.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">xlabel&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">ylabel&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">xlim&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">ylim&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">xscale&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;linear&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">yscale&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;linear&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">ls&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;-&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;--&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;-.&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;:&amp;#39;&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">colors&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;C0&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;C1&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;C2&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;C3&amp;#39;&lt;/span>&lt;span class="p">],&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">fig&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">axes&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">figsize&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mf">3.5&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mf">2.5&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">display&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">True&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">draw&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">label&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">every_n&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="bp">NotImplemented&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">board&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ProgressBoard&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;x&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">for&lt;/span> &lt;span class="n">x&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">np&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">10&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mf">0.1&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">draw&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">np&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sin&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="s1">&amp;#39;sin&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">every_n&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">draw&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">np&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">cos&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="s1">&amp;#39;cos&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">every_n&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">10&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="322-models">3.2.2 Models&lt;/h3>
&lt;p>The Module class is the base class of all models that we will implement. At the very least we need three models. The first, &lt;strong>init&lt;/strong> stores the learnable parameters, the &lt;strong>training_step&lt;/strong> method accepts a data batch to return the loss value, and finally, &lt;strong>configure_optimizers&lt;/strong> returns the optimization method, or a list of them, that is used to update the learnable parameters. Optionally, we can define &lt;strong>validation_steps&lt;/strong> to report the evaluation measures. Sometimes we put the code for computing the output into a separate of &lt;strong>forward&lt;/strong> method to make it more resubale.&lt;/p>
&lt;p>With the introduce of dataclasses in Python3.7, classes decorated with @dataclass automatically add magic methods such as &lt;strong>init&lt;/strong> and &lt;strong>repr&lt;/strong>. The member variables are defined using type annotations. All Flax modules are Python 3.7 dataclasses.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Module&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nn&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Module&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;The base class of models&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># No need for save_hyperparam when using Python dataclass.&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">plot_train_per_epoch&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">int&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">field&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">default&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">init&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">False&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">plot_valid_per_epoch&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="nb">int&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">field&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">default&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">init&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">False&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Use default_factory to make sure new plots are generated on each run.&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">board&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">ProgressBoard&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">field&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">default_factory&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="k">lambda&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">ProgressBoard&lt;/span>&lt;span class="p">(),&lt;/span> &lt;span class="n">init&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">False&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y_hat&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="ne">NotImplementedError&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># JAX &amp;amp; Flax do not have a forward-method-like syntax. Flax uses setup&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># and built-in __call__ magic methods for forward pass. Adding here&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># for consistency&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">forward&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">*&lt;/span>&lt;span class="n">args&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">**&lt;/span>&lt;span class="n">kwargs&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">assert&lt;/span> &lt;span class="nb">hasattr&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;net&amp;#39;&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="s1">&amp;#39;Neural network is defined&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">net&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">*&lt;/span>&lt;span class="n">args&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">**&lt;/span>&lt;span class="n">kwargs&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">plot&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">key&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">value&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;Plot a point in animation.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">assert&lt;/span> &lt;span class="nb">hasattr&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;trainer&amp;#39;&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="s1">&amp;#39;Trainer is not inited&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">xlabel&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="s1">&amp;#39;epoch&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">x&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_batch_idx&lt;/span> &lt;span class="o">/&lt;/span> \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train_batches&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train_batches&lt;/span> &lt;span class="o">/&lt;/span> \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">plot_train_per_epoch&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">x&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">epoch&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_val_batches&lt;/span> &lt;span class="o">/&lt;/span> \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">plot_valid_per_epoch&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">draw&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">device_put&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">value&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">cpu&lt;/span>&lt;span class="p">()),&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;train_&amp;#39;&lt;/span> &lt;span class="k">if&lt;/span> &lt;span class="n">train&lt;/span> &lt;span class="k">else&lt;/span> &lt;span class="s1">&amp;#39;val_&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">key&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">every_n&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="nb">int&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">training_step&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">l&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">grads&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">value_and_grad&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">loss&lt;/span>&lt;span class="p">)(&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">[:&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">],&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">plot&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s2">&amp;#34;loss&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">l&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">True&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">l&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">grads&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">validation_step&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">l&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">loss&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">[:&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">batch&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">state&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">plot&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;loss&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">l&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">False&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">apply_init&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">dummy_input&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">key&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;To be defined later in :numref:`sec_lazy_init`&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="ne">NotImplementedError&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">configure_optimizers&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="ne">NotImplementedError&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="323-data">3.2.3 Data&lt;/h3>
&lt;p>The Datamodule class is the base class for data. Quite frequently the &lt;strong>init&lt;/strong> method is used to prepare the data.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">DataModule&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;The base class of data.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">root&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="s1">&amp;#39;../data&amp;#39;&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">get_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="ne">NotImplementedError&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">train_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">True&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">val_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">False&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="324-training">3.2.4 Training&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Trainer&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">HyperParameters&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;The base class for training models with data.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">max_epochs&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">num_gpus&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">gradient_clip_val&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">assert&lt;/span> &lt;span class="n">num_gpus&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;No GPU support yet&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">prepare_data&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train_batches&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_val_batches&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_dataloader&lt;/span> &lt;span class="ow">is&lt;/span> &lt;span class="ow">not&lt;/span> &lt;span class="kc">None&lt;/span> &lt;span class="k">else&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">prepare_model&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">model&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">trainer&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="bp">self&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">board&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">xlim&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">max_epochs&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">model&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">model&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">fit&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">model&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">data&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">key&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">None&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">prepare_data&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">prepare_model&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">optim&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">configure_optimizers&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">key&lt;/span> &lt;span class="ow">is&lt;/span> &lt;span class="kc">None&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">root_key&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_key&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">root_key&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">key&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">params_key&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">dropout_key&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">split&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">root_key&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">key&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">{&lt;/span>&lt;span class="s1">&amp;#39;params&amp;#39;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">params_key&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;dropout&amp;#39;&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">dropout_key&lt;/span>&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dummy_input&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">next&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">iter&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_dataloader&lt;/span>&lt;span class="p">))[:&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">variables&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply_init&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dummy_input&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">key&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">key&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">params&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">variables&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;params&amp;#39;&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="s1">&amp;#39;batch_stats&amp;#39;&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">variables&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">keys&lt;/span>&lt;span class="p">():&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Here batch_stats will be used later (e.g., for batch norm)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_stats&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">variables&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="s1">&amp;#39;batch_stats&amp;#39;&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_stats&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">{}&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Flax uses optax under the hood for a single state obj TrainState.&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># More will be discussed later in the dropout and batch&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># normalization section&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">class&lt;/span> &lt;span class="nc">TrainState&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">train_state&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">TrainState&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_stats&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">Any&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dropout_rng&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">PRNGKeyArray&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">state&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">TrainState&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">create&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">apply_fn&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">apply&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">params&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">params&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_stats&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">batch_stats&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dropout_rng&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">dropout_key&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tx&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">model&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">configure_optimizers&lt;/span>&lt;span class="p">())&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">epoch&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">train_batch_idx&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">val_batch_idx&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">epoch&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">max_epochs&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">fit_epoch&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">fit_epoch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">raise&lt;/span> &lt;span class="ne">NotImplementedError&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="325-summary">3.2.5 Summary&lt;/h3>
&lt;p>This object-oriented design provides moduality.&lt;/p></description></item><item><title>D2L - Chapter 3.3 Synthetic Regression Data</title><link>https://h3sun.github.io/post/2025-04-19-chapter-3-3-synthetic-regression-data/</link><pubDate>Sat, 19 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-19-chapter-3-3-synthetic-regression-data/</guid><description>&lt;h2 id="33-synthetic-regression-data">3.3 Synthetic Regression Data&lt;/h2>
&lt;h3 id="331-generating-the-dataset">3.3.1 Generating the Dataset&lt;/h3>
&lt;p>generate the fake data&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">SyntheticRegressionData&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">DataModule&lt;/span>&lt;span class="p">):&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="s2">&amp;#34;&amp;#34;&amp;#34;Synthetic data for linear regression.&amp;#34;&amp;#34;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="fm">__init__&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">w&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">noise&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mf">0.01&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">num_train&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1000&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">num_val&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1000&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_size&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">32&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="nb">super&lt;/span>&lt;span class="p">()&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="fm">__init__&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">save_hyperparameters&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">num_train&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">num_val&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">key&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">PRNGKey&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">key1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">key2&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">split&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">key&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">X&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">normal&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">key1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">w&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">]))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">noise&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">normal&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">key2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span> &lt;span class="o">*&lt;/span> &lt;span class="n">noise&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">matmul&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">w&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">)))&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">b&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">noise&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="332-reading-the-dataset">3.3.2 Reading the Dataset&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">SyntheticRegressionData&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">get_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">indices&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">list&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># The examples are read in random order&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shuffle&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">indices&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">indices&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">list&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="o">+&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_val&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">indices&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">batch_size&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">batch_indices&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">indices&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">i&lt;/span>&lt;span class="o">+&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">batch_size&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">yield&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">batch_indices&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">y&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">batch_indices&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="333-concise-implementation-of-the-data-loader">3.3.3 Concise Implementation of the Data Loader&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">d2l&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">DataModule&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">get_tensorloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">tensors&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">indices&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="nb">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="kc">None&lt;/span>&lt;span class="p">)):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tensors&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">tuple&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">indices&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">a&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">tensors&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># Use Tensorflow Datasets &amp;amp; Dataloader. JAX or Flax do not provide&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="c1"># any dataloading functionality&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">shuffle_buffer&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">tensors&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="k">if&lt;/span> &lt;span class="n">train&lt;/span> &lt;span class="k">else&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">tfds&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">as_numpy&lt;/span>&lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">tf&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">data&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Dataset&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">from_tensor_slices&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">tensors&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shuffle&lt;/span>&lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">buffer_size&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">shuffle_buffer&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">batch&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">batch_size&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nd">@d2l.add_to_class&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">SyntheticRegressionData&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="c1">#@save&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">def&lt;/span> &lt;span class="nf">get_dataloader&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">i&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="k">if&lt;/span> &lt;span class="n">train&lt;/span> &lt;span class="k">else&lt;/span> &lt;span class="nb">slice&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">num_train&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="kc">None&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_tensorloader&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="bp">self&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">y&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">train&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">i&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="334-summary">3.3.4 Summary&lt;/h3></description></item><item><title>D2L - Chapter 2.6 Probablity and Statistics + 2.7 Documentation</title><link>https://h3sun.github.io/post/2025-04-12-chapter-2-6+7-probabilty-and-statistics+documentation/</link><pubDate>Sat, 12 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-12-chapter-2-6+7-probabilty-and-statistics+documentation/</guid><description>&lt;h2 id="probablity-and-statistics">Probablity and Statistics&lt;/h2>
&lt;h3 id="covariance-matrix-diagonal--off-diagonal-entries">Covariance Matrix, Diagonal &amp;amp; Off-Diagonal Entries&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Covariance Matrix&lt;/strong>&lt;br>
A covariance matrix \(\Sigma\) is a square matrix that shows the covariance between each pair of coordinates in a random vector. It is:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Symmetric&lt;/strong>&lt;/li>
&lt;li>&lt;strong>Positive semidefinite&lt;/strong>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Diagonal Entries&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Each diagonal entry \(\Sigma\_{ii}\) is the &lt;strong>variance&lt;/strong> of the \(i\)-th coordinate, denoted \(\mathrm{Var}(x_i)\).&lt;/li>
&lt;li>Variance measures how spread out the \(i\)-th coordinate is around its mean.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Off-Diagonal Entries&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Each off-diagonal entry \(\Sigma\_{ij}\) (with \(i \neq j\)) is the &lt;strong>covariance&lt;/strong> \(\mathrm{Cov}(x_i, x_j)\).&lt;/li>
&lt;li>Positive covariance means the two coordinates tend to vary in the same direction (above/below their means together), negative covariance indicates they move in opposite directions, and zero covariance indicates no linear co-movement.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Why Symmetric?&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>Because \(\mathrm{Cov}(x_i, x_j) = \mathrm{Cov}(x_j, x_i)\), the matrix \(\Sigma\) must be symmetric.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="documentation">Documentation&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">print&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">dir&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">help&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">numpy&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ones&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>D2L - Chapter 2.4 Calculus + 2.5 Automatic Differentiation</title><link>https://h3sun.github.io/post/2025-04-09-d2l-chapter-2-4+5-calculus+automatic-differentiation/</link><pubDate>Wed, 09 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-09-d2l-chapter-2-4+5-calculus+automatic-differentiation/</guid><description>&lt;h2 id="24-calculus">2.4 Calculus&lt;/h2>
&lt;h3 id="241-derivatives-and-differentiation">2.4.1 Derivatives and Differentiation&lt;/h3>
&lt;h3 id="242-visualization-utilities">2.4.2 Visualization Utilities&lt;/h3>
&lt;h3 id="243-partial-derivatives-and-gradients">2.4.3 Partial Derivatives and Gradients&lt;/h3>
&lt;p>When there is no ambiguity, ∇ₓf(&lt;strong>x&lt;/strong>) is typically replaced by ∇f(&lt;strong>x&lt;/strong>). The following rules come in handy for differentiating multivariate functions:&lt;/p>
&lt;ul>
&lt;li>For all &lt;strong>A&lt;/strong> ∈ ℝᵐˣⁿ we have ∇ₓ(&lt;strong>A&lt;/strong>x) = &lt;strong>A&lt;/strong>ᵀ and ∇ₓ(&lt;strong>x&lt;/strong>ᵀ&lt;strong>A&lt;/strong>) = &lt;strong>A&lt;/strong>.&lt;/li>
&lt;li>For square matrices &lt;strong>A&lt;/strong> ∈ ℝⁿˣⁿ we have that ∇ₓ(&lt;strong>x&lt;/strong>ᵀ&lt;strong>A&lt;/strong>x) = (&lt;strong>A&lt;/strong> + &lt;strong>A&lt;/strong>ᵀ)&lt;strong>x&lt;/strong> and in particular&lt;br>
∇ₓ‖&lt;strong>x&lt;/strong>‖² = ∇ₓ(&lt;strong>x&lt;/strong>ᵀ&lt;strong>x&lt;/strong>) = 2&lt;strong>x&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;h3 id="244-chain-rule">2.4.4 Chain Rule&lt;/h3>
&lt;h3 id="245-discussion">2.4.5 Discussion&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Automatic differentiation&lt;/strong> allows us to compute gradients systematically using composition rules, freeing up cognitive effort for higher-level tasks.&lt;/li>
&lt;li>&lt;strong>Gradient computation&lt;/strong> for vector-valued functions involves matrix multiplication, following the chain of variable dependencies.&lt;/li>
&lt;li>&lt;strong>Dependency graphs&lt;/strong>:
&lt;ul>
&lt;li>Evaluated &lt;strong>forward&lt;/strong> to compute function outputs.&lt;/li>
&lt;li>Traversed &lt;strong>backward&lt;/strong> to compute gradients (backpropagation).&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Backpropagation&lt;/strong> is a computational application of the chain rule, introduced formally in later chapters.&lt;/li>
&lt;li>In &lt;strong>optimization&lt;/strong>, gradients indicate how to adjust model parameters to reduce the loss.&lt;/li>
&lt;li>Every step of an optimization algorithm relies on computing the gradient.&lt;/li>
&lt;/ul>
&lt;h2 id="25-automatic-differentiation">2.5 Automatic Differentiation&lt;/h2>
&lt;h3 id="251-a-simple-function">2.5.1 A simple function&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">jax&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">grad&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mf">4.0&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="k">lambda&lt;/span> &lt;span class="n">x&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="mi">2&lt;/span> &lt;span class="o">*&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">dot&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">y&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># The `grad` transform returns a Python function that&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># computes the gradient of the original function&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x_grad&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">grad&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">y&lt;/span>&lt;span class="p">)(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x_grad&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="252-backward-for-non-scalar-variables">2.5.2 Backward for Non-Scalar Variables&lt;/h3>
&lt;h3 id="253-detaching-computation">2.5.3 Detaching Computation&lt;/h3>
&lt;ul>
&lt;li>move some calculations outside the recorded computational graph&lt;/li>
&lt;/ul>
&lt;h3 id="254-gradients-and-python-control-flow">2.5.4. Gradients and Python Control Flow&lt;/h3>
&lt;h3 id="255-discussion">2.5.5 Discussion&lt;/h3>
&lt;p>For now, try to remember these basics:&lt;/p>
&lt;ul>
&lt;li>(i) attach gradients to those variables with respect to which we desire derivatives;&lt;/li>
&lt;li>(ii) record the computation of the target value;&lt;/li>
&lt;li>(iii) execute the backpropagation function;&lt;/li>
&lt;li>(iv) access the resulting gradient.&lt;/li>
&lt;/ul></description></item><item><title>D2L - Chapter 2.2 Data Preprocessing + 2.3 Linear Algebra</title><link>https://h3sun.github.io/post/2025-04-08-d2l-chapter-2-2+3-data-preprocessing+linear-algebra/</link><pubDate>Tue, 08 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-08-d2l-chapter-2-2+3-data-preprocessing+linear-algebra/</guid><description>&lt;h2 id="22-data-preprocessing">2.2 Data Preprocessing&lt;/h2>
&lt;h3 id="221-reading-the-dataset">2.2.1 Reading the Dataset&lt;/h3>
&lt;h3 id="222-data-preparation">2.2.2 Data Preparation&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">inputs&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">pd&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">get_dummies&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">inputs&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">dummy_na&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="kc">True&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">inputs&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">inputs&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">fillna&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">inputs&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">mean&lt;/span>&lt;span class="p">())&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="223-conversion-to-the-tensor-format">2.2.3 Conversion To the Tensor Format&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">jax&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">numpy&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="n">jnp&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">inputs&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">to_numpy&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dtype&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="nb">float&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">targets&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">to_numpy&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dtype&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="nb">float&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="23-linear-algebra">2.3 Linear Algebra&lt;/h2>
&lt;h3 id="231-scalars">2.3.1 Scalars&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">x = jnp.array(3.0)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">y = jnp.array(2.0)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="232-vectors">2.3.2 Vectors&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">x = jnp.arange(3)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">x
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">x[2]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">len(x)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">x.shape
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="233-matrices">2.3.3 Matrices&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">6&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">T&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([[&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">5&lt;/span>&lt;span class="p">]])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="n">A&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">T&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="234-tensors">2.3.4 Tensors&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">24&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="235-basic-properties-of-tensor-arithmetic">2.3.5 Basic Properties of Tensor Arithmetic&lt;/h3>
&lt;ol>
&lt;li>element-wise addition&lt;/li>
&lt;li>element-wise multiplication (Hadamard Product)&lt;/li>
&lt;li>element * scalar&lt;/li>
&lt;/ol>
&lt;h3 id="236-reduction">2.3.6 Reduction&lt;/h3>
&lt;p>By default, invoking the sum function reduces a tensor along all of its axes, eventually producing a scalar. Our libraries also allow us to [specify the axes along which the tensor should be reduced.] To sum over all elements along the rows (axis 0), we specify axis=0 in sum. Since the input matrix reduces along axis 0 to generate the output vector, this axis is missing from the shape of the output.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">A&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">A&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">axis&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">C&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">24&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">C&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">C&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">axis&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="237-non-reduction-sum">2.3.7 Non-Reduction Sum&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">print(A)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">sum_A = A.sum(axis=1, keepdims=True)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">sum_A, sum_A.shape
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">[[0. 1. 2.]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> [3. 4. 5.]]
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">(Array([[ 3.],
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> [12.]], dtype=float32),
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> (2, 1))
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">A.cumsum(axis=0)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="238-dot-products">2.3.8 Dot Products&lt;/h3>
&lt;p>weighted sum/ weighted average&amp;hellip;&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ones&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">dtype&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">float32&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">dot&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="239-matrix-vector-products">2.3.9 Matrix-Vector Products&lt;/h3>
&lt;h3 id="2310-matrix-matrix-products">2.3.10 Matrix-Matrix Products&lt;/h3>
&lt;p>n&lt;em>k X k&lt;/em>m
-&amp;gt; n * m dot products&lt;/p>
&lt;h3 id="2311-norms">2.3.11 Norms&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">u = jnp.array([3.0, -4.0])
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">jnp.linalg.norm(u)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">jnp.linalg.norm(u, ord=1) # same as jnp.abs(u).sum()
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">jnp.linalg.norm(jnp.ones((4, 9)))
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="2312-discussions">2.3.12 Discussions&lt;/h3>
&lt;ul>
&lt;li>Scalars, vectors, matrices, and tensors are the basic mathematical objects used in linear algebra and have zero, one, two, and an arbitrary number of axes, respectively.&lt;/li>
&lt;li>Tensors can be sliced or reduced along specified axes via indexing, or operations such as sum and mean, respectively.&lt;/li>
&lt;li>Elementwise products are called Hadamard products. By contrast, dot products, matrix–vector products, and matrix–matrix products are not elementwise operations and in general return objects having shapes that are different from the the operands.&lt;/li>
&lt;li>Compared to Hadamard products, matrix–matrix products take considerably longer to compute (cubic rather than quadratic time).&lt;/li>
&lt;li>Norms capture various notions of the magnitude of a vector (or matrix), and are commonly applied to the difference of two vectors to measure their distance apart.&lt;/li>
&lt;li>Common vector norms include the l1 and l2 norms, and common matrix norms include the spectral and Frobenius norms.&lt;/li>
&lt;/ul></description></item><item><title>D2L - Chapter 2.1 Data Manipulation</title><link>https://h3sun.github.io/post/2025-04-07-d2l-chapter-2-1-data-manipulation/</link><pubDate>Mon, 07 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-07-d2l-chapter-2-1-data-manipulation/</guid><description>&lt;p>&lt;a href="https://colab.research.google.com/github/d2l-ai/d2l-jax-colab/blob/master/chapter_preliminaries/ndarray.ipynb">colab&lt;/a>&lt;/p>
&lt;h3 id="211-get-started">2.1.1 Get Started&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="kn">import&lt;/span> &lt;span class="nn">jax&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="kn">from&lt;/span> &lt;span class="nn">jax&lt;/span> &lt;span class="kn">import&lt;/span> &lt;span class="n">numpy&lt;/span> &lt;span class="k">as&lt;/span> &lt;span class="n">jnp&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">12&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="n">Array&lt;/span>&lt;span class="p">([&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">5&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">6&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">7&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">8&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">9&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">10&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">11&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">dtype&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">int32&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">size&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="mi">12&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">shape&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="mi">12&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">x&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">zeros&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ones&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># Any call of a random function in JAX requires a key to be&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># specified, feeding the same key to a random function will&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># always result in the same sample being generated&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">normal&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">jax&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">random&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">PRNGKey&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([[&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">]])&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="personal-note">Personal Note&lt;/h4>
&lt;ol>
&lt;li>shape -&amp;gt; (axis-0, axis-1, &amp;hellip;)&lt;/li>
&lt;li>reshape must be multiple&lt;/li>
&lt;/ol>
&lt;h3 id="212-indexing-and-slicing">2.1.2 Indexing and Slicing&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">:&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># JAX arrays are immutable. jax.numpy.ndarray.at index&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># update operators create a new array with the corresponding&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># modifications made&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X_new_1&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">X&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">set&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">17&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X_new_1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X_new_2&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">X_new_1&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">at&lt;/span>&lt;span class="p">[:&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="p">:]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">set&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">12&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X_new_2&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="213-operations">2.1.3 Operations&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">exp&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">x&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([&lt;/span>&lt;span class="mf">1.0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">8&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">x&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span> &lt;span class="o">*&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span> &lt;span class="o">/&lt;/span> &lt;span class="n">y&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">x&lt;/span> &lt;span class="o">**&lt;/span> &lt;span class="n">y&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">12&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">dtype&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">float32&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">Y&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([[&lt;/span>&lt;span class="mf">2.0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">4&lt;/span>&lt;span class="p">],&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">4&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">]])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1"># axis sets which direction to stack, axis = 0, stacks on the row, meaning will have 6 in axis-0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">concatenate&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Y&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">axis&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">concatenate&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="n">X&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">Y&lt;/span>&lt;span class="p">),&lt;/span> &lt;span class="n">axis&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="n">Y&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">X&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">sum&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="personal-note-1">Personal Note&lt;/h4>
&lt;ol>
&lt;li>axis sets which direction to stack. For example, axis = 0, stacks on the row, meaning will have 6(3 + 3) items in axis-0.&lt;/li>
&lt;/ol>
&lt;h3 id="214-broadcasting">2.1.4 Broadcasting&lt;/h3>
&lt;p>By now, you know how to perform elementwise binary operations on two tensors of the same shape. Under certain conditions, even when shapes differ, we can still [perform elementwise binary operations by invoking the broadcasting mechanism.] Broadcasting works according to the following two-step procedure: (i) expand one or both arrays by copying elements along axes with length 1 so that after this transformation, the two tensors have the same shape; (ii) perform an elementwise operation on the resulting arrays.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="mi">3&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">b&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">arange&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">reshape&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span>&lt;span class="p">,&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">b&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="personal-note-2">Personal Note&lt;/h4>
&lt;ol>
&lt;li>broadcasting copies data to reach lcm and do computation.&lt;/li>
&lt;/ol>
&lt;h3 id="215-conversion-to-other-python-objects">2.1.5 Conversion to Other Python Objects&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">jnp&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">array&lt;/span>&lt;span class="p">([&lt;/span>&lt;span class="mf">3.5&lt;/span>&lt;span class="p">])&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">a&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">item&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">float&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="err">🙅&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">int&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="err">🙅&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>D2L - Introduction - 2/2</title><link>https://h3sun.github.io/post/2025-04-07-d2l-chapter-1-2-introduction-2-complete/</link><pubDate>Mon, 07 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-07-d2l-chapter-1-2-introduction-2-complete/</guid><description>&lt;h2 id="132-unsupervised-and-self-supervised-learning">1.3.2 UnSupervised and Self-Supervised Learning&lt;/h2>
&lt;p>The author lists the difference between traditional software engineering and machine learning. While software engineering focuses on solving problems with rule-based solutions, machine learning(deep learning) tries to solve problems that are ambiguous and the solution can evlove by itself after seeing more examples.&lt;/p>
&lt;ol>
&lt;li>Clustering&lt;/li>
&lt;li>PCA&lt;/li>
&lt;li>Relationship, Rome - Italy = France - Paris&lt;/li>
&lt;li>causality and probabilistic graphical models&lt;/li>
&lt;/ol>
&lt;h3 id="133-interacting-with-an-environment">1.3.3 Interacting with an Environment&lt;/h3>
&lt;h3 id="134-reinforcement-learning">1.3.4 Reinforcement Learning&lt;/h3>
&lt;h2 id="14-roots">1.4 Roots&lt;/h2>
&lt;h2 id="15-the-road-to-deep-learning">1.5 The road to deep learning&lt;/h2>
&lt;h2 id="16-success-stories">1.6 Success Stories&lt;/h2>
&lt;h2 id="17-the-essence-of-deep-learning">1.7 The essence of deep learning&lt;/h2>
&lt;p>Thus, one key advantage of deep learning is that it replaces not only the shallow models at the end of traditional learning pipelines, but also the labor-intensive process of feature engineering.&lt;/p>
&lt;h2 id="18-summary">1.8 Summary&lt;/h2>
&lt;h2 id="my-takeaway">My takeaway&lt;/h2>
&lt;p>Chapter1. Introduction mainly discussed machine learning from data, definition, examples, history, current success, provided foundation to future studies.&lt;/p></description></item><item><title>D2L - Introduction</title><link>https://h3sun.github.io/post/2025-04-02-d2l-chapter-1-1-introduction-1/</link><pubDate>Wed, 02 Apr 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-04-02-d2l-chapter-1-1-introduction-1/</guid><description>&lt;h2 id="10-introduction">1.0 Introduction&lt;/h2>
&lt;p>The author lists the difference between traditional software engineering and machine learning. While software engineering focuses on solving problems with rule-based solutions, machine learning(deep learning) tries to solve problems that are ambiguous and the solution can evlove by itself after seeing more examples.&lt;/p>
&lt;h2 id="11-a-motivating-example">1.1 A Motivating Example&lt;/h2>
&lt;p>The author lists an example of a wake word system where we feed model with data and let the model learn.&lt;/p>
&lt;h2 id="12-key-components">1.2 Key Components&lt;/h2>
&lt;ol>
&lt;li>The data that we can learn from.&lt;/li>
&lt;li>A model of how to transform the data.&lt;/li>
&lt;li>An objective function that quantifies how well or badly the model is doing.&lt;/li>
&lt;li>An algorithm to adjust the model&amp;rsquo;s parameters to optimize the objective function.&lt;/li>
&lt;/ol>
&lt;h3 id="121-data">1.2.1 Data&lt;/h3>
&lt;p>Machine learning relies on data, which consists of examples represented numerically through features (inputs) and, in supervised learning, labels (targets). Examples include images or medical records, which can be structured as fixed-length vectors—but not all data fits this format, especially text or variable-sized inputs. Deep learning models handle such complexity more effectively than traditional methods. However, more data generally leads to better models, especially in deep learning, where large datasets are often essential. Crucially, the quality and representativeness of the data matter just as much as quantity—biased or flawed data can lead to harmful and unfair outcomes, even without malicious intent.&lt;/p>
&lt;h3 id="122-models">1.2.2 Models&lt;/h3>
&lt;p>Most machine learning involves transforming input data to make predictions. A model refers to the system that performs this transformation—taking data of one type and outputting another, such as predicting emotions from photos or detecting anomalies in sensor readings. While simple models can solve basic problems, more complex challenges often require more powerful tools. Deep learning stands out by using layered models that apply many transformations in sequence, hence the term deep. This approach enables tackling problems that push beyond the limits of classical methods, though traditional techniques still play a role along the way.&lt;/p>
&lt;h3 id="123-objective-function">1.2.3 Objective function&lt;/h3>
&lt;p>In machine learning, learning means improving performance at a task over time, which requires a clear way to measure improvement. These measurements are called objective functions or loss functions, which we usually define so that lower values are better. Common examples include squared error for regression and error rate for classification. Some losses are hard to optimize directly, so we often use surrogate objectives that are easier to work with.&lt;/p>
&lt;p>We train models by minimizing loss on a training dataset, treating the data as fixed and adjusting model parameters. However, strong performance on training data doesn&amp;rsquo;t guarantee success on new, unseen data. To evaluate generalization, we use a separate test dataset. If a model performs well on training data but poorly on test data, it&amp;rsquo;s said to be overfitting—essentially memorizing rather than learning.&lt;/p>
&lt;h3 id="124-optimization-algorithms">1.2.4 Optimization Algorithms&lt;/h3>
&lt;p>ChatGPT said:
Once we have data, a model, and an objective function, the next step is to optimize the model’s parameters to minimize the loss. In deep learning, this is typically done using gradient descent. This algorithm works by computing how a small change in each parameter would affect the loss, then adjusting the parameters in the direction that reduces the loss. Repeating this process iteratively helps the model gradually improve its performance.&lt;/p>
&lt;h2 id="13-kinds-of-machine-learning-problems">1.3 Kinds of Machine Learning Problems&lt;/h2>
&lt;h3 id="131-supervised-learning">1.3.1 Supervised Learning&lt;/h3>
&lt;h3 id="1311-regression">1.3.1.1 Regression&lt;/h3>
&lt;ol>
&lt;li>Question: How many?&lt;/li>
&lt;li>Loss: squared error&lt;/li>
&lt;/ol>
&lt;h3 id="1312-classification">1.3.1.2 Classification&lt;/h3>
&lt;ol>
&lt;li>Question: Which one?&lt;/li>
&lt;li>Loss: cross-entropy&lt;/li>
&lt;/ol>
&lt;h3 id="1313-tagging">1.3.1.3 Tagging&lt;/h3>
&lt;ol>
&lt;li>Question: multi-label classification&lt;/li>
&lt;/ol>
&lt;h3 id="1314-search">1.3.1.4 Search&lt;/h3>
&lt;ol>
&lt;li>Question: releance scores&lt;/li>
&lt;/ol>
&lt;h3 id="1315-recommender-system">1.3.1.5 Recommender System&lt;/h3>
&lt;h3 id="1316-sequence-learning">1.3.1.6 Sequence Learning&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>They require a model either to ingest sequences of inputs or to emit sequences of outputs (or both).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Cases&lt;/p>
&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Tagging and Parsing: tag named entity&lt;/li>
&lt;li>Automatic Speech Recognition: challenge is that input is way longer than output&lt;/li>
&lt;li>Text to Speech: This is the inverse of asr.&lt;/li>
&lt;li>Machine Translation: input/output might not align in the same order.&lt;/li>
&lt;/ul></description></item><item><title>An interesting Math problem</title><link>https://h3sun.github.io/post/2025-03-26-interesting-math-problem/</link><pubDate>Sat, 22 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-26-interesting-math-problem/</guid><description>&lt;h2 id="-solve-the-equation">📘 Solve the equation:&lt;/h2>
\[
\sqrt{5 - x} = 5 - x^2
\]
&lt;hr>
&lt;h3 id="-step-1-eliminate-the-square-root">✏️ Step 1: Eliminate the square root&lt;/h3>
&lt;p>Square both sides:&lt;/p>
\[
(\sqrt{5 - x})^2 = (5 - x^2)^2
\]
\[
5 - x = 25 + x^4 - 10x^2
\]
&lt;hr>
&lt;h3 id="-step-2-rearrange-into-a-standard-polynomial-form">✏️ Step 2: Rearrange into a standard polynomial form&lt;/h3>
&lt;p>Move all terms to one side:&lt;/p>
\[
0 = x^4 - 5 - 10x^2 + x + 25
\]
&lt;hr>
&lt;h3 id="-step-3-lets-use-the-quadratic-formula">✏️ Step 3: Let’s use the quadratic formula&lt;/h3>
&lt;p>We write this as a quadratic in terms of \(5\):&lt;br>
Let:&lt;/p>
&lt;ul>
&lt;li>\(a = 1\)&lt;/li>
&lt;li>\(b = -(2x^2 + 1)\)&lt;/li>
&lt;li>\(c = x^4 + x\)&lt;/li>
&lt;/ul>
&lt;p>Use the quadratic formula:&lt;/p>
\[
5 = \frac{(2x^2 + 1) \pm \sqrt{(2x^2 + 1)^2 - 4(x^4 + x)}}{2}
\]
&lt;hr>
&lt;h3 id="-step-4-apply-the-quadratic-formula-and-simplify">✏️ Step 4: Apply the Quadratic Formula and Simplify&lt;/h3>
&lt;p>We are solving:&lt;/p>
\[
5 = \frac{2x^2 + 1 \pm \sqrt{(-2x^2 - 1)^2 - 4(x^4 + x)}}{2}
\]
&lt;p>Now simplify the discriminant:&lt;/p>
\[
= \frac{2x^2 + 1 \pm \sqrt{4x^2 - 4x + 1}}{2}
\]
&lt;p>Factor the square root:&lt;/p>
\[
= \frac{2x^2 + 1 \pm (2x - 1)}{2}
\]
&lt;p>Now evaluate the two cases from here, which can be solve using standard quard formula.&lt;/p>
&lt;h3 id="-step-5-solve-the-two-quadratic-equations">✏️ Step 5: Solve the two quadratic equations&lt;/h3>
&lt;p>Using the quadratic formula:&lt;/p>
&lt;h4 id="equation-1">Equation 1:&lt;/h4>
\[
x^2 + x - 5 = 0 \Rightarrow x = \frac{-1 \pm \sqrt{1^2 + 4 \cdot 5}}{2} = \frac{-1 \pm \sqrt{21}}{2}
\]
&lt;h4 id="equation-2">Equation 2:&lt;/h4>
\[
x^2 - x - 4 = 0 \Rightarrow x = \frac{1 \pm \sqrt{1^2 + 4 \cdot 4}}{2} = \frac{1 \pm \sqrt{17}}{2}
\]
&lt;hr>
&lt;h3 id="-final-answer">✅ Final Answer:&lt;/h3>
&lt;p>Check all four roots against the original equation. Only two satisfy it:&lt;/p>
\[
\boxed{\frac{1}{2}(1 - \sqrt{17}) \quad \text{and} \quad \frac{1}{2}(\sqrt{21} - 1)}
\]</description></item><item><title>The Psychology of Money - Distillation, Chapter 13 - 20</title><link>https://h3sun.github.io/post/2025-03-22-the-psychology-of-money-chapter13-chapter20/</link><pubDate>Sat, 22 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-22-the-psychology-of-money-chapter13-chapter20/</guid><description>&lt;h2 id="chapter-13-room-for-error---the-most-imporant-part-of-every-plan-is-planning-on-your-plan-not-going-according-to-plan">Chapter 13 Room For Error - The most imporant part of every plan is planning on your plan not going according to plan.&lt;/h2>
&lt;h2 id="chapter-14-youll-change---long-term-planning-is-harder-than-it-seems-because-peoples-goals-and-desires-change-over-time">Chapter 14 You&amp;rsquo;ll Change - Long-term planning is harder than it seems because people&amp;rsquo;s goals and desires change over time.&lt;/h2>
&lt;p>作者说一个他的朋友的故事来告诉我们人的价值观和世界观是会发生改变的：他的朋友从小相当医生，但是当上医生以后他发现自己很讨厌这个职业。人们的财务规划也是这样，要避免过于极端的财务规划，一剂药接受我们的想法会改变。&lt;/p>
&lt;h2 id="chapter-15-nothings-free---everything-has-a-price-but-not-all-prices-appear-on-labels">Chapter 15 Nothing&amp;rsquo;s Free - Everything has a price, but not all prices appear on labels.&lt;/h2>
&lt;p>很多人愿意付车钱，房子钱，但是不愿意付投资的学费，这是为什么呢，因为我们总觉得投资的失败是一种惩罚的罚金，人不愿意交罚金，但是其实投资的失败只是一种消费。&lt;/p>
&lt;h2 id="chapter-16-you--me---beware-taking-financial-cues-from-people-playing-a-different-game-than-you-are">Chapter 16 You &amp;amp; Me - Beware taking financial cues from people playing a different game than you are.&lt;/h2>
&lt;p>有些人做长线，有些人做短线，没必要和人进行比较。&lt;/p>
&lt;h2 id="chapter-17-the-seduction-of-pessimism---optimism-sounds-like-a-sales-pitch-pessimism-sounds-like-someone-trying-to-help-you">Chapter 17 The Seduction of Pessimism - Optimism sounds like a sales pitch. Pessimism sounds like someone trying to help you.&lt;/h2>
&lt;p>人们总对世界负面的言论更加感到有共鸣。比如在大家都狂欢的时候如果有一个人说一些负面的话，大伙儿会觉得这是一个智者，但是如果在大家都悲观的时候有人说积极的话反而会被认为是精神病。&lt;/p>
&lt;p>市场会调节，会有负反馈，和人生一样，不会太好，也不会太差。
Progress happens too slowly to notice, but setbacks happen too quickly to ignore.&lt;/p>
&lt;h2 id="chapter-18-when-youll-believe-anything---appleaing-fictions-and-why-stories-are-more-powerful-than-statistics">Chapter 18 When You&amp;rsquo;ll believe anything - Appleaing fictions, and why stories are more powerful than statistics.&lt;/h2>
&lt;p>我们有的时候会为自己的想法找借口，编故事，并且我们总认为世界是能被解释的，但其实不是这样的。&lt;/p>
&lt;h2 id="chapter-19-all-together-now---what-weve-learned-about-the-psychology-of-your-own-money">Chapter 19 All Together Now - What we&amp;rsquo;ve learned about the psychology of your own money.&lt;/h2>
&lt;p>给出了一堆建议，其实我觉得有点空洞+成功学，就不列举了。&lt;/p>
&lt;h2 id="chapter-20-confessions---the-psychology-of-my-own-money">Chapter 20 Confessions - The psychology of my own money.&lt;/h2>
&lt;p>作者讲了一下他和他的老婆都是有相同的价值观，并且一直把自己的物欲过的不那么高。其实我也很希望自己能遇到一个这样的人。&lt;/p>
&lt;h2 id="postscript-a-brief-history-of-why-the-us-consumer-thinks-the-way-they-do">Postscript: A brief history of why the US Consumer thinks the way they do.&lt;/h2>
&lt;ol>
&lt;li>大概就是二战结束之后很多人回国没有事情做，没有房子住，&lt;/li>
&lt;li>政府把利率调整很低&lt;/li>
&lt;li>大家的创新创造了财富&lt;/li>
&lt;li>财富被相对平均的分配了&lt;/li>
&lt;li>债务上升了，但是工资也上升了，所以整体问题不大&lt;/li>
&lt;li>失业率提高，进入经济衰退期&lt;/li>
&lt;li>经济继续繁荣了，但是这次收入不再那么平均了&lt;/li>
&lt;li>人们的生活方式，比较心理发生了改变&lt;/li>
&lt;li>规范被创立了以后，就很难改变，人们还是认为分配的是平均的，想追求和别人相同的生活，但是这样导致了很多借贷。&lt;/li>
&lt;li>作者暗示可能会有战争，因为这是一个循环，不知道是什么意思了。&lt;/li>
&lt;/ol>
&lt;h2 id="总结">总结&lt;/h2>
&lt;p>本以为是一本理财的书，没想到读完发现是一本成功学的书，或者是个人提升的书。作者讲了 20 个点，可能会对人的价值观塑造有一些帮助。我读起来感觉不困难，说明这里面很多的价值观和我的价值观是一样的，最喜欢的 chapter 可能是 chpater17，讲了悲观主义为什么会盛行，在这个当今的社会，这点 observation 非常重要，会帮助你对抗很多负面的言论观点。&lt;/p></description></item><item><title>The Psychology of Money - Distillation, Chapter 1 - 2</title><link>https://h3sun.github.io/post/2025-03-17-the-psychology-of-money-intro+1+2/</link><pubDate>Mon, 17 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-17-the-psychology-of-money-intro+1+2/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>The author lists two examples: Ronald James, a gas station attendant, managed to save up to 8 million by retirement; Richard Fuscone, a harvard-educated Merrill Lynch executive, declared bankrupt during recession. The author ties to prove that finance is a soft science that does not require a lot of intelligence. Rather it requires behaviors.&lt;/p>
&lt;h2 id="chapter-1-no-ones-crazy">Chapter 1. No one&amp;rsquo;s crazy&lt;/h2>
&lt;p>The author claims that people with dramatically different experience will make extremely different decisions, but those decisions are all logical to their own minds. To illustrate this point, author lists how stock market price changes differently if you were born in 1950s and 1970s, how inflation rate changes differently if you were born in 1960s and 1990s.&lt;/p>
&lt;p>In addition, the author also points out that how we make decisions about money are relatively new to the world, so it&amp;rsquo;s totally reasonable that there are some decisions that are not the most correct.&lt;/p>
&lt;h2 id="chapter-2-luckrisk">Chapter 2. Luck&amp;amp;Risk&lt;/h2>
&lt;p>Nothing is as good or as bad as it seems. The author lists examples where luck plays in a role at Bill Gates since he was very lucky to be 1 of a million students who get access to computers in high school. On the contrary, Gates&amp;rsquo; best friend passed away accidently in a mountain climbing, which is also 1 of 1 million but in a different direction.
In investment, it&amp;rsquo;s hard to separate the luck/risk from the strategy. Therefore, focus less on individual cases but more on broad patterns.&lt;/p></description></item><item><title>The Psychology of Money - Distillation, Chapter 3 - 12</title><link>https://h3sun.github.io/post/2025-03-18-the-psychology-of-money-chapter3-chapter12/</link><pubDate>Mon, 17 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-18-the-psychology-of-money-chapter3-chapter12/</guid><description>&lt;h2 id="chapter-3-never-enough">Chapter 3. Never Enough&lt;/h2>
&lt;p>The author listed Rajat gupta and Bernie Madoff who both had enormous amount of money ended fraud because they always wanted to make more money even they had a lot already. &lt;strong>There is no reason to risk what you have and need for what you don&amp;rsquo;t have and don&amp;rsquo;t need.&lt;/strong> The author also listed the following advices:&lt;/p>
&lt;ol>
&lt;li>The hardes financial skill is getting the goalpost to stop moving.&lt;/li>
&lt;li>Social comparison is the problem here.&lt;/li>
&lt;li>Enough is not too little.&lt;/li>
&lt;li>There are many things never worth risking no matter the potential gain.&lt;/li>
&lt;/ol>
&lt;h2 id="chapter-4-confounding-compounding">Chapter 4. Confounding Compounding&lt;/h2>
&lt;p>The author used Milankovitch Cycles(a slightly warmer summer cannot melt ice in the winter ended up componudnig to glacier time) to prove that compounding grows faster than you think. In addition, the author also compared James Simons who had 66% return with Warren Buffet with 22% return. The reason why Buffet made more money is not because his strategy outperformed James&amp;rsquo;, but because Buffet invested longer than James did. Therefore, the author wanted to show that good investing is more about you can stick with it.&lt;/p>
&lt;h2 id="chapter-5-getting-wealthy-vs-staying-wealthy">Chapter 5. Getting Wealthy vs Staying Wealthy&lt;/h2>
&lt;p>The author showed us Jesse Livermore, who made a ton of money during recession, ended up losing all his money during his larger bets later, to prove his points that survival is extremely important in investing. The author also shoed that a barbelled ppersonality - optimistic about the future but paranoid about whwat will prevent you from getting to the future - is vital.&lt;/p>
&lt;h2 id="chapter-6-tails-you-win">Chapter 6. Tails, You Win&lt;/h2>
&lt;p>The author explained that the reason why Heinz Berggruen could possess massive collection of Picassos, Braques, Klees to the German government was because he invested in lots of other artwork, including those become masterpiece later. In addition, Disney got famous because of Snow White and Seven Dwarfs. The author wanted to prove that anything that is huge, profitable, famous, or influential is the result of tail event. Therefore, it&amp;rsquo;s okay to fail as long as you try a huge amount. Realizing the power of tail makes you feel less worried about failures because most of things will fail, but the successful things will give you big returns.&lt;/p>
&lt;h2 id="chapter-7-freedom---controlling-your-time-is-the-highest-dividend-money-pays">Chapter 7. Freedom - Controlling your time is the highest dividend money pays.&lt;/h2>
&lt;p>The author depicted freedom as you can do what you want, when you want, with who you want, for as long as you want. Money gives you the power of doing so. The author also showed that in previous generations, working requires specific tools, and it&amp;rsquo;s easy to detach your hand from work just because you get detached from the tool. Nowadays, it&amp;rsquo;s harder because you work with your brain, and it&amp;rsquo;s hard to detach from your brain. Then, it&amp;rsquo;s more cherished that money can give you some freedom.&lt;/p>
&lt;h2 id="chapter-8-man-in-the-car-paradox---no-one-is-impressed-with-your-possessions-as-much-as-you-are">Chapter 8. Man in the Car Paradox - No one is impressed with your possessions as much as you are.&lt;/h2>
&lt;p>The author used his own personal anecdote to show that people tend to want wealth to signal to others that they should be liked and admired. But in reality those other people often bypass admiring you, not because they don&amp;rsquo;t think wealth is admirable, but because they use your wealth as a benchmark for their own desire to be liked and admired. If respect and admiration are your goal, be careful how you seek it.&lt;/p>
&lt;h2 id="chapter-9-wealth-is-what-you-dont-see---spending-money-to-show-people-how-much-money-you-have-is-teh-fastest-way-to-have-less-money">Chapter 9. Wealth is what you don&amp;rsquo;t see - Spending money to show people how much money you have is teh fastest way to have less money.&lt;/h2>
&lt;p>Wealth is what you don&amp;rsquo;t see.&lt;/p>
&lt;h2 id="chapter-10-save-money---the-only-factor-you-can-control-generates-one-of-the-only-things-that-matter-how-wonderful">Chapter 10. Save Money - The only factor you can control generates one of the only things that matter. How wonderful.&lt;/h2>
&lt;ol>
&lt;li>Saving rates is the only thing that you can control.&lt;/li>
&lt;li>The value of wealth is relative to what you need.&lt;/li>
&lt;li>Past a certain level of income, what you need is just what sits below your ego.&lt;/li>
&lt;li>So people&amp;rsquo;s ability to save is more in their control than they think.&lt;/li>
&lt;li>And you don&amp;rsquo;t need a specific reason to save.&lt;/li>
&lt;li>That flexibility and control over your time is an unseen return on wealth.&lt;/li>
&lt;/ol>
&lt;h2 id="chapter-11-reasonable--rational---aiming-to-be-mostly-reasonable-works-better-than-trying-to-be-codly-rational">Chapter 11. Reasonable &amp;gt; Rational - Aiming to be mostly reasonable works better than trying to be codly rational.&lt;/h2>
&lt;p>The author used fever as an example to illustrate that even though fever is rationally good for your body, but people also take pills right away when they have fever because people feel pain. Here, reasonable is bigger than rational. Also, in investment, there are lots of strategies that are rational but not reasonable for people to implement. Rather, it&amp;rsquo;s more profitable for a person to implement reasonable strategy because in the long run, the market favors long-term strategy and you are more likely to implement a reasonable strategy.&lt;/p>
&lt;h2 id="chapter-12-surprise---history-is-a-study-of-change-ironically-used-as-a-map-of-the-future">Chapter 12. Surprise - History is a study of change, ironically used as a map of the future.&lt;/h2>
&lt;p>Things that have never happened before happen all the time. Outlier event move the needle the most. History can be a misleadding guide to the future of the economy and stock market because it doesn&amp;rsquo;t account for structural chagnes that are relevant to today&amp;rsquo;s world.&lt;/p></description></item><item><title>需要多少钱才能退休 - 中国</title><link>https://h3sun.github.io/post/2025-03-16-%E5%9C%A8%E4%B8%AD%E5%9B%BD%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E7%9A%84%E8%AE%A1%E7%AE%97/</link><pubDate>Sun, 16 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-16-%E5%9C%A8%E4%B8%AD%E5%9B%BD%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E7%9A%84%E8%AE%A1%E7%AE%97/</guid><description>&lt;h2 id="一个人活到老的版本">一个人活到老的版本&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>类别&lt;/strong>&lt;/th>
&lt;th>&lt;strong>月支出（元）&lt;/strong>&lt;/th>
&lt;th>&lt;strong>月支出（美元）&lt;/strong>&lt;/th>
&lt;th>&lt;strong>年支出（元）&lt;/strong>&lt;/th>
&lt;th>&lt;strong>年支出（美元）&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>住房&lt;/strong>（住在父母家，无需费用）&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>饮食&lt;/strong>&lt;/td>
&lt;td>2,700&lt;/td>
&lt;td>375&lt;/td>
&lt;td>32,400&lt;/td>
&lt;td>4,500&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>交通&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 车险&lt;/td>
&lt;td>250&lt;/td>
&lt;td>35&lt;/td>
&lt;td>3,000&lt;/td>
&lt;td>417&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 油费&lt;/td>
&lt;td>250&lt;/td>
&lt;td>35&lt;/td>
&lt;td>3,000&lt;/td>
&lt;td>417&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 保养&lt;/td>
&lt;td>100&lt;/td>
&lt;td>14&lt;/td>
&lt;td>1,200&lt;/td>
&lt;td>167&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>交通合计&lt;/strong>&lt;/td>
&lt;td>&lt;strong>600&lt;/strong>&lt;/td>
&lt;td>&lt;strong>83&lt;/strong>&lt;/td>
&lt;td>&lt;strong>7,200&lt;/strong>&lt;/td>
&lt;td>&lt;strong>1,000&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>医疗&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 保险&lt;/td>
&lt;td>1,500&lt;/td>
&lt;td>208&lt;/td>
&lt;td>18,000&lt;/td>
&lt;td>2,500&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>医疗合计&lt;/strong>&lt;/td>
&lt;td>&lt;strong>1,500&lt;/strong>&lt;/td>
&lt;td>&lt;strong>208&lt;/strong>&lt;/td>
&lt;td>&lt;strong>18,000&lt;/strong>&lt;/td>
&lt;td>&lt;strong>2,500&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>娱乐&lt;/strong>&lt;/td>
&lt;td>500&lt;/td>
&lt;td>69&lt;/td>
&lt;td>6,000&lt;/td>
&lt;td>833&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>账单&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 话费&lt;/td>
&lt;td>50&lt;/td>
&lt;td>7&lt;/td>
&lt;td>600&lt;/td>
&lt;td>83&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 网费&lt;/td>
&lt;td>50&lt;/td>
&lt;td>7&lt;/td>
&lt;td>600&lt;/td>
&lt;td>83&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- 衣服&lt;/td>
&lt;td>300&lt;/td>
&lt;td>42&lt;/td>
&lt;td>3,600&lt;/td>
&lt;td>500&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>账单合计&lt;/strong>&lt;/td>
&lt;td>&lt;strong>400&lt;/strong>&lt;/td>
&lt;td>&lt;strong>56&lt;/strong>&lt;/td>
&lt;td>&lt;strong>4,800&lt;/strong>&lt;/td>
&lt;td>&lt;strong>667&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>总支出&lt;/strong>&lt;/td>
&lt;td>&lt;strong>5,700&lt;/strong>&lt;/td>
&lt;td>&lt;strong>792&lt;/strong>&lt;/td>
&lt;td>&lt;strong>68,400&lt;/strong>&lt;/td>
&lt;td>&lt;strong>9,500&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE 目标（4%提取率，25 倍年支出）&lt;/strong>&lt;/td>
&lt;td>&lt;strong>1,710,000&lt;/strong>&lt;/td>
&lt;td>&lt;strong>237,500&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE 目标（3%提取率，33 倍年支出）&lt;/strong>&lt;/td>
&lt;td>&lt;strong>2,257,200&lt;/strong>&lt;/td>
&lt;td>&lt;strong>313,500&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE 目标（2%提取率，50 倍年支出）&lt;/strong>&lt;/td>
&lt;td>&lt;strong>3,420,000&lt;/strong>&lt;/td>
&lt;td>&lt;strong>475,000&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="两个人结婚版本">两个人结婚版本&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Cost Estimate (RMB)&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Cost Estimate (USD)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Marriage Costs&lt;/strong>&lt;/td>
&lt;td>200,000&lt;/td>
&lt;td>27,778&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Venue &amp;amp; Catering&lt;/td>
&lt;td>80,000 - 120,000&lt;/td>
&lt;td>11,111 - 16,667&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Wedding Dress &amp;amp; Suit&lt;/td>
&lt;td>10,000 - 30,000&lt;/td>
&lt;td>1,389 - 4,167&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Photography &amp;amp; Videography&lt;/td>
&lt;td>5,000 - 20,000&lt;/td>
&lt;td>694 - 2,778&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Wedding Rings &amp;amp; Jewelry&lt;/td>
&lt;td>20,000 - 50,000&lt;/td>
&lt;td>2,778 - 6,944&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Decorations &amp;amp; Planning&lt;/td>
&lt;td>10,000 - 30,000&lt;/td>
&lt;td>1,389 - 4,167&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Honeymoon&lt;/td>
&lt;td>30,000 - 50,000&lt;/td>
&lt;td>4,167 - 6,944&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Raising a Child (0-22 years)&lt;/strong>&lt;/td>
&lt;td>1,700,000&lt;/td>
&lt;td>236,111&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Birth &amp;amp; Medical Costs (with insurance)&lt;/td>
&lt;td>10,000 - 30,000&lt;/td>
&lt;td>1,389 - 4,167&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Infant &amp;amp; Toddler (0-3 years)&lt;/td>
&lt;td>90,000&lt;/td>
&lt;td>12,500&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Preschool (3-6 years)&lt;/td>
&lt;td>108,000&lt;/td>
&lt;td>15,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- School Age (6-12 years)&lt;/td>
&lt;td>172,800&lt;/td>
&lt;td>24,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Teenage Years (12-18 years)&lt;/td>
&lt;td>226,800&lt;/td>
&lt;td>31,500&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- University (18-22 years)&lt;/td>
&lt;td>105,600&lt;/td>
&lt;td>14,667&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Annual Additional Cost for Child&lt;/strong>&lt;/td>
&lt;td>77,273&lt;/td>
&lt;td>10,729&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Extra FIRE Funds for Raising a Child (50x Annual Cost)&lt;/strong>&lt;/td>
&lt;td>3,864,000&lt;/td>
&lt;td>536,667&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Base FIRE Target (2% Rule - 50x Annual Expenses)&lt;/strong>&lt;/td>
&lt;td>3,420,000&lt;/td>
&lt;td>475,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Marriage + Raising a Child Total Cost&lt;/strong>&lt;/td>
&lt;td>4,064,000&lt;/td>
&lt;td>564,444&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Final FIRE Target (Including Marriage &amp;amp; Child, 2% Rule)&lt;/strong>&lt;/td>
&lt;td>&lt;strong>7,484,000&lt;/strong>&lt;/td>
&lt;td>&lt;strong>1,039,444&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Cost Estimate (RMB)&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Cost Estimate (USD)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Marriage Costs&lt;/strong>&lt;/td>
&lt;td>200,000&lt;/td>
&lt;td>27,778&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Raising a Child (0-22 years)&lt;/strong>&lt;/td>
&lt;td>1,700,000&lt;/td>
&lt;td>236,111&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Extra FIRE Funds for Raising a Child (50x Annual Cost)&lt;/strong>&lt;/td>
&lt;td>3,420,000&lt;/td>
&lt;td>475,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Base FIRE Target (2% Rule - 50x Annual Expenses, Doubled for Two People)&lt;/strong>&lt;/td>
&lt;td>6,840,000&lt;/td>
&lt;td>950,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Marriage + Raising a Child Total Cost&lt;/strong>&lt;/td>
&lt;td>1,900,000&lt;/td>
&lt;td>263,889&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Final FIRE Target (Including Marriage &amp;amp; Child, 2% Rule, Doubled Base)&lt;/strong>&lt;/td>
&lt;td>&lt;strong>8,740,000&lt;/strong>&lt;/td>
&lt;td>&lt;strong>1,213,889&lt;/strong>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table></description></item><item><title>需要多少钱才能退休 - 美国</title><link>https://h3sun.github.io/post/2025-03-16-%E5%9C%A8%E7%BE%8E%E5%9B%BD%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E7%9A%84%E8%AE%A1%E7%AE%97/</link><pubDate>Sun, 16 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-16-%E5%9C%A8%E7%BE%8E%E5%9B%BD%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E7%9A%84%E8%AE%A1%E7%AE%97/</guid><description>&lt;p>书接前文，上次谈到要计算多少钱能退休，现在通过和 chatgpt 以及网络搜索的汇总以后，我得到以下一些思考。&lt;/p>
&lt;h2 id="一个人活到老的版本-每年要花多少钱的计算按美金计算">一个人活到老的版本: 每年要花多少钱的计算，按美金计算&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Category&lt;/th>
&lt;th>Monthly Cost ($)&lt;/th>
&lt;th>Annual Cost ($)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Housing&lt;/strong>&lt;/td>
&lt;td>2,000&lt;/td>
&lt;td>24,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Food&lt;/strong>&lt;/td>
&lt;td>2,000&lt;/td>
&lt;td>24,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Transportation&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Car Insurance&lt;/td>
&lt;td>150&lt;/td>
&lt;td>1,800&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Gas&lt;/td>
&lt;td>150&lt;/td>
&lt;td>1,800&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Maintenance&lt;/td>
&lt;td>30&lt;/td>
&lt;td>360&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Total Transport&lt;/strong>&lt;/td>
&lt;td>330&lt;/td>
&lt;td>3,960&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Healthcare&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Insurance&lt;/td>
&lt;td>468&lt;/td>
&lt;td>5,616&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Out-of-Pocket&lt;/td>
&lt;td>250&lt;/td>
&lt;td>3,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Total Healthcare&lt;/strong>&lt;/td>
&lt;td>718&lt;/td>
&lt;td>8,616&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Entertainment &amp;amp; Leisure&lt;/strong>&lt;/td>
&lt;td>150&lt;/td>
&lt;td>1,800&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Other Bills&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Phone&lt;/td>
&lt;td>25&lt;/td>
&lt;td>300&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Internet&lt;/td>
&lt;td>100&lt;/td>
&lt;td>1,200&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Clothing&lt;/td>
&lt;td>100&lt;/td>
&lt;td>1,200&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Total Other Bills&lt;/strong>&lt;/td>
&lt;td>225&lt;/td>
&lt;td>2,700&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>TOTAL EXPENSES&lt;/strong>&lt;/td>
&lt;td>&lt;strong>5,423&lt;/strong>&lt;/td>
&lt;td>&lt;strong>65,076&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE Number (3% Rule - 33.3x Annual Expenses)&lt;/strong>&lt;/td>
&lt;td>&lt;strong>$2,167,030&lt;/strong>&lt;/td>
&lt;td>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="两个人结婚生孩子的版本">两个人结婚生孩子的版本&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Category&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Cost Estimate (USD)&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Marriage&lt;/strong>&lt;/td>
&lt;td>$25,000 - $100,000+&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Venue &amp;amp; Catering&lt;/td>
&lt;td>$10,000 - $30,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Wedding Dress &amp;amp; Suit&lt;/td>
&lt;td>$1,500 - $5,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Photography &amp;amp; Videography&lt;/td>
&lt;td>$2,000 - $7,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Wedding Rings &amp;amp; Jewelry&lt;/td>
&lt;td>$5,000 - $20,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Decorations &amp;amp; Planning&lt;/td>
&lt;td>$3,000 - $10,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Honeymoon&lt;/td>
&lt;td>$5,000 - $15,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Buying a House&lt;/strong>&lt;/td>
&lt;td>$200,000 - $1,200,000+&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Down Payment (20%)&lt;/td>
&lt;td>$60,000 - $200,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Mortgage (30-year)&lt;/td>
&lt;td>Interest Rate: 6%-8%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Property Tax &amp;amp; Insurance&lt;/td>
&lt;td>$3,000 - $10,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Maintenance &amp;amp; Renovation&lt;/td>
&lt;td>$10,000 - $50,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Raising a Child&lt;/strong> (0-18 years)&lt;/td>
&lt;td>$250,000 - $400,000+&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Birth &amp;amp; Hospital Costs (with insurance)&lt;/td>
&lt;td>$2,000 - $5,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Birth &amp;amp; Hospital Costs (without insurance)&lt;/td>
&lt;td>$10,000 - $30,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Infant &amp;amp; Toddler (0-3 years)&lt;/td>
&lt;td>$12,000 - $20,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- School Age (4-12 years)&lt;/td>
&lt;td>$10,000 - $15,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Teenager (13-18 years)&lt;/td>
&lt;td>$12,000 - $20,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- College (Public)&lt;/td>
&lt;td>$25,000 - $40,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- College (Private)&lt;/td>
&lt;td>$50,000 - $80,000/year&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE Retirement&lt;/strong>&lt;/td>
&lt;td>$1,200,000 - $3,000,000+&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Monthly Living Costs&lt;/td>
&lt;td>$3,000 - $6,000&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Healthcare &amp;amp; Insurance&lt;/td>
&lt;td>$500 - $2,000/month&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>- Travel &amp;amp; Leisure&lt;/td>
&lt;td>$500 - $3,000/month&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE Target (4% Rule)&lt;/strong>&lt;/td>
&lt;td>$1.2M - $3M+&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>FIRE Target (3% Rule - More Conservative)&lt;/strong>&lt;/td>
&lt;td>$2.2M - $3.5M+&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="总结">总结&lt;/h2>
&lt;ul>
&lt;li>结婚版本需要多花的钱：结婚大概花 10 万美金，买房子就算 100 万美金，养孩子需要 40 万美金，一共需要 150 万美金。&lt;/li>
&lt;li>一个人单身租房版本，大概需要 200 万美金左右能在美国 fire。&lt;/li>
&lt;li>算完感觉还是慌。&lt;/li>
&lt;/ul></description></item><item><title>需要多少钱才能退休 - 美国/中国，总结</title><link>https://h3sun.github.io/post/2025-03-16-%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E6%80%BB%E7%BB%93/</link><pubDate>Sun, 16 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-16-%E8%B4%A2%E5%AF%8C%E8%87%AA%E7%94%B1%E6%80%BB%E7%BB%93/</guid><description>&lt;table>
&lt;thead>
&lt;tr>
&lt;th>地区&lt;/th>
&lt;th>不生孩子（靠利息生活）&lt;/th>
&lt;th>结婚生孩子（靠利息生活）&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>美国&lt;/td>
&lt;td>200 万美金&lt;/td>
&lt;td>400 万美金&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>中国&lt;/td>
&lt;td>50 万美金&lt;/td>
&lt;td>120 万美金&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table></description></item><item><title>价值观</title><link>https://h3sun.github.io/post/2025-03-15-%E4%BB%B7%E5%80%BC%E8%A7%82/</link><pubDate>Sat, 15 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-15-%E4%BB%B7%E5%80%BC%E8%A7%82/</guid><description>&lt;p>虽然我家庭非常好，非常好家庭，但我是被“穷”大的。&lt;/p>
&lt;p>我因为省钱吃过很多苦，有一个非常大的苦，我现在还在吃，而且不知道这个苦什么时候能吃完。不想谈太多这个，以后有机会谈，这篇就想谈谈我怎么样才能有一个更平衡的价值观，如何更好的管理好自己钱，让自己过上舒适的日子的同时完成自己财务上的目标。&lt;/p>
&lt;p>我认为改变现有习惯的开始一步是先理解现有的习惯形成的原因，谈到我节省价值观的原因，我想大概有自己被传统观念影响，自己面对现代宣传反应矫枉过正，以及自己对金融体系的不理解。&lt;/p>
&lt;p>传统观念深入人心：初中就学《生于忧患 死于安乐》，大概就告诉小孩子说人不能过的太安乐，要懂得吃苦，懂得给自己制造一些痛苦，吃的千里苦，享得万里福。这些在现代的社会观念中随着经济的发展，我只能说对这种想法要取其精华，去其糟粕，更进一步：这句话是车轱辘话，说明白点就是这就是糟粕。&lt;/p>
&lt;p>现代宣传的矫枉过正：课本只学了陷入消费主义的人结局都很惨，比如贷款买包的小莉在毕业以后欠下巨额贷款，贷款买车的小王工作十年没存下钱。但是没人教一直省钱的人结局也不会好啊！只会节省的人自己活的不舒服，错失了社交机会，也无法感到生活的快乐，甚至会产生健康问题。但现代教育只谈了一方面，还把花钱消费和吸毒连在一章节，令人难免矫枉过正。这里其实我很对不起我之前的前女友，自己太抠了，没在她身上花够钱，我感到她对我很好，但我对她的方式却很有待提高，也不知道后面还有没有机会了。&lt;/p>
&lt;p>自己对金融体系的不理解：为什么不敢花钱，因为很多人知道将来买房结婚得花钱，子女要花很多钱，养老得需要钱，医保需要钱。人们对于花钱的地方非常清楚，但是对赚钱的地方不清楚！金融体系不明朗，投资渠道有限，这就导致不知道钱从哪里来，但是却明白钱要去哪里，这种感觉肯定难受，就好像你知道这个水池在未来的某一天要被抽很多水，如果抽水抽空了还要，就得抽你的血，但你不知道哪里能搞来水，所以每当有一滴水你都想存下来。&lt;/p>
&lt;p>这三点大概是我为什么有这样价值观的原因，现在谈谈具体对策，如何让自己培养或者朝着一个平衡的价值观方面进步。&lt;/p>
&lt;p>第一二点很难改变了，观念已经深入人心了，能做的应该就是学习更先进的思维模式，提高认知层级，尽量多花点钱，慢慢学着消费也是一种培养能力。&lt;/p>
&lt;p>第三点我想着重谈谈：研究问题要具体，一具体就深刻。&lt;/p>
&lt;p>具体体现在要对今后花的钱，和今后赚的钱都要有个大概的估算。比如买房具体要多少钱，结婚具体要多少钱，养老具体多少钱，有了这些具体的计算那么做决策就有目标有参考。；另一个具体就是体现在要认真学习理财的工具，了解金融体系，有了了解才能有信心，做一个有准备的消费者，知道钱会去哪里还不够，要知道多少钱会去哪里，多少钱什么时候会去哪里。还要知道钱会从哪里来，多少钱会从哪里来，多少钱会从哪里什么时候来。当然这些都是估算，也没必要和轨道一样万无一失，但是至少做了计算以后有个大概的概念。&lt;/p>
&lt;p>不要用自然语言去模糊自己，要用数字，用逻辑分析消除自己脑海里的模糊，最后才能达到花钱赚钱都是知己知彼，百战不殆。说到做到，执行力，周末就算。&lt;/p></description></item><item><title>报税-W2</title><link>https://h3sun.github.io/post/2025-03-14-%E6%8A%A5%E7%A8%8E-w2/</link><pubDate>Fri, 14 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-14-%E6%8A%A5%E7%A8%8E-w2/</guid><description>&lt;h2 id="前言">前言&lt;/h2>
&lt;p>今天是 PI 节日，每次 PI 节都是 3 月 14 号，也是如火如荼的报税季节。今年这是我工作第三年，美国报税也有几次了，但我非常讨厌报税，填表格。讨厌的原因有两点，一个是填表格的过程非常繁琐，另一个是填表格结果的正确对于一个完美主义者来说会令人十分令人焦虑。&lt;/p>
&lt;p>首先说说这个填表格的过程：每次填表格都是信息检索的过程，首先要理解问题问的是什么，然后在脑子里思考问题的答案是什么，很多时候相同的信息并不会有改变，但是反复在不同的地方填写，实在是浪费时间！&lt;/p>
&lt;p>再说说对填表格的结果的焦虑：重要的表格填完了以后还要检查，尤其是对我这样略微带有完美主义倾向的人来说填表格不能出半点差错，如果有点对不上就想研究明白是为什么原因，一研究就进入了兔子洞，研究出来还好，研究不明白则非和自己较劲，非得研究明白才算完，有时候会打扰一晚上的计划和心情。&lt;/p>
&lt;p>真希望以后大脑介入芯片的话直接通过 protocol 进行交流，不需要进行无意义的重复信息检索，也不用焦虑结果的差错。&lt;/p>
&lt;p>仔细分析为什么我会反感甚至拖延报税，有一个原因就在于自己其实对报税表格的理解不足，如果一个问题是你是明白清晰逻辑的，那么遇到这样的问题自然大脑就觉得很舒适。但如果一个问题你不明白逻辑，搞不清里面的概念，那每次遇到这样的问题就不想作答，就拖延。&lt;/p>
&lt;p>毕竟这也不是故意让你填错的表格，设计应该是符合直观逻辑的。但一方面是这样思考，另一方面也承认这个表格的复杂性，我猜测这个表格就像一个代码库，刚开始逻辑清晰简单，但是随着时间的变化，每一届总统，每一个法官都有自己的想法，颁布不同的法案，适应当时的社会状况。随着这些迭代，这种表格必然就有了更复杂的形式。&lt;/p>
&lt;p>一个比较好的 growth mindset 就是不会就学，学不懂继续思考，总相信自己能学懂。所以今天想写一下 w2 表格不同格子里具体代表什么内容。&lt;/p>
&lt;h2 id="w2">W2&lt;/h2>
&lt;h3 id="大致">大致&lt;/h3>
&lt;ol>
&lt;li>w2 表格总结了年度的收入和预缴，FICA，医保，退休，HSA。&lt;/li>
&lt;/ol>
&lt;h3 id="每个格子">每个格子&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">a. social security number
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">b. employer id
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">c. employ name, address, zip code
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">d. control number (your id in company)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">e. employee&amp;#39;s name, address
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">f. employee&amp;#39;s zip code.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">1. wages,tips, other comp, 联邦所得税的税基 （扣除 401k 以后）
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">2. federal income tax witheld，联邦税预缴
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">3. social security tax，社保税基 （cap 168600 - 2024），超过的部分不用交 social security tax
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">4. social security tax withheld 社保税收的预缴，税收是 6.2%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">5. medicare wages/tips 医保税基，没有 cap，含 401k
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">6. medicare tax withheld 医保税收的预缴，1.45%，超过 20 万+0.9%
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">7. social security tips 小费收入
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">8. allocated tips 小费收入
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">9. blank
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">10. Dependent Care Benefits
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">11. Nonqualified Plans 给 executive，高管
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">12. 401k，HSA contribution，etc
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">13.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">14. state disability insurance
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">15. state 州
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">16. state wages 工资，和 box 1 不一样，因为 HSA 在 state level 收税，但是在 federal level 不收税
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">17. state income tax 州税收
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;img src="./w2-example.png" alt="w2-example">&lt;/p>
&lt;h2 id="reference">reference&lt;/h2>
&lt;ol>
&lt;li>&lt;a href="https://www.youtube.com/watch?v=_FTOcAjmFVs&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1">https://www.youtube.com/watch?v=_FTOcAjmFVs&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1&lt;/a>&lt;/li>
&lt;/ol></description></item><item><title>投资工具-Bond</title><link>https://h3sun.github.io/post/2025-03-13-bond-%E5%9B%BD%E5%80%BA/</link><pubDate>Thu, 13 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-13-bond-%E5%9B%BD%E5%80%BA/</guid><description>&lt;h2 id="treasury-分类">Treasury 分类&lt;/h2>
&lt;h3 id="t-bill-treasury-bill">T-Bill, Treasury Bill&lt;/h3>
&lt;ol>
&lt;li>短期：4 week，8 week，12 week， etc。&lt;/li>
&lt;li>没有 coupon（票面利息），只有折价发行，折价率，本质是 interest 而不是 capital gain。&lt;/li>
&lt;li>利息是 recurring gain，税率低。&lt;/li>
&lt;/ol>
&lt;h3 id="t-note-treasury-note">T-Note, Treasury Note&lt;/h3>
&lt;ol>
&lt;li>中期：2-10 年。&lt;/li>
&lt;li>开始有票面利息，6 个月付一次。&lt;/li>
&lt;li>有二级市场，流动性好。&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>一级市场：primary market, 融资的公司直接卖给你，价格事先通过投行（investment banking）定好，IPO。Bond 等于是政府定价。&lt;/li>
&lt;li>二级市场：secondary market，投资人与投资人之间互相的买卖，价格通过互相买卖的市场决定。&lt;/li>
&lt;/ul>
&lt;h3 id="t-bond-treasury-bond">T-Bond, Treasury Bond&lt;/h3>
&lt;ol>
&lt;li>长期：10-30 年期。&lt;/li>
&lt;li>6 个月付一次利息。&lt;/li>
&lt;li>花一定价格购买 face value 的 Bond，会有利息，到期以后你会拿到 face value 的钱&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>收益率曲线倒挂：变成钟形，长期反而低。（yield 叫做实际收益率）可能会出现经济危机。&lt;/li>
&lt;/ul>
&lt;h3 id="tips-treasury-inflation-protected-securities">TIPS, Treasury Inflation Protected Securities&lt;/h3>
&lt;ol>
&lt;li>长期：5 年，10 年，30 年。&lt;/li>
&lt;li>6 个月付一次，本金会随着通货膨胀率调整。通货膨胀时候拿的多，相反通货紧缩拿的少。&lt;/li>
&lt;/ol>
&lt;h3 id="frn-floating-rate-note">FRN, Floating Rate Note&lt;/h3>
&lt;ol>
&lt;li>中期：2 年期。&lt;/li>
&lt;li>6 个月付一次，利率根据 13 周 T-Bills 利率上下浮动。&lt;/li>
&lt;/ol>
&lt;h2 id="常识">常识&lt;/h2>
&lt;ol>
&lt;li>国债免 state tax，local tax，但是 federal tax 是不能免除的。&lt;/li>
&lt;li>bank/broker 购买和 treasury direct 购买的区别：bank/broker 可以用 non-competitive billing 和 competitive billing 购买。非竞争性竞价肯定可以买到，但是买之前不能准确知道以什么价格买，竞争性竞价规定我以什么价格购买。&lt;/li>
&lt;/ol>
&lt;h2 id="reference">reference:&lt;/h2>
&lt;ol>
&lt;li>&lt;a href="https://www.youtube.com/watch?v=kj87yxWJ9qQ&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1">https://www.youtube.com/watch?v=kj87yxWJ9qQ&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.youtube.com/watch?v=HdcL9J1cp8w&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1">https://www.youtube.com/watch?v=HdcL9J1cp8w&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1&lt;/a>&lt;/li>
&lt;/ol>
&lt;h2 id="qa">Q&amp;amp;A&lt;/h2>
&lt;h3 id="what-are-series-ee-and-series-i-savings-bond">What are Series EE and Series I savings bond?&lt;/h3>
&lt;ol>
&lt;li>Savings Bond 就是一个从风险和收益率和定期存款非常像的一个产品，定期存款 CD 在美国是商业银行发行的，Savings Bond 是美国政府发行的。&lt;/li>
&lt;li>Savings Bond 分 Series EE 和 Series I。
&lt;ul>
&lt;li>Series EE 是折价发行，甚至是半价，20 年就能赎回，1 年内赎回就丧失所有钱，5 年内丧失最后三个月利息（early withdraw penalty），没有二级市场，所以更像 Saving 而不是储蓄。首先利率很低，其次即使翻倍也有通货膨胀的因素，(1.03)^20 = 1.8, (1.04)^20 = 2.1&lt;/li>
&lt;li>Series I 最大不同在于它并不是折价发行，面值发行，赋予利息，利率是 CPI correlated 的。Series I 有 floor，下限。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Series H Bond，这种在 04 年以后不发行了。&lt;/li>
&lt;li>tax
&lt;ul>
&lt;li>只是 federal tax，no local/state tax。&lt;/li>
&lt;li>独特之处在于你可以选择每年拿利息交税，也可以前 20 年不拿利息，最后 20 年交一笔税，选了之后不能变了，如果不止一只 savings bond，每个 bond 选择得相同。&lt;/li>
&lt;li>如果你用于 education，可以用来学费，qualified intuition expense，书本住宿还是不能免税，结婚以后得联合 file tax。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="c-of-i-zero-interest-certificate-of-indebedness">C of I, Zero Interest Certificate of Indebedness&lt;/h3>
&lt;ol>
&lt;li>Zero Interest 不等于 0 coupon(没有票面利息的债券)，折价发行会有利息在里面&lt;/li>
&lt;li>就是没有利息的理财产品？为什么不存在银行拿 interest 或者买 bond？&lt;/li>
&lt;/ol>
&lt;h3 id="stripsseparate-trading-of-registered-interest-and-principal-of-securities">Strips，Separate Trading of Registered Interest and Principal of Securities&lt;/h3>
&lt;ol>
&lt;li>把一个 T-Note，T-Bond 给拆成本金和利息，你只拿到利息或者只拿到本金&lt;/li>
&lt;/ol>
&lt;h3 id="没有看到国债有-fdic-保险">没有看到国债有 fdic 保险&lt;/h3>
&lt;ol>
&lt;li>基本没有风险，不用考虑这个问题。&lt;/li>
&lt;/ol>
&lt;h3 id="secondary-issue-bond">Secondary Issue Bond&lt;/h3>
&lt;ol>
&lt;li>二级市场购买的 Bond。&lt;/li>
&lt;/ol></description></item><item><title>投资策略-Laddering(梯状配股)</title><link>https://h3sun.github.io/post/2025-03-12-%E5%82%A8%E8%93%84%E7%9A%84%E7%AD%96%E7%95%A5/</link><pubDate>Wed, 12 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-12-%E5%82%A8%E8%93%84%E7%9A%84%E7%AD%96%E7%95%A5/</guid><description>&lt;p>(written by chatgpt, reviewed by haihaosun)&lt;/p>
&lt;h1 id="laddering-a-smart-investment-strategy">Laddering: A Smart Investment Strategy&lt;/h1>
&lt;p>&lt;strong>Laddering&lt;/strong> is an investment strategy used to manage risk, increase liquidity, and optimize returns by diversifying investment maturities across different time frames. This strategy is commonly applied to fixed-income investments like &lt;strong>certificates of deposit (CDs), bonds, and Treasury securities&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="1-how-laddering-works">1. How Laddering Works&lt;/h2>
&lt;p>Laddering involves &lt;strong>dividing your total investment&lt;/strong> into multiple smaller investments with &lt;strong>different maturity dates&lt;/strong> rather than investing all funds into a single long-term or short-term instrument. This creates a “ladder” of investments maturing at regular intervals.&lt;/p>
&lt;h3 id="example-a-5-year-bond-ladder">Example: A 5-Year Bond Ladder&lt;/h3>
&lt;p>Suppose you have &lt;strong>$50,000&lt;/strong> to invest in bonds. Instead of buying a single 5-year bond, you create a ladder:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Investment&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Term&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Amount Invested&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Interest Rate&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Bond 1&lt;/td>
&lt;td>1 year&lt;/td>
&lt;td>$10,000&lt;/td>
&lt;td>3.5%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bond 2&lt;/td>
&lt;td>2 years&lt;/td>
&lt;td>$10,000&lt;/td>
&lt;td>3.8%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bond 3&lt;/td>
&lt;td>3 years&lt;/td>
&lt;td>$10,000&lt;/td>
&lt;td>4.0%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bond 4&lt;/td>
&lt;td>4 years&lt;/td>
&lt;td>$10,000&lt;/td>
&lt;td>4.2%&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Bond 5&lt;/td>
&lt;td>5 years&lt;/td>
&lt;td>$10,000&lt;/td>
&lt;td>4.5%&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;ul>
&lt;li>When &lt;strong>Bond 1 matures&lt;/strong> after 1 year, you &lt;strong>reinvest it into a new 5-year bond&lt;/strong>.&lt;/li>
&lt;li>The next year, &lt;strong>Bond 2 matures&lt;/strong>, and you again reinvest in a 5-year bond.&lt;/li>
&lt;li>This process continues, maintaining a constant ladder where one bond matures annually.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="2-benefits-of-laddering">2. Benefits of Laddering&lt;/h2>
&lt;h3 id="-1-improves-liquidity">✅ 1. Improves Liquidity&lt;/h3>
&lt;ul>
&lt;li>Since investments mature at regular intervals, you can access funds periodically.&lt;/li>
&lt;li>Ideal for investors who may need cash in the short term without sacrificing long-term growth.&lt;/li>
&lt;/ul>
&lt;h3 id="-2-reduces-interest-rate-risk">✅ 2. Reduces Interest Rate Risk&lt;/h3>
&lt;ul>
&lt;li>By spreading out maturity dates, laddering minimizes the impact of rising or falling interest rates.&lt;/li>
&lt;li>If rates &lt;strong>increase&lt;/strong>, you reinvest matured investments at higher rates.&lt;/li>
&lt;li>If rates &lt;strong>decrease&lt;/strong>, you still have longer-term investments locked in at higher yields.&lt;/li>
&lt;/ul>
&lt;h3 id="-3-enhances-predictability-and-stability">✅ 3. Enhances Predictability and Stability&lt;/h3>
&lt;ul>
&lt;li>You receive periodic &lt;strong>interest payments&lt;/strong> and &lt;strong>maturing principal&lt;/strong>, making financial planning easier.&lt;/li>
&lt;li>Suitable for &lt;strong>retirees&lt;/strong> or &lt;strong>income-focused investors&lt;/strong> seeking steady returns.&lt;/li>
&lt;/ul>
&lt;h3 id="-4-maximizes-returns-over-time">✅ 4. Maximizes Returns Over Time&lt;/h3>
&lt;ul>
&lt;li>Instead of keeping cash idle in low-yield savings accounts, laddering ensures money is continuously working for you.&lt;/li>
&lt;li>Offers a &lt;strong>balance between short-term access and long-term higher yields&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="3-laddering-strategies">3. Laddering Strategies&lt;/h2>
&lt;p>Laddering can be applied to different types of fixed-income investments:&lt;/p>
&lt;h3 id="1-cd-laddering-certificates-of-deposit">1. CD Laddering (Certificates of Deposit)&lt;/h3>
&lt;ul>
&lt;li>Investors buy CDs with &lt;strong>staggered maturity dates&lt;/strong> to balance liquidity and returns.&lt;/li>
&lt;li>Example: A &lt;strong>12-month ladder&lt;/strong> using CDs with &lt;strong>3-month, 6-month, 9-month, and 12-month terms&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;h3 id="2-bond-laddering">2. Bond Laddering&lt;/h3>
&lt;ul>
&lt;li>Works best with &lt;strong>government bonds, corporate bonds, and municipal bonds&lt;/strong>.&lt;/li>
&lt;li>Helps mitigate reinvestment risk while capturing favorable interest rates.&lt;/li>
&lt;/ul>
&lt;h3 id="3-treasury-laddering-t-bill-ladder">3. Treasury Laddering (T-Bill Ladder)&lt;/h3>
&lt;ul>
&lt;li>Investors buy &lt;strong>4-week, 8-week, 13-week, 26-week, and 52-week Treasury Bills&lt;/strong> to ensure frequent liquidity.&lt;/li>
&lt;li>Ideal for &lt;strong>risk-averse investors&lt;/strong> looking for safe returns with periodic access to funds.&lt;/li>
&lt;/ul>
&lt;h3 id="4-stock-dividend-laddering-less-common">4. Stock Dividend Laddering (Less Common)&lt;/h3>
&lt;ul>
&lt;li>Investors buy &lt;strong>dividend stocks&lt;/strong> with different payment schedules to ensure monthly income.&lt;/li>
&lt;li>Example: Buying stocks that pay &lt;strong>dividends in January, April, July, and October&lt;/strong>, while others pay in &lt;strong>February, May, August, and November&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="4-who-should-use-laddering">4. Who Should Use Laddering?&lt;/h2>
&lt;p>✔ &lt;strong>Conservative investors&lt;/strong> looking for a mix of liquidity and returns.&lt;br>
✔ &lt;strong>Retirees&lt;/strong> who need &lt;strong>steady income&lt;/strong> and predictable cash flow.&lt;br>
✔ &lt;strong>Investors concerned about interest rate fluctuations&lt;/strong>.&lt;br>
✔ &lt;strong>People saving for specific goals&lt;/strong> (e.g., a home purchase in 5 years).&lt;/p>
&lt;hr>
&lt;h2 id="5-downsides-of-laddering">5. Downsides of Laddering&lt;/h2>
&lt;p>❌ &lt;strong>Lower Short-Term Returns&lt;/strong> – Initial yields may be lower than investing everything in long-term assets.&lt;br>
❌ &lt;strong>Reinvestment Risk&lt;/strong> – If interest rates drop, reinvested funds may yield lower returns.&lt;br>
❌ &lt;strong>Complexity&lt;/strong> – Managing multiple investments requires more tracking.&lt;/p>
&lt;hr>
&lt;h2 id="6-final-thoughts">6. Final Thoughts&lt;/h2>
&lt;p>Laddering is a &lt;strong>low-risk&lt;/strong>, &lt;strong>strategic investment approach&lt;/strong> that balances &lt;strong>liquidity, income stability, and risk management&lt;/strong>. Whether used for &lt;strong>CDs, bonds, or T-bills&lt;/strong>, it helps investors maintain access to cash while optimizing long-term returns.&lt;/p>
&lt;h2 id="7-把书读薄">7. 把书读薄&lt;/h2>
&lt;ul>
&lt;li>
&lt;p>核心思想就是把所有钱分成 n 份，然后用一种 dollar cost avergaing 的策略投入储蓄。降低利率波动风险，并且让手里钱的流动性增强。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>是不要把鸡蛋放在一个篮子里的另一种在时间轴上的体现。即使投入的理财产品是相同的，但是投入的时间不同也会降低风险。&lt;/p>
&lt;/li>
&lt;/ul>
&lt;p>reference: &lt;a href="https://www.youtube.com/watch?v=je5j9ZiJa2k&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1">https://www.youtube.com/watch?v=je5j9ZiJa2k&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1&lt;/a>&lt;/p></description></item><item><title>投资工具-储蓄</title><link>https://h3sun.github.io/post/2025-03-11-%E5%82%A8%E8%93%84/</link><pubDate>Tue, 11 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-11-%E5%82%A8%E8%93%84/</guid><description>&lt;h2 id="投资工具---储蓄">投资工具 - 储蓄&lt;/h2>
&lt;h3 id="cd-certificate-of-deposit">CD (certificate of deposit)&lt;/h3>
&lt;ul>
&lt;li>简单来说就是存钱拿利息&lt;/li>
&lt;/ul>
&lt;h3 id="penalty-free-cd">Penalty Free CD&lt;/h3>
&lt;ul>
&lt;li>比 CD 利息低，但是没有提前取出的 penalty&lt;/li>
&lt;/ul>
&lt;h3 id="t-bills">T-Bills&lt;/h3>
&lt;ul>
&lt;li>&lt;a href="https://www.treasurydirect.gov/">购买网站&lt;/a>&lt;/li>
&lt;li>基本没有风险，可以免除 state tax&lt;/li>
&lt;/ul>
&lt;h3 id="money-market">Money Market&lt;/h3>
&lt;ul>
&lt;li>好的流动，高的利率&lt;/li>
&lt;/ul>
&lt;p>reference: &lt;a href="https://www.youtube.com/watch?v=CQ63ec_qWKQ&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1">https://www.youtube.com/watch?v=CQ63ec_qWKQ&amp;amp;ab_channel=%E8%B7%9F%E6%88%91%E4%B8%80%E8%B5%B7%E6%9D%A5%E8%B0%88%E9%92%B1&lt;/a>&lt;/p></description></item><item><title>投资哲学+投资策略+投资工具</title><link>https://h3sun.github.io/post/2025-03-09-%E6%8A%95%E8%B5%84%E5%93%B2%E5%AD%A6+%E6%8A%95%E8%B5%84%E7%AD%96%E7%95%A5+%E6%8A%95%E8%B5%84%E5%B7%A5%E5%85%B7/</link><pubDate>Sun, 09 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-09-%E6%8A%95%E8%B5%84%E5%93%B2%E5%AD%A6+%E6%8A%95%E8%B5%84%E7%AD%96%E7%95%A5+%E6%8A%95%E8%B5%84%E5%B7%A5%E5%85%B7/</guid><description>&lt;h2 id="投资哲学-investment-philosophy">投资哲学 Investment Philosophy&lt;/h2>
&lt;h3 id="categorizing-investment-philosophies">categorizing Investment Philosophies&lt;/h3>
&lt;ol>
&lt;li>Market Timing versus Asset Selection: With market timing, you bet on the
movement of entire markets - financial as well as real assets. With asset
selection, you focus on picking good investments within each market.&lt;/li>
&lt;li>Activist Investing versus Passive Investing: With passive investing, you take
positions in companies and hope that the market corrects its mistakes. With
activist investing, you play a role (or provide the catalyst) in correcting market mistakes.&lt;/li>
&lt;li>Time Horizon: Some philosophies require that you invest for long time
periods. Others are based upon short holding periods.&lt;/li>
&lt;/ol>
&lt;h3 id="investment-philosophy-examples">Investment Philosophy Examples&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>价值投资 Value Investing&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>寻找 underpriced 的 stock，通过长期持有获取价值回归的收益。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>增长投资 Growth Investing&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>寻找潜力高的公司，即使当前估值高。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>动量投资 Momentum Investing&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>买入上涨趋势中的资产，并在衰退趋势前卖出&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>reference: &lt;a href="https://www.investopedia.com/terms/i/investment-philosophy.asp">https://www.investopedia.com/terms/i/investment-philosophy.asp&lt;/a>&lt;/li>
&lt;li>reference: &lt;a href="https://pages.stern.nyu.edu/~adamodar/pdfiles/country/invphil1day.pdf">https://pages.stern.nyu.edu/~adamodar/pdfiles/country/invphil1day.pdf&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="投资策略-investment-strategies">投资策略 Investment Strategies&lt;/h2>
&lt;h3 id="investment-strategies-example">Investment Strategies Example&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>资产配置 Asset Allocation&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>根据投资者的风险偏好，将资金分配到股票，债券，房地产等不同投资产品&lt;/li>
&lt;li>age% 防守&lt;/li>
&lt;li>（1 - age%）进攻&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>定投策略（Dollar-Cost Averaging, DCA）&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>定期投入固定金额资金，无论市场涨跌，减少择时风险，平滑成本&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>量化投资（Quantitative Investing）&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>利用数学模型和计算机算法进行交易，如高频交易（HFT）和因子投资（Factor Investing）。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="投资工具-investment-tools">投资工具 Investment Tools&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>股票 Stock&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>大宗商品&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>房地产&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>黄金&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>债券&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>货币基金&lt;/strong>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="如何选择合适自己的投资方式">如何选择合适自己的投资方式&lt;/h2>
&lt;ol>
&lt;li>明确目标
&lt;ul>
&lt;li>短期（1-3 年）：适合短线交易、动量策略、期权交易。&lt;/li>
&lt;li>中期（3-10 年）：适合成长股投资、定投指数基金、宏观对冲策略。&lt;/li>
&lt;li>长期（10 年以上）：适合价值投资、指数投资、房地产投资。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>评估风险承受能力
&lt;ul>
&lt;li>低风险投资者：优先选择债券、指数基金、房地产。&lt;/li>
&lt;li>中等风险投资者：配置成长股、ETF、REITs。&lt;/li>
&lt;li>高风险投资者：可以考虑个股、期权、外汇、加密货币。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>结合市场环境
&lt;ul>
&lt;li>牛市：适合成长投资、动量投资。&lt;/li>
&lt;li>熊市：适合价值投资、宏观对冲策略、债券投资。&lt;/li>
&lt;li>高通胀时期：黄金、大宗商品、房地产表现较好。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="个人的-takeaway">个人的 takeaway&lt;/h2>
&lt;p>首先对我来说最重要的一点是明确职业生涯是提供财富的基石，投资只是让储蓄的钱自动生钱的一个机会。其次想明确的是了解投资和投机的区别，长期持有而非短期投机。&lt;/p></description></item><item><title>从折纸的挫败到金融理财的思考</title><link>https://h3sun.github.io/post/2025-03-07-systemic-thinking/</link><pubDate>Fri, 07 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-07-systemic-thinking/</guid><description>&lt;h2 id="折纸活动的失败">折纸活动的失败&lt;/h2>
&lt;p>这周四，我参加了公司内部的折纸活动。教学视频大约 30 分钟，但有些步骤对我来说相当困难。我花了 45 分钟看了 15 分钟视频，但操作中某个关键步骤卡住了，怎么也弄不出来。回头一看，发现前面的步骤可能也有不少错误，最终只能放弃这件作品。而我的朋友 Neil 则表现得相当不错，他完成了整个 30 分钟的“大鹅”作品！&lt;/p>
&lt;p>这次折纸的挫败让我想起了一句话——“人要是行，干一行行一行，一行行行行行；要是不行，干一行不行一行，一行不行行行不行。” 有些人无论在哪个领域都能游刃有余，而有些人则在不同领域屡屡受挫。我不禁回想起自己在学习过程中的种种经历，发现失败的模式似乎一直存在。&lt;/p>
&lt;h2 id="擅长领域和不擅长领域">擅长领域和不擅长领域&lt;/h2>
&lt;p>在我短暂而平凡的前半生里，我有幸接触了许多领域，有的学得还不错，有的则不尽如人意。总体来说，我喜欢思考，并且在需要高思维能力的领域表现相对更好，比如围棋、数学和编程。当然，这只是相对于我的其他能力而言，距离真正的顶级天赋仍然相差甚远。而在艺术和体育方面，我的天赋似乎就显得格外薄弱，例如绘画、乐器和篮球。&lt;/p>
&lt;p>回顾自己在某些领域学不好的原因，一方面可能是投入的时间不够，另一方面则是缺乏正反馈，导致挫败感不断累积，最终选择了放弃。而在那些相对擅长的领域，情况正好相反——我能不断获得正反馈，形成系统化的思维模式，使得学习更加高效且充满成就感。&lt;/p>
&lt;h2 id="成体系的思维方式">成体系的思维方式&lt;/h2>
&lt;p>我擅长的学习方式是体系化思维，它具备以下特点：&lt;/p>
&lt;ol>
&lt;li>明确的框架——在这些领域中，通常有一套稳定的分析和解决问题的结构，而不是零散的思考。&lt;/li>
&lt;li>可扩展、可复用——可以通过归纳总结，让未知问题借助已知的方法得以解决。&lt;/li>
&lt;li>注重因果逻辑——更关注事物之间的因果关系，而不是单纯依赖感觉。&lt;/li>
&lt;/ol>
&lt;p>这种思维模式让我在面对问题时，能够迅速归类，大脑能自动联想到相应的应对策略。简单的问题，可能直接有一个解决方案；复杂的问题，大脑至少能提供一个合理的思考方向。更重要的是，体系化的思维方式能极大地节省思维空间，避免在无效的分支上浪费过多精力。&lt;/p>
&lt;h2 id="艺术的困境与突破">艺术的困境与突破&lt;/h2>
&lt;p>相比之下，我在艺术方面的天赋实在糟糕——手上功夫差，审美也不行，画什么都不像，竖笛考试时，全班只能听到刺耳的噪音，艺术节的活动也只是勉强做些配音工作。&lt;/p>
&lt;p>回头想想，或许是因为我在这些领域缺乏一个系统化的思维方式，或者这些领域中系统的思维方式并不那么重要。比如，画画的时候，如果没有基础的构图框架，光是处理小细节就已经难如登天，更别提整体效果了。竖笛考试的时候，我缺乏对于基本概念的掌握，比如认五线谱与拍子，更别提大的框架。&lt;/p>
&lt;h2 id="理财新的体系化探索">理财：新的体系化探索&lt;/h2>
&lt;p>最近，我开始研究金融理财，同样希望通过体系化的思维模式来构建一个清晰的大框架。或许短时间内无法找到最优的投资策略，但建立基本的逻辑框架是必要的。正如学习数学、编程一样，理清核心概念，找到因果关系，才能让后续的学习和实践变得更高效。&lt;/p>
&lt;p>折纸活动的失败让我反思学习方式的重要性——在擅长的领域，我依靠体系化思维高效学习，而在缺乏框架的领域，则容易陷入挫败。艺术类技能的困难，或许正是因为缺乏清晰的逻辑结构。如今，在学习金融理财的过程中，我希望运用同样的系统化方法，建立大框架，从而更理性、高效地掌握这一新领域。&lt;/p></description></item><item><title>退休账户梳理101</title><link>https://h3sun.github.io/post/2025-03-06-hack-retirement/</link><pubDate>Thu, 06 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-06-hack-retirement/</guid><description>&lt;h1 id="-退休金梳理-101">🚀 退休金梳理 101&lt;/h1>
&lt;hr>
&lt;h2 id="401k-ira-pre-tax-after-tax-扫盲">401(k), IRA, pre-tax, after-tax 扫盲&lt;/h2>
&lt;h3 id="-按照账户类型401k-vs-ira">📌 按照账户类型：401(k) vs. IRA&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>401(k) (Employer-Sponsored Plan)&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>公司提供的，公司有的时候会提供 match。&lt;/li>
&lt;li>投资选择比较少。&lt;/li>
&lt;li>有管理费。&lt;/li>
&lt;li>RMD （Required Minimum Distribution）72 岁以后要取钱。&lt;/li>
&lt;li>59.5 岁取钱才不会有罚金。&lt;/li>
&lt;li>Possible administration fees from the employer.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>IRA (Individual Retirement Account)&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>个人开户，不需要公司提供。&lt;/li>
&lt;li>投资选择多样。&lt;/li>
&lt;li>&lt;strong>Roth IRA 没有 RMDs&lt;/strong>, but &lt;strong>Traditional IRA 有&lt;/strong>.&lt;/li>
&lt;li>没有管理费。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="-按照投入方式税前-vs-税后">🔹 按照投入方式：税前 VS 税后&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>Pre-Tax&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>税前投入，可以降低 tax bracket。&lt;/li>
&lt;li>取出的时候交税。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>After-Tax&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>税后投入，不能降低 tax bracket。&lt;/li>
&lt;li>没有资本利得税。&lt;/li>
&lt;li>取出的时候不用交税。&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="税收总结">税收总结&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>When do you pay tax&lt;/th>
&lt;th>Contribution&lt;/th>
&lt;th>Growth&lt;/th>
&lt;th>Withdrawal (Subject to income tax)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Traditional (Pre-Tax)&lt;/strong>&lt;/td>
&lt;td>No&lt;/td>
&lt;td>No&lt;/td>
&lt;td>Yes&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Roth (After-Tax)&lt;/strong>&lt;/td>
&lt;td>Yes&lt;/td>
&lt;td>No&lt;/td>
&lt;td>No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>After-Tax Backdoors&lt;/strong>&lt;/td>
&lt;td>Yes&lt;/td>
&lt;td>No&lt;/td>
&lt;td>Yes&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="-如何把钱放进去假设你是一个公司雇员">🚀 如何把钱放进去（假设你是一个公司雇员）&lt;/h2>
&lt;h3 id="-公司相关">📌 公司相关&lt;/h3>
&lt;ol>
&lt;li>Employee contribution (22500)&lt;/li>
&lt;li>Employer matching&lt;/li>
&lt;li>mega backdoor&lt;/li>
&lt;/ol>
&lt;p>1 + 2 + 3 &amp;lt;= 66000&lt;/p>
&lt;h3 id="-个人行为">📌 个人行为&lt;/h3>
&lt;ul>
&lt;li>step1， 开一个 traditional IRA，roth IRA&lt;/li>
&lt;li>step2，个人银行 6500 转到 traditional IRA&lt;/li>
&lt;li>step3，settle 以后立刻转 Roth IRA&lt;/li>
&lt;li>step4，File 8606&lt;/li>
&lt;/ul>
&lt;h2 id="-如何选择">💡 如何选择&lt;/h2>
&lt;ol>
&lt;li>pre-tax or after-tax？取决于你将来的收入会不会比现在高？&lt;/li>
&lt;li>401(k) or IRA？你的投资水平能不能赢跑赢大盘？&lt;/li>
&lt;li>rollover，基本来说 pre-tax 能换 after-tax，401k 能换 IRA&lt;/li>
&lt;/ol>
&lt;h2 id="附录from-chatgpt">附录，from chatgpt&lt;/h2>
&lt;hr>
&lt;h2 id="-comparing-401k-and-ira-pre-tax-vs-after-tax">🔹 Comparing 401(k) and IRA: Pre-Tax vs. After-Tax&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Feature&lt;/th>
&lt;th>401(k) (Pre-Tax)&lt;/th>
&lt;th>401(k) (After-Tax)&lt;/th>
&lt;th>401(k) (Roth)&lt;/th>
&lt;th>IRA (Pre-Tax)&lt;/th>
&lt;th>IRA (After-Tax)&lt;/th>
&lt;th>IRA (Roth)&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>Contributions&lt;/strong>&lt;/td>
&lt;td>Pre-tax&lt;/td>
&lt;td>After-tax&lt;/td>
&lt;td>After-tax&lt;/td>
&lt;td>Pre-tax&lt;/td>
&lt;td>After-tax&lt;/td>
&lt;td>After-tax&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Tax Benefit&lt;/strong>&lt;/td>
&lt;td>Reduces taxable income now&lt;/td>
&lt;td>No immediate tax benefit&lt;/td>
&lt;td>No immediate tax benefit&lt;/td>
&lt;td>Reduces taxable income&lt;/td>
&lt;td>No immediate tax benefit&lt;/td>
&lt;td>No immediate tax benefit&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Growth&lt;/strong>&lt;/td>
&lt;td>Tax-deferred&lt;/td>
&lt;td>Tax-deferred&lt;/td>
&lt;td>Tax-free&lt;/td>
&lt;td>Tax-deferred&lt;/td>
&lt;td>Tax-deferred&lt;/td>
&lt;td>Tax-free&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Withdrawals&lt;/strong>&lt;/td>
&lt;td>Taxed at retirement&lt;/td>
&lt;td>Taxed at retirement&lt;/td>
&lt;td>Tax-free&lt;/td>
&lt;td>Taxed at retirement&lt;/td>
&lt;td>Taxed at retirement&lt;/td>
&lt;td>Tax-free&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Employer Match&lt;/strong>&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Investment Options&lt;/strong>&lt;/td>
&lt;td>Limited (Employer chooses)&lt;/td>
&lt;td>Limited (Employer chooses)&lt;/td>
&lt;td>Limited (Employer chooses)&lt;/td>
&lt;td>Almost unlimited&lt;/td>
&lt;td>Almost unlimited&lt;/td>
&lt;td>Almost unlimited&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>RMD (Required Minimum Distributions)&lt;/strong>&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>✅ Yes (Can roll into Roth IRA to avoid)&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>✅ Yes&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Administration Fees&lt;/strong>&lt;/td>
&lt;td>✅ Yes (Employer fees)&lt;/td>
&lt;td>✅ Yes (Employer fees)&lt;/td>
&lt;td>✅ Yes (Employer fees)&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;td>❌ No&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="-explanation">🔹 Explanation&lt;/h2>
&lt;h3 id="-pre-tax-accounts-traditional-401k--ira">🔷 &lt;strong>Pre-Tax Accounts (Traditional 401(k) &amp;amp; IRA)&lt;/strong>&lt;/h3>
&lt;ul>
&lt;li>Contributions are &lt;strong>before-tax&lt;/strong> (reduce taxable income now).&lt;/li>
&lt;li>Growth is &lt;strong>tax-deferred&lt;/strong> (you don’t pay taxes until withdrawal).&lt;/li>
&lt;li>Withdrawals are &lt;strong>fully taxable in retirement&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>RMDs apply&lt;/strong> at age 73.&lt;/li>
&lt;li>Ideal for those who expect to be in a &lt;strong>lower tax bracket in retirement&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;h3 id="-after-tax-non-roth-401k--ira">🔷 &lt;strong>After-Tax (Non-Roth) 401(k) &amp;amp; IRA&lt;/strong>&lt;/h3>
&lt;ul>
&lt;li>Contributions are &lt;strong>after-tax&lt;/strong> (no immediate tax deduction).&lt;/li>
&lt;li>Growth is &lt;strong>tax-deferred&lt;/strong>, but &lt;strong>earnings are taxed upon withdrawal&lt;/strong>.&lt;/li>
&lt;li>Withdrawals are &lt;strong>partially taxable&lt;/strong> (contributions tax-free, but earnings taxed).&lt;/li>
&lt;li>&lt;strong>RMDs apply&lt;/strong> at age 73.&lt;/li>
&lt;li>&lt;strong>Can be used for the Mega Backdoor Roth strategy!&lt;/strong>&lt;/li>
&lt;/ul>
&lt;h3 id="-roth-accounts-roth-401k--roth-ira">🔷 &lt;strong>Roth Accounts (Roth 401(k) &amp;amp; Roth IRA)&lt;/strong>&lt;/h3>
&lt;ul>
&lt;li>Contributions are &lt;strong>after-tax&lt;/strong> (no upfront tax benefit).&lt;/li>
&lt;li>Growth is &lt;strong>completely tax-free&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>Qualified withdrawals are tax-free in retirement&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>RMDs apply to Roth 401(k)&lt;/strong>, but you can &lt;strong>roll it into a Roth IRA to avoid RMDs&lt;/strong>.&lt;/li>
&lt;li>&lt;strong>No RMDs for Roth IRA!&lt;/strong> Funds can grow tax-free indefinitely.&lt;/li>
&lt;li>Best for those who expect to be in a &lt;strong>higher tax bracket in retirement&lt;/strong>.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-mega-backdoor-roth-strategy">🔥 &lt;strong>Mega Backdoor Roth Strategy&lt;/strong>&lt;/h2>
&lt;p>💡 The &lt;strong>Mega Backdoor Roth&lt;/strong> is an advanced retirement savings strategy that allows high earners to &lt;strong>move after-tax 401(k) contributions into a Roth IRA or Roth 401(k)&lt;/strong>, unlocking tax-free growth.&lt;/p>
&lt;h3 id="-how-it-works">✅ &lt;strong>How It Works:&lt;/strong>&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Max out regular 401(k) contributions&lt;/strong> ($23,000 in 2024, $30,500 if 50+).&lt;/li>
&lt;li>&lt;strong>Make additional after-tax contributions&lt;/strong> (if your plan allows).&lt;/li>
&lt;li>&lt;strong>Immediately convert after-tax contributions into a Roth IRA or Roth 401(k)&lt;/strong> (before earnings accumulate and become taxable).&lt;/li>
&lt;li>&lt;strong>Enjoy tax-free growth and withdrawals in retirement!&lt;/strong>&lt;/li>
&lt;/ol>
&lt;h3 id="-why-use-the-mega-backdoor-roth">🔷 &lt;strong>Why Use the Mega Backdoor Roth?&lt;/strong>&lt;/h3>
&lt;ul>
&lt;li>Allows &lt;strong>higher Roth contributions beyond standard limits&lt;/strong>.&lt;/li>
&lt;li>Helps &lt;strong>high earners&lt;/strong> build tax-free retirement income.&lt;/li>
&lt;li>&lt;strong>Avoids RMDs&lt;/strong> if rolled into a Roth IRA.&lt;/li>
&lt;/ul>
&lt;p>⚠️ &lt;strong>Not all employer 401(k) plans allow after-tax contributions or in-plan Roth conversions.&lt;/strong> Check your plan’s rules!&lt;/p>
&lt;hr>
&lt;h2 id="-retirement-tax-hack-choosing-the-right-plan">🚀 Retirement Tax Hack: Choosing the Right Plan&lt;/h2>
&lt;ul>
&lt;li>If you&amp;rsquo;re in a &lt;strong>high tax bracket now&lt;/strong>, a &lt;strong>Traditional 401(k) or IRA&lt;/strong> can reduce taxable income.&lt;/li>
&lt;li>If you expect to be in a &lt;strong>higher tax bracket later&lt;/strong>, a &lt;strong>Roth 401(k) or Roth IRA&lt;/strong> helps avoid future taxes.&lt;/li>
&lt;li>&lt;strong>Max out employer 401(k) matching first&lt;/strong> before investing in IRAs.&lt;/li>
&lt;li>&lt;strong>Diversify&lt;/strong>: Having both &lt;strong>pre-tax and after-tax&lt;/strong> accounts gives flexibility in retirement withdrawals.&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-final-thoughts">📢 Final Thoughts&lt;/h2>
&lt;p>Understanding &lt;strong>401(k), Roth, and IRA&lt;/strong> options helps you make &lt;strong>tax-smart decisions&lt;/strong> for retirement. The key is to balance &lt;strong>pre-tax and after-tax&lt;/strong> contributions based on your income, expected tax rates, and long-term financial goals.&lt;/p>
&lt;p>🚀 &lt;strong>Start investing now! Your future self will thank you.&lt;/strong>&lt;/p>
&lt;h2 id="reference">reference:&lt;/h2>
&lt;p>&lt;a href="https://youtu.be/7Ssh24wzaMI">https://youtu.be/7Ssh24wzaMI&lt;/a>&lt;/p></description></item><item><title>从大学电路课程到人生旅途</title><link>https://h3sun.github.io/post/2025-03-01-%E4%BB%8E%E5%A4%A7%E5%AD%A6%E7%94%B5%E8%B7%AF%E8%AF%BE%E7%A8%8B%E5%88%B0%E4%BA%BA%E7%94%9F%E6%97%85%E9%80%94%E7%9A%84%E6%80%9D%E8%80%83/</link><pubDate>Sat, 01 Mar 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-03-01-%E4%BB%8E%E5%A4%A7%E5%AD%A6%E7%94%B5%E8%B7%AF%E8%AF%BE%E7%A8%8B%E5%88%B0%E4%BA%BA%E7%94%9F%E6%97%85%E9%80%94%E7%9A%84%E6%80%9D%E8%80%83/</guid><description>&lt;p>看了 3 月底去圣地亚哥的机票，洗澡时忽然想起自己曾在 UCSD 学习生活的点点滴滴。睡前随手写几句。&lt;/p>
&lt;p>记得有一门电路课程，概念本身并不算难理解，但想在考试中拿高分却异常艰难。学习的过程像是层层递进的考验：先是一点一点地理解知识点，理解之后再逐条熟悉公式，熟悉完公式后还要一题一题地练习。练习过程中，需要逐个函数去分析，逐个变量去求解。即使把所有的准备工作做到极致，考试时只要有那么一瞬间大脑短路，一个变量算错，整道题目的答案就可能全盘皆输，分数被扣个精光。&lt;/p>
&lt;p>如今，那门课的内容我已经几乎忘得一干二净，想想倒也有些可惜——学了那么多知识，最后在生活和工作中却没怎么用上。但回头看，那个不断练习、精进的过程，似乎和我现在专注的事情有些相似。&lt;/p>
&lt;p>最近在健身和打 Poker，二者的训练方式竟然如出一辙。健身需要一个动作一个动作地做，一口一口地吃，但只要遇到一次意外受伤，或者突如其来的生病，肌肉就会迅速流失。Poker 亦是如此，每一条街都需要仔细思考，每一个底池都可能是心理与技巧的博弈，但只要遇上一手 Cooler，整个 Session 可能就会瞬间崩盘。&lt;/p>
&lt;p>现在流行一句话：“人生是一场旅途。” 这话确实有道理，但我的理解是，每个人的旅途天差地别，甚至是云泥之别。物质决定意识，不同的起点和经历，也决定了人与人对生活的感悟。有些人的旅途是在飞机的头等舱里，窗外是云海与极光；有些人的旅途是在轰隆作响的绿皮火车上，吃着泡面和肉肠；而有些人的旅途，则是瘸着腿行走在伸手不见五指的洞穴里，看不到一点光。&lt;/p>
&lt;p>回头看，电路课程、健身、Poker 似乎成了我本人特殊的人生旅途缩影。我所有的成就都需要一点一滴的积累，gradually，但我所经历的困难和挫折，却总是突如其来，abruptly。所以，我对人生的感悟是：建造一栋大楼需要一砖一瓦，但一场地震，就足以让它轰然倒塌。可即便地震摧毁了一切，我们仍然要重新建造大楼。&lt;/p>
&lt;p>我能理解为什么那么多人渴望一夜暴富，一夜成名。或许，他们和我一样，难以接受这种不对等——为什么所有的意外和灾难总是突如其来，而所有的成就都需要长期积累？为什么不能反过来，让成功轻而易举，而困难变得缓慢且可控？当然，现实里确实有些人的人生易如反掌，成就是天降横财，仿佛老天爷特意赏饭吃。我很好奇，这样的人又会如何看待人生？如果有机会，真想认识他们，听听他们的感悟。&lt;/p>
&lt;p>想想我的出生条件，其实已经算得上幸运，家庭非常好，非常好家庭，我没什么可抱怨的。尽管我也遇到过许多困难……等等，我怎么了？已经懦弱到不敢写下“虽然遇到很大困难，也能积极面对”了吗？是的，有时候，困难确实太大了，让人无法轻易保持乐观。而且，我的能力有限，人类的能力有限，很多事情的解决并不掌握在我们手中。只能说，有些事终归是命，还是得等老天爷赏饭吃。&lt;/p>
&lt;p>我不想写无聊的鸡汤，只是想谈谈不同人面对困难的方式。或许人与人之间的那一点点优势，就体现在面对挑战时的态度：高机能的人能乐观地面对，并冷静地执行。&lt;/p>
&lt;p>我只是个普通人，但我也有一个梦想，我想保护好它。当然，我也是个完美主义者，价值观也带着局限性。所以，我对自己的未来有两种可能的推测：要么我改变了价值观，调整了梦想；要么我克服了困难，成了更成熟的人。无论是哪一种，我都期待着它的到来。&lt;/p></description></item><item><title>Become a Winning Online Poker Player in 30 Days - Week 4</title><link>https://h3sun.github.io/post/2025-02-16-cards-chat-week4/</link><pubDate>Sun, 16 Feb 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-02-16-cards-chat-week4/</guid><description>&lt;h2 id="day-22---unpredictable-play-the-strategy-in-reraising-57s">Day 22 - Unpredictable Play (The Strategy in Reraising 57s)&lt;/h2>
&lt;h3 id="why-play-unpredictably">Why Play Unpredictably?&lt;/h3>
&lt;ul>
&lt;li>Prevent Goodd Players from taking advantage of predictable tendencies&lt;/li>
&lt;li>Makes you tougher to play against&lt;/li>
&lt;li>Exploitive Play: How do I play the best against this specific opponent?&lt;/li>
&lt;li>GTO: What is the best overall strategy to have?&lt;/li>
&lt;/ul>
&lt;h3 id="blockers-definition">Blockers Definition&lt;/h3>
&lt;ol>
&lt;li>Cards you hold that are significant only because it means your opponent cannot be holding onto them.&lt;/li>
&lt;/ol>
&lt;h3 id="light-3-betting">Light 3-betting&lt;/h3>
&lt;ol>
&lt;li>Target players capable of folding to aggression&lt;/li>
&lt;li>Pick hands you can easily fold to 4-bet that play well postflop or have blockers&lt;/li>
&lt;/ol>
&lt;h3 id="bonus-gto">Bonus GTO&lt;/h3>
&lt;ol>
&lt;li>Bluff the river if you are at the bottom of your range.&lt;/li>
&lt;li>Bluff catch the river if you are at the top of your range. - If fold, what to call?&lt;/li>
&lt;/ol>
&lt;h2 id="day-23---heads-up-the-perfect-excuse-to-play-every-hands">Day 23 - Heads Up (The Perfect Excuse to play every hands)&lt;/h2>
&lt;h3 id="short-handed-adjustments">Short-Handed Adjustments&lt;/h3>
&lt;ol>
&lt;li>Play same hands from 3-max to full ring, all else equal.&lt;/li>
&lt;li>Any leaks get dramatically magnified when switching table sizes.&lt;/li>
&lt;/ol>
&lt;h3 id="heads-up-button-strategy">Heads-Up Button Strategy&lt;/h3>
&lt;ol>
&lt;li>Raise every hands besides junk&lt;/li>
&lt;li>Attack your opponent post-flop with multi-street bluffs and thin value bets&lt;/li>
&lt;/ol>
&lt;h3 id="heads-up-big-blind-strategy">Heads-up Big Blind Strategy&lt;/h3>
&lt;ol>
&lt;li>Jam wide over raises with 20bb or less effective stack.&lt;/li>
&lt;li>Defend pre-flop with a wide range and call your opponent down stubbornly.&lt;/li>
&lt;/ol>
&lt;h3 id="sample-shoving-ranges">Sample Shoving Ranges&lt;/h3>
&lt;ol>
&lt;li>Button with 10bb: 22, K2, Q6, Q2s, J7, J2s, T7, T4s, 97, 94s, 87, 84s, 74s&lt;/li>
&lt;li>Big Blind with 20bb: 22, A2, K5, K2s, Q8, Q2s, J9, J5s, T8, T6s, 98, 95s&lt;/li>
&lt;/ol>
&lt;h2 id="day-24---mentality-the-single-most-important-non-playing-skill">Day 24 - Mentality (The single most important non-playing skill)&lt;/h2>
&lt;h3 id="game-grade">Game Grade&lt;/h3>
&lt;ol>
&lt;li>A-Game: The best you can play&lt;/li>
&lt;li>B-Game: Play well but making some mistakes&lt;/li>
&lt;li>C-Game: Making Clear mistakes relative t o your best possible games&lt;/li>
&lt;li>Less skilled player can win more than top-player if constant A-Game&lt;/li>
&lt;li>Relastic Goal: A-game vast majority of the time and occasional B-Game&lt;/li>
&lt;/ol>
&lt;h3 id="key-mental-game-concept">Key Mental Game Concept&lt;/h3>
&lt;ol>
&lt;li>Verbalize your thoughts process.&lt;/li>
&lt;li>Play Tighter.&lt;/li>
&lt;li>End the session.&lt;/li>
&lt;li>Take a break.&lt;/li>
&lt;li>Study and Regroup.&lt;/li>
&lt;/ol>
&lt;h3 id="mike-caros-genie">Mike Caro&amp;rsquo;s Genie&lt;/h3>
&lt;ol>
&lt;li>Genie: Win 10k more in up session or lose $10k less in down session?&lt;/li>
&lt;li>Limiting loss is just as good as increasing wins.&lt;/li>
&lt;/ol>
&lt;h2 id="day-25---more-icm-generating-pre-flop-ranges">Day 25 - More ICM (Generating Pre-Flop Ranges)&lt;/h2>
&lt;h3 id="software-to-generate-ranges">Software to Generate Ranges&lt;/h3>
&lt;ol>
&lt;li>Open-Shove and calling ranges are free at Holdem Resources&lt;/li>
&lt;li>Ranges involving raise&lt;/li>
&lt;/ol>
&lt;h3 id="two-important-rules">Two important rules&lt;/h3>
&lt;ol>
&lt;li>15bb effective stack in small blind, non-junk hand.&lt;/li>
&lt;li>Profitable (or at least close) to shove magic range if playing shove-fold.&lt;/li>
&lt;li>Don&amp;rsquo;t worry about memorizing exact ranges.&lt;/li>
&lt;li>Call in big blind facing an all-in with better than 2:1 pot odds.&lt;/li>
&lt;/ol>
&lt;h3 id="factors-impacting-ranges">Factors impacting ranges&lt;/h3>
&lt;ol>
&lt;li>Payout Structure&lt;/li>
&lt;li>Stacks and Players Remaining&lt;/li>
&lt;li>Opponent Reads&lt;/li>
&lt;li>Ante Size&lt;/li>
&lt;/ol>
&lt;h3 id="an-important-calling-range">An important Calling Range&lt;/h3>
&lt;ol>
&lt;li>We are big blind and button shoves 10bb&lt;/li>
&lt;li>Our Calling Range: 22, A2, K4s, K7o, Q8s, Q9o, J9s, JTo&lt;/li>
&lt;/ol>
&lt;h2 id="day-26-defending-the-big-blinds-how-to-play-pokers-trickiest-position">Day 26: Defending the Big Blinds (How to play poker&amp;rsquo;s trickiest position)&lt;/h2>
&lt;h3 id="defense-range-factor">Defense Range Factor&lt;/h3>
&lt;ol>
&lt;li>Raise Size&lt;/li>
&lt;li>Position of Raiser&lt;/li>
&lt;li>State of Tournament&lt;/li>
&lt;li>Ante&lt;/li>
&lt;/ol>
&lt;h3 id="pre-flop-action">Pre-Flop Action&lt;/h3>
&lt;h4 id="3-bet-hands">3-bet hands&lt;/h4>
&lt;ol>
&lt;li>99+, AQo, AJs and occasional 53s, 63s, 84s, 73s.&lt;/li>
&lt;/ol>
&lt;h4 id="3-bet-shove">3-bet shove&lt;/h4>
&lt;ol>
&lt;li>Shove if effective stack under 25bb&lt;/li>
&lt;li>Shove if facing multiple raises with 20% of the effective stack in the middle.&lt;/li>
&lt;/ol>
&lt;h4 id="3-bet-small">3-bet small&lt;/h4>
&lt;ol>
&lt;li>Usually better to defend by calling because we&amp;rsquo;re out of position.&lt;/li>
&lt;li>Good move to apply tournament pressure against a mid stack.&lt;/li>
&lt;/ol>
&lt;h4 id="attack-small-blind-limps">Attack Small Blind Limps&lt;/h4>
&lt;ol>
&lt;li>Raise most good/playable hands when the small blind limps.&lt;/li>
&lt;li>Shove with a very wide range if the effective stack is 15bb or less.&lt;/li>
&lt;li>&lt;/li>
&lt;/ol>
&lt;h3 id="post-flop-action">Post Flop Action&lt;/h3>
&lt;ol>
&lt;li>Remember to plan your hands early, such as calling down with top pair&lt;/li>
&lt;li>If you&amp;rsquo;ve missed the flop: Default play is to check-fold.&lt;/li>
&lt;/ol>
&lt;h2 id="day-27---check-raising-vital-weapon-for-playing-without-position">Day 27 - Check-Raising (Vital Weapon for Playing without Position)&lt;/h2>
&lt;h3 id="why-check-raise">Why Check-Raise&lt;/h3>
&lt;ol>
&lt;li>Makes you unpredictable and difficult to play against.&lt;/li>
&lt;li>Lets youw in more against a likely c-bettor with both made hands and draw hands.&lt;/li>
&lt;/ol>
&lt;h3 id="key-factors-for-effective-check-raising">Key Factors for Effective Check-Raising&lt;/h3>
&lt;ol>
&lt;li>Board is coordinated.&lt;/li>
&lt;li>Hero has either a strong made hand or a draw with little showdown value.&lt;/li>
&lt;li>Villain likely to bet, otherwise there is no check-raise happening.&lt;/li>
&lt;/ol>
&lt;h3 id="bonus-check-raising-spot">Bonus Check-Raising Spot&lt;/h3>
&lt;ol>
&lt;li>Hero has a draw.&lt;/li>
&lt;li>Villain will often not bet if we check, but in the words of the mowglis: I&amp;rsquo;m good. I&amp;rsquo;m good. I&amp;rsquo;m good.&lt;/li>
&lt;/ol>
&lt;h3 id="important-spot-to-check-call-instead">Important Spot to check-Call Instead.&lt;/h3>
&lt;ol>
&lt;li>We have decent showdown value but don&amp;rsquo;t want to play a large pot.&lt;/li>
&lt;li>Applies with draws or made hands.&lt;/li>
&lt;/ol>
&lt;h3 id="and-lastly">And Lastly&lt;/h3>
&lt;ol>
&lt;li>Check-Fold if you don&amp;rsquo;t have the betting leads and miss the flop entirely.&lt;/li>
&lt;/ol>
&lt;h2 id="day-28---risk-aversion-it-depends-on-the-state-of-the-tournament">Day 28 - Risk Aversion (It depends on the state of the tournament)&lt;/h2>
&lt;h3 id="tournament-state-1-normal">Tournament State 1: Normal&lt;/h3>
&lt;ol>
&lt;li>Play similar to a cash game.&lt;/li>
&lt;li>Occurs in MTT or MTTSNG in the early stages.&lt;/li>
&lt;/ol>
&lt;h3 id="tournament-state-2-some-risk-aversion">Tournament state 2: Some Risk Aversion&lt;/h3>
&lt;ol>
&lt;li>ICM is important but most decisions aren&amp;rsquo;t heavily impacted yet.&lt;/li>
&lt;li>Start of a 9-man SNG or final tables of a 45-man.&lt;/li>
&lt;/ol>
&lt;h3 id="tournament-state-3-extreme-risk-aversion">Tournament State 3: Extreme Risk Aversion&lt;/h3>
&lt;ol>
&lt;li>ICM influences most or all decisions.&lt;/li>
&lt;li>Bubble of a 9-man or final table of an MTT.&lt;/li>
&lt;/ol>
&lt;h3 id="playing-the-short-stack">Playing the Short Stack&lt;/h3>
&lt;ol>
&lt;li>The short stack is the least affected.&lt;/li>
&lt;li>Play similarly to your normal game with tighter calling.&lt;/li>
&lt;/ol>
&lt;h3 id="playing-the-mid-stack">Playing the mid stack&lt;/h3>
&lt;ol>
&lt;li>Extreme gap between calling and shoving.&lt;/li>
&lt;li>Need a very large edge to call it off.&lt;/li>
&lt;li>Must play tighter.&lt;/li>
&lt;/ol>
&lt;h3 id="playing-the-big-stack">Playing the big stack&lt;/h3>
&lt;ol>
&lt;li>Play looser and more aggressive.&lt;/li>
&lt;li>Incredibly profitable to pressure opponent during this stage.&lt;/li>
&lt;/ol>
&lt;h3 id="shovefold-ranges">Shove/Fold Ranges&lt;/h3>
&lt;ol>
&lt;li>Adjust shove/fold ranges just like normal opening ranges.&lt;/li>
&lt;li>Big Stack can sometimes shove ATC into multiple players.&lt;/li>
&lt;/ol>
&lt;h3 id="bonus-concept-chip-utility">Bonus Concept: Chip Utility&lt;/h3>
&lt;ol>
&lt;li>Mid stack will continue to have unprofitable spots.&lt;/li>
&lt;li>Big stack will have more and more profitable spots.&lt;/li>
&lt;li>Top players go after the chip lead position.&lt;/li>
&lt;li>Example: take close shove as 2nd CL if pot gets you in contention for CL.&lt;/li>
&lt;/ol>
&lt;h2 id="day-29---floating-pokers-true-passive-aggressive-play">Day 29 - Floating (Poker&amp;rsquo;s True Passive-Aggressive Play)&lt;/h2>
&lt;h3 id="factors-favorable-to-floating">Factors Favorable to Floating&lt;/h3>
&lt;ol>
&lt;li>In position.&lt;/li>
&lt;li>Opponent on wide range.&lt;/li>
&lt;li>Small bet sizing.&lt;/li>
&lt;li>You can improve.&lt;/li>
&lt;li>Bonus: ICM Pressure.&lt;/li>
&lt;/ol>
&lt;h3 id="most-common-time-to-float">Most common time to float&lt;/h3>
&lt;ol>
&lt;li>Big blind in a heads-up pot vs small blind.&lt;/li>
&lt;li>Facing a donk bet at the flop.&lt;/li>
&lt;/ol>
&lt;h3 id="benefits-of-floating-to-bluff-raising">Benefits of Floating to Bluff Raising&lt;/h3>
&lt;ol>
&lt;li>Better risk-reward ratio.&lt;/li>
&lt;li>Gives you balanced calling range.&lt;/li>
&lt;li>Take advantage of position.&lt;/li>
&lt;/ol>
&lt;h3 id="disadvantage-of-floating">Disadvantage of floating&lt;/h3>
&lt;ol>
&lt;li>NO FOLD EQUITY.&lt;/li>
&lt;/ol>
&lt;h3 id="dont-float">DON&amp;rsquo;t FLOAT&lt;/h3>
&lt;ol>
&lt;li>Facing a 75% pot bet with 7 high from the CL on the bubble.&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>large size&lt;/li>
&lt;li>no improve&lt;/li>
&lt;li>expensive&lt;/li>
&lt;li>lose chips&lt;/li>
&lt;/ul>
&lt;h3 id="definitely-float">Definitely Float&lt;/h3>
&lt;ol>
&lt;li>Facing a min-bet in a raised pot with backdoor straight flush draw.&lt;/li>
&lt;/ol></description></item><item><title>Become a Winning Online Poker Player in 30 Days - Week 3</title><link>https://h3sun.github.io/post/2025-02-14-cards-chat-week3/</link><pubDate>Sat, 15 Feb 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-02-14-cards-chat-week3/</guid><description>&lt;h2 id="day-15---midterm">Day 15 - Midterm&lt;/h2>
&lt;p>Q1. Middle position, what&amp;rsquo;s the right action?&lt;/p>
&lt;pre>&lt;code>- ATo raise - raise
- 22 fold - call ❌
- K9o fold - fold
&lt;/code>&lt;/pre>
&lt;p>Q2. flop TJ(c)A&lt;/p>
&lt;pre>&lt;code>- If we have 78(h), shall we C-bet? No - No ✅
&lt;/code>&lt;/pre>
&lt;p>Q3. AT What to do with hijack&lt;/p>
&lt;pre>&lt;code>- raise - correct answer: Fold, fold to early position. ❌
&lt;/code>&lt;/pre>
&lt;p>Q4. 44, big blind?&lt;/p>
&lt;pre>&lt;code>- Implied odds 8:1, not call - correct ✅
&lt;/code>&lt;/pre>
&lt;p>Q5. Calculate the equity? by percent and by dollar - equity, 18.3, chip = 18.3 * total chips - correct&lt;/p>
&lt;p>Q6. Shall we bet or check at river?&lt;/p>
&lt;pre>&lt;code>- check ❌ correct bet, because we do not have show down, and we get a better hand to fold.
&lt;/code>&lt;/pre>
&lt;p>Q7. K3, what to do in small blind, big blind 14bb&lt;/p>
&lt;pre>&lt;code>- shove, ✅
&lt;/code>&lt;/pre>
&lt;p>Q8. Calculate odds ✅&lt;/p>
&lt;p>Q9. Calculate should I call? ✅&lt;/p>
&lt;p>Q10.&lt;/p>
&lt;h2 id="day-16---pot-control-thinking-like-a-chess-master">Day 16 - Pot Control (Thinking like a chess master)&lt;/h2>
&lt;h3 id="pre-flop-hand-planning">Pre-Flop Hand Planning&lt;/h3>
&lt;ol>
&lt;li>What will I do if the short stack shoves over my raise?&lt;/li>
&lt;li>If I 3-bet here with this AQ, what will I do if the initial raiser 4-bets me?&lt;/li>
&lt;/ol>
&lt;h3 id="how-many-bets">How many bets?&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>How many bets post-flop if my hand good enough to go after?&lt;/p>
&lt;ul>
&lt;li>Position&lt;/li>
&lt;li>Opponent Type&lt;/li>
&lt;li>Pre-Flop Action&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Pet Control&lt;/p>
&lt;ul>
&lt;li>Check back the flop or turn to limit the number of bets that go into the pot.&lt;/li>
&lt;li>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-17---turns-and-rivers-three-keys-to-strong-late-street-play">Day 17 - Turns and Rivers (Three keys to strong late street play)&lt;/h2>
&lt;h3 id="turn-play-concept">Turn Play Concept&lt;/h3>
&lt;ol>
&lt;li>When in doubt, if you have t he betting lead, continue firing the turn.&lt;/li>
&lt;li>Particularly with draws that don&amp;rsquo;t have showdown value.&lt;/li>
&lt;/ol>
&lt;h3 id="river-play-concept">River Play Concept&lt;/h3>
&lt;ol>
&lt;li>Switch into bluff-catching mode if there are many possible busted draws.&lt;/li>
&lt;li>bluff if you can represent a strong hand and your opponent is capable of folding.&lt;/li>
&lt;/ol>
&lt;h2 id="day-18---hand-reading-secrets-of-the-poker-magicians">Day 18 - Hand Reading (Secrets of the Poker Magicians)&lt;/h2>
&lt;h3 id="key-hand-reading-question">Key Hand Reading Question&lt;/h3>
&lt;ol>
&lt;li>What better hands are consistent with his actions?&lt;/li>
&lt;li>Would busted draws have played the way at the flop?&lt;/li>
&lt;/ol>
&lt;h3 id="hand-reading-process">Hand Reading Process&lt;/h3>
&lt;ol>
&lt;li>Go through opponent&amp;rsquo;s betting pattern for the hand starting with pre-flop.&lt;/li>
&lt;li>Also use his overall tendencies.&lt;/li>
&lt;li>very fast call, usually draws or non-nut hands.&lt;/li>
&lt;/ol>
&lt;h3 id="two-key-points-to-remember">Two key points to remember&lt;/h3>
&lt;ol>
&lt;li>You&amp;rsquo;re not trying to read robots, humans do unpredictable things.&lt;/li>
&lt;li>Even very experienced hand readers will get surprised.&lt;/li>
&lt;/ol>
&lt;h2 id="day-19---small-blind-play-if-youve-ever-secretly-wanted-to-limp-a-lot">Day 19 - Small Blind Play (If you&amp;rsquo;ve ever secretly wanted to limp a lot)&lt;/h2>
&lt;ol>
&lt;li>Limp most of the time to keep the pot small while playing most hands.&lt;/li>
&lt;li>Cater your strategy to the big hand such as raising vs tight-passive opponent.&lt;/li>
&lt;/ol>
&lt;h3 id="stay-aggressive">Stay Aggressive&lt;/h3>
&lt;ol>
&lt;li>Continue to raise and 3-bet your stronger hands.&lt;/li>
&lt;li>Use larger raise-sizing because you&amp;rsquo;re out of position.&lt;/li>
&lt;li>Semi-bluff and go after value aggressively in limped pots.&lt;/li>
&lt;li>Bluff in heads-up pots or very favorable multi-way spots.&lt;/li>
&lt;/ol>
&lt;h2 id="day-20---variance-and-bankroll-management-why-recreational-players-keep-coming-back">Day 20 - Variance and Bankroll Management (Why Recreational Players Keep Coming Back)&lt;/h2>
&lt;h3 id="important-stats">Important Stats&lt;/h3>
&lt;ol>
&lt;li>ROI, Return on Investment = Percent Profit Per Game&lt;/li>
&lt;li>ITM, In the Money = Percent of Tournaments You Cash&lt;/li>
&lt;/ol>
&lt;h3 id="individual-vs-long-term-game-profit">Individual vs Long-Term Game Profit&lt;/h3>
&lt;ol>
&lt;li>Hannah makes $3 per game over 5000 games&lt;/li>
&lt;li>Hannah&amp;rsquo;s Profits in Next 5 games: -20, -20, -20, 40, -20&lt;/li>
&lt;/ol>
&lt;h3 id="factors-decreasing-swings">Factors Decreasing Swings&lt;/h3>
&lt;ol>
&lt;li>Greater Edge and ROI in the games&lt;/li>
&lt;li>Flatter payout structure (greater % paid more even amounts)&lt;/li>
&lt;/ol>
&lt;h3 id="common-no-limit-holdem-tourney-swings">Common no-Limit Hold&amp;rsquo;EM Tourney Swings&lt;/h3>
&lt;ol>
&lt;li>Very common: 25 buy-ins.&lt;/li>
&lt;li>Common: 50 buy-ins.&lt;/li>
&lt;li>Less Frequent: 100 buy-ins.&lt;/li>
&lt;/ol>
&lt;h3 id="remember">Remember&lt;/h3>
&lt;ol>
&lt;li>Swings are inevitable. embrace them.&lt;/li>
&lt;li>Focus on studying and playing in the softest games.&lt;/li>
&lt;/ol>
&lt;h3 id="quantify-tournament-variance">Quantify Tournament Variance&lt;/h3>
&lt;ol>
&lt;li>Use Primedope Tournament Variance Calculator&lt;/li>
&lt;li>Long Run = Number of Games that Guarantees * Profit&lt;/li>
&lt;li>(Not Actually Guarantee)&lt;/li>
&lt;/ol>
&lt;h2 id="day-21---tracking-software-know-your-opponent-better-than-their-own-moms">Day 21 - Tracking Software (Know Your opponent better than their own moms)&lt;/h2>
&lt;h3 id="benefits-of-tracking-software">Benefits of Tracking Software&lt;/h3>
&lt;ol>
&lt;li>Show Results, All Hands (With replayer), Statistics&lt;/li>
&lt;li>Use in real-time to get live opponent stats in HUD&lt;/li>
&lt;li>PokerTracker4&lt;/li>
&lt;li>Holdem Manager&lt;/li>
&lt;li>Hand2Note&lt;/li>
&lt;li>DriveHUD&lt;/li>
&lt;/ol>
&lt;h3 id="key-stats">Key Stats&lt;/h3>
&lt;ol>
&lt;li>VPIP (Voluntarily Put in Pot)&lt;/li>
&lt;li>PFR (Pre-Flop Raise)&lt;/li>
&lt;/ol></description></item><item><title>Become a Winning Online Poker Player in 30 Days - Week 2</title><link>https://h3sun.github.io/post/2025-02-11-cards-chat-week2/</link><pubDate>Tue, 11 Feb 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-02-11-cards-chat-week2/</guid><description>&lt;h2 id="day-8-c-bets">Day 8 C-Bets&lt;/h2>
&lt;h3 id="do-not-c-bet">Do not C-Bet&lt;/h3>
&lt;ol>
&lt;li>Check a flop such as 789s&lt;/li>
&lt;li>Check if four or more players see the flop&lt;/li>
&lt;li>Check if you do not want to get check-raised. (Medium strong hand, just check).&lt;/li>
&lt;li>Don&amp;rsquo;t C-Bet when you monopolize Flop vs Recs: hero&amp;rsquo;s hand(AA) - flop (AA2)&lt;/li>
&lt;li>Check to an opponent who has the opportunity to C-bet, check to preflop aggressor.&lt;/li>
&lt;/ol>
&lt;h2 id="day-9-implied-odds-and-reverse-implied-odds-a-vital-deep-stack-concept">Day 9 Implied Odds and Reverse Implied Odds (A vital deep-stack concept)&lt;/h2>
&lt;h3 id="implied-odds-pre-flop-concept">Implied Odds Pre-Flop Concept&lt;/h3>
&lt;ol>
&lt;li>implied odds pre-flop: how much you can win to the cost of calling.&lt;/li>
&lt;li>You want at least 20:1 implied odds to set-mine with a low pocket pair.&lt;/li>
&lt;/ol>
&lt;h3 id="implied-odds-post-flop">Implied Odds Post-Flop&lt;/h3>
&lt;ol>
&lt;li>implied odds post-flop: Ratio of what you&amp;rsquo;re likely to win if you connect to the cost of calling.&lt;/li>
&lt;/ol>
&lt;h3 id="implied-odds-increase-if">Implied odds increase if&lt;/h3>
&lt;ol>
&lt;li>effective stack is deeper&lt;/li>
&lt;li>more active players&lt;/li>
&lt;li>action opponents&lt;/li>
&lt;/ol>
&lt;h3 id="reverse-implied-odds-your-opponents-implied-odds">Reverse Implied Odds (Your opponent&amp;rsquo;s implied odds)&lt;/h3>
&lt;ol>
&lt;li>If you are aheads, you will win little or no money&lt;/li>
&lt;li>If you are behind, you will lose a lot more money&lt;/li>
&lt;/ol>
&lt;h3 id="summarization">Summarization&lt;/h3>
&lt;ol>
&lt;li>Implied odds capture the concept of how we can win more money from our opponents than just the current pot when we hit a big hand.&lt;/li>
&lt;li>We should (at least) call with pocket pairs getting 20:1 or
better implied odds pre-flop, and be a lot more inclined to continue with draws after the flop when we’re getting good implied odds.&lt;/li>
&lt;li>You can profitably make tight folds in situations with bad reverse implied odds: Situations where you’re likely to lose more money when behind or win little more when ahead.&lt;/li>
&lt;/ol>
&lt;h2 id="day-10---the-key-to-play-the-draws-raise-and-cross-your-fingers">Day 10 - The key to play the draws (Raise and Cross Your Fingers)&lt;/h2>
&lt;h3 id="semi-bluff-aggressively">Semi-Bluff Aggressively&lt;/h3>
&lt;ol>
&lt;li>Powerful Play
&lt;ul>
&lt;li>You win if Villain folds&lt;/li>
&lt;li>You hit your draw&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Pot Odds Analysis
&lt;ul>
&lt;li>Key Calling Question: Do you have the pot odds you need for a +EV call&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Implied Odds for future betting
&lt;ul>
&lt;li>If possibility of future betting, use implied odds instead of pot odds.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="reasons-to-play-draws-more-passively">Reasons to Play Draws More Passively&lt;/h3>
&lt;ol>
&lt;li>Have little or no fold equity
&lt;ul>
&lt;li>Against someone who never folds&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>You have reasonable showdown value&lt;/li>
&lt;/ol>
&lt;h2 id="day-11---bluffing-the-art-and-science-of-making-plays">Day 11 - Bluffing (The art and science of Making plays)&lt;/h2>
&lt;h3 id="bluff-to-attack-weakness">Bluff to attack Weakness&lt;/h3>
&lt;ol>
&lt;li>Opponent tell you when they&amp;rsquo;re weak and this is the best time to bluff them.&lt;/li>
&lt;li>Scare Cards are Good Opportunities&lt;/li>
&lt;/ol>
&lt;h3 id="times-to-bluff-more">Times to Bluff More&lt;/h3>
&lt;ol>
&lt;li>Heads-Up Play&lt;/li>
&lt;li>&lt;strong>Weak Opponents&lt;/strong>&lt;/li>
&lt;/ol>
&lt;h3 id="bluffing-caveat">Bluffing Caveat&lt;/h3>
&lt;ol>
&lt;li>Pick hands without showdown value&lt;/li>
&lt;li>Try to represent a real hand you would have played this way&lt;/li>
&lt;/ol>
&lt;h2 id="day-12---river-bets-the-crucial-late-street-question">Day 12 - River Bets (The crucial late street question)&lt;/h2>
&lt;h3 id="understand-the-question">Understand the question&lt;/h3>
&lt;ol>
&lt;li>If I bet or raise, what better hands will fold? (bluff)&lt;/li>
&lt;li>If I bet or raise, what worse hands will call? (value)&lt;/li>
&lt;/ol>
&lt;h3 id="key-spots-not-to-bet-or-raise">Key Spots Not to Bet or Raise&lt;/h3>
&lt;ol>
&lt;li>Holding 9X on KQJT5&lt;/li>
&lt;li>Holding AX on 55332&lt;/li>
&lt;/ol>
&lt;h3 id="equity-denial-bet">Equity Denial Bet&lt;/h3>
&lt;ol>
&lt;li>Betting with the purpose of getting a worse hand to fold.&lt;/li>
&lt;li>The worse hand still have good equity against us.&lt;/li>
&lt;/ol>
&lt;h2 id="day-13---pre-flop-shove-spots">Day 13 - Pre-flop Shove Spots&lt;/h2>
&lt;h3 id="shove-spot">Shove Spot&lt;/h3>
&lt;ol>
&lt;li>open-shove: less than 15bb effective stack&lt;/li>
&lt;li>single raise pot: less than 25bb effectie&lt;/li>
&lt;li>over all: there is 25% or more of the effective stack in the middle&lt;/li>
&lt;/ol>
&lt;h3 id="modify">Modify&lt;/h3>
&lt;ol>
&lt;li>Facing passive and predictable opponents&lt;/li>
&lt;li>Exploitive play with premium hands&lt;/li>
&lt;/ol>
&lt;h2 id="day-14---icm-most-important-model-in-poker">Day 14 - ICM (Most important model in poker)&lt;/h2>
&lt;h3 id="definition-of-icm">Definition of ICM&lt;/h3>
&lt;ol>
&lt;li>Model that converts everyone&amp;rsquo;s chip stack in a tourney to their dollar equity.&lt;/li>
&lt;li>Input: Stack Distribution + Payout Structure&lt;/li>
&lt;li>Output: Everyone&amp;rsquo;s equities in dollars or percentages.&lt;/li>
&lt;/ol>
&lt;h3 id="ways-to-gain-equity">Ways to gain equity&lt;/h3>
&lt;ol>
&lt;li>gain chips&lt;/li>
&lt;li>watch as someone busts&lt;/li>
&lt;/ol>
&lt;h3 id="icm-calculation">ICM Calculation&lt;/h3>
&lt;ol>
&lt;li>Use software to tell us what hands to shove or fold pre-flop&lt;/li>
&lt;/ol></description></item><item><title>Become a Winning Online Poker Player in 30 Days - Week 1</title><link>https://h3sun.github.io/post/2025-02-10-cards-chat-week1/</link><pubDate>Mon, 10 Feb 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-02-10-cards-chat-week1/</guid><description>&lt;h2 id="day-1---the-power-of-position-fundamental">Day 1 - The power of position (Fundamental)&lt;/h2>
&lt;h3 id="key-takeaways">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Understand the Understand the different positions, including what each one is called and the order that they act in both pre-flop and post-flop: SB, BB, UTG, UTG+1, LJ, HJ, CO, BTN.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>You can play many more hands profitably on the button or in late position than from the early positions.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Bonus Concept: You can have good “relative position” if you’re to the right of a very aggressive player in a multiway pot.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-2---the-benefits-of-aggression-fundamental">Day 2 - The benefits of Aggression (Fundamental)&lt;/h2>
&lt;h3 id="key-takeaways-1">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Three fundamental types of actions you can take&lt;/p>
&lt;ul>
&lt;li>call -&amp;gt; passive&lt;/li>
&lt;li>check/fold -&amp;gt; neutral&lt;/li>
&lt;li>bet/raise -&amp;gt; aggressive&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Think about the players that you enjoy having as opponents. Who would you rather play against: A passive opponent who’s mainly checking and calling or an aggressive opponent who’s betting and raising a lot?&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-3---thinking-in-ranges-fundamental">Day 3 - Thinking in Ranges (Fundamental)&lt;/h2>
&lt;h3 id="key-takeaways-2">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Understand what a range is and how they’re written.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>During a hand of poker, we have one hand that stays the same, while our opponents have ranges that are changing with each new action they take.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Thinking in ranges is still an extremely valuable framework, even if the ranges are imprecise or we put Villain on a very wide range.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-4---the-two-types-of-equity-fundamental">Day 4 - The Two Types of Equity (Fundamental)&lt;/h2>
&lt;h3 id="key-takeaways-3">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Understand the concept of your equity in a pot as a poker hand progresses.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Your equity against an opponent’s range is simply how often you win the hand (assuming nobody folds) if he’s equally likely to hold any hand in his range.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>After every hand in a tournament, your equity changes to reflect how much money you’ll win on average playing out the tournament from that point forward.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-5-understanding-pot-odds-and-expected-value-fundamental">Day 5 Understanding Pot Odds and Expected Value (Fundamental)&lt;/h2>
&lt;h3 id="key-takeaways-4">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>Understand what pot odds are and how to calculate them.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Pot odds tell you what percent of the time you need to win the pot for a call to be profitable. Good players always decide whether to call based on their odds.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Expected value is the amount of money you’ll make or lose on average from a given action.&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h2 id="day-6-the-guide-to-pre-flop">Day 6 The Guide to Pre-Flop&lt;/h2>
&lt;h3 id="under-the-gun-and-utg1">Under-The-Gun and UTG+1:&lt;/h3>
&lt;ul>
&lt;li>66+&lt;/li>
&lt;li>AJo+&lt;/li>
&lt;li>A9s+&lt;/li>
&lt;li>KQo&lt;/li>
&lt;li>JTs+&lt;/li>
&lt;/ul>
&lt;h3 id="middle-position-and-lojack">Middle Position and Lojack:&lt;/h3>
&lt;ul>
&lt;li>55+&lt;/li>
&lt;li>ATo&lt;/li>
&lt;li>A7s+&lt;/li>
&lt;li>QJo+&lt;/li>
&lt;li>T9s+&lt;/li>
&lt;/ul>
&lt;h3 id="hijack-and-cutoff">Hijack and Cutoff:&lt;/h3>
&lt;ul>
&lt;li>33+&lt;/li>
&lt;li>A7o+&lt;/li>
&lt;li>A2s+&lt;/li>
&lt;li>JTo+&lt;/li>
&lt;li>K7s+&lt;/li>
&lt;li>Q8s+&lt;/li>
&lt;li>J9s+&lt;/li>
&lt;li>76s+&lt;/li>
&lt;/ul>
&lt;h3 id="button">Button:&lt;/h3>
&lt;ul>
&lt;li>22+&lt;/li>
&lt;li>A2+&lt;/li>
&lt;li>K2s+&lt;/li>
&lt;li>K60+&lt;/li>
&lt;li>Q4s+&lt;/li>
&lt;li>Q70+&lt;/li>
&lt;li>J6s+&lt;/li>
&lt;li>J80+&lt;/li>
&lt;li>T80+&lt;/li>
&lt;li>54s+&lt;/li>
&lt;/ul>
&lt;h3 id="small-blind">Small Blind:&lt;/h3>
&lt;ul>
&lt;li>22+&lt;/li>
&lt;li>A2+&lt;/li>
&lt;li>K20+&lt;/li>
&lt;li>Q50+&lt;/li>
&lt;li>J60+&lt;/li>
&lt;li>85o+&lt;/li>
&lt;li>&lt;strong>all suited hands&lt;/strong>&lt;/li>
&lt;/ul>
&lt;p>Now that we’ve given these approximate guidelines for opening ranges based on position, it is
time for a bunch of notes and caveats&lt;/p>
&lt;ol>
&lt;li>You should tend to play more hands against tight opponents, and fewer hands against loose/wild opponents.&lt;/li>
&lt;li>When the effective stack is 15bb or less, you will be playing shove/fold pre-flop.&lt;/li>
&lt;li>When the effective stack is short, such as 15-30bb, your default play is to minraise first in. At moderate effective stacks of around 30-50bb, tend to raise 2.5bb, for example $250 at $50-$100. At deep effective stacks greater than 50bb, tend to raise 3bb such as $300 at $50-$100.&lt;/li>
&lt;li>Exception to the last rule: From the small blind, you should usually limp first in (or raise to at least 2.5bb against tighter players). Don’t limp first in from any other position.&lt;/li>
&lt;/ol>
&lt;h3 id="facing-limpers">Facing Limpers&lt;/h3>
&lt;p>Fold the weakest hands in your range. Limp behind with some of the weaker hands that still have good playability, such as 22 or 65s . Continue to raise any of the stronger hands you would have played, adding one big blind to your raise sizing for each limper already in the pot.&lt;/p>
&lt;h3 id="facing-raising">Facing Raising&lt;/h3>
&lt;p>So for now, select situations that you’re confident will be profitable. It’s generally a bigger mistake to continue in a bad spot than it is to make a tight fold and stay out of trouble!&lt;/p>
&lt;h3 id="key-takeaways-5">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>Understand approximately what ranges to play from each position when you’re first to voluntarily enter the pot.&lt;/li>
&lt;li>There are many factors affecting the pre-flop decision-making process including positions, opponent types, effective stack, raise sizings, and tournament state. We’ve done our best to give you good general guidelines. If you’re unsure whether to play a certain hand, then just fold for now and wait for a good spot.&lt;/li>
&lt;li>The effective stack is the most you can lose in a given hand, which will be the same as your stack size unless you cover everyone else left to act.&lt;/li>
&lt;/ol>
&lt;h2 id="day-7-value-bet">Day 7 Value Bet&lt;/h2>
&lt;h3 id="key-takeaways-6">Key Takeaways&lt;/h3>
&lt;ol>
&lt;li>Understand what it means to make a value bet and how important they are to winning at poker.&lt;/li>
&lt;li>If you think it’s likely you have the best hand, always consider value betting it.&lt;/li>
&lt;li>Think about which worse hands your opponent can call your value bet with.&lt;/li>
&lt;/ol>
&lt;p>reference: &lt;a href="https://www.cardschat.com/wp-content/uploads/2023/02/Become-a-Winning-Poker-Player-in-30-Days-CardChat.com_.pdf">https://www.cardschat.com/wp-content/uploads/2023/02/Become-a-Winning-Poker-Player-in-30-Days-CardChat.com_.pdf&lt;/a>&lt;/p></description></item><item><title>野蛮生长</title><link>https://h3sun.github.io/post/2025-02-04-%E9%87%8E%E8%9B%AE%E7%94%9F%E9%95%BF/</link><pubDate>Tue, 04 Feb 2025 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2025-02-04-%E9%87%8E%E8%9B%AE%E7%94%9F%E9%95%BF/</guid><description>&lt;p>最近看了《野蛮生长》，书里讲的创业心路历程和我打工的生活有些距离，没那么大的共鸣。令我感兴趣的是里面谈及的许多企业家，有的被写的十全十美，有的被写的一无是处，但令我最感到喜欢的是&lt;strong>牟其中&lt;/strong>，作者对他的评价比较饱满，有褒有贬，平衡的人才是真实的。又去 youtube 看了一些他的访谈，他生平从倒卖飞机，发射卫星，到炸开喜马拉雅山，真是一位带有艺术气质的狂想家！&lt;/p>
&lt;p>想认识这样的人，和他们成为朋友一定会很有趣！&lt;/p></description></item><item><title>CS224n-NLP-lecture 1, 2</title><link>https://h3sun.github.io/post/2024-11-29-cs224n-nlp-lecture1+2-word2vec/</link><pubDate>Fri, 29 Nov 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-11-29-cs224n-nlp-lecture1+2-word2vec/</guid><description>&lt;h1 id="word2vector">Word2Vector&lt;/h1>
&lt;h2 id="how">How&lt;/h2>
&lt;ul>
&lt;li>Represent words by their context (Distributional semantics): A word&amp;rsquo;s meaning is given by words frequently appear close-by, within a fixed-size.&lt;/li>
&lt;li>Use the many contexts of w to build up a representation of w.&lt;/li>
&lt;li>We build a dense vector for each word, chosen so that it is similar to vectors of words that appear in similar context.&lt;/li>
&lt;li>Note that word vectors are also called word embeddings, or neural word representations. They are a distributed representation.&lt;/li>
&lt;/ul>
&lt;h2 id="word2vector-idea">Word2Vector idea&lt;/h2>
&lt;ul>
&lt;li>We have a large body of text (corpus).&lt;/li>
&lt;li>Every word in a fixed vocabulary is represented by vector.&lt;/li>
&lt;li>Go through each position t in the text, which has a center word (c) and a context word (o).&lt;/li>
&lt;li>Use similarity of word vectors for c and o, calculate the probablity of o given c.&lt;/li>
&lt;li>Keep adjusting the word vector to maximize this probablity.&lt;/li>
&lt;/ul>
&lt;h2 id="math">Math&lt;/h2>
&lt;ul>
&lt;li>$L(\theta) = \prod_{t=1}^T \prod_{\substack{-m \leq j \leq m \\ j \neq 0}} P(w_{t+j} \mid w_t; \theta)$&lt;/li>
&lt;li>$J(\theta) = -\frac{1}{T} \log L(\theta) = -\frac{1}{T} \sum_{t=1}^T \sum_{\substack{-m \leq j \leq m \\ j \neq 0}} \log P(w_{t+j} \mid w_t; \theta)$&lt;/li>
&lt;li>$P(o \mid c) = \frac{\exp(u_o^T v_c)}{\sum_{w \in V} \exp(u_w^T v_c)}$
&lt;ul>
&lt;li>Exponentiation makes anything positive&lt;/li>
&lt;li>Dot product compares similarity of o and c.&lt;/li>
&lt;li>Normalize over entire vocabulary to give probability distribution&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h2 id="gradient-descent-and-stochastic-gradient-descent">Gradient Descent and Stochastic Gradient Descent&lt;/h2>
&lt;h3 id="problem">Problem:&lt;/h3>
&lt;ul>
&lt;li>J is a function of all windows in the corpus, gradient is expensive to compute.&lt;/li>
&lt;/ul>
&lt;h3 id="solution">Solution:&lt;/h3>
&lt;ul>
&lt;li>SGD Stochastic Gradient Descent&lt;/li>
&lt;li>SGD in each window: we only have at most 2m + 1 words&lt;/li>
&lt;li>Either we need sparse matrix updates operations to only update certain rows of full embedding metrics U and V, or we need to keep around a hash of word vector. Millions of word vectors allow us to do distributed computing.&lt;/li>
&lt;/ul>
&lt;h2 id="word2vector-algo-family">Word2Vector Algo Family&lt;/h2>
&lt;h3 id="two-models">Two models:&lt;/h3>
&lt;ul>
&lt;li>Skip-gram(SG), predict context (outside) words given center words.&lt;/li>
&lt;li>Continuous bag of words (CBOW), predict context words from context words.&lt;/li>
&lt;/ul>
&lt;h3 id="negative-sampling">Negative Sampling&lt;/h3>
&lt;h4 id="problem-1">Problem&lt;/h4>
&lt;ul>
&lt;li>The normalization demonitator is computionally expensive.&lt;/li>
&lt;/ul>
&lt;h4 id="solution-1">Solution&lt;/h4>
&lt;ul>
&lt;li>Train a binary logistic regression for a true pair vs noise pair.&lt;/li>
&lt;li>$J(\theta) = \frac{1}{T} \sum_{t=1}^{T} J_t(\theta)$&lt;/li>
&lt;li>$J_t(\theta) = \log \sigma \left( u_o^\top v_c \right) + \sum_{i=1}^{k} \mathbb{E}_{j \sim P(w)} \left[ \log \sigma \left( -u_j^\top v_c \right) \right]$&lt;/li>
&lt;li>$\sigma(x) = \frac{1}{1 + e^{-x}}$&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>Take k negative samples&lt;/li>
&lt;li>Maxmize probablity that real words appear, minimize probablity that random words appear around the center words.&lt;/li>
&lt;li>Sample with P(w) = u(w)^(3/4)&lt;/li>
&lt;/ol>
&lt;h2 id="co-occurence-counting">Co-occurence counting&lt;/h2>
&lt;h3 id="problems">Problems:&lt;/h3>
&lt;ol>
&lt;li>vector increase in sizes&lt;/li>
&lt;li>Subsequent classification models have sparsity issues.&lt;/li>
&lt;/ol>
&lt;h3 id="singular-value-decomposition">Singular Value Decomposition&lt;/h3>
&lt;p>X = USV&lt;/p>
&lt;h3 id="glove">GloVe&lt;/h3>
&lt;p>Crucial Insight: Ratios of co-occurence probablities can encode meaning components (meaning component means going from male to female etc).&lt;/p>
&lt;p>$J = \sum_{i,j=1}^{V} f(X_{ij}) \left( w_i^\top \tilde{w}_j + b_i + \tilde{b}_j - \log X_{ij} \right)^2$&lt;/p>
&lt;ul>
&lt;li>$X\_{ij}$: The co-occurrence count between words \( i \) and \( j \).&lt;/li>
&lt;li>\( w_i \): The word vector for the word \( i \).&lt;/li>
&lt;li>\( \tilde{w}\_j \): The context word vector for the word \( j \).&lt;/li>
&lt;li>\( b_i \): The bias term for the word \( i \).&lt;/li>
&lt;li>\( \tilde{b}\_j \): The bias term for the context word \( j \).&lt;/li>
&lt;li>\( \log X*{ij} \): The logarithm of the co-occurrence count \( X*{ij} \).&lt;/li>
&lt;li>\( f(X\_{ij}) \): A weighting function to limit the influence of very frequent or very infrequent word pairs.&lt;/li>
&lt;li>\( x\_{\text{max}} \): A maximum co-occurrence count threshold.&lt;/li>
&lt;/ul>
&lt;h2 id="how-to-evaluate">How to evaluate&lt;/h2>
&lt;h3 id="intrinsics">Intrinsics&lt;/h3>
&lt;h4 id="definition">Definition&lt;/h4>
&lt;ol>
&lt;li>Evaluation on a specific subtask.&lt;/li>
&lt;li>Fast to compute.&lt;/li>
&lt;li>Helps to understand the system.&lt;/li>
&lt;li>Not clear if it really helps unless correlation to real task is established.&lt;/li>
&lt;/ol>
&lt;h4 id="example">Example&lt;/h4>
&lt;ol>
&lt;li>Word Vector Analogy&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>man:woman :: king:?&lt;/li>
&lt;li>Evaluate word vectors by how will their cosine distance after addition captures intuitive semantics and syntatic analogy questions.&lt;/li>
&lt;li>Discard the input words from search&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>WordSim human judgement&lt;/li>
&lt;/ol>
&lt;h3 id="extrinsics">Extrinsics&lt;/h3>
&lt;h4 id="definition-1">Definition&lt;/h4>
&lt;ol>
&lt;li>Evaluation on a real task.&lt;/li>
&lt;li>Can take a long time to compute.&lt;/li>
&lt;li>Unclear if the subsystem is the probelm or its interaction or other subsystems.&lt;/li>
&lt;li>If replacing exactly one subsystem is making progress, that&amp;rsquo;s good.&lt;/li>
&lt;/ol>
&lt;h4 id="example-1">Example&lt;/h4>
&lt;p>Named Entity recognition.&lt;/p>
&lt;h2 id="word-sense">Word sense&lt;/h2>
&lt;p>A word can have multiple meanings.&lt;/p></description></item><item><title>Trip in Shanghai</title><link>https://h3sun.github.io/post/2024-11-25-shanghai-trip/</link><pubDate>Mon, 25 Nov 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-11-25-shanghai-trip/</guid><description>&lt;h1 id="day1---到达-arrival">Day1 - 到达 Arrival&lt;/h1>
&lt;p>我于周六晚上抵达上海浦东国际机场（PVG），并在上海唐镇智选假日酒店度过了在上海的第一个晚上。&lt;/p>
&lt;p>电信（中国一家受欢迎的手机提供商）出于保护我的隐私的目的，以某种方式暂停了手机套餐，因为距离我上次在中国使用手机已经快两年了。由于我无法访问互联网，因此无法使用 Uber、Lyft 或任何其他乘车共享应用程序，因此我必须在机场使用现金和传统出租车服务才能到达酒店。&lt;/p>
&lt;p>在出租车上，司机故意和我闲聊，绕道走，以便能从我这样的游客身上赚到更多的钱，这让我有一种被骗的感觉。根据该应用程序，预计出租车费约为 80 元，但最终行程为 140 元。当我告诉她我记录了她的服务号码以便将来客户投诉时，她同意给我折扣并向我索要 100 元。我付了她 100 元，带着不愉快的心情下了出租车。&lt;/p>
&lt;p>由于长途飞行和不好的出租车服务体验，我感到非常疲惫。此外，由于电话套餐暂停而无法上网，这让我陷入了尴尬的境地，我无法订购 Uber Eats，也无法付款，因为无法使用支付宝或微信支付。&lt;/p>
&lt;p>又饿又累，我最后打电话给我高中和大学的朋友天成点餐。同时，我也让父母给电信打电话，恢复我的手机套餐，这样我就可以上网了。&lt;/p>
&lt;p>感谢我的朋友和我的父母，吃了老乡鸡的食物和恢复电话套餐后，我感觉自己获得了重生。那天晚上我睡得很好，只是因为时差而早醒。&lt;/p>
&lt;p>I arrived at Shanghai Pudong International Airport(PVG) on Saturday evening, and I spent my first night in Shanghai at Holiday Inn Express Shanghai Tangzhen.&lt;/p>
&lt;p>Dianxin(a popular phone provider in China) somehow suspended the phone plans for protecting my privacy due to the fact that it&amp;rsquo;s been almost two years since the last time that I used my phone in China. As I do not have access to the Internet, I cannot use Uber, Lyft or any other ride sharing apps, therefore I have to use cash and conventional taxi service at the airport to arrive my hotel.&lt;/p>
&lt;p>During the taxi ride, the driver deliberately made small talks with me and took detours such that she could possibly earn more money from a visitor like me, which makes me feel scamed. While the estimated taxi fees, according to the app, is around 80rmb, the trip ended up being 140 rmb. As I told her that I recorded her service number for future customer complains, she agreed to give me a discount and asked 100 rmb from me. I paied her 100rmb and left the taxi with unfavorable feelings.&lt;/p>
&lt;p>I feel extremely tired due to the long flight and unfavorable experience of taxi service. Additionally, not having access to Internet due to the suspended phone plan put me into an akward situation where I cannot order uber eats and cannot pay money becuase of not being able to use AliPay or Wechat Pay.&lt;/p>
&lt;p>Starving and Tired, I ended up calling my high school and college friend Tiancheng for ordering food. Meanwhile, I also asked my parents to call Dianxin for resuming my phone plan such that I can have access to Internet and everything.&lt;/p>
&lt;p>Thanks to my friend and my parents, I felt that I got reborn after the food from Hometown Chicken and resuming my phone plan. I had a farily good sleep that night, except waked up early due to jet lag.&lt;/p>
&lt;h1 id="day2---与高中和大学朋友重聚-reunion-with-high-school-and-college-friend">Day2 - 与高中和大学朋友重聚 Reunion with high school and college friend&lt;/h1>
&lt;p>8:00 左右起床，与潜在的新经理会面了大约 20 分钟，讨论了一些内部调动的潜在计划；我对嵌入技术感到非常兴奋，唯一剩下的就是与我的经理讨论转组事宜。&lt;/p>
&lt;p>天成于 10：00 到达酒店，我们一起在智选假日酒店吃早餐。早餐后，我参观了他的公寓，并在附近的理发店理发。午餐吃完韩国菜后，我们去上海滨江森林公园散步。公园很大，种满了植物，还有野餐的地方。我们逛了一会儿，在一池咖啡店喝了杯咖啡或茶。&lt;/p>
&lt;p>晚上我们从浦东去了静安，周二我要去那里面试签证。我们在一家港式咖啡厅吃饭，菜的味道非常好，湾区没有一家餐厅能与之媲美。饭后，我们在上海静安散步。我们之前一起去过上海两次，一次是 2020 年夏天，庆祝学期季度结束，另一次是 2021 年夏天，在我们离开中国去美国读研究生之前。上海和我们上次去的时候一样，甚至繁华，只是我觉得自己老了，消化食物的能力变差了，精力也变少了。这种感觉让我陷入了一种情绪状态。&lt;/p>
&lt;p>城市漫步结束后，我们回到城市酒店，我和他告别，他开车回去了，因为周一是他的工作日。那天晚上 9 点左右我感到非常困，晚上 9 点半左右就睡着了，大概睡觉是我情绪低落时能做的最好的事情吧。&lt;/p>
&lt;p>Waked up at around 8:00, I met with my potential new manager for around 20 minutes, discussing some potential plans for internal transfer; I am super excited about the embedding technology, the only thing remaining is to talk with my manager about the transfer.&lt;/p>
&lt;p>Tiancheng arrived at the hotel at 10:00, we had breakfast together at Holiday Inn Express. After the breakfast, I visited his apartment and got a haircut at a barber nearby. After the korean food for lunch, we went to Shanghai Binjiang Forest Park for a walk. The park was quite big, full with plants and picnickers. We walked around for a while, had a cup of coffee or tea at the Yichi Coffee.&lt;/p>
&lt;p>At night we went from Pudong district to Jing&amp;rsquo;an district where I would do visa interview on Tuesday. We had dinner at a Hong Kong-style cafe, the dishes taste so good that there is no restaurants comparable to this one in the bay area. After the dinner, we did some city walk in Jing&amp;rsquo;an, Shanghai. We&amp;rsquo;ve been to Shanghai together twice before, once in 2020 summer, celebrating the quarter ending, another time in 2021 summer, before we left China to America for starting grad school. Shanghai is the same or even more bustling than last time we went there, it&amp;rsquo;s just I feel I am getting older, with less ability to digest food and less energy. This kinda of feelings put me into an emotional state.&lt;/p>
&lt;p>After the citywalk, we went back to City Hotel, I said farewell to him, and he drove back as Monday is a work day for him. I felt extremely sleepy around 9:00 and felt in asleep around 9:30PM that night, probably feeeling asleep is the best thing I can do when feeling emotional.&lt;/p>
&lt;h1 id="day3">Day3&lt;/h1>
&lt;p>Waked up at 1:30AM, and then Slept from 5:00AM to 7:00AM, I waked up again, feeling lucid.&lt;/p>
&lt;p>Had an egg crepe in the morning, then went to the Shanghai World Financial Center where Google&amp;rsquo;s office located. Then I spent some time in the office, hopping between 60F and 64F, had lunch at Hai Cafe at 62F. Stayed there until 6:00PM for the night view.&lt;/p>
&lt;p>I met my parents at 6:30 PM at City Hotel. We were all overcome with emotion and cried when we saw each other. The bond I share with my parents is truly incredible and irreplaceable.&lt;/p>
&lt;p>We went to the Bund together, there was a little rain, and we all like the view in the Bund.&lt;/p>
&lt;h1 id="day-4">Day 4&lt;/h1>
&lt;p>Met with my manager, Met with the new manager.&lt;/p>
&lt;p>Went to Visa Appointment, got approved right away.&lt;/p>
&lt;p>Went back my city, Nanjing.&lt;/p></description></item><item><title>Poker Strategy</title><link>https://h3sun.github.io/post/2024-11-04-poker/</link><pubDate>Mon, 04 Nov 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-11-04-poker/</guid><description>&lt;h1 id="mdf-and-bf">MDF and BF&lt;/h1>
&lt;h2 id="mdf">MDF&lt;/h2>
&lt;p>If the pot is \(1\) and your opponent&amp;rsquo;s bet is \(b\):&lt;/p>
&lt;ul>
&lt;li>you fold: \(1 \times (1 - p(\text{you-call}))\)&lt;/li>
&lt;li>you call: \(-b \times p(\text{you-call})\)&lt;/li>
&lt;/ul>
&lt;p>Adding both cases:&lt;/p>
\[
1 \times (1 - p(\text{you-call})) + p(\text{you-call}) \times -b = 0
\]
&lt;p>Simplifying:&lt;/p>
\[
1 = (1 + b) \times p(\text{you-call})
\]
&lt;p>Solving for \(p(\text{you-call})\):&lt;/p>
\[
p(\text{you-call}) = \frac{1}{1 + b}
\]
&lt;h2 id="bluffing-frequency">Bluffing Frequency&lt;/h2>
&lt;ul>
&lt;li>0.75 pot
&lt;ul>
&lt;li>flop 67%&lt;/li>
&lt;li>turn 50%&lt;/li>
&lt;li>river 33%&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h1 id="how-to-bet">How to bet&lt;/h1>
&lt;ol>
&lt;li>Size&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>If you have nuts advantage, bet bigger.&lt;/li>
&lt;li>If you do not have nuts advantage, bet smaller.&lt;/li>
&lt;li>Nuts advantage: when you have more combinations of super strong hands (two-pair or better) than his opponent&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>Find Value Cards&lt;/li>
&lt;/ol>
&lt;p>The inequality \( \text{Equity} > 1 - \frac{1}{2(1+b)} \) suggests a threshold where a player’s equity (their share of the pot if the hand goes to showdown) should exceed a certain value in order for them to make a profitable move, such as calling or betting.&lt;/p>
&lt;p>To understand this better, we can break it down:&lt;/p>
&lt;ul>
&lt;li>
&lt;p>&lt;strong>Setting Up the Inequality&lt;/strong>: The right side, \(1 - \frac{1}{2(1+b)}\), provides a boundary value. This boundary depends on the size of the bet \(b\) relative to the pot (normalized to 1).&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Interpretation of the Threshold&lt;/strong>: If a player’s equity in the hand is greater than \(1 - \frac{1}{2(1+b)}\), then their hand is likely profitable enough to proceed with aggressive action, such as betting or calling.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>Breakdown of the Expression&lt;/strong>:&lt;/p>
&lt;ul>
&lt;li>For larger bets \(b\), \( \frac{1}{2(1+b)} \) becomes smaller, and therefore \(1 - \frac{1}{2(1+b)}\) approaches 1. This implies that when the bet is large, the player needs a higher equity to continue.&lt;/li>
&lt;li>For smaller bets \(b\), \( \frac{1}{2(1+b)} \) is larger, meaning that \(1 - \frac{1}{2(1+b)}\) is lower. In this case, a player can proceed with lower equity since the risk is relatively lower.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;ol start="3">
&lt;li>Value bet&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>If I check, the remaining streets &amp;lt; biggest that I can get, I 100% bet&lt;/li>
&lt;/ul>
&lt;ol start="4">
&lt;li>What to bluff&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Backdoor Draw&lt;/li>
&lt;li>Frontdoor Draw&lt;/li>
&lt;/ul>
&lt;h2 id="exploitation">exploitation&lt;/h2>
&lt;h3 id="call">Call&lt;/h3>
&lt;ul>
&lt;li>If opponent bluff too much, call, otherwise not (BF to check)&lt;/li>
&lt;li>Only call one street.&lt;/li>
&lt;/ul>
&lt;h3 id="bluff">Bluff&lt;/h3>
&lt;ul>
&lt;li>If your opponent is calling too much, do not bluff, otherwise, bluff (MDF to check)&lt;/li>
&lt;/ul></description></item><item><title>DDIA Chapter 7 - Transaction</title><link>https://h3sun.github.io/post/2024-10-06-ddia-chapter-7-transaction/</link><pubDate>Mon, 07 Oct 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-10-06-ddia-chapter-7-transaction/</guid><description>&lt;h1 id="acid">ACID&lt;/h1>
&lt;ul>
&lt;li>Atomicity: All or nothing.&lt;/li>
&lt;li>Consistency: Invariants must always be true (This is from application perspective).&lt;/li>
&lt;li>Isolation: Transactions are executed in a way that their operations do not interfere with each other.&lt;/li>
&lt;li>Durability: Once commited, data will not be forgetten.&lt;/li>
&lt;/ul>
&lt;h1 id="weak-isolation-levels">Weak Isolation Levels&lt;/h1>
&lt;h2 id="read-committed-to-combat-dirty-read">Read Committed (To combat dirty read)&lt;/h2>
&lt;h3 id="what-is-dirty-read">What is dirty read?&lt;/h3>
&lt;ul>
&lt;li>Read a data that has not been committed by a transaction.&lt;/li>
&lt;/ul>
&lt;h3 id="implement-read-committed">Implement Read Committed&lt;/h3>
&lt;ul>
&lt;li>Lock on write.&lt;/li>
&lt;li>Lock on read (performance hit).&lt;/li>
&lt;li>Remember old + new value.&lt;/li>
&lt;/ul>
&lt;h2 id="snapshot-isolation-and-repeatable-read-to-combat-nonrepeatable-read">Snapshot Isolation and Repeatable Read (To combat nonrepeatable read)&lt;/h2>
&lt;h3 id="what-is-nonrepetabale-read">What is nonrepetabale read?&lt;/h3>
&lt;ul>
&lt;li>Alice read account A (50).&lt;/li>
&lt;li>Alice executes A = A + 10.&lt;/li>
&lt;li>Alice executes B = B - 10.&lt;/li>
&lt;li>Alice read account B (40).&lt;/li>
&lt;li>Sum is 50 + 40 which is not 100.&lt;/li>
&lt;/ul>
&lt;h3 id="snapshot-isoltion">Snapshot Isoltion&lt;/h3>
&lt;ul>
&lt;li>Each transaction sees the snapshot of the database at the start of the transaction.&lt;/li>
&lt;li>MVCC(Multi-version concurrency control).&lt;/li>
&lt;/ul>
&lt;h2 id="preventing-lost-updates">Preventing Lost Updates&lt;/h2>
&lt;ul>
&lt;li>Atomic write operations.&lt;/li>
&lt;li>Explicit locking.&lt;/li>
&lt;li>Automotically deleting lost updates.&lt;/li>
&lt;li>Compare and set.&lt;/li>
&lt;li>Conflict resolution and replica.&lt;/li>
&lt;/ul>
&lt;h1 id="serializability-to-combat-phantom">Serializability (To combat phantom)&lt;/h1>
&lt;h2 id="write-skew-and-phantoms">Write Skew and Phantoms&lt;/h2>
&lt;p>oncall-rotation in emergency room.&lt;/p>
&lt;ul>
&lt;li>Pattern&lt;/li>
&lt;/ul>
&lt;ol>
&lt;li>select&lt;/li>
&lt;li>decide how to continue based on select&lt;/li>
&lt;li>INSERT, UPDATE, DELTE&lt;/li>
&lt;/ol>
&lt;h2 id="actual-serial-execution">Actual Serial Execution&lt;/h2>
&lt;ul>
&lt;li>Every transaction must be small and fast for performance.&lt;/li>
&lt;li>It is limited to use cases where the active dataset can fit in memory for performance.&lt;/li>
&lt;li>Write throughput must be low enough to be handled on a single CPU core, or else transactions need to be partitioned without requiring cross-partition coordination.&lt;/li>
&lt;li>Cross-partition transactions are possible, but there is a hard limit to the extent to which they can be used.&lt;/li>
&lt;/ul>
&lt;h2 id="two-phase-locking">Two-Phase Locking&lt;/h2>
&lt;ul>
&lt;li>read: acquire the lock in shared mode, if exclusive exists, wait.&lt;/li>
&lt;li>write: acquire the lock in exclusive mode.&lt;/li>
&lt;li>read then write: acquire in shared first, then exclusive.&lt;/li>
&lt;li>commit or abort: hold until abort or commit&lt;/li>
&lt;/ul>
&lt;h2 id="serializable-snapshot-isolation-ssi">Serializable Snapshot Isolation (SSI)&lt;/h2>
&lt;ul>
&lt;li>Goal of SSI: full serializability with small perf penalty compared to snapshot isolation.&lt;/li>
&lt;li>Used in single-node (PostgreSQL 9.1) and distributed, may become the new default.&lt;/li>
&lt;/ul>
&lt;h3 id="pessimistic-versus-optimistic-concurrency-control">Pessimistic versus optimistic concurrency control&lt;/h3>
&lt;ul>
&lt;li>2PL is pessimistic&lt;/li>
&lt;li>SSI is optimistic: When a transaction wants to commit, the database checks isolation violations&lt;/li>
&lt;li>If there is enough spare capacity, and if contention between transactions is not too high, optimistic concurrency control techniques perform better&lt;/li>
&lt;li>On top of snapshot isolation, SSI adds an algorithm for detecting serialization conflicts among writes and determining which transactions to abort.&lt;/li>
&lt;/ul>
&lt;p>Decisions based on an outdated premise
A premise is a fact that was true at the beginning of the transaction. How does the database know if a query result might have changed?&lt;/p>
&lt;h3 id="detecting-stale-mvcc-reads">Detecting stale MVCC reads&lt;/h3>
&lt;ul>
&lt;li>The database needs to track when a transaction ignores another transaction’s writes due to MVCC visibility rules.&lt;/li>
&lt;li>Check any of the ignored writes has been committed and abort if so.&lt;/li>
&lt;li>Wait until committing because read-only won&amp;rsquo;t write skew, and other write transactions might be aborted.&lt;/li>
&lt;li>Key is to avoid unnecessary aborts.&lt;/li>
&lt;/ul>
&lt;h3 id="detecting-writes-that-affect-prior-reads">Detecting writes that affect prior reads&lt;/h3>
&lt;ul>
&lt;li>DB track ephemeral information about transactions reading data on index, or at the table level.&lt;/li>
&lt;li>When a transaction writes, notify existing reader of that data&lt;/li>
&lt;li>Check other writes commit when commit reader.&lt;/li>
&lt;li>(Question: why not notify existing reader when committing the other writer transaction?)&lt;/li>
&lt;/ul>
&lt;h3 id="performance-of-serializable-snapshot-isolation">Performance of serializable snapshot isolation&lt;/h3>
&lt;ul>
&lt;li>The rate of aborts significantly affects the overall performance of SSI. So SSI requires short read-write transactions, but it&amp;rsquo;s less sensitive to slow transactions than two-phase locking or serial execution.&lt;/li>
&lt;/ul>
&lt;p>source:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://xgwang.me/posts/ddia-7-transactions/">https://xgwang.me/posts/ddia-7-transactions/&lt;/a>&lt;/li>
&lt;li>ddia&lt;/li>
&lt;/ul></description></item><item><title>DDIA Chapter 6 - Partition</title><link>https://h3sun.github.io/post/2024-10-06-ddia-chapter-6-partition/</link><pubDate>Sun, 06 Oct 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-10-06-ddia-chapter-6-partition/</guid><description>&lt;h2 id="two-types-of-partition-techniques">Two types of partition techniques&lt;/h2>
&lt;h3 id="key-range-partition">Key Range Partition&lt;/h3>
&lt;ul>
&lt;li>How: [a-c], [d-e], &amp;hellip;&lt;/li>
&lt;li>Pros: Efficient for range query.&lt;/li>
&lt;li>Cons: Hot spot.&lt;/li>
&lt;/ul>
&lt;h3 id="hash-partition">Hash Partition&lt;/h3>
&lt;ul>
&lt;li>How: hash first, then use range.&lt;/li>
&lt;li>Pros: Distribute load evenly.&lt;/li>
&lt;li>Cons: Range query is inefficient.&lt;/li>
&lt;/ul>
&lt;h3 id="hybrid">Hybrid&lt;/h3>
&lt;ul>
&lt;li>How: one part -&amp;gt; partition, the other part -&amp;gt; sort order.&lt;/li>
&lt;/ul>
&lt;h2 id="partitioning-secondary-indexes">Partitioning Secondary Indexes&lt;/h2>
&lt;h3 id="partitioning-secondary-indexes-by-document">Partitioning Secondary Indexes by Document&lt;/h3>
&lt;ul>
&lt;li>Database can perform indexing automatically.&lt;/li>
&lt;li>Note: in KV-only DB, application level secondary indexing is prone to inconsistency.&lt;/li>
&lt;li>Each partition maintains its own secondary indexes.&lt;/li>
&lt;li>A.K.A. local index.&lt;/li>
&lt;li>Need to send the query to all partitions, and combine all the results you get back (scatter/gather).&lt;/li>
&lt;li>Read queries are expensive, and prone to latency amplification. But widely used.&lt;/li>
&lt;li>Recommend structure the partitioning scheme so that secondary index queries can be served from a single partition.&lt;/li>
&lt;/ul>
&lt;h3 id="partitioning-secondary-indexes-by-term">Partitioning Secondary Indexes by Term&lt;/h3>
&lt;ul>
&lt;li>A global index must also be partitioned (term-partitioned).&lt;/li>
&lt;li>Partition the index by the term itself, or using a hash of the term.&lt;/li>
&lt;li>Pro: more efficient read (no scatter/gather).&lt;/li>
&lt;li>Con: write slower and more complicated, require distributed transaction.&lt;/li>
&lt;li>Updates to global secondary indexes are asynchronous, e.g., Amazon DynamoDB.&lt;/li>
&lt;/ul>
&lt;h2 id="strategies-for-rebalancing">Strategies for Rebalancing&lt;/h2>
&lt;h3 id="how-not-to-do-it-hash-mod-n">How not to do it: hash mod N&lt;/h3>
&lt;p>Problem: move data more than necessary&lt;/p>
&lt;h3 id="fixed-number-of-partitions">Fixed number of partitions&lt;/h3>
&lt;ul>
&lt;li>Create many more partitions than there are nodes, and assign several partitions to each node.&lt;/li>
&lt;li>The new node can steal a few partitions from every existing node.&lt;/li>
&lt;li>The number of partitions is usually fixed when the database is first set up and not changed afterward.&lt;/li>
&lt;li>If partitions are very large, rebalancing and recovery from node failures become expensive. But if partitions are too small, they incur too much overhead.&lt;/li>
&lt;/ul>
&lt;h2 id="request-routing">Request Routing&lt;/h2>
&lt;h3 id="strategy-for-routing">Strategy for routing&lt;/h3>
&lt;ol>
&lt;li>Send requests to all nodes, and if we do not get result, reoute to next node.&lt;/li>
&lt;li>Implement a routing tier which knows which node has the specific partition.&lt;/li>
&lt;li>Client knows the partition.&lt;/li>
&lt;/ol>
&lt;h3 id="how-does-the-component-make-the-routing-decision">How does the component make the routing decision&lt;/h3>
&lt;ol>
&lt;li>Zookeeper which is a service that knows the partition.&lt;/li>
&lt;li>Gossip protocol.&lt;/li>
&lt;li>Mannual rebalance.&lt;/li>
&lt;/ol>
&lt;p>source:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://xgwang.me/posts/ddia-6-partitioning/#intro">https://xgwang.me/posts/ddia-6-partitioning/#intro&lt;/a>&lt;/li>
&lt;li>ddia&lt;/li>
&lt;/ul></description></item><item><title>DDIA Chapter 5 - Repliation</title><link>https://h3sun.github.io/post/2024-10-05-ddia-chapter-5-replication/</link><pubDate>Sat, 05 Oct 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-10-05-ddia-chapter-5-replication/</guid><description>&lt;h1 id="importance-of-replication">Importance of Replication&lt;/h1>
&lt;ul>
&lt;li>Fault Tolerance: keep the system running, even when one machine (or several machines) go down.&lt;/li>
&lt;li>Disconnected operation: Allow an application to continue to work when there is a network interruption.&lt;/li>
&lt;li>Latency: Placing data geographically close to users, so users can interact with it with a lower latency.&lt;/li>
&lt;li>Scalability: Being able to handle higher volume of reads than a single machine could handle.&lt;/li>
&lt;/ul>
&lt;h1 id="three-main-approaches-to-replication">Three main approaches to replication&lt;/h1>
&lt;ol>
&lt;li>Single-leader replication: Clients send write operation to a single node(leader), which sends a stream of data change to other replicas(followers). Reads can be performed on any replica, but reads from followers might be stale.&lt;/li>
&lt;li>Multi-leader replication: Clients send each write to onoe of several leader nodes, any of which can accept writes. The leaders send streams of data change events to each other and any follower nodes.&lt;/li>
&lt;li>Leaderless replication: Clients send each write to several nodes, and read from several nodes in parallel in order to detect and correct nodes with stale data. w + r &amp;gt; n.&lt;/li>
&lt;/ol>
&lt;h1 id="three-interesting-effects-can-be-caused-by-replication-lag">Three interesting effects can be caused by replication lag&lt;/h1>
&lt;ol>
&lt;li>Read-after-write consistency&lt;/li>
&lt;/ol>
&lt;p>Users should always see data that they submit themselves.&lt;/p>
&lt;p>Solution:&lt;/p>
&lt;ul>
&lt;li>When read something that user can modify, read from leader.&lt;/li>
&lt;li>Track update time t, and from t to t + 1 minutes, read from leader(essentially wait for replica picking up the data from leader).&lt;/li>
&lt;li>Track the logical timestamp and compare it with follower node, if smaller, than find another node.&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>Monotonic reads&lt;/li>
&lt;/ol>
&lt;p>After users have seen the data at one point in time, they shouldn&amp;rsquo;t later see the data from ealier point in time.&lt;/p>
&lt;p>Solution:&lt;/p>
&lt;ul>
&lt;li>Always read from a single replica.&lt;/li>
&lt;/ul>
&lt;ol start="3">
&lt;li>Consistent prefix reads&lt;/li>
&lt;/ol>
&lt;p>Users should see data in a state that makes causal sense: for example, an answer should come after a question.&lt;/p>
&lt;p>Solution:&lt;/p>
&lt;ul>
&lt;li>Write to the same partition.&lt;/li>
&lt;/ul>
&lt;p>Finally, we discussed the concurrency issues that are inherent in multi-leader and leaderless replication approaches: because such systems allow multiple writes to happen concurrently, conflicts may occur. We examined an algorithm that a database might use to determine whether one operation happened before another, or whether they happened concurrently. We also touched on methods for resolving conflicts by merging together concurrently written values.
In the next chapter we will continue looking at data that is distributed across multiple machines, through the counterpart of replication: splitting a large dataset into partitions.&lt;/p>
&lt;p>From DDIA chapter 5.&lt;/p></description></item><item><title>谈谈户晨风</title><link>https://h3sun.github.io/post/2024-09-29-%E6%88%B7%E6%99%A8%E9%A3%8E/</link><pubDate>Sun, 29 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-29-%E6%88%B7%E6%99%A8%E9%A3%8E/</guid><description>&lt;p>大学申请的文书曾经有一题叫做 &lt;code>What's unique about you?&lt;/code>， 当时高中的我并没有感到自己的差异性，我只感到自己和有着同质化的教育背景的同学们一起愉快地学习，生活，成长。如果让现在的我挑一点自己的特殊性，我认为自己是一个兴趣爱好非常广泛的人。有一两个长期的兴趣爱好持续十几年，短期的兴趣爱好通常能维持 2-4 周，数据可能是 long-tail（长尾）分布的。简单列举一些我感兴趣过的话题包括但不限于：出老千，缅甸电信诈骗噶腰子，活佛，Splendor，Dominion，X 调查，X 博士播客，张雪峰谈升学&amp;hellip;&lt;/p>
&lt;p>&lt;code>最近让我的大脑感到刺激的是一位名叫户晨风的短视频创作者。&lt;/code>他在简中互联网独特的生态位，他犀利到有些偏激的观点，以及他相声般的直播，都让他收获了许多的订阅。我非常喜欢他产生的内容，但我对他有些过激的观点也有不同，综合来说自己并不完全算他的粉丝。&lt;/p>
&lt;p>他创作的内容以及直播效果有非常多独特的地方，我想从以下三个方面简单谈谈他的内容：1.购买力系列 + 送钱系列视频，2.直播的辩论套路，3.核心观点（中医无用，文言文无用，传统文化无用，苹果手机最优越，如何使用互联网+的思维赚钱）。&lt;/p>
&lt;ol>
&lt;li>
&lt;p>购买力系列与送钱系列视频：&lt;/p>
&lt;ol>
&lt;li>购买力系列视频：在国内/国外的拍摄中，户晨风会随机询问一个陌生人 ta 的一小时工资，然后在当地大型平价连锁超市进行消费，主要购买肉蛋奶，最终通过日用品的购买体现当地劳动收入的购买力。&lt;/li>
&lt;li>送钱视频：在国内的拍摄中，他在重庆，上海，成都等地区随机采访一个陌生人，随机问陌生人三个简单的问题，送给陌生人 500-2000 元不等，拍摄陌生人会怎么花这笔钱。但一般来说这些陌生人并不完全是随机的，很多情况下都是请的看似比较穷苦的人进行这个挑战，大致也是给穷苦人送钱。&lt;/li>
&lt;/ol>
&lt;/li>
&lt;li>
&lt;p>直播流程与辩论套路&lt;/p>
&lt;ol>
&lt;li>直播流程：和游戏，才艺，户外直播不同，他的直播通常更像是一场辩论。他会让想上麦的 b 友打开直播，点击 pk，和他进行观点的碰撞。&lt;/li>
&lt;li>辩论套路：
&lt;ol>
&lt;li>在对方表达观点时打断别人说话，打乱别人节奏
&lt;ol>
&lt;li>读个 sc 啊，xxxxx。&lt;/li>
&lt;li>感谢 xxx 总。&lt;/li>
&lt;li>别说敏感的。&lt;/li>
&lt;li>你的麦有回音，是什么手机，安卓手机？这就对了，不是说安卓不好啊。&lt;/li>
&lt;/ol>
&lt;/li>
&lt;li>查户口，夹在一些人生攻击
&lt;ol>
&lt;li>你是什么学历？&lt;/li>
&lt;li>你是哪里人？&lt;/li>
&lt;li>做什么工作？&lt;/li>
&lt;li>一年挣多少钱？&lt;/li>
&lt;li>你用什么手机？&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ol>
&lt;p>总之，他的直播效果通常来自于或是上麦 b 友的观点实在站不住脚，或是一种训诫别人的方式。&lt;/p>
&lt;/li>
&lt;li>
&lt;p>核心观点：&lt;/p>
&lt;ol>
&lt;li>中医无用论：如果不借用西医的仪器，中医无法判断什么是肿瘤，什么是腰椎间盘突出。青蒿素来自于黄花蒿，和中医没关系。&lt;/li>
&lt;li>文言文无用论：文言文完全脱离生活，喜欢的可以学习研究，没必要放到学校课程中。&lt;/li>
&lt;li>传统文化无用 ：比如春节，中秋节，全都是糟粕，春节没必要贴春联，月饼全是糖和油，中秋节不要吃月饼。&lt;/li>
&lt;li>苹果手机最优越：苹果手机，designed by apple in California，吊打世界上所有手机，其他所有手机厂商都在亏钱，苹果大陆抽成 30%，别的安卓手机抽成也是 30%，甚至更多 50%。&lt;/li>
&lt;li>如何使用互联网+的思维赚钱：三件套：开卡车 （xxx 考研中） Vlog，收入公开，直播捞米。开油厂：收入公开，给大家做透明，拉近距离，提高信任，事实上他自己也这么做的。&lt;/li>
&lt;/ol>
&lt;/li>
&lt;/ol>
&lt;p>总结一下观看他内容 2 周后的一些思考&lt;/p>
&lt;ol>
&lt;li>虽然他是高中学历，但是他具有很多常识，查过很多中医方面的资料，学过很多历史方面的知识，他吃这碗饭是有那个金刚钻的。&lt;/li>
&lt;li>互联网+的思维：收入公开，获得信任，然后直播捞米&lt;/li>
&lt;li>有一次观看他直播，他在安慰一个女儿有先天性疾病的父亲：&lt;/li>
&lt;/ol>
&lt;p>有些时候人要接受事实，什么叫事实？有些病人类没有到那个程度，无法靠药物治好，只能期盼他自愈。人要接受这个现实，确实没办法，大家都经历过这种时刻，人类科技确实治不了，治不了怎么办，只能坦然接受，期盼他自愈。&lt;/p></description></item><item><title>Recommender System Study Notes - Nomination(6/6)</title><link>https://h3sun.github.io/post/2024-09-06-rec-sys-nomination-6/</link><pubDate>Fri, 06 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-06-rec-sys-nomination-6/</guid><description>&lt;ul>
&lt;li>GeoHash Nomination&lt;/li>
&lt;li>Author Nomination
&lt;ul>
&lt;li>Subscribed Author&lt;/li>
&lt;li>Interacted Author&lt;/li>
&lt;li>Similar Author&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Cache Nomination&lt;/li>
&lt;/ul>
&lt;h3 id="geohash-nomination">GeoHash Nomination&lt;/h3>
&lt;ul>
&lt;li>Indexing
&lt;ul>
&lt;li>GeoHash -&amp;gt; Item with good quality(reverse chronological order)&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>No personalized&lt;/li>
&lt;/ul>
&lt;h3 id="subscribed-author-nomination">Subscribed Author Nomination&lt;/h3>
&lt;ul>
&lt;li>Indexing:
&lt;ul>
&lt;li>User -&amp;gt; subscribed authors&lt;/li>
&lt;li>author -&amp;gt; uploaded items&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Nomination:
&lt;ul>
&lt;li>User -&amp;gt; Subscribed Author -&amp;gt; New Item&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="interacted-author-nomination">Interacted Author Nomination&lt;/h3>
&lt;ul>
&lt;li>If someone likes/love/forward an item&lt;/li>
&lt;li>Indexing:
&lt;ul>
&lt;li>User -&amp;gt; Interacted Author (update it)&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Nomination:
&lt;ul>
&lt;li>User -&amp;gt; Interacted Author -&amp;gt; New Item&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="similar-author-nomination">Similar Author Nomination&lt;/h3>
&lt;ul>
&lt;li>Indexing:
&lt;ul>
&lt;li>Author -&amp;gt; Similar Author&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Nomination:
&lt;ul>
&lt;li>User ID -&amp;gt; Liked Author -&amp;gt; Similar Author -&amp;gt; New Item&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="cache-nomination">Cache Nomination&lt;/h3>
&lt;ul>
&lt;li>Intuition: Use the previous ranking winning candidates discarded by re-ranking.&lt;/li>
&lt;li>Top 50 items, but get discarded by re-ranking, go to nomination.&lt;/li>
&lt;li>Cache is fixed. How to clear the cache
&lt;ul>
&lt;li>Got impressed&lt;/li>
&lt;li>At most 10 times&lt;/li>
&lt;li>At most 3 days&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="bloom-filter">Bloom Filter&lt;/h3>
&lt;h4 id="intuition">Intuition&lt;/h4>
&lt;ul>
&lt;li>If user has seen an item, then we do not recommend this item to user&lt;/li>
&lt;li>For each user, record item that has been recommended(maybe for a month)&lt;/li>
&lt;li>For each item, check if it&amp;rsquo;s been recommended before&lt;/li>
&lt;/ul>
&lt;h4 id="basics">Basics&lt;/h4>
&lt;ul>
&lt;li>The Bloom filter determines whether an item ID is in the set of exposed items.&lt;/li>
&lt;li>If the judgment is &amp;ldquo;no&amp;rdquo;, then the item is definitely not in the set.&lt;/li>
&lt;li>If the judgment is &amp;ldquo;yes&amp;rdquo;, then the item is likely in the set. (There may be false positives, where an unexposed item is incorrectly judged as exposed and thus filtered out.)&lt;/li>
&lt;/ul>
&lt;h4 id="heading">&lt;/h4>
&lt;ul>
&lt;li>
&lt;p>The size of the exposed item set is \( n \), the dimensionality of the binary vector is \( m \), and \( k \) hash functions are used.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>The false positive probability of the Bloom filter \( \delta \) is approximately:&lt;/p>
\[
\delta \approx \left( 1 - \exp\left( \frac{-kn}{m} \right) \right)^k
\]
&lt;/li>
&lt;li>
&lt;p>As \( n \) increases, the more 1&amp;rsquo;s there are in the vector, and the higher the false positive probability. (The probability that all \( k \) positions corresponding to unexposed items are set to 1 increases.)&lt;/p>
&lt;/li>
&lt;li>
&lt;p>As \( m \) increases, the vector becomes longer, making hash collisions less likely.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>If \( k \) is too large or too small, it is not ideal; \( k \) has an optimal value.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">Exposed Filtering Path:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+ +---------+ +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Recall 1 |------------&amp;gt; | Sorting |------------&amp;gt; | Item 1 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+ +---------+ +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Recall 2 | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+ |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Recall 3 | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+ v
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Item 2 |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | ... |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Item q |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ^ |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">+------------------+ | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">| Binary Vector |&amp;lt;-+ |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">+------------------+ v
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------------+ +-----------------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Bloom Filter |&amp;lt;----| Real-time Processing |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | (Exposure Filter) | | (Kafka + Flink) |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------------+ +-----------------------+
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Recommender System Study Notes - Nomination(5/6)</title><link>https://h3sun.github.io/post/2024-09-05-rec-sys-nomination-5/</link><pubDate>Thu, 05 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-05-rec-sys-nomination-5/</guid><description/></item><item><title>Recommender System Study Notes - Nomination(4/6)</title><link>https://h3sun.github.io/post/2024-09-04-rec-sys-nomination-4/</link><pubDate>Wed, 04 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-04-rec-sys-nomination-4/</guid><description>&lt;ul>
&lt;li>Two tower model full update/incremental update.
&lt;ul>
&lt;li>Online Nomination: Online compute user ID, ANN in stored vector database with item.&lt;/li>
&lt;li>Full Update: 1 epoch, 1 day.&lt;/li>
&lt;li>Incremental Update: Only upadte ID embedding, frozen the fully connected layer.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Two tower model Self-supervised learning
&lt;ul>
&lt;li>Problem: Two tower cannot learn item with limited amount of clicks (data biased).&lt;/li>
&lt;li>Self-supervised learning: random feature transformation&lt;/li>
&lt;li>bi&amp;rsquo;, bi&amp;rsquo;&amp;rsquo; high similarity&lt;/li>
&lt;li>bi&amp;rsquo;, bj&amp;rsquo;&amp;rsquo; low similarity&lt;/li>
&lt;li>Training:
&lt;ul>
&lt;li>pick n (user - item) as a batch for training.&lt;/li>
&lt;li>m items as a batch(uniform sampling) for self-supervised learning.&lt;/li>
&lt;li>$\frac{1}{n} \sum_{i=1}^{n} L_{\text{main}}[i] + \alpha \cdot \frac{1}{m} \sum_{j=1}^{m} L_{\text{self}}[j]$&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="online-nomination">Online Nomination&lt;/h3>
&lt;h4 id="implementation">Implementation&lt;/h4>
&lt;ul>
&lt;li>Item
&lt;ul>
&lt;li>Use neural network to compute item b&amp;rsquo;s embedding.&lt;/li>
&lt;li>Store them in vectorized databse (Milvus, Faiss, HnswLib).&lt;/li>
&lt;li>Indexing, for ANN search.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>User
&lt;ul>
&lt;li>Use user ID, feature, etc to compute user a&amp;rsquo;s embedding.&lt;/li>
&lt;li>ANN search
&lt;ul>
&lt;li>Use a as query.&lt;/li>
&lt;li>Return the top k as return.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Why store item but compute user online?
&lt;ul>
&lt;li>User is only 1, item is O(b).&lt;/li>
&lt;li>User often changes quickly.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="model-update">Model Update&lt;/h3>
&lt;h4 id="full-update-vs-incremental-update">Full Update VS Incremental Update&lt;/h4>
&lt;ul>
&lt;li>Full Update
&lt;ul>
&lt;li>Use yesterday&amp;rsquo;s tfrecord, train 1 epoch.&lt;/li>
&lt;li>Update the new user neural network, store item data into database.&lt;/li>
&lt;li>Easy to implement, easy requirement for the system.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Incremental Update(online learning)
&lt;ul>
&lt;li>Why? User&amp;rsquo;s interest can change quickly.&lt;/li>
&lt;li>Data streaming, TFRecord.&lt;/li>
&lt;li>Online learning, gradient descent, only update ID Embedding, not other parameters in the neural network.&lt;/li>
&lt;li>Update the new ID embedding.&lt;/li>
&lt;li>To be discarded after full update.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Why only incremental update is not having the best result?
&lt;ul>
&lt;li>Hourly data is biased.&lt;/li>
&lt;li>Full update: random shuffle, 1 epoch.&lt;/li>
&lt;li>Incremental update: train from morning to night, this is not having the best result.&lt;/li>
&lt;li>random shuffle makes a positive impact on the learning.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="two-tower-model-self-supervised-learning">Two tower model Self-supervised learning&lt;/h3>
&lt;h4 id="problem">Problem&lt;/h4>
&lt;ul>
&lt;li>
&lt;p>The head effect in the recommendation system is severe:&lt;/p>
&lt;ul>
&lt;li>A small number of items account for most of the clicks.&lt;/li>
&lt;li>Most items have a low number of clicks.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>The features of high-click items are well-learned, but the features of long-tail items are not well-learned.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Self-supervised learning: data augumentation, to better learn long-tail items&amp;rsquo; embedding.&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h4 id="intuition">Intuition&lt;/h4>
&lt;ul>
&lt;li>A simple feature transformation will make minimal impact on their feature embeddings, and pairwise, the similarity still remains large.&lt;/li>
&lt;li>i -&amp;gt; i&amp;rsquo; -&amp;gt; bi&amp;rsquo;, i -&amp;gt; i&amp;rsquo;&amp;rsquo; -&amp;gt; bi&amp;rsquo;&amp;rsquo;, j -&amp;gt; j&amp;rsquo; -&amp;gt; bj&amp;rsquo;, j -&amp;gt; j&amp;rsquo;&amp;rsquo;-&amp;gt;bj''&lt;/li>
&lt;li>i, bi&amp;rsquo; and bi&amp;rsquo;&amp;rsquo; has high similarity&lt;/li>
&lt;li>i, j, bi&amp;rsquo; and bj&amp;rsquo;&amp;rsquo; has low similarity&lt;/li>
&lt;li>cos(bi, bi&amp;rsquo;&amp;rsquo;) big, cos(bi&amp;rsquo;, bj&amp;rsquo;) small&lt;/li>
&lt;/ul>
&lt;h4 id="methods">Methods&lt;/h4>
&lt;ol>
&lt;li>Random Mask&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Randomly pick labels, and set them to null.&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>Dropout&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Randomly dropout 50% label.&lt;/li>
&lt;/ul>
&lt;ol start="3">
&lt;li>Complementary&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>ID, Label, Keywords, City.&lt;/li>
&lt;li>Randomly divide them into two {ID, keyword} and {Label, City}.&lt;/li>
&lt;li>{ID, default, Keyword, default} -&amp;gt; Item embedding.&lt;/li>
&lt;li>{default, Label, default, City} -&amp;gt; Item embedding.&lt;/li>
&lt;/ul>
&lt;ol start="4">
&lt;li>Mask a set of correlated features&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>U = {Male, Female, Unisex}.&lt;/li>
&lt;li>V = {Photography, Football, IT, Makeup}.&lt;/li>
&lt;li>u = female, v = Makeup, p(u, v) is high.&lt;/li>
&lt;li>u = female, v = IT, p(u, v) is low.&lt;/li>
&lt;li>$MI(U, V) = \sum_{u \in U} \sum_{v \in V} p(u, v) \cdot \log \frac{p(u, v)}{p(u) \cdot p(v)}$&lt;/li>
&lt;/ul>
&lt;p>Learning:&lt;/p>
&lt;ul>
&lt;li>Assume there are a total of \( k \) features. Calculate the MI (Mutual Information) between any two features offline, resulting in a \( k \times k \) matrix.&lt;/li>
&lt;li>Randomly select one feature as a seed and find the \( k/2 \) features most related to the seed.&lt;/li>
&lt;li>Mask the seed and its related \( k/2 \) features, retaining the remaining \( k/2 \) features.&lt;/li>
&lt;/ul>
&lt;p>Training:&lt;/p>
&lt;ul>
&lt;li>Sampling m items as a batch&lt;/li>
&lt;li>cos(bi&amp;rsquo;, bi&amp;rsquo;&amp;rsquo;) -&amp;gt; 1, other cos(bi&amp;rsquo;, bj&amp;rsquo;&amp;rsquo;) -&amp;gt; 0&lt;/li>
&lt;/ul></description></item><item><title>Recommender System Study Notes - Nomination(3/6)</title><link>https://h3sun.github.io/post/2024-09-03-rec-sys-nomination-3/</link><pubDate>Tue, 03 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-03-rec-sys-nomination-3/</guid><description>&lt;ul>
&lt;li>
&lt;p>Two Tower Model - Architecture + Training&lt;/p>
&lt;ul>
&lt;li>Pointwise Training
&lt;ul>
&lt;li>View nomination as binary classification&lt;/li>
&lt;li>Sample: cos(a,b) -&amp;gt; +1, negative sample: cos(a, b) -&amp;gt; -1&lt;/li>
&lt;li>Positive : negative = 1:2 / 1:3&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Pairwise Training
&lt;ul>
&lt;li>Intuntion: cos(a, b+) &amp;gt; cos(a, b-)&lt;/li>
&lt;li>Triplet hinge loss = max(0, cos(a, b-) + m - cos(a, b+))&lt;/li>
&lt;li>Triplet logistic loss = log(1 + exp(σ) * cos(a, b-) - cos(a, b+))&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Listwise Training
&lt;ul>
&lt;li>CrossEntropyLoss&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Two Tower Model - Positive Samples + Negative Samples&lt;/p>
&lt;ul>
&lt;li>Positive Sample:
&lt;ul>
&lt;li>Impressed and clicked&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Negative Sample:&lt;/li>
&lt;li>Easy negative sample:
&lt;ul>
&lt;li>All items&lt;/li>
&lt;li>In-batch items&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Hard negative sample:
&lt;ul>
&lt;li>Nominated, but discarded by ranking&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Mix easy and hard for training dataset&lt;/li>
&lt;li>Wrong sampling:
&lt;ul>
&lt;li>Impressed, but not clicked (can be used for training ranking but not nomination)&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="two-tower-modeldssm---architecture-and-training">Two Tower Model(DSSM) - Architecture and Training&lt;/h3>
&lt;h4 id="two-tower-model-architecture">Two Tower Model Architecture&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">Neural Network
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> └── Concatenate
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ├── Embedding Layer (User ID)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> │ └── Embedding (Vector Representation)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> ├── Embedding Layers (User Discrete Feature)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> │ └── Embedding (Vector Representation)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> └── Normalization, Binning, etc. (normalize to 1, put into buckets)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> └── User Continuous Features (Vector Representation)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>$\cos(a, b) = \frac{a \cdot b}{\|a\|_2 \cdot \|b\|_2}$&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl"> Cosine Similarity:
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> a b
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Neural Network Neural Network
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Feature Transformation Feature Transformation
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">User ID, Discrete Features, Product ID, Discrete Features,
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Continuous Features Continuous Features
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="two-tower-model-training">Two Tower Model Training&lt;/h4>
&lt;ul>
&lt;li>Pointwise (binary classification)&lt;/li>
&lt;li>Pairwise&lt;/li>
&lt;li>Listwise&lt;/li>
&lt;/ul>
&lt;h5 id="pointwise-training">Pointwise Training&lt;/h5>
&lt;ul>
&lt;li>Intuition: View nomination as binary classification&lt;/li>
&lt;li>positive sample: cos(a,b) -&amp;gt; +1, negative sample: cos(a, b) -&amp;gt; -1&lt;/li>
&lt;li>positive : negative = 1:2 / 1:3&lt;/li>
&lt;/ul>
&lt;h5 id="pairwise-training">Pairwise Training&lt;/h5>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl"> cos(a, b⁺) cos(a, b⁻)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \ / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> / \ / \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> b⁺ a b⁻
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> (Positive Sample) (User) (Negative Sample)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Neural Network Neural Network Neural Network
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">Feature Transformation Feature Transformation Feature Transformation
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Positive Item Feature User Features Negative Item Feature
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>Intuntion: cos(a, b+) &amp;gt; cos(a, b-)&lt;/li>
&lt;li>triplet hinge loss = max(0, cos(a, b-) + m - cos(a, b+))&lt;/li>
&lt;li>triplet logistic loss = log(1 + exp(σ) * cos(a, b-) - cos(a, b+))&lt;/li>
&lt;/ul>
&lt;h5 id="listwise-training">Listwise Training&lt;/h5>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">CrossEntropyLoss(y, s) = -log(s⁺)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-----------------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | CrossEntropyLoss |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-----------------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------------------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | Softmax Activation Function |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +-------------------------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> +------------+------------+-------------+ ... +------------+
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | | | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> s⁺ s⁻_1 s⁻_2 ... s⁻_n
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> (Positive) (Negative) (Negative) (Negative)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> cos(a, b⁺) cos(a, b⁻_1) cos(a, b⁻_2) ... cos(a, b⁻_n)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> | | | |
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">(Positive) (Negative) (Negative) (Negative)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> Sample Sample Sample Sample
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="two-tower-modeldssm---positive-samples--negative-samples">Two Tower Model(DSSM) - Positive Samples + Negative Samples&lt;/h3>
&lt;h4 id="positive-samples">Positive Samples&lt;/h4>
&lt;ul>
&lt;li>impressed and clicked&lt;/li>
&lt;li>problem: 20% item takes 80% click&lt;/li>
&lt;li>solution:
&lt;ul>
&lt;li>up-sampling: one sample appear multiple times&lt;/li>
&lt;li>down-sampling: discard samples&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h4 id="negative-samples">Negative Samples&lt;/h4>
&lt;h5 id="simple-negative-sampling-all-items">Simple Negative Sampling: All Items&lt;/h5>
&lt;h6 id="uniform-sampling-unfair-to-unpopular-items">Uniform Sampling: Unfair to unpopular items&lt;/h6>
&lt;ul>
&lt;li>Most positive samples are popular items.&lt;/li>
&lt;li>If uniform sampling produces negative samples, most of the negative samples are unpopular items.&lt;/li>
&lt;li>positive sample: popular items, negative sample: unpopular items, this is unfair.&lt;/li>
&lt;/ul>
&lt;h6 id="non-uniform-sampling-the-goal-is-to-suppress-popular-items">Non-uniform Sampling: The goal is to suppress popular items&lt;/h6>
&lt;ul>
&lt;li>The probability of negative sampling is positively correlated with popularity (clicks).&lt;/li>
&lt;li>&lt;strong>Sampling probability ∝ (clicks) ^ 0.75&lt;/strong>&lt;/li>
&lt;/ul>
&lt;h5 id="simple-negative-sampling-negative-sample-within-a-batch">Simple Negative Sampling: Negative Sample within a batch&lt;/h5>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">user1 - item1
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">user2 - item2
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">user3 - item3
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">...
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">user_n - item_n
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>
&lt;p>one batch has n positive samples&lt;/p>
&lt;/li>
&lt;li>
&lt;p>one batch has n(n - 1) negative samples&lt;/p>
&lt;/li>
&lt;li>
&lt;p>The probablity that an item appear in a batch is propotional to the number of times it clicked.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>We aim to get it propotional to clicks^0.75.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>offline training cos(a, bi) - log(pi), pi ∝ clicks&lt;/p>
&lt;/li>
&lt;li>
&lt;p>online inference cos(a, bi)&lt;/p>
&lt;/li>
&lt;/ul>
&lt;h4 id="hard-negative-sampling">Hard Negative Sampling&lt;/h4>
&lt;h5 id="hard-negative-samples">Hard negative samples:&lt;/h5>
&lt;ul>
&lt;li>Items that are ranked and close to the target (relatively hard).&lt;/li>
&lt;li>Items that are ranked far behind the target (extremely hard).&lt;/li>
&lt;/ul>
&lt;h6 id="binary-classification-for-positive-and-negative-samples">Binary classification for positive and negative samples:&lt;/h6>
&lt;ul>
&lt;li>All items (simple): High classification accuracy.&lt;/li>
&lt;li>Items that are ranked and close to the target (relatively hard): Easy to misclassify.&lt;/li>
&lt;li>Items that are ranked far behind the target (extremely hard): Even easier to misclassify.&lt;/li>
&lt;/ul>
&lt;h4 id="datasets">Datasets&lt;/h4>
&lt;ul>
&lt;li>Mix negative samples&lt;/li>
&lt;li>50% easy negative sample&lt;/li>
&lt;li>50% hard negative sample&lt;/li>
&lt;/ul></description></item><item><title>Recommender System Study Notes - Nomination(2/6)</title><link>https://h3sun.github.io/post/2024-09-03-rec-sys-nomination-2/</link><pubDate>Mon, 02 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-03-rec-sys-nomination-2/</guid><description>&lt;ul>
&lt;li>Discrete Feature&lt;/li>
&lt;li>Matrix Completion&lt;/li>
&lt;/ul>
&lt;h3 id="discrete-feature">Discrete Feature&lt;/h3>
&lt;h4 id="example">Example&lt;/h4>
&lt;ul>
&lt;li>sex&lt;/li>
&lt;li>nationality&lt;/li>
&lt;li>english words&lt;/li>
&lt;li>item id&lt;/li>
&lt;li>user id&lt;/li>
&lt;/ul>
&lt;h4 id="how-to-encode-discrete-feature---vectorization">How to encode discrete feature -&amp;gt; vectorization&lt;/h4>
&lt;ul>
&lt;li>one-hot encoding&lt;/li>
&lt;li>embedding (*)
&lt;ul>
&lt;li>size: vector dimension * number of items&lt;/li>
&lt;li>How to implement: TensorFlow, PyTorch -&amp;gt; embedding&lt;/li>
&lt;li>embedding = Parameter matrix * one-hot encoding&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h3 id="matrix-completion">Matrix Completion&lt;/h3>
&lt;h4 id="intuition">Intuition&lt;/h4>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">item id -&amp;gt; embedding
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> \
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> - cos(a, b)
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> /
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">item id -&amp;gt; embedding
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h4 id="formula">Formula&lt;/h4>
&lt;ul>
&lt;li>dataset = {u, i, y}&lt;/li>
&lt;li>training, u -&amp;gt; au, i -&amp;gt; bi&lt;/li>
&lt;li>optimization: $\min_{A, B} \sum_{\substack{(u, i, y) \in \Omega}} \left( y - \langle a_u, b_i \rangle \right)^2$&lt;/li>
&lt;/ul>
&lt;h4 id="proscons">Pros/Cons&lt;/h4>
&lt;ul>
&lt;li>Cons
&lt;ul>
&lt;li>It only uses ID embedding without item, user characteristics
&lt;ul>
&lt;li>item characteristics: label, key words&lt;/li>
&lt;li>user characteristics: gender, age, geo, liked label&lt;/li>
&lt;li>Two tower Model&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Negative sample is wrong
&lt;ul>
&lt;li>Positive: User interacted, which is good&lt;/li>
&lt;li>Negative: User did not interact, which is not correct&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Training
&lt;ul>
&lt;li>dot product is worse than cosine similarity&lt;/li>
&lt;li>Loss(regression) is worse than cross entropy&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h4 id="implementation">Implementation&lt;/h4>
&lt;h5 id="offline">Offline:&lt;/h5>
&lt;ul>
&lt;li>Learning A: user&lt;/li>
&lt;li>Learning B: item&lt;/li>
&lt;li>storing A into {user id: embedding} key-value&lt;/li>
&lt;/ul>
&lt;h5 id="online">Online:&lt;/h5>
&lt;ul>
&lt;li>user Id -&amp;gt; find a&amp;rsquo;s vector&lt;/li>
&lt;li>nearest neighbour search, return the top 100 b whose &amp;lt;a, b&amp;gt; is max&lt;/li>
&lt;li>Approximate Nearest Neighbor (ANN)
&lt;ul>
&lt;li>pre process the circile into sectors&lt;/li>
&lt;li>pick a representative vector(indexing) represents the sector&lt;/li>
&lt;li>find representative vector, then find vector in that sector instead of the whole circle&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul></description></item><item><title>Recommender System Study Notes - Nomination(1/6)</title><link>https://h3sun.github.io/post/2024-09-02-rec-sys-nomination-1/</link><pubDate>Sun, 01 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-02-rec-sys-nomination-1/</guid><description>&lt;ul>
&lt;li>Item CF&lt;/li>
&lt;li>Swing&lt;/li>
&lt;li>User CF&lt;/li>
&lt;/ul>
&lt;h3 id="item-cf">Item CF&lt;/h3>
&lt;h4 id="intuition">Intuition&lt;/h4>
&lt;ul>
&lt;li>If user likes i1 and i1 is similar with i2 -&amp;gt; Then user is likely to like i2&lt;/li>
&lt;/ul>
&lt;h4 id="formula">Formula&lt;/h4>
&lt;ul>
&lt;li>$score = \sum_j \text{like}(\text{user}, \text{item}\_j) \times \text{sim}(\text{item}\_j, \text{item})$, to compute Item CF score&lt;/li>
&lt;li>$\text{sim}(i_1, i_2) = \frac{|\mathbf{v}|}{\sqrt{|\mathbf{w}_1| \cdot |\mathbf{w}_2|}}$, to compute similarity, w1 as the user who likes i1, w2 as the set, v as the intersection between i1 and i2.&lt;/li>
&lt;li>$\text{sim}(i*1, i_2) = \frac{\sum*{v \in v} \text{like}(v, i*1) \cdot \text{like}(v, i_2)}{\sqrt{\sum*{u*1 \in w_1} \text{like}^2(u_1, i_1)} \cdot \sqrt{\sum*{u_2 \in w_2} \text{like}^2(u_2, i_2)}}$, to take like score into consideration).&lt;/li>
&lt;/ul>
&lt;h4 id="implementation">Implementation&lt;/h4>
&lt;h5 id="offline">Offline:&lt;/h5>
&lt;ul>
&lt;li>User -&amp;gt; Item Indexing
&lt;ul>
&lt;li>return the last-n items with interaction that this user interacts with.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Item -&amp;gt; Item Indexing
&lt;ul>
&lt;li>compute sim (i, j) maybe maintaining User-&amp;gt;Item&lt;/li>
&lt;li>for each item, find the cloest k items&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h5 id="online-inference-user-id---100-items">Online Inference: (user id -&amp;gt; 100 items)&lt;/h5>
&lt;ul>
&lt;li>user id -&amp;gt; last-n items&lt;/li>
&lt;li>for each item in last-n, use item-item to find k items&lt;/li>
&lt;li>Use score formula to compute n * k items&amp;rsquo; score&lt;/li>
&lt;li>pick top 100, and output top 100 items as the nomination result in this Item CF Channel&lt;/li>
&lt;/ul>
&lt;h3 id="swing">Swing&lt;/h3>
&lt;h4 id="intuition-1">Intuition&lt;/h4>
&lt;ul>
&lt;li>If two items are not that relavant, but it got forwarded into a same small group, we want to lower the similarity score.&lt;/li>
&lt;/ul>
&lt;h4 id="formula-1">Formula&lt;/h4>
&lt;ul>
&lt;li>u1 -&amp;gt; j1, u2 -&amp;gt; j2
&lt;ul>
&lt;li>$\text{overlap}(u_1, u_2) = |\mathcal{J}_1 \cap \mathcal{J}_2|$&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>i1 -&amp;gt; w1, i2 -&amp;gt; w2, v = w1 ∩ w2
&lt;ul>
&lt;li>$\text{sim}(i_1, i_2) = \sum_{u_1 \in V} \sum_{u_2 \in V} \frac{1}{\alpha + \text{overlap}(u_1, u_2)}$, to compute similarity, a is a hyper-parameter&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>if overlap is big, then the contribution to similarity becomes low&lt;/li>
&lt;/ul>
&lt;h3 id="user-cf">User CF&lt;/h3>
&lt;h4 id="intuition-2">Intuition&lt;/h4>
&lt;ul>
&lt;li>I will like the notes which liked by someone who is similar to me.&lt;/li>
&lt;/ul>
&lt;h4 id="formula-2">Formula&lt;/h4>
&lt;ul>
&lt;li>Method1: like, collect, click notes are similar&lt;/li>
&lt;li>Method2: Subscribed authors are similar&lt;/li>
&lt;li>u1 -&amp;gt; j1, u2 -&amp;gt; j2, I = j1 ∩ j2, nl: the number of users who likes l
&lt;ul>
&lt;li>$sim = \text{sim}(u_1, u_2) = \frac{|I|}{\sqrt{|\mathcal{J}_1| \cdot |\mathcal{J}_2|}}$&lt;/li>
&lt;li>$sim = \text{sim}(u_1, u_2) = \frac{\sum_{I \in I} \frac{1}{\log(1 + n_I)}}{\sqrt{|\mathcal{J}_1| \cdot |\mathcal{J}_2|}}$&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>$score = \sum_j \text{sim(user, user}_j\text{)} \times \text{like(user}_j, \text{item)}$&lt;/li>
&lt;/ul>
&lt;h4 id="implementation-1">Implementation&lt;/h4>
&lt;h5 id="offline-1">Offline:&lt;/h5>
&lt;ul>
&lt;li>User -&amp;gt; Item Indexing
&lt;ul>
&lt;li>return the last-n items with interaction that this user interacts with.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>User -&amp;gt; User Indexing
&lt;ul>
&lt;li>compute sim (i, j)&lt;/li>
&lt;li>for each user, find the cloest k users&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h5 id="online">Online:&lt;/h5>
&lt;ul>
&lt;li>user-user indexing: id -&amp;gt; k cloest users&lt;/li>
&lt;li>user-item indexing: for each user, find his/her last-n, use user-item to find n items&lt;/li>
&lt;li>compute score: Use the formula to compute n * k items&amp;rsquo; score&lt;/li>
&lt;li>rank: pick top 100, and output top 100 items as the nomination result in this User CF Channel&lt;/li>
&lt;/ul></description></item><item><title>Recommender System Study Notes Basics (1/1)</title><link>https://h3sun.github.io/post/2024-09-01-rec-sys-basics-1/</link><pubDate>Sun, 01 Sep 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-09-01-rec-sys-basics-1/</guid><description>&lt;h2 id="basics">Basics&lt;/h2>
&lt;div class="markmap" style="height: 200px;">
&lt;pre>- Impression
- Click
- ScrollToEnd
- Comment
- Like
- Collect
- Share&lt;/pre>
&lt;/div>
&lt;h4 id="基础指标">基础指标&lt;/h4>
&lt;ul>
&lt;li>Click-through rate = Number of clicks / Number of impressions&lt;/li>
&lt;li>Like rate = Number of likes / Number of impressions&lt;/li>
&lt;li>Collection rate = Number of collections / Number of clicks&lt;/li>
&lt;li>Forwarding rate = Number of forwards / Number of clicks&lt;/li>
&lt;li>Completion rate = Number of times scrolled to the end / Number of clicks * f(Note length)&lt;/li>
&lt;/ul>
&lt;h4 id="北极星指标">北极星指标&lt;/h4>
&lt;ul>
&lt;li>用户规模
DAU daily active user
MAU monthly active user&lt;/li>
&lt;li>消费
人均使用时长，人均阅读笔记数量&lt;/li>
&lt;li>发布
发布渗透率，人均发布量&lt;/li>
&lt;/ul>
&lt;h4 id="实验流程">实验流程&lt;/h4>
&lt;div class="markmap" style="height: 200px;">
&lt;pre>- Offline Test
- A/B Test
- experiment rollout&lt;/pre>
&lt;/div>
&lt;h4 id="chain-of-recommender-system">Chain of Recommender System&lt;/h4>
&lt;div class="markmap" style="height: 200px;">
&lt;pre>- Nomination
- Pre-Ranking
- Ranking
- Re-Ranking&lt;/pre>
&lt;/div>
&lt;ul>
&lt;li>
&lt;p>Nomination O(billion) -&amp;gt; O(k)&lt;/p>
&lt;ul>
&lt;li>CF&lt;/li>
&lt;li>Two Tower&lt;/li>
&lt;li>Subscribed Content Creator&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Pre-Ranking + Ranking O(k) -&amp;gt; O(100)&lt;/p>
&lt;ul>
&lt;li>Use a neural network as follow:&lt;/li>
&lt;li>Input:
&lt;ul>
&lt;li>User Feature Embedding&lt;/li>
&lt;li>Item Feature Embedding&lt;/li>
&lt;li>Stats Embedding&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Output:
&lt;ul>
&lt;li>Click-through rate&lt;/li>
&lt;li>Like Rate&lt;/li>
&lt;li>Collection Rate&lt;/li>
&lt;li>Forwarding Rate&lt;/li>
&lt;li>Completion Rate&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Combine them and output a score&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>Re-Ranking O(100) -&amp;gt; O(80?) | for diversity&lt;/p>
&lt;ul>
&lt;li>Common methods:&lt;/li>
&lt;li>MMR&lt;/li>
&lt;li>DPP&lt;/li>
&lt;li>use pre-set rules to diversify notes&lt;/li>
&lt;li>insert ads, change sequence based on rules&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;h4 id="ab-test">A/B Test&lt;/h4>
&lt;ul>
&lt;li>Basic flow:
&lt;ul>
&lt;li>new GNN, Offline testing gives promising results&lt;/li>
&lt;li>online A/B test, vaildate&lt;/li>
&lt;li>tune hyper parameters&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>how to put user into buckets randomly
&lt;ul>
&lt;li>hash user id&lt;/li>
&lt;li>compute metrics for each bucket, DAU, etc&lt;/li>
&lt;li>experiment rollout&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Overlapping experiment
&lt;ul>
&lt;li>overlapping: nomination, pre-ranking, ranking, re-ranking, user interface, ads&lt;/li>
&lt;li>each layer: mutually exclusive&lt;/li>
&lt;li>between layers: orthogonality&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Holdout mechanism
&lt;ul>
&lt;li>10% as holdout bucket + 90% as overlapping experiment&lt;/li>
&lt;li>clean holdout and rollout experiment&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Experiment Rollout&lt;/li>
&lt;li>Experiment Reverse&lt;/li>
&lt;/ul>
&lt;h3 id="pre-ranking-rankingscoring">Pre-Ranking, Ranking(scoring)&lt;/h3>
&lt;h3 id="re-ranking">Re-Ranking&lt;/h3></description></item><item><title>Areas of Exploration and Growth</title><link>https://h3sun.github.io/post/2024-08-27-area-of-growth/</link><pubDate>Tue, 27 Aug 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-08-27-area-of-growth/</guid><description>&lt;h4 id="health-and-fitness">Health and Fitness&lt;/h4>
&lt;ul>
&lt;li>Gym&lt;/li>
&lt;/ul>
&lt;h4 id="machine-learning">Machine Learning&lt;/h4>
&lt;ul>
&lt;li>Recommender System&lt;/li>
&lt;li>CS224N: Natural Language Processing with Deep Learning&lt;/li>
&lt;/ul>
&lt;h4 id="city-planning">City Planning&lt;/h4>
&lt;ul>
&lt;li>Get an idea of city planning.&lt;/li>
&lt;/ul>
&lt;h4 id="mindset-through-reading-and-writing">Mindset (through reading and writing)&lt;/h4>
&lt;ul>
&lt;li>Thinking in system.&lt;/li>
&lt;/ul></description></item><item><title>Leetcode Contest 410 Solutions</title><link>https://h3sun.github.io/post/2024-08-14-init/</link><pubDate>Wed, 14 Aug 2024 00:00:00 +0000</pubDate><guid>https://h3sun.github.io/post/2024-08-14-init/</guid><description>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-cpp" data-lang="cpp">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Solution&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">def&lt;/span> &lt;span class="n">finalPositionOfSnake&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nl">n&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="kt">int&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nl">commands&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">List&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">str&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="kt">int&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">grid&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="n">in&lt;/span> &lt;span class="n">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)]&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="n">in&lt;/span> &lt;span class="n">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">idx&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="n">in&lt;/span> &lt;span class="n">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="n">in&lt;/span> &lt;span class="n">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">grid&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">idx&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">idx&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">r&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">c&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="n">in&lt;/span> &lt;span class="n">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">commands&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">cm&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">commands&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">cm&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="s">&amp;#34;UP&amp;#34;&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">r&lt;/span> &lt;span class="o">-=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">elif&lt;/span> &lt;span class="n">cm&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="s">&amp;#34;RIGHT&amp;#34;&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">c&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">elif&lt;/span> &lt;span class="n">cm&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="s">&amp;#34;DOWN&amp;#34;&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">r&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="o">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">c&lt;/span> &lt;span class="o">-=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">grid&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">r&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">c&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Solution&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">countGoodNodes&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">edges&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">List&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">List&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="nb">int&lt;/span>&lt;span class="p">]])&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="nb">int&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">edges&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">graph&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[[]&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">b&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">edges&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">graph&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">append&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">b&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">graph&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">b&lt;/span>&lt;span class="p">]&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">append&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">a&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">ret&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">dfs&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">node&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">parent&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">nonlocal&lt;/span> &lt;span class="n">ret&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">cnts&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">valids&lt;/span>&lt;span class="o">=&lt;/span> &lt;span class="p">[]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">nxt&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="n">graph&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">node&lt;/span>&lt;span class="p">]:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">nxt&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="n">parent&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">continue&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">valid&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">cnt&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">dfs&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nxt&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">node&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">valids&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">append&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">valid&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">cnts&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">append&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">cnt&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">set&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">cnts&lt;/span>&lt;span class="p">))&lt;/span> &lt;span class="o">&amp;lt;=&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">ret&lt;/span> &lt;span class="o">+=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="kc">True&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="nb">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">cnts&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="kc">False&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="mi">1&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="nb">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">cnts&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dfs&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="n">ret&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Solution&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">countOfPairs&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">List&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="nb">int&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="nb">int&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">MOD&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">int&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mf">1e9&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">7&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nums&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">m&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">max&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nums&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">)]&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">k&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">j&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">k&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="ow">and&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">k&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">%&lt;/span> &lt;span class="n">MOD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="nb">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">n&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">%&lt;/span> &lt;span class="n">MOD&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-python" data-lang="python">&lt;span class="line">&lt;span class="cl">&lt;span class="k">class&lt;/span> &lt;span class="nc">Solution&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">def&lt;/span> &lt;span class="nf">countOfPairs&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="bp">self&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">:&lt;/span> &lt;span class="n">List&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="nb">int&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">-&amp;gt;&lt;/span> &lt;span class="nb">int&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">MOD&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">int&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mf">1e9&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">7&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">n&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">len&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nums&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">m&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">max&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nums&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">)]&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p1&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p2&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">n&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">for&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">):&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">i&lt;/span> &lt;span class="o">==&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">k&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">j&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">nums&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">k&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="n">m&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">k&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">m&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">k&lt;/span> &lt;span class="o">&amp;lt;&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">continue&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">k&lt;/span> &lt;span class="o">&amp;gt;=&lt;/span> &lt;span class="n">j&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">k&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">j&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="n">p1&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">k&lt;/span>&lt;span class="p">]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="mi">0&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">if&lt;/span> &lt;span class="n">j&lt;/span> &lt;span class="o">!=&lt;/span> &lt;span class="mi">0&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p2&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="n">p2&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">j&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">%&lt;/span> &lt;span class="n">MOD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">else&lt;/span>&lt;span class="p">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p2&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">]&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">i&lt;/span>&lt;span class="p">][&lt;/span>&lt;span class="n">j&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">%&lt;/span> &lt;span class="n">MOD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p1&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="nb">list&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">p2&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="n">p2&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="mi">0&lt;/span> &lt;span class="k">for&lt;/span> &lt;span class="n">_&lt;/span> &lt;span class="ow">in&lt;/span> &lt;span class="nb">range&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">m&lt;/span> &lt;span class="o">+&lt;/span> &lt;span class="mi">2&lt;/span>&lt;span class="p">)]&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">return&lt;/span> &lt;span class="nb">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dp&lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">n&lt;/span> &lt;span class="o">-&lt;/span> &lt;span class="mi">1&lt;/span>&lt;span class="p">])&lt;/span> &lt;span class="o">%&lt;/span> &lt;span class="n">MOD&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item></channel></rss>