Sub topic 10
Measuring Concentration with Top-N Share
Prerequisites and purpose
This chapter assumes that you understand blockchain addresses, transactions, and basic Python lists and functions. It also assumes that you know an exchange or custodian may control many addresses.
A top-N share measures how much of an asset's recorded balance is held by the N largest addresses or entities. For example, a top-10 share of 0.72 means the ten largest measured holders control 72% of the balance included in the calculation.
The measure is useful because a highly concentrated asset may be affected by decisions from a small number of holders. However, the result depends heavily on whether addresses have been grouped and labeled correctly.
The calculation
Use this formula:
top-N share = balance held by the N largest holders / total measured balance
Suppose the balances are:
| Holder | Balance |
|---|---|
| A | 5,000 |
| B | 1,200 |
| C | 800 |
| D | 300 |
| Other holders | 191 |
The total is 7,491. The three largest holders own 7,000, so the top-3 share is approximately 0.934, or 93.4%.
A high value does not prove that three people control the asset. The addresses could belong to one exchange, a token contract, a bridge, or a custodian holding funds for thousands of users.
def top_n_share(balances, n):
"""Return the fraction held by the n largest balances."""
if n < 1:
raise ValueError("n must be at least 1")
total = sum(balances)
if total == 0:
return 0.0
top_balances = sorted(balances, reverse=True)[:n]
return sum(top_balances) / total
balances = [5000, 1200, 800, 300, 100, 50, 25, 10, 5, 1]
share = top_n_share(balances, 3)
print(f"{share:.3%}") # 93.385%The function measures only the balances supplied to it. It does not discover holders, remove known contracts, or combine addresses belonging to one entity.
Choosing the holder unit
There are two common choices:
- Address concentration counts each address separately. It is easy to calculate but can overstate or understate concentration.
- Entity concentration combines addresses believed to belong to the same exchange, fund, custodian, or person. It is conceptually better but depends on uncertain labels.
For UTXO-based chains, address clustering can group addresses that appear as inputs in the same transaction. For account-based chains, analysts often rely on known labels and behavioral patterns. Both approaches can produce false matches.
Exclude or report separately:
- Exchange and custodial wallets
- Token contracts and bridge contracts
- Burn addresses
- Locked, vesting, or foundation allocations
- Treasury addresses
The right treatment depends on the question. If you are studying market liquidity, exchange balances may matter. If you are studying independent ownership, you may want to separate them.
Interpreting changes
A rising top-N share can result from accumulation, but it can also result from address consolidation, token burns, lost funds, or a shrinking denominator. A falling share can indicate distribution, or simply that an exchange moved funds into newly labeled addresses.
Compare concentration across time using the same rules. Keep the snapshot time, token supply definition, address-label version, and exclusion rules fixed. Report uncertainty when labels are incomplete.
Exercise
The measured balances are [40, 30, 20, 10], and the largest holder is an exchange omnibus wallet. What is the raw top-1 share, and why might it mislead you?
Show answer
The raw top-1 share is 40 / 100 = 40%. It may mislead because the exchange wallet could hold funds for many customers, so one address does not represent one independent holder.