05 · Trading Partners: With Whom Does Bahrain Trade?¶
Objective. Identify Bahrain's principal import suppliers and export markets, measure how concentrated trade is across partners, and compare the weight of GCC and non-GCC partners before the 2026 conflict.
Scope. Rankings and shares use complete years (2021–2025). The monthly regional series covers the full period to September 2026.
Measures.
- Partner share: a partner's value as a percentage of the trade type's total.
- Herfindahl–Hirschman Index (HHI): the sum of squared partner shares (0–10,000). Values below 1,500 are conventionally read as unconcentrated and values above 2,500 as highly concentrated.
- Unit value: BHD per kilogram, used to compare suppliers of the same product.
%load_ext autoreload
%autoreload 2
import pandas as pd
import plotly.express as px
from scripts.analysis import load_trade, full_years, to_millions
from scripts.plotly_theme import use_metro, RED, GREEN
use_metro()
pd.options.display.float_format = "{:,.1f}".format
REGION_COLORS = {"GCC": GREEN, "Non-GCC": RED}
df = load_trade()
fy = full_years(df)
1. Leading partners by trade type¶
def partner_table(trade_type, n=10):
sub = fy[fy["trade_type"] == trade_type]
out = sub.groupby(["country_name", "region"])["price_bhd"].sum().rename("value").reset_index()
out["share_%"] = out["value"] / out["value"].sum() * 100
out["value_bhd_m"] = to_millions(out["value"])
return out.nlargest(n, "value")[["country_name", "region", "value_bhd_m", "share_%"]].reset_index(drop=True)
top_import_partners = partner_table("import")
top_import_partners
top_export_partners = partner_table("export")
top_export_partners
top_reexport_partners = partner_table("re-export")
top_reexport_partners
temp = top_import_partners.copy()
temp["country_name"] = temp["country_name"].str.title()
fig = px.bar(
temp,
x="share_%",
y="country_name",
color="region",
orientation="h",
text_auto=".1f",
color_discrete_map=REGION_COLORS,
)
fig.update_layout(
title="Top 10 Import Suppliers, 2021–2025",
xaxis_title="Share of Value (%)",
yaxis_title="Country",
legend_title_text="Region"
)
fig.update_yaxes(categoryorder="total ascending")
fig.show()
temp = top_export_partners.copy()
temp["country_name"] = temp["country_name"].str.title()
fig = px.bar(
temp,
x="share_%",
y="country_name",
color="region",
orientation="h",
text_auto=".1f",
color_discrete_map=REGION_COLORS,
)
fig.update_layout(
title="Top 10 Export Destinations, 2021–2025",
xaxis_title="Share of Value (%)",
yaxis_title="Country",
legend_title_text="Region"
)
fig.update_yaxes(categoryorder="total ascending")
fig.show()
2. Partner concentration¶
def hhi(sub):
shares = sub.groupby("country_name")["price_bhd"].sum()
shares = shares / shares.sum() * 100
return pd.Series({
"partners": len(shares),
"top_1_%": shares.nlargest(1).sum(),
"top_5_%": shares.nlargest(5).sum(),
"top_10_%": shares.nlargest(10).sum(),
"HHI": (shares ** 2).sum(),
})
concentration = fy.groupby("trade_type").apply(hhi, include_groups=False)
concentration
3. Stability of the main partners¶
Annual value for the ten largest partners across all trade types combined.
top_partners = fy.groupby("country_name")["price_bhd"].sum().nlargest(10).index
partner_year = (
fy[fy["country_name"].isin(top_partners)]
.pivot_table(index="country_name", columns="year", values="price_bhd", aggfunc="sum")
.reindex(top_partners)
)
partner_year = partner_year / 1e6
partner_year.index = partner_year.index.str.title()
fig = px.imshow(
partner_year,
text_auto=".0f",
aspect="auto",
title="Top 10 Partners: Annual Trade Value, All Trade Types (BHD m)",
labels={
"x": "Year",
"y": "Country",
"color": "BHD m"
}
)
fig.update_xaxes(type="category")
fig.show()
4. Case study: imports from China¶
China is the largest import supplier by value. The products below show what that dependence consists of.
china = fy[(fy["country_name"] == "CHINA") & (fy["trade_type"] == "import")]
china_products = china.groupby("commodity_name")["price_bhd"].agg(value="sum", records="size")
china_products["value_bhd_m"] = china_products["value"] / 1e6
china_products["share_of_china_pct"] = china_products["value"] / china_products["value"].sum() * 100
china_products = china_products.nlargest(10, "value")[["value_bhd_m", "share_of_china_pct", "records"]]
print(f"Distinct products imported from China: {china['commodity_no'].nunique():,}")
china_products
temp = china_products.reset_index()
temp["commodity_name"] = temp["commodity_name"].str.title().str.slice(0, 45)
fig = px.bar(
temp,
x="value_bhd_m",
y="commodity_name",
orientation="h",
text_auto=".0f",
)
fig.update_layout(
title="Top 10 Products Imported from China, 2021–2025",
xaxis_title="Value (BHD m)",
yaxis_title="Commodity",
)
fig.update_traces(marker_color=RED)
fig.update_yaxes(categoryorder="total ascending")
fig.show()
5. GCC and non-GCC partners¶
GCC partners (Saudi Arabia, UAE, Kuwait, Oman, Qatar) are reachable overland via the King Fahd Causeway or by short sea routes inside the Gulf. Most other partners ship through the Strait of Hormuz. This distinction becomes central in notebook 07.
region_share = fy.pivot_table(index="trade_type", columns="region", values="price_bhd", aggfunc="sum")
region_share = region_share.div(region_share.sum(axis=1), axis=0) * 100 # % of each trade type
region_share
region_monthly = (
df.groupby(["date", "trade_type", "region"])["price_bhd"]
.sum()
.reset_index()
)
region_monthly["value_bhd_m"] = region_monthly["price_bhd"] / 1e6
fig = px.line(
region_monthly,
x="date",
y="value_bhd_m",
color="region",
facet_row="trade_type",
color_discrete_map=REGION_COLORS,
)
fig.update_layout(
title="Monthly Trade Value by Region and Trade Type, 2021–2026",
xaxis_title="Date",
legend_title_text="Region",
height=800
)
fig.update_yaxes(matches=None, title_text="BHD m") # each trade type gets its own scale
fig.show()
6. Supplier unit values for the two largest imports¶
For a homogeneous product, differences in BHD/kg between suppliers indicate price differences (or quality and contract differences). This is relevant when evaluating alternative suppliers.
key_products = {"28182000": "Alumina", "26011100": "Iron ore"}
unit = (
fy[(fy["trade_type"] == "import") & fy["commodity_no"].astype(str).isin(key_products)]
.groupby(["commodity_no", "country_name"])[["price_bhd", "weight_kg"]].sum()
.reset_index()
)
unit["product"] = unit["commodity_no"].astype(str).map(key_products)
unit["share_%"] = unit["price_bhd"] / unit.groupby("product")["price_bhd"].transform("sum") * 100
unit["bhd_per_tonne"] = unit["price_bhd"] / unit["weight_kg"] * 1000
unit = unit[unit["share_%"] >= 0.5].sort_values(["product", "share_%"], ascending=[True, False])
unit[["product", "country_name", "share_%", "bhd_per_tonne"]].reset_index(drop=True)
Findings¶
- Import suppliers. China is the largest supplier (14.0% of import value, 2021–2025), followed by Brazil (9.8%), Australia (8.7%), the UAE (8.3%) and Saudi Arabia (6.1%). Brazil and Australia rank highly almost entirely because of single products: iron ore and alumina respectively (§6).
- Export markets. Saudi Arabia is the largest domestic export market (21.7%), followed by the USA (11.2%) and the UAE (10.0%). Re-exports are strongly regional: the UAE (30.8%) and Saudi Arabia (22.4%) together take over half.
- Low concentration across partners overall. Imports (HHI 612) and domestic exports (HHI 830) are unconcentrated by partner, and the ten largest partners account for about two thirds of value. Re-exports are moderately concentrated (HHI 1,573). Overall dependence on any one country is therefore limited. Concentration at the product level, however, is high (notebook 07).
- China supplies breadth, not one product. Bahrain imported 5,800 distinct products from China. The largest, smartphones, is only 7.8% of the China total, followed by pitch coke (5.2%), an input to aluminium smelting.
- Imports come overwhelmingly from outside the GCC. Non-GCC partners supply 83.4% of import value and buy 61.2% of domestic exports, while GCC partners take 59.1% of re-exports. Most import supply therefore depends on routes through the Strait of Hormuz. In March 2026 non-GCC import value dropped sharply, while GCC imports dipped and then recovered within weeks (examined in notebook 07).
- The two largest imports each depend on one supplier. Australia supplied 96.4% of alumina in 2021–2025 and Brazil 78.7% of iron ore. Alternative suppliers were few and small, but their unit values were comparable. Saudi alumina cost about 145 BHD/t against 155 BHD/t for Australian alumina, and Chilean and Canadian iron ore cost about 49–51 BHD/t against 50 BHD/t for Brazilian ore. Price therefore did not prevent diversification of supply.