Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Testing maximum entropy models with e-values

Francesca Giuffrida1,2,*, Diego Garlaschelli1,2, and Peter Grünwald3,4

  • *Contact author: francesca.giuffrida@imtlucca.it

Phys. Rev. E 113, 054306 – Published 15 May, 2026

DOI: https://doi.org/10.1103/xhf5-1l7p

Abstract

E-values have recently emerged as a robust and flexible alternative to p-values for hypothesis testing, especially under optional continuation, i.e., when additional data from further experiments are collected. In this work we define optimal e-values for testing between maximum entropy models, in both the microcanonical (hard constraints) and canonical (soft constraints) settings. We show that, when testing between two hypotheses that are both microcanonical, the so-called growth-rate optimal e-variable admits an exact analytical expression, which also serves as a valid e-variable in the canonical case. For canonical tests, where exact solutions are typically unavailable, we introduce a microcanonical approximation and verify its excellent performance via both theoretical arguments and numerical simulations. We then consider constrained binary models, focusing on 2×k contingency tables—an essential framework in statistics and a natural representation for various models of complex systems. Our microcanonical optimal e-variable performs well in both settings, constituting a tool that remains effective even in the challenging case when the number k of groups grows with the sample size, as in models with growing features used for the analysis of real-world heterogeneous networks and time series.

View figure in article

Physics Subject Headings (PhySH)

Article Text

Supplemental Material

References (54)

  1. J. P. A. Ioannidis, Why most published research findings are false, PLoS Med. 2, e124 (2005).
  2. D. J. Benjamin, J. O. Berger, M. Johannesson, B. A. Nosek, E.-J. Wagenmakers, R. Berk, K. A. Bollen, B. Brembs, L. Brown, C. Camerer, et al., Redefine statistical significance, Nat. Hum. Behav. 2, 6 (2017).
  3. B. B. McShane, D. Gal, A. Gelman, C. Robert, and J. L. Tackett, Abandon statistical significance, Am. Stat. 73, 235 (2019).
  4. A. Ramdas, P. Grünwald, V. Vovk, and G. Shafer, Game-theoretic statistics and safe anytime-valid inference, Stat. Sci. 38, 576 (2023).
  5. A. Ramdas and R. Wang, Hypothesis testing with e-values, Found. Trends Stat. 1, 1 2025 .
  6. Y. Zhang, S. Glancy, and E. Knill, Asymptotically optimal data analysis for rejecting local realism, Phys. Rev. A 84, 062118 (2011).
  7. P. Grünwald, R. de Heide, and W. Koolen, Safe testing, J. R. Stat. Soc. B 86, 1091 (2024).
  8. L. Wasserman, A. Ramdas, and S. Balakrishnan, Universal inference, Proc. Natl. Acad. Sci. USA 117, 16880 (2020).
  9. V. Vovk and R. Wang, E-values: Calibration, combination and applications, Ann. Stat. 49, 1736 (2021).
  10. G. Shafer, Testing by betting: A strategy for statistical and scientific communication, J. R. Stat. Soc. Ser. A 184, 407 (2021).
  11. T. Lardy, P. Grünwald, and P. Harremoës, Reverse information projections and optimal e-statistics, IEEE Trans. Inf. Theory 70, 7616 (2024).
  12. M. Larsson, A. Ramdas, and J. Ruf, The numeraire e-variable and reverse information projection, Ann. Stat. 53, 1015 (2025).
  13. J. Gibbs, Elementary principles in statistical mechanics: Developed with especial reference to the rational foundation of thermodynamics, Cambridge Library Collection—Mathematics (Cambridge University Press, Cambridge, 2010).
  14. E. T. Jaynes, Information theory and statistical mechanics, Phys. Rev. 106, 620 (1957).
  15. L. D. Brown, Fundamentals of Statistical Exponential Families, with Applications in Statistical Decision Theory (Institute of Mathematical Statistics, Hayward, CA, 1986).
  16. T. Squartini and D. Garlaschelli, Maximum-Entropy Networks: Pattern Detection, Network Reconstruction and Graph Combinatorics (Springer, Cham, 2017).
  17. T. Squartini, G. Caldarelli, G. Cimini, A. Gabrielli, and D. Garlaschelli, Reconstruction methods for networks: The case of economic and financial systems, Phys. Rep. 757, 1 (2018).
  18. G. Cimini, T. Squartini, F. Saracco, D. Garlaschelli, A. Gabrielli, and G. Caldarelli, The statistical physics of real-world networks, Nat. Rev. Phys. 1, 58 (2019).
  19. R. Marcaccioli and G. Livan, Correspondence between temporal correlations in time series, inverse problems, and the spherical model, Phys. Rev. E 102, 012112 (2020).
  20. R. Marcaccioli and G. Livan, Maximum entropy approach to multivariate time series randomization, Sci. Rep. 10, 10656 (2020).
  21. R. Turner and P. Grünwald, Anytime-valid confidence intervals for contingency tables and beyond, Stat. Probab. Lett. 198, 109835 (2023).
  22. R. Turner, A. Ly, and P. Grünwald, Generic e-variables for exact sequential k-sample tests that allow for optional stopping, J. Stat. Plan. Inference 230, 106116 (2024).
  23. Y. Hao and P. Grünwald, e-values for exponential families: The general case, arXiv:2409.11134.
  24. P. Grünwald, T. Lardy, Y. Hao, S. K. Bar Lev, M. de Jong, Optimal e-values for exponential families: The simple case, arXiv:2404.19465.
  25. P. D. Grünwald, Beyond Neyman–Pearson: E-values enable hypothesis testing with a data-driven alpha, Proc. Natl. Acad. Sci. USA 121, e2302098121 (2024).
  26. A. Ly, U. Boehm, P. Grünwald, A. Ramdas, and D. van Ravenzwaaij, A tutorial on safe anytime-valid inference: Practical maximally flexible sampling designs for experiments based on e-values (2025), https://doi.org/10.31234/osf.io/h5vae_v3.
  27. R. A Klein, M. Vianello, F. Hasselman, B. G. Adams, R. B. Adams Jr, S. Alper, M. Aveyard, J. R. Axt, M. T. Babalola, Š. Bahník, et al., Many Labs 2: Investigating variation in replicability across sample and setting, Adv. Methods Prac. Psychol. Sci. 1, 443 (2018).
  28. Z. Zhang, A. Ramdas, and R. Wang, On the existence of powerful p-values and e-values for composite hypotheses, Ann. Stat. 52, 2241 (2024).
  29. Q. Wang, R. Wang, and J. Ziegel, E-backtesting, arXiv:2209.00991.
  30. V. Vovk and R. Wang, Efficiency of nonparametric e-tests, arXiv:2208.08925.
  31. R. D. Morey, J.-W. Romeijn, and J. N. Rouder, The philosophy of Bayes factors and the quantification of statistical evidence, J. Math. Psychol. 72, 6 (2016).
  32. P. Grünwald, The Minimum Description Length Principle (MIT press, Cambridge, MA, 2007).
  33. P. Grünwald and T. Roos, Minimum description length revisited, Int. J. Math. Ind. 11, 1930001 (2019).
  34. K. Yamanishi, Learning with the Minimum Description Length Principle (Springer Nature, Singapore, 2023).
  35. M. Li and P. Vitányi, An Introduction to Kolmogorov Complexity and Its Applications, 3rd ed. (Springer, New York, 2008).
  36. See Supplemental Material at http://link.aps.org/supplemental/10.1103/xhf5-1l7p for additional methods, derivations, and figures, which includes additional Refs. [52, 53, 54].
  37. K. Jang, K.-S. Jun, I. Kuzborskij, and F. Orabona, Tighter PAC-Bayes bounds through coin-betting, in Proceedings of the 36th Conference on Learning Theory (PMLR, 2023), Vol. 195, pp. 2240–2264
  38. O. E. Barndorff-Nielsen, Information and Exponential Families in Statistical Theory (Wiley, Chichester, UK, 1978).
  39. H. Alves, P. Brito, and P. Campos, Community detection in interval-weighted networks, Data Min. Knowl. Discovery 38, 653 (2024).
  40. M. Jerdee, A. Kirkley, and M. E. J. Newman, Mutual information and the encoding of contingency tables, Phys. Rev. E 110, 064306 (2024).
  41. B. S. Clarke and A. R. Barron, Jeffreys' prior is asymptotically least favorable under entropy risk, J. Stat. Plann. Inference 41, 37 (1994).
  42. M. Earnest, Extended stars-and-bars problem (where the upper limit of the variable is bounded), https://math.stackexchange.com/q/3182858.
  43. A. Golan, G. Judge, and D. Miller, Maximum Entropy Econometrics: Robust Estimation with Limited Data (John Wiley, Chichester, UK, 1996).
  44. P. W. Holland and S. Leinhardt, An exponential family of probability distributions for directed graphs, J. Am. Stat. Assoc. 76, 33 (1981).
  45. D. R. Hunter and M. S. Handcock, Inference in curved exponential family models for networks, J. Comput. Graphical Stat. 15, 565 (2006).
  46. T. P. Peixoto, Nonparametric Bayesian inference of the microcanonical stochastic block model, Phys. Rev. E 95, 012317 (2017).
  47. T. P. Peixoto, Network reconstruction via the minimum description length principle, Phys. Rev. X 15, 011065 (2025).
  48. T. Vallès-Català, T. P. Peixoto, M. Sales-Pardo, and R. Guimerà, Consistencies and inconsistencies between model selection and link prediction in networks, Phys. Rev. E 97, 062316 (2018).
  49. F. Giuffrida, T. Squartini, P. Grünwald, and D. Garlaschelli, Description length of canonical and microcanonical models, Phys. Rev. Res. 7, 043057 (2025).
  50. Q. Zhang and D. Garlaschelli, Strong ensemble nonequivalence in systems with local constraints, New J. Phys. 24, 043011 (2022).
  51. T. Squartini, J. de Mol, F. den Hollander, and D. Garlaschelli, Breaking of ensemble equivalence in networks, Phys. Rev. Lett. 115, 268701 (2015).
  52. I. Csiszár, Sanov property, generalized I-projection and a conditional limit theorem, Ann. Prob, 12, 768 (1984).
  53. P. Grünwald, Y. Hao, and A. Balsubramani, Growth-optimal e-variables and an extension to the multivariate Csiszár-Sanov-Chernoff theorem, arXiv:2412.17554.
  54. P. P. A. Staniczenko, M. J. Smith, and S. Allesina, Selecting food web models using normalized maximum likelihood, Methods Ecol. Evol. 5, 551 (2014).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation