Cumulative weight and the Herfindahl concentration index
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-10-07, from Portfolio Analysis in SQL: Weights to Drawdown.
| ticker | weight_pct | cumulative_weight_pct | cumulative_hhi |
|---|---|---|---|
| AAPL | 25.71 | 25.71 | 661 |
| KO | 16.55 | 42.26 | 935 |
| XOM | 15.86 | 58.12 | 1186 |
| MSFT | 15.08 | 73.2 | 1414 |
| JNJ | 14.68 | 87.88 | 1629 |
| NVDA | 12.12 | 100 | 1776 |
- Rows × columns
- 6 × 4
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
ticker |
text | 6 distinct values (AAPL, JNJ, KO…) | |
weight_pct |
number | 12.12 to 25.71 | percent |
cumulative_weight_pct |
number | 25.71 to 100 | percent |
cumulative_hhi |
number | 661 to 1,776 |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
Run it yourself
This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.
WITH holdings AS
(
SELECT 'AAPL' AS ticker, 120 AS shares
UNION ALL SELECT 'MSFT', 45
UNION ALL SELECT 'NVDA', 80
UNION ALL SELECT 'KO', 300
UNION ALL SELECT 'JNJ', 90
UNION ALL SELECT 'XOM', 150
),
marks AS
(
SELECT
ticker,
argMax(toFloat64(close), (date, _ingest_time)) AS last_close
FROM global_markets.stocks_daily_aggs
WHERE ticker IN ('AAPL', 'MSFT', 'NVDA', 'KO', 'JNJ', 'XOM')
AND date >= today() - 30
GROUP BY ticker
),
weights AS
(
SELECT
h.ticker AS ticker,
round(100 * (h.shares * m.last_close)
/ sum(h.shares * m.last_close) OVER (), 4) AS weight_pct
FROM holdings AS h
INNER JOIN marks AS m ON m.ticker = h.ticker
)
SELECT
ticker,
round(weight_pct, 2) AS weight_pct,
round(sum(weight_pct) OVER (ORDER BY weight_pct DESC
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 2) AS cumulative_weight_pct,
round(sum(pow(weight_pct, 2)) OVER (ORDER BY weight_pct DESC
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 0) AS cumulative_hhi
FROM weights
ORDER BY weight_pct DESC
Work with this data in your AI assistant
Opens ready to query, with this page's data. Free, no account.