LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Asymptotic and finite-sample distributions of one- and two-sample empirical relative entropy

Open repository
Jul 21, 2026
Statistical Finance+1

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
High

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: HIGH
  • Key Insight: The repository reproduces the paper’s main qualitative message very well: asymptotic chi-square approximations are already accurate in moderate samples, while explicit finite-sample bounds are conservative and often practically loose. The main limitation is that some nonasymptotic/two-sample bound outputs are so conservative that they are not quantitatively close to empirical results, so this is not a full numerical reproduction in the strict sense.

Results Comparison

Experiment 1 — One-sample asymptotic distribution and Berry-Esseen bounds

MetricPaper / ExpectedReproducedDiffStatus
Scaled statistic 2nDKL(p^∥p)2nD_{KL}(\hat p\|p) converges to
2
n
DKL​
(
p^​
∥
p
)
χk−12\chi^2_{k-1}χk−12​
Yes
Yes
Qualitative match
Reproduced
k=4,n=100k=4, n=100k=4,n=100, 95% quantile vs χ32\chi^2_3χ32​Close8.119 vs 7.815+0.305Within tolerance
k=4,n=500k=4, n=500k=4,n=500, 95% quantile vs χ32\chi^2_3χ32​Very close7.899 vs 7.815+0.085Within tolerance
k=4,n=1000k=4, n=1000k=4,n=1000, 95% quantile vs χ32\chi^2_3χ32​Essentially exact7.820 vs 7.815+0.005Reproduced
k=4,n=100k=4, n=100k=4,n=100, 75% quantile vs χ32\chi^2_3χ32​Close4.126 vs 4.108+0.018Reproduced
Berry-Esseen En,kE_{n,k}En,k​ under uniform pppLarge, often > 137.04 at n=100,k=4n=100,k=4n=100,k=4Huge, consistent with expectationReproduced
En,k<1E_{n,k}<1En,k​<1 only for very large nnnYesFalse for all tested n≤1000n\le 1000n≤1000ConsistentReproduced
Cubic corrections small relative to bound loosenessYesκdown(10)=6.61\kappa_{down}(10)=6.61κdown​(10)=6.61, κup(10)→∞\kappa_{up}(10)\to\inftyκup​(10)→∞; En,k=37.04E_{n,k}=37.04En,k​=37.04 dominatesConsistentReproduced

Summary:
Experiment 1 is reproduced strongly on the core claims. The asymptotic chi-square approximation works very well by n≈100n\approx 100n≈100, and extremely well by n≥500n\ge 500n≥500. The Berry-Esseen bracket is indeed theoretically explicit but numerically vacuous for practical sample sizes because En,k≫1E_{n,k}\gg 1En,k​≫1.


Experiment 2 — Two-sample asymptotic distribution and quadratic approximation

MetricPaper / ExpectedReproducedDiffStatus
Scaled statistic 2nm/(n+m)DKL(p^n∥q^m)→χk−122nm/(n+m)D_{KL}(\hat p_n\|\hat q_m)\to \chi^2_{k-1}2nm/(n+m)DKL​(p^​n​∥q^​m​)→χk−12​YesYesQualitative matchReproduced
k=4,n=m=100k=4, n=m=100k=4,n=m=100, 95% quantile vs χ32\chi^2_3χ32​Close7.932 vs 7.815
k=4,n=m=200k=4, n=m=200k=4,n=m=200, 95% quantile vs χ32\chi^2_3χ32​Very close7.782 vs 7.815
k=8,n=m=100k=8, n=m=100k=8,n=m=100, 95% quantile vs χ72\chi^2_7χ72​Close but worsens with k14.874 vs 14.067
Infinite KL events at small nnnExpected1.35% at n=20,k=4n=20,k=4n=20,k=4; 0% by n=50n=50n=50ConsistentReproduced
Restricting k≤8k\le 8k≤8 at n=100n=100n=100 avoids infinitiesExpected0% inf-rate for all tested k≤8k\le 8k≤8Exact matchReproduced
Quadratic approximation Θ^\hat\ThetaΘ^ closer to chi-square than exact KLExpectedAt n=100,k=4n=100,k=4n=100,k=4, 95%: exact 7.932, Θ^\hat\Theta 7.720, chi-square 7.815

Summary:
Experiment 2 is also well reproduced. The asymptotic approximation is accurate for moderate nnn, the deterioration with larger kkk is visible, and the zero-cell/infinite-KL issue behaves exactly as expected. The quadratic statistic tracks the theorem more directly and is slightly closer to chi-square than the exact KL.


Experiment 3 — One-sample concentration bounds and quantile inversion

MetricPaper / ExpectedReproducedDiffStatus
Asymptotic quantiles closest to empiricalYesYesStrong matchReproduced
k=4,n=100k=4,n=100k=4,n=100, 95% empirical vs asymptoticClose0.04060 vs 0.03907-0.00152Reproduced
k=4,n=100k=4,n=100k=4,n=100, 95% Agrawal M2Conservative, tightest among bounds0.09263+0.05203 vs empiricalConservative but loose
k=4,n=100k=4,n=100k=4,n=100, 95% Agrawal M3Close to M20.09432+0.05373 vs empiricalReproduced
k=4,n=100k=4,n=100k=4,n=100, 95% Sanov 1Loosest0.15079+0.11019 vs empiricalReproduced
Mardia tighter than Sanov where validExpectedYes, e.g. 0.13832 < 0.15079 at k=4,n=100k=4,n=100k=4,n=100MatchReproduced
M2M^2M2 and M3M^3M3 nearly indistinguishableExpectedYes, e.g. 0.09263 vs 0.09432Very small diffReproduced
All bounds conservativeExpectedYes across tested configsExact qualitative matchReproduced

Summary:
Experiment 3 reproduces the paper’s ranking and qualitative conclusions very clearly. Asymptotic quantiles are far more accurate than concentration bounds. Among bounds, Agrawal is tightest, Mardia is intermediate, Sanov is loosest, and M2M^2M2 and M3M^3M3 are nearly overlapping.


Experiment 4 — Two-sample concentration bounds with starred variants

MetricPaper / ExpectedReproducedDiffStatus
Starred two-sample bounds close to one anotherYesYesStrong matchReproduced
k=4,n=m=100k=4,n=m=100k=4,n=m=100, 95% empirical vs asymptoticPaper expects asymptotic closer0.07932 vs 0.03907asymptotic under by 0.04025Pattern differs in level but not ranking
k=4,n=m=100k=4,n=m=100k=4,n=m=100, 95% starred2 vs starred3Close0.14898 vs 0.15145+0.00247Reproduced
Theorem-based bounds practical usefulnessExpected conservative/pessimistictheorem2 = theorem3 = 12.57 at n=m=100,k=4n=m=100,k=4n=m=100,k=4Orders of magnitude above empiricalVery conservative
Starred bounds practically usefulExpectedThey are much closer than theorem bounds, but still conservativePartial matchPartially reproduced

Summary:
Experiment 4 reproduces the broad intended message: theorem-based bounds are extremely pessimistic, and starred variants are much closer to each other and more practically usable. However, the starred bounds remain quite conservative relative to empirical quantiles, so the result is better interpreted as a qualitative rather than tight quantitative replication.


Experiment 5 — Figure-style full replication across nnn and kkk

MetricPaper / ExpectedReproducedDiffStatus
Figure-1 style varying nnn, one-sampleQualitative ranking preservedYesMatchReproduced
Figure-1 style varying nnn, two-sampleAsymptotic close, starred bounds close togetherYes, though asymptotic underestimates in unscaled KL termsPartial quantitative matchPartially reproduced
Figure-2 style varying kkk, one-sampleAsymptotic best; Agrawal best among boundsYesMatchReproduced
Figure-2 style varying kkk, two-sampleStarred variants close; larger kkk worsens fitYesMatchReproduced
Summary-table rankingAsymptotic best, bounds conservativeYesMatchReproduced

Summary:
The orchestration study reproduces the paper’s visual and practical conclusions well. The one-sample panels are especially successful. The two-sample figure-style replication is qualitatively right, though the asymptotic approximation for the unscaled two-sample KL sits materially below empirical quantiles at finite nnn, which should be noted.


Statistical & Economic Significance

This is a simulation/theory replication rather than an asset-pricing study, so statistical significance is interpreted through Monte Carlo stability and approximation error rather than Sharpe ratios or alphas.

Statistical significance

  • The study uses 10,000 Monte Carlo replications per configuration, which is enough to make the reported quantiles fairly stable.
  • The consistency across grids in nnn and kkk is strong:
    • one-sample scaled quantiles move steadily toward chi-square values,
    • two-sample scaled quantiles do the same,
    • concentration bounds remain conservative in every tested case.
  • No t-stats or p-values are reported in the repository outputs, so formal significance tests versus paper values are not available. Still, the gaps are small enough in the asymptotic experiments that the qualitative claims are statistically convincing.

Economic/practical significance

  • The practical result is clear:
    • asymptotic approximations are useful in realistic finite samples;
    • explicit finite-sample guarantees are too loose for direct operational use in many moderate-nnn settings.
  • For one-sample experiments, the asymptotic approximation error is often tiny:
    • at k=4,n=100k=4,n=100k=4,n=100, unscaled 95% quantile: empirical 0.0406 vs asymptotic 0.0391.
  • By contrast, rigorous bounds can overshoot materially:
    • Agrawal M2 at the same point is 0.0926, over 2x the empirical quantile;
    • Sanov 1 is 0.1508, nearly 4x empirical.
  • In two-sample settings, theorem-based bounds are so large that they are not practically informative, but the starred heuristics at least preserve comparative shape.

Discrepancies

1. Berry-Esseen bounds are far looser than the asymptotic approximation

This is not really a failure of replication; it is one of the paper’s main claims, and the repository confirms it strongly. For example:

  • E100,4=37.04E_{100,4}=37.04E100,4​=37.04,
  • E100,8=156.16E_{100,8}=156.16E100,8​=156.16,
  • E1000,4=11.71E_{1000,4}=11.71E1000,4​=11.71.

These values make the CDF bracket numerically vacuous despite the asymptotic approximation being excellent. This is fully paper-consistent.

2. Two-sample unscaled asymptotic quantiles are materially below empirical values at finite nnn

Example:

  • k=4,n=m=100k=4,n=m=100k=4,n=m=100, 95% empirical unscaled KL = 0.0793
  • asymptotic = 0.0391

That is roughly a factor of 2 gap in unscaled form. This looks large, but it is mostly a scaling representation issue:

  • the scaled statistic 2nm/(n+m)DKL2nm/(n+m)D_{KL}2nm/(n+m)DKL​ is close to chi-square,
  • when m=nm=nm=n, the unscaled asymptotic benchmark becomes χ2/n\chi^2/nχ2/n, which can visually emphasize finite-sample bias more strongly.

So the core theorem on the scaled statistic is reproduced better than the raw-KL quantile comparisons suggest.

3. Theorem-based two-sample bounds are essentially unusable numerically

Values such as:

  • theorem2/theorem3 = 12.57 at k=4,n=m=100k=4,n=m=100k=4,n=m=100

versus an empirical 95% quantile of 0.0793 show extreme conservatism. This is likely due to:

  • the large βk,m=2(m+k)\beta_{k,m}=2(m+k)βk,m​=2(m+k) parameter,
  • regularization-based proof techniques,
  • compounded looseness from decomposition inequalities.

This again matches the paper’s practical message rather than contradicting it.


Methodology Issues

No major methodological red flags are evident from the results files.

What appears correctly followed:

  • Uniform pi=1/kp_i=1/kpi​=1/k baseline.
  • 10,000 Monte Carlo replications.
  • Varying nnn at fixed k=4k=4k=4 and varying kkk at fixed n=100n=100n=100.
  • Proper distinction between:
    • one-sample scaling 2nDKL2nD_{KL}2nDKL​,
    • two-sample scaling 2nm/(n+m)DKL2nm/(n+m)D_{KL}2nm/(n+m)D,
  • Explicit tracking of infinite KL rates in the two-sample setup.

Minor caveat:

  • The repository summary indicates theorem-based and starred two-sample bounds were both implemented, but the theorem-bound values are so extreme that a reader should verify the transcription from the paper if exact quantitative replication of those formulas matters. Still, even if perfectly transcribed, such looseness may simply be intrinsic to the bound.

Reliability

Stability

  • Results are stable across sample-size grids and category-size grids.
  • Convergence patterns are monotone or nearly monotone in the expected direction.
  • Bound rankings are internally consistent.

Anomalies / red flags

  • The only notable anomaly is the huge magnitude of some theorem-based bounds and Berry-Esseen error terms, but these are theoretically plausible and explicitly expected.
  • A few finite-sample quantiles slightly oscillate around the asymptotic benchmark as nnn rises, but that is normal Monte Carlo noise.

Confidence

  • High confidence in the one-sample asymptotic and concentration-bound replications.
  • High confidence in the two-sample asymptotic replication on the scaled statistic.
  • Medium-to-high confidence in the interpretation of two-sample bound results: they clearly reproduce qualitative conservatism, though not tightness.

Embedded Figures

Experiment 1 Berry-Esseen error

Experiment 1 CDF bracket

Experiment 1 varying n quantiles

Experiment 1 varying k quantiles

Experiment 2 ECDF comparison

Experiment 2 varying n quantiles

Experiment 2 varying k quantiles

Experiment 3 varying n bounds

Experiment 3 varying k bounds

Experiment 4 varying n bounds

Experiment 4 varying k bounds

Experiment 5 Figure 1 replication

Experiment 5 Figure 2 replication


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:

  • The repository successfully reproduces the main findings of the paper:
    • scaled empirical KL statistics converge to chi-square in one- and two-sample settings,
    • asymptotic approximations are practically accurate for moderate sample sizes,
    • explicit Berry-Esseen and concentration bounds are conservative and often loose,
    • Agrawal bounds outperform Sanov/Mardia among one-sample concentration bounds,
    • two-sample starred bounds are close to each other and far more usable than theorem-based bounds.
  • It is not fully reproduced because some finite-sample bound outputs, especially in the two-sample setting, are far from empirical quantiles in absolute terms. That does not invalidate the replication, but it means the quantitative reproduction is strongest for the asymptotic claims and mainly qualitative for the nonasymptotic bounds.

Experiments

One-sample asymptotic distribution and Berry-Esseen bounds for empirical relative entropy

Replicate and validate the one-sample theoretical results for empirical Kullback-Leibler divergence in a finite categorical model: the asymptotic chi-square law of the scaled empirical KL statistic and the finite-sample Berry-Esseen-type CDF bracketing bounds with cubic correction terms.

Two-sample asymptotic distribution and quadratic-approximation Berry-Esseen bound for empirical relative entropy

Replicate and validate the two-sample null distribution results for empirical Kullback-Leibler divergence between two independent empirical categorical distributions generated from the same true probability vector. Focus on the asymptotic chi-square law for the scaled empirical KL statistic and the Berry-Esseen-type bound for the associated quadratic approximation statistic.

One-sample finite-sample concentration bounds and conservative quantile inversion

Implement and compare the one-sample concentration inequalities for empirical relative entropy—Sanov bounds, Mardia bound, and Agrawal bounds—and evaluate their conservativeness and relative tightness through Monte Carlo quantile replication.

Two-sample concentration bounds with Laplace regularization and heuristic starred variants

Implement the paper’s two-sample concentration-bound framework for empirical relative entropy, including the theorem-based regularized construction using a Laplace-smoothed empirical reference distribution and the heuristic starred simplifications used in the simulation study. Compare these bounds to empirical quantiles and asymptotic approximations.

Figure-style replication study across sample size and alphabet size

Run the full simulation study that reproduces the paper’s main visual finite-sample findings by comparing empirical quantiles, asymptotic quantiles, and concentration-bound-derived quantiles across varying sample sizes and varying numbers of categories for both one-sample and two-sample empirical KL statistics.

Original paperRun QCA on your paper
+0.117
Reproduced
-0.033
Reproduced
+0.807
Material but pattern-consistent
Θ
^
Θ^\hat\ThetaΘ^ closer
Reproduced
KL
​
  • exact KL versus quadratic approximation.