Research
Effective sample size approximations as entropy measures
Overview Research area: Mathematical statistics — Monte Carlo methods, specifically effective sample size (ESS) diagnostics for importance sampling, and their connections to entropy and diversity meas

- arXiv
- 2602.22954
- Published
- 2026-02-26
- Authors
- L. Martino, V. Elvira
AI summary
Overview
Research area: Mathematical statistics — Monte Carlo methods, specifically effective sample size (ESS) diagnostics for importance sampling, and their connections to entropy and diversity measures.
Technical level: Advanced. The paper is written in full mathematical notation (unit simplex conditions, Rényi and Tsallis entropy families, variance ratios of estimators) and assumes familiarity with importance sampling and information theory.
Scope in one sentence: The paper unifies the various effective sample size formulas used in importance sampling by showing they are exponentials of entropy measures, proving which of them meet a set of theoretical desiderata, and testing them numerically.
What This Paper Is About
Importance sampling produces a set of weighted samples instead of independent samples from the target distribution, and practitioners use a single scalar — the effective sample size — to summarize how many "real" samples those weights are worth. The theoretical definition of ESS (a ratio of estimator variances) cannot be computed in practice, so the field has accumulated many approximate formulas without a clear understanding of how they relate to each other. This paper's goal is to show that these formulas are really entropy/diversity measures in disguise, to establish which ones satisfy sensible theoretical requirements, and to test which approximate the theoretical ESS best.
Key Contributions
-
Connecting ESS formulas to entropy families. The paper shows that the ESS formulas used in the literature correspond to two entropy families — the Rényi entropy and the Tsallis entropy — obtained by exponentiating (sometimes with translation and scaling) the entropy of the normalized weights.
-
Identifying the Huggins-Roy ESS family with the Rényi entropy. The ESS family introduced in Huggins and Roy (2015), of the form ESS = (Σ w̄_n^β)^{1/(1-β)} with β ≥ 0, is shown to coincide exactly with the exponential of the Rényi entropy. The paper proves that all members of this family fulfill all the desirable theoretical conditions (they are "proper and stable"), with the exception of β → 0, which is degenerate and stable.
-
Five formal conditions and a classification of ESS measures. The paper states five conditions (C1 symmetry, C2 maximum at the uniform weights, C3 minimum at the simplex vertices, C4 unicity of extreme values, C5 stability of the rate ESS_N/N) and classifies ESS formulas as Degenerate, Proper, Degenerate and Stable, or Proper and Stable.
-
Cross-disciplinary bridges and numerical comparison. The paper links ESS formulas to the Hill numbers in ecology, the Gini inequality coefficient in economics, the Gini impurity index used in machine learning, the inverse Simpson concentration and the Berger-Parker index, and then compares ESS formulas numerically against the theoretical ESS definition, including in a variable selection application.
Main Findings
- The standard ESS formula is a special case. The widely used ESS = 1/Σ w̄_n^2 corresponds to the Huggins-Roy family with β = 2, and also to the exponential of the Rényi entropy with that parameter.
- Other well-known formulas are also special cases. The perplexity, exp(−Σ w̄_n log w̄_n) (Eq. 7), arises as β → 1; the formula 1/max w̄_n (Eq. 8) arises as β → ∞; the case β → 0 gives N − N_Z, where N_Z is the number of zeros in the weight vector (degenerate and stable); and β = 1/2 gives (Σ √w̄_n)^2.
- All Huggins-Roy members satisfy the five conditions. The paper proves condition C5 (stability of ESS_N/N) explicitly for M = 2 repetitions, noting the proof repeats easily for M > 2. Hence all members except β → 0 are proper and stable.
- Tsallis-based ESS formulas are generally not proper and stable. The Tsallis entropy yields a second ESS family whose special case is the Gini impurity index used in decision-tree algorithms in machine learning, but members are not generally proper and stable.
- Other stable formulas exist outside the Huggins-Roy family. The paper states that additional stable expressions not belonging to the Huggins-Roy family are given in Sections 6 and 7.3.
- A "proper but not stable" example fails as a particle counter. The family ESS-D_N^(p) (Eq. 20), based on the L_p distance between the weight vector and the uniform pmf, satisfies C1–C4 but not C5. In the illustration with N = 5 and the weight vector [1/3, 1/3, 1/3, 0, 0], ESS-D_5^(2) returns approximately 1.90, whereas the formulas 1/Σ w̄_n^2 and 1/max w̄_n both return 3.
- Simulations suggest β > 2. The numerical simulations identified the best G-ESS approximation to the theoretical ESS within the Huggins-Roy family in two specific scenarios and suggest using the formulas ESS = (1/Σ w̄_n^4)^{1/3} and ESS = (1/Σ w̄_n^8)^{1/7}, both of which differ from the classical β = 2 formula.
- Weight-only formulas lose positional information. All the practical ESS formulas depend only on the normalized weights, so they discard the locations of the samples x_n, even though the weights are computed from those samples.
- The theoretical ESS does not obey the [1, N] range. ESS_teo(h) depends on the function h, is always positive, can be smaller than 1, and can exceed N — for instance when an optimal or near-optimal proposal is used, as noted in Elvira et al. (2022, Section 3.3) and Llorente and Martino (2025). Practical formulas are therefore rough approximations constrained to 1 ≤ ESS_N(w̄) ≤ N.
- Monotonicity of Rényi entropy carries over. The paper notes the well-known ordering R_N^(0)(w̄) ≥ R_N^(1)(w̄) ≥ R_N^(2)(w̄) ≥ ... ≥ R_N^(∞)(w̄) (for β' ≥ 2), which gives inequalities among the corresponding ESS-H_N^(β) values.
- ESS as distance from the uniform pmf. The paper shows ||w̄ − w̄*||_2 = sqrt(1/ESS_N(w̄) − 1/N), so maximizing the standard ESS formula is equivalent to minimizing the Euclidean distance between the normalized weights and the discrete uniform pmf.
- Danger case for the uniform weights. The maximum ESS is reached when all normalized weights equal 1/N, but the paper warns this can occur in catastrophic scenarios too, such as when all samples fall in a flat tail of the target or when samples are very close to each other.
- Variable selection results. Applying the most relevant ESS formulas in a variable selection framework, the paper reports that some of them provide good results in line with the expert's opinions.
Methodology in Plain English
The authors start from the abstract notion of effective sample size — how many independent samples drawn from the target distribution would carry the same information as the weighted samples produced by importance sampling — and from the theoretical definition as a ratio of two estimator variances, which cannot be evaluated in practice. They then take the practical formulas that depend only on the normalized importance weights and ask what mathematical object each one really is. By recognizing that exponentiating an entropy of the weight distribution yields a number in the range from 1 to N, they recast the formulas as exponentials of Rényi or Tsallis entropies. Next they posit five properties a good weight-based ESS measure should have — symmetry under reordering of weights, maximum N at equal weights, minimum 1 at the degenerate weight vector, uniqueness of these extremes, and the requirement that ESS_N/N stays unchanged when the weight vector is repeated and rescaled — and check the entropy-derived formulas against them analytically. Finally they run numerical simulations to see which member of the Huggins-Roy family best approximates the theoretical ESS definition in two scenarios, try linear combinations of ESS functions, and apply the formulas to a variable selection problem.
Why This Matters
Impact on research: The paper provides a common language for a scattered literature. By showing that ESS approximations are entropy or diversity measures, it means theoretical results, inequalities and intuitions established in ecology, economics, information theory and machine learning transfer directly into the design and analysis of Monte Carlo algorithms, and vice versa. It also gives a formal test (the five conditions) that separates usable ESS measures from measures that merely look like discrepancy measures but fail as sample counters.
Real-world applications:
- Particle filtering and sequential Monte Carlo, where ESS triggers adaptive resampling at each step.
- Variable selection, where the authors applied ESS formulas and obtained results in line with expert opinion.
- Ecology, through the Hill numbers used to quantify species diversity.
- Economics and political science, through the Gini inequality coefficient and a formula the paper notes was introduced in political science (formula (44)).
- Machine learning, through the Gini impurity index used in decision-tree algorithms.
Industry relevance: Any system that relies on sequential Monte Carlo — tracking, robotics, signal processing, and increasingly probabilistic machine learning pipelines — uses an ESS threshold to decide when to resample. Choosing a formula with the properties proved here affects the reliability of that decision. Diversity and concentration indices with the same mathematical structure are also standard in data science tooling.
Future Directions
- Determining which ESS member (or linear combination of members) best approximates the theoretical ESS in a wider range of scenarios, beyond the two studied here.
- Exploring additional cross-field transfers in both directions: importing indices from other disciplines as ESS expressions, and exporting ESS formulas to ecology, economics, political science and physics, as begun in Section 7.
- Extending the framework to ESS formulas that incorporate the sample locations and the function h, since all weight-only formulas discard that information and cannot reproduce values of ESS_teo(h) below 1 or above N.
- Investigating ESS formulas outside the Huggins-Roy family that are nonetheless stable, as mentioned in Sections 6 and 7.3.
Target Audience
Researchers and graduate students in statistics, signal processing and machine learning who work with importance sampling or sequential Monte Carlo and need to choose or justify an ESS criterion; information theorists and applied mathematicians interested in entropy and diversity measures; and applied scientists in ecology, economics or the social sciences who use the same indices — the Hill numbers, the Gini coefficient, the Gini impurity — and could benefit from the Monte Carlo interpretations established here.
Authors’ abstract
In this work, we analyze alternative effective sample size (ESS) metrics for importance sampling algorithms, and discuss a possible extended range of applications. We show the relationship between the ESS expressions used in the literature and two entropy families, the Rényi and Tsallis entropy. The Rényi entropy is connected to the Huggins-Roy's ESS family introduced in \cite{Huggins15}. We prove that that all the ESS functions included in the Huggins-Roy's family fulfill all the desirable theoretical conditions. We analyzed and remark the connections with several other fields, such as the Hill numbers introduced in ecology, the Gini inequality coefficient employed in economics, and the Gini impurity index used mainly in machine learning, to name a few. Finally, by numerical simulations, we study the performance of different ESS expressions contained in the previous ESS families in terms of approximation of the theoretical ESS definition, and show the application of ESS formulas in a variable selection problem.