Manuscript Offprint
arXiv:2610.33383Distributional statistics of nonequilibrium
Harrison Hartle, Aanjaneya Kumar, and David H. Wolpert
Santa Fe Institute, Santa Fe, New Mexico 87501, USA
We establish a reference modeling framework for random probability distributions subject to constraints. Generalizing the hyperensemble approach of Crooks, we formulate Jaynesian priors of maximal uncertainty over the unit simplex of categorical distributions. This framework is entirely general, but we primarily investigate models with constraints on physically relevant quantities, namely, average energy and Shannon entropy. A constraint on the exact value of average energy uniquely determines a Boltzmann-Gibbs equilibrium, but also defines a hyperplanar subset of the probability simplex consisting of all distributions with that value of average energy. The associated hyperensemble has a uniform probability density across all such distributions, regardless of distance to equilibrium. Such reference models make predictions of generic nonequilibrium properties such as the mean and modal microstate distributions and the expected free energy of a random distribution, which we examine analytically and via exact sampling algorithms. Moreover, introducing constraints on Shannon entropy permits parametric access to tunably nonequilibrium regimes. The approach follows conventional Jaynesian modeling logic and is compatible with standard Bayesian inference, and reduces to Boltzmann-Gibbs statistics when Shannon entropy is maximized. We examine the physical predictions of this scheme, and demonstrate its wide compatibility with other approaches to nonequilibrium modeling. We illustrate the framework in three scenarios: (i) comparison to superstatistics quasi-equilibrium modeling, (ii) generation of random nonequilibrium steady states, and (iii) Bayesian inference under a prior hyperensemble. We highlight numerous prospects for theoretical extensions and empirical application.
CONTENTS
I. Introduction 1
II. Framework 2
A. Scope of application 3
III. Thermodynamic hyperensembles 4
A. Energetic constraints 4
- Average energy hyperensemble 5
- Expected average energy hyperensemble 5
B. Entropic constraint 6 - Entropic-energetic hyperensemble 6
C. Comparison to Boltzmann-Gibbs 7 - Parameter-matchings and 7
- Nonequilibrium free energy 7
IV. Applications 8
A. Superstatistics 8 - Mixture model of for a given 9
B. Nonequilibrium steady states 10 - Random NESS 10
- Three-state system 11
C. Bayesian inference 11 - Inference under Crooks's prior 12
V. Discussion 12
However, from the standpoint of an uncertain as described by a density , the choice of a single amounts to , where denotes the Dirac delta function; any such hyperensemble is maximally biased, fully concentrated on . Indeed, subject only to the physical constraint of , the least biased is uniform across all distributions for which . Jaynes's formulation can be viewed as implementing the physical constraint of , which, together with the energetic constraint, uniquely pins down . That is, the constraint imposes physical equilibrium, which is indeed an extremely accurate model of. Yet, one may remove this
constraint by examining non-maximal or entirely unconstrained , which is the approach we take herein. This requires prescription of a , which in turn makes nonequilibrium physical predictions. We show that even in the absence of Shannon entropy maximization, the logic of Jaynes can be preserved, at the level of rather than p.
More generally, across modeling scenarios involving uncertain probability distributions, the imposed constraints may not determine a unique distribution; yet nevertheless, we show that one can straightforwardly apply Jaynesian model selection: represent incomplete knowledge of via a probability density of distributions or hyperprior , and moreover, choose the maximally ‘unbiased’ compatible with knowledge at hand. We consider finite sample spaces consisting of outcomes, so that is a density over a finite-dimensional probability simplex . The relevant uncertainty to maximize is the differential entropy or more specifically, the negative Kullback-Leibler divergence between and a background measure :
with and in any integrand argument. We for simplicity consider herein the uniform as the background measure (in particular, ), but the Jeffreys prior would also be a natural choice [2]. The hyperensemble is taken as that which maximizes differential entropy subject to imposed constraints. The obtained can be treated as a model of population-level distributional statistics, choosing constraints to reproduce some properties of datasets consisting of distributions; or, can be treated as a Bayesian prior over categorical distributions, suitable for inference. Equivalently, is a generalized statistical mechanics model [3] with its microstates being probability distributions [4], also amenable to field-theoretic interpretations [5]. Shannon entropy can be incorporated as a constraint, and when maximized, traditional maximum entropy models over X are recovered [6].
We demonstrate the straightforward applicability of this hyperstatistical picture to nonequilibrium physical modeling. We consider first the simplest scenarios with only energetic constraints in Sec. III A, and then incorporate entropic constraints in Sec. III B. We illustrate these hyperensembles in Sec. III C for a special-case Hamiltonian, examining the mean and modal distributions, and the statistics of nonequilibrium free energy, in relation to the associated BG equilibria. In Sec. IV, we formulate applications in a few settings: superstatistics, nonequilibrium steady states, and Bayesian inference. In Sec. V we provide concluding discussion. Appendices A, B, C, D, E, F, G, H, and I cover supporting details.
II. FRAMEWORK
Here we spell out a general framework for formulating models of random probability distributions, a.k.a., hyperensembles, denoted , subject to constraints on outcomes . We consider discrete sample spaces with finite. In the absence of any constraints whatsoever, the -maximizer is Dirichlet(1), i.e., the uniform prior , with probability density , representing perfect ignorance of the distribution . By the null-modeling logic of Jaynes, one's 'knowledge' can be encoded by imposing constraints on the model, then among the remaining constraint-compatible models, the uncertainty-maximizing one is selected. Here, constraints pertain to properties of , and the resulting is chosen to maximize . We consider two forms of constraint—exact constraints and expectation constraints—which, respectively, are akin to the microcanonical and canonical constraints of equilibrium statistical mechanics [7]; these are the standard options in maximum-entropy modeling [8]. The sample space consists of the unit simplex of categorical distributions on , requiring these constraints to be expressed in terms of functions of . The two forms of constraint are outlined below:
Exact constraints: these require that every distribution has the prescribed value of a given function , yielding a subset of onto which the support of P is restricted. Namely,
restricting the support of P to the simplex-subset
The dimensionality of may be lower than that of , in which case integrals such as Eq. (1) have the associated surface element as dp. Inequality constraints can be incorporated by choosing as an appropriate indicator function [9]. We note that acquiring perfect knowledge of the constraint-value is an idealization, but a widely adopted one in maximum-entropy modeling [10–12]; a variety of approaches have been developed to estimate functions of unknown distributions [13].
Expectation constraints: these require that the expectation of a given function for has a prescribed value:
where the hyperensemble expectation is denoted
The probability density that maximizes subject to Eq. (4) is expressed in terms of a Lagrange multiplier (or vector thereof) with value(s) determined by
. Denoting as the indicator enforcing Eq. (2), the hyperensemble subject to both Eq. (2) and Eq. (4) and maximizing Eq. (1) under the uniform background measure has density given by
with partition function given by
and the value of is related to by
see Appendix A. This framework is compatible with Bayesian inference, in that any hyperensemble can be treated as a prior over the set of categorical distributions , and defines a marginal over microstates, , the mean distribution: the prior probability of . Observation of then implies, by Bayes's rule, a posterior hyperensemble , with the conditional probability or likelihood of given . These considerations apply also to multiple observations (see Sec. IV C). Moreover, one may include uncertainty in or , permitting Bayesian treatments at the level of rather than just [14].
A. Scope of application
The framework outlined above can be applied whenever the available information constrains a family of possible probability distributions over a finite set of outcomes without selecting a unique one. In such cases, the relevant modeling problem is not only to assign probabilities to outcomes , but to assign a probability density over the possible laws governing those outcomes. The hyperensemble is then a null model for incomplete knowledge of : it is the least biased (-maximizing) density over compatible with the imposed constraints. Data in the form of probability distributions are commonly encountered—i.e., normalized histograms, relative abundances, or compositional data [15–17]; indeed, the Jaynesian approach to compositional modeling has been explored in Ref. [18] under constraints on and . See Appendix B for background on other related past works. Further examples of settings to which this approach is naturally applicable include the following.
Statistical mechanics. Here denotes a microstate and its probability. Constraints on may involve average energy, Shannon entropy, free energy, particle number, or other thermodynamic quantities. represents epistemic uncertainty of the probabilistic state , or a physically present ‘ensemble of ensembles’ arising from layered stochasticity. The statistical-mechanical setting is our primary focus herein, with thermodynamic hyper-ensembles introduced in Sec. III and applications considered in Sec. IV. This approach to physical modeling was introduced by Crooks [19] and has subsequently been applied to estimate equilibration rates [20] and for prebiotic chemistry [21]. For an overview of the physical constraints and hyperensembles we consider, see Fig. 1.
Single-cell or population biology. One may consider x to denote a species, genotype, phenotype, cellular state, or mutation, while denotes its abundance or frequency in a population [22–24]. Across environments, individuals, patients, tissues, or experimental preparations, p may vary [25–28]. A hyperensemble then represents variability over a collection of population compositions, or epistemic uncertainty about a particular population composition, subject to constraints such as aggregate abundances, biodiversity, environmental variables, or conserved resources.
Social systems and data science. In these applications, x can represent an individual's state of mind, opinion, communications, behavior, wealth, demographics, or health status; a given distribution p can describe population-level proportions of these variables, or their variation in an individual throughout a relevant timescale [29, 30]. Analogous quantities of interest in social systems are defined at household-level, organizational, or governmental scales [31–33]. A hyperensemble then describes how p varies throughout a metapopulation, or one's epistemic uncertainty in p. Constraints may involve material resources, time, mean activity, inequality, or conservation laws.
Machine learning. Here x may denote a datapoint in a training set, including its features and label, and p the data-generating distribution in a deployment environment. When a model is trained in one setting and used in another, the distribution of data may change in ways that are only partially known [34, 35]. A hyperensemble represents uncertainty over the distributions that might be encountered in use. Constraints may specify how often each category appears, average values of selected features, or a limit on how much the data distribution can differ from that used for training. More generally, numerous distributions arising in machine learning are amenable to hyperstatistical extensions [36, 37].
This handful of potential application settings, and the mentioned forms of distribution and hyperensemble for each, is very far from exhaustive. However, it is indicative of the wide generality and utility of a Jaynesian modeling framework for random probability distributions. In the remainder of this article, we focus on applications in statistical mechanics, and in particular, for the modeling of nonequilibrium physical systems. We define and impose constraints of physical interest, and analyze the nonequilibrium distributional statistics predicted by the associated §-maximizing hyperensembles. Fig. 1 depicts constraint choices and resulting hyperensembles.

No entropic constraint
Entropic constraint
Maximum/minimum entropy models
No energetic constraint
Expected average energy constraint
Exact average energy constraint
| Uniform hyperensemble, Dirichlet(1) | Energetic prior, | Average energy hyperensemble, | |||
|---|---|---|---|---|---|
|  |  |  | |||
| Reference [38] | This paper, Section III A 2 | This paper, Section III A 1 | |||
| Entropic prior, | Crooks's hyperensemble, | Entropic-energetic hyperensemble, | |||
|  |  |  | |||
| Reference [39] | Reference [19] | This paper, Section III B 1 | |||
| Uniform distribution | Uniform Kronecker mix | BG equilibrium () | BG equilibrium () | Entropy minimizer in | |
FIG. 1. Hyperensembles that maximize subject to constraints on average energy and Shannon entropy of . Each panel depicts the form of alongside samples in the unit simplex of distributions over with energies . We consider two forms of constraint on average energy , either setting its hyperensemble expectation to (middle column), or setting its exact value to (right column). We also consider an expectation constraint on Shannon entropy (middle row) yielding with Lagrange multiplier ; this includes the entropic prior , Crooks's hyperensemble and the entropic-energetic hyperensemble . The limit (upper row) yields entropically unconstrained models, whereas (lower row) yields hyperensembles concentrated on distributions with extremal values of entropy. In particular, at , the support consists of the unique Boltzmann-Gibbs equilibrium; at , the support consists of the entropy minimizer(s), yielding a mixture of Kronecker deltas in and (achieving ), and a minimizer with nonvanishing entropy in the case of . The models Dirichlet(1), , and were introduced previously [19, 38, 39] (see Appendix B) and are generalized by the framework of Sec. II. We introduce the models , and in Sec. III.
III. THERMODYNAMIC HYPERENSEMBLES
We introduce three hyperensembles of thermodynamic relevance, defined by constraints on energy (Sec. III A), and Shannon entropy (Sec. III B), comparing them to Boltzmann-Gibbs statistics in Sec. III C.
A. Energetic constraints
We begin with consideration of hyperensembles subject to a constraint on the average energy , which is defined as
with energies assumed to be known and distinct. We denote and , and as the corresponding microstates (). We also denote as the arithmetic mean energy. The Kronecker delta distribution at microstate is denoted .
In what follows, we present a variety of analytical and algorithmic results for two energy-constrained hyperensembles formulated as per Sec. II. Namely, we first consider an exact constraint on average energy,
resulting in (Sec. III A 1). We also consider an expected average energy constraint,
resulting in (Sec. III A 2). For reference, we compare to the associated Boltzmann-Gibbs (BG) equilibrium under parameter-matchings derived in Sec. III C 1. These models capture how far from equilibrium one would generically expect a system to be, given knowledge only of energetics in the form of constraints on . Models that additionally incorporate constraints on entropy, and hence exhibit tunably nonequilibrium statistics, are considered in Sec. III B.
1. Average energy hyperensemble
Here we introduce the average energy hyperensemble, a uniform probability density over
representing an unbiased hyperensemble subject to an exact constraint on the average energy. This model has density , with the -dimensional volume of .
Jaynes’s formulation of the canonical (BG) ensemble, , demonstrates that is the ‘most unbiased’ model for which , in that across all distributions in , the maximizer of Shannon entropy is . But from the hyperstatistical standpoint and framework of Sec. II, imposition of would constitute a second constraint, and moreover a physical assumption. Instead, maximization of S yields as the ‘most unbiased’ model. In equilibrium, specification of implies a unique inverse temperature that can be associated with an infinite thermal bath. For , a notion of ‘energy balance’ can still apply, but without thermalization to equilibrium; the distributional randomness of can be realized by a ‘heatless’ stochastic algorithm that traverses , which we turn to next.
The level sets of are hyperplanar, by its linearity (Eq. (9)). The unit simplex is a convex polytope, so its intersection with the hyperplane is also a convex polytope. Therefore, the average energy hyperensemble can be sampled via the hit-and-run algorithm [40]. This algorithm is denoted and takes the form:
-
Initialize at arbitrary at index .
-
Sample a vector , randomly-oriented within .
-
Draw a line segment through parallel to u.
-
Sample uniform-randomly in that segment.
-
Repeat 2.-4. at for a chosen .
See Fig. 2 for an illustration of .

FIG. 2. The hit-and-run algorithm to sample hyperensemble ; details are covered in Appendix C.
Hit-and-run has rapid mixing [41], with the number of steps T to produce a uniform sample being of the order , up to logarithmic factors. Appendix C covers in more depth, including how is constructed, how to sample a randomly orientated vector u while preserving normalization and average energy, and how to obtain the line segment's intersections with boundaries of . Simple extensions also allows efficient sampling from hyperensembles subject to multiple exact or expectation constraints.
The mode of is not unique, with all distributions in having the same probability density. The average distribution resides within , and has a geometric interpretation as the centroid:
which can be computed As another characterization of and , we examine the range of Shannon entropies among . That range determines the support of for , and is relevant to Sec. III B in which entropic constraints are incorporated. The maximum value is by the definition of . The minimum value is achieved at an outermost corner vertex of by a distribution consisting of a mixture of two Kronecker deltas at microstates with energies above and below . The minimal value of entropy is thus upper-bounded as . In particular, denoting for the binary entropy function, we show in Appendix D that
with and denoting the smallest energy above and largest energy below , respectively. If for some , then , attaining .
2. Expected average energy hyperensemble
We also consider expectation constraints on average energy , as per Eq. (4), of the form . The resulting S-maximizing hyperensemble has a Lagrange multiplier denoted and takes the form
The sign convention of is chosen to mimic of the canonical ensemble . By analogy to the entropic prior [39], we refer to as the ‘energetic prior’. The choice of determines , with limiting behavior . In particular, from (8), we have , which is generally transcendental, but with a unique and numerically tractable root. In Appendix E we apply the result of Ref. [42] to obtain the general formula
The simplest way to draw is via rejection sampling, accepting a candidate distribution with probability ; more generally for an MCMC algorithm with as its stationary distribution, the acceptance probability is for candidate transition (see Appendix F).
Note that if we were to construct a hyperensemble with constraints on the average probability of each , i.e., to impose a set of distinct expectation constraints with individualized Lagrange multipliers , we would arrive at a hyperensemble of density . That has the same form as (Eq. (15)) under substitution , with . Accordingly, our choice of Hamiltonian or the energy values alongside parameterize . As such,
or more concisely, . The mode of is when and when .
B. Entropic constraint
We constructed hyperensembles and by maximization of subject to distributional constraints on average energy . For statistical mechanics these are especially relevant because they impose no bias towards equilibrium. But one may also have knowledge of how nonequilibrium a given system is [43–45], motivating hyperensembles with constraints on Shannon entropy [46]. We consider an expectation constraint, as per (4), of the form
Without any other constraints, maximization of § subject to (18) yields the entropic prior , arising in Bayesian statistics and entropy estimation [39, 47–49], which takes the form
Crooks introduced hyperensembles for which (18) is interpretable as a physical constraint, subject also to . Together with (18), the S-maximizer is Crooks's hyperensemble, , which can be written in the form
with free energy and under the parameterization in (15) for . All results on are recovered in the limit .
By generalizing to arbitrary combinations of exact and expectation constraints on , the framework of Sec. II includes both and (see Appendix B). We next return to consideration of the exact average energy constraint , but in conjunction with the expected entropy constraint (18).
1. Entropic-energetic hyperensemble
Subject to expected entropy constraint (18) alongside , the S-maximizing hyperensemble , whose support is , takes the form
with ; the parameter is determined by (8), i.e., for a prescribed , as the solution of
Unlike in and , the mean excess free energy becomes a directly tunable property in in terms of constraint values and :
with fixed by . Moreover, akin to in (Appendix B3), we may write
Thus, may be interpreted equivalently as the S-maximizing hyperensemble subject to with a given expected KL divergence to equilibrium, or a given mean extractable work [50] (see Sec. III C 2).
Neither nor are recoverable as special cases of , because the support of is restricted to . The parameter range for is , and at a given , the parameter range for is , with and with given by Eq. (14). This range for coincides also with the support of for random , in notable contrast with : at a given value of , the latter permits any , and has a density of with support on reflecting that has support .
For , higher-entropy distributions are favored in , with limiting extreme . For , low-entropy distributions are favored. The limit corresponds to (Eq. (14)) with concentrating on the entropy minimizer (Appendix D). At , the hyperensemble of Sec. III A 1 is recovered.
C. Comparison to Boltzmann-Gibbs
We now compare the introduced hyperensembles , , and to the Boltzmann-Gibbs distribution . In each case we parameter-match the energetic constraint value to the value of , making comparisons as a function of . Note that , unlike or , can recover the BG equilibrium in a limiting special case .
As an illustrative example, we consider a system with microstates and level-spaced energies: for each ,
for a chosen spacing parameter . The equilibrium has a truncated-geometric form,
hereafter setting for simplicity. To compare the hyperensembles to , we first establish the appropriate parameter-matchings.
1. Parameter-matchings and
For , the parameter associated with a given value of is simply . Or, for a given , the associated is obtained by solving for . In the linearly spaced energies model (26), we have
The BG distribution can be seen as the unambiguous reference equilibrium for both and , since it is the unique point of intersection between the parametric family and the hyperensemble support . is the mode of for , and the least probable distribution for . Given , or equivalently , the model has only one free parameter remaining: , or equivalently . The latter has values in the range , with the upper bound being and the lower bound given by Eq. (14).
For the hyperensemble , we establish a parameter matching between and holding throughout the range . We do this by first calculating after computing for the case of level-spaced energies in Appendix E. Then, setting , we obtain
a transcendental with unique root . Note that the limit corresponds to , with ; the latter equals for level-spaced energies.

FIG. 3. Kullback-Leibler divergences , and for both energy-constrained hyperensembles, and , under parameter matchings of Sec. III C 1. Displayed is the case of with , with means computed from steps of MCMC sampling (Appendices C, F). Dashed curves: mean KL divergence to for random distributions; dotted curves: KL divergence of the mean distribution to . Associated theoretical values at (Appendix G) are displayed to the left of the curves.
2. Nonequilibrium free energy
The excess nonequilibrium free energy of relative to equilibrium can be expressed via the Kullback-Leibler (KL) divergence, [51]. In particular, the free energy is denoted , taking equilibrium value ; then is
(29)
Thus we may sample from or and examine the resulting statistics of ; such analyses quantify how far from equilibrium one may expect a system to be, given knowledge only of the sample space, microstate energies, and exact or expected average energy. Incorporating the entropic constraint permits to be directly tuned; in particular,
Additionally, we compute the free energy of the mean distribution in each hyperensemble. The effect of averaging is to reduce free energy, i.e.,
following from the convexity of KL divergence [52]. The mean distribution thus can be unrepresentative from a thermodynamic standpoint, suppressing the nonequilibrium nature of random . This is notable in light of past hyperstatistical modeling approaches that focused on the mean distribution as a central object of interest [21, 53, 54]. The mean distribution is closer to equilibrium than typical random distributions, but nevertheless, strict inequality still holds except in special cases, so even generally has nonzero excess free energy.
We consider the mean KL divergence, and KL divergence of the mean distribution, to equilibrium, focusing on the level-spaced energies example. Appendix G examines these values in the limit , under the parameter-matchings established in Sec. III C 1, including exact analytics at ; see Fig. 3. In both models and , the quantity decreases monotonically from a maximum at . The limiting value
(32)
where is the Harmonic number. The value at is ; see Fig. 3. For , the limit corresponds to (the arithmetic average energy), and
(33)
At , Eq. (33) evaluates to . The mean distribution has nonmonotonic KL divergence to equilibrium as a function of in both models. increases from 0 (which follows from ) and reaches a global maximum before decreasing back to zero as . The quantity similarly has a local maximum around the same , but also has a local minimum at smaller . In contrast with , the KL divergence to equilibrium of remains nonzero as (). We show
which at equals . For further details, see Appendix G.
In , to demonstrate the parameterization of by , we examine as a function of at several values of in Fig. 4. For , the mean entropy is near that of , namely,
with the solution of . For , at large , samples are near the entropy minimizer , with inheriting the non-monotonicity of as can be seen in Fig. 4. Making note in Eq. (14) that for we have and , the minimal entropy is

FIG. 4. Mean Shannon entropy versus for random probability distributions from the hyperensemble (Sec. III B 1) at several values of , with and energies . The value of for is near , the Boltzmann-Gibbs value; for it is near (Eq. (36)), varying non-monotonically with . The mean entropy is computed from steps of MCMC sampling (Appendices C, F).
Given the constraint , the free energy excess of any relative to at is given by
i.e., entirely informational. The average distribution satisfies by concavity of entropy [52], reflecting that is closer to equilibrium than typical random p drawn from a nonequilibrium hyperensemble.
IV. APPLICATIONS
Here we demonstrate applicability of the hyperstatistical modeling framework of Sec. II in a few areas: superstatistics (Sec. IV A), nonequilibrium steady states (Sec. IV B), and Bayesian inference (Sec. IV C).
A. Superstatistics
Superstatistics is a modeling framework that utilizes a Boltzmann-Gibbs distribution with random inverse temperature drawn from a prescribed density , reflecting a quasi-equilibrium setting [55–60]. The mixing density is free to choose, and can be estimated from data or derived on the basis of entropy maximization arguments [61]. In a superstatistics model, the distribution inherits randomness from , and thus is a hyperensemble albeit with support restricted to the one-dimensional family . In particular,
However, subject to constraint , superstatistics can only predict equilibrium. That is because of the monotonic relationship , which is only compatible with , in which case . In contrast, the hyperensembles and include also all nonequilibria in their support. Thus at fixed , comparison of or to superstatistics reduces to their comparison to Boltzmann-Gibbs (Sec. III C 2).
For a more substantive comparison between super-statistics and the framework of Sec. II, we consider two complementary approaches. In Sec. IV A 1, we take as given and construct a mixture model of , akin to how superstatistics is a mixture model of . In Appendix H we examine the special case in which the density of average energy aligns with that of .
1. Mixture model of for a given
In Sec. III A 1 we introduced the average energy hyperensemble , which satisfies (as does the BG equilibrium ), but which lacks any constraint on entropy. Any given superstatistics model can be seen as sampling a random value of average energy , with determined by (as explained below), and then imposing an entropy maximization constraint . This motivates the notion of a superstatistical mixture of , following the same prescription of , but without Shannon entropy maximization: draw a random , then sample with . In that way, we retain freedom to choose , but impose no subsequent equilibrium assumption. We denote the resulting mixture model as . This approach allows comparison of quasi-equilibrium models with fully nonequilibrium counterparts, subject to aligned statistics of . In Appendix H we consider the case corresponding to .
The density of average energy associated with a given is obtained by transformation of random variables. Namely, using at , we have
with the energy variance at equilibrium,
The resulting hyperensemble has support over all distributions with average energy values in the support of . Since has support only on , and has a monotonic relationship with , the mixture model can be

FIG. 5. Random samples and the mean distribution from the -superstatistics model and the associated mixed- hyperensemble (Sec. IV A 1), for the case of with energies . The left three visualizations are at and (upper) (middle) and (lower). The region of the unit simplex displayed corresponds to or equivalently . Insets display the region around . Lower right: KL divergence, on average, and of the mean distribution, to , in both models. For superstatistics, both converge to zero as a function of the concentration parameter . For the mixture hyperensemble, both converge to their values in with (see Sec. III C 2).
represented directly as
(41)
Sampling of the hyperensemble is a simple three-step procedure: (1) draw , (2) calculate , then (3) sample via . The mean distribution is again a natural object of interest; for , it is a mixture of the centroids of across , weighted by .
We consider the example of a density of , under the parameterization from Ref. [53], in terms of the mean and a parameter that controls the concentration (the variance is ). Namely,
See Fig. 5 for a comparison of superstatistics and the mixed- model across parameter k at fixed .
B. Nonequilibrium steady states
The hyperensembles described above provide static probabilistic models of nonequilibrium. They represent uncertainty over a one-time distribution without imposition of maximum Shannon entropy. A natural next question is dynamical: how should distributional uncertainty be applied to dynamical processes? Here, we describe the corresponding construction for finite-state stochastic dynamics, focusing on nonequilibrium steady states (NESS) in discrete time Markov chains (DTMCs). This is in contrast with the common use of continuous time in stochastic thermodynamics [62], which enable more realistic models and constraints [63]. Yet, the following considerations are applicable to the jump chain of a stationary continuous-time Markov chain, or to the joint distribution of microstates at several instants of time. Several variational techniques have been considered in nonequilibrium modeling, such as maximum caliber [64–66] and maximum entropy production [67–69]; our approach is via S-maximization as per Sec. II.
We consider stationary DTMCs over a finite sample space with transition matrix and stationary distribution , related by . We assume that the reverse of every transition is also allowed, i.e., . The natural dynamical analogue to a microstate distribution is not just the stationary distribution , but the two-timestep transition distribution :
i.e., the two-time marginal: the stationary probability that the process undergoes transition . Stationarity is encoded by the condition holding for each . A nonequilibrium steady state (NESS) is not simply a nonequilibrium distribution of microstates with respect to a given Hamiltonian; it is a stationary circulation pattern, as captured by the natural nonequilibrium observable , the steady-state entropy production rate:
NESS is characterized by ; for , the dynamics is reversible, i.e., satisfies detailed balance: for all .
1. Random NESS
We apply the framework of Sec. II to sample random transition distributions m subject to constraints. We begin by examining the set of all stationary DTMCs, demonstrating probability 1 of NESS. Any transition distribution m resides in the probability simplex ; stationarity implies furthermore that m resides in the intersection of hyperplanes defining the stationary-flow polytope by
(45)
If only some transitions are allowed, as described by a set of directed edges in a transition graph with vertices, the polytope is restricted to the corresponding set of directed edges. Models of random transition distributions can be formulated according to the framework of Sec. II; in the absence of any constraints beyond stationarity, the -maximizer is uniform on :
By imposing additional exact constraints of the form , m is restricted to
on which the S-maximizing hyperensemble is again uniform. Moreover, we may impose expectation-constraints on m of the form as in Eq. (4) to obtain exponential-form densities of m, with Lagrange multipliers determined by (8).
Detailed balance is a stronger condition than stationarity, so , where the reversible-flow polytope is defined by
Moreover, transition distributions sampled from are NESS with probability 1. We demonstrate that occupies a vanishing volume fraction of by counting the independent degrees of freedom of distributions in each. We assume that the transition graph is connected and that for every non-self edge present, the reverse edge is also present. Let e be the number of undirected non-self edges and let be the number of self-loops; then m then has entries.
Of the n stationarity conditions, one follows from the others, ensuring that the total probability is conserved. Together with normalization, this gives
For reversible flows, the two directions of each non-self edge have the same value. There are therefore entries before normalization, giving
The difference between the two dimensionalities is
(51) which is the cycle rank of the underlying undirected graph after the self-loops are removed, which counts the number of independent cycles [70, 71]. Thus the additional stationary degrees of freedom are the independent cycle currents. When the graph is a tree, stationarity implies reversibility. For the complete graph, , while , with difference . Removal of self-loops lowers dimensionality of both and equivalently, leaving their difference unchanged.
2. Three-state system
We now take , allow all non-self transitions, and set . In this case and . We choose the cycle orientation . Stationarity requires the three oriented edge currents to be equal:
We also define the total flows along the three pairs of opposite edges by , , and . Every can then be written as
The variables satisfy and . It follows that .
Consider drawn from the uniform stationary-flow hyperensemble . In the event of , the allowed values of form a triangle; at , it reduces to a single point corresponding to one of the two deterministic directed cycles; at , this is the reversible triangle . The triangle's side lengths are proportional to , and its area is therefore proportional to . Normalizing over gives the probability density of current for :
The reversible point is the mode, but has probability zero.
We next suppose that the stationary distribution is known exactly: . The flows satisfying this constraint form . The three outgoing marginals are , , and . The constraint therefore fixes , leaving only the cycle current . Thus every allowed flow has the form
so is a line segment on which is uniform; equal intervals of J give equal lengths along the segment, and hence
As such, the steady current remains uncertain even with a constrained stationary distribution ; indeed, the current density changed from Eq. (54) to the uniform (56), with the latter having in contrast with the former's .
This example demonstrates that uncertainty over stationary dynamics remains even when the one-time distribution is known exactly, and moreover that by constraining the stationary distribution, larger expected currents can result. More generally, exact or expectation constraints on stationary distributions, cycle currents, individual edge flows, or entropy production define hyper-ensembles on . This approach can therefore provide reference models for nonequilibrium steady states in a wide range of more general contexts.
C. Bayesian inference
There are many natural inference scenarios for the framework of Sec. II; in the simplest case, a hyperensemble can be taken as a Bayesian prior, representing entirely epistemic uncertainty of a single ground-truth distribution. (In contrast, in many examples of interest, a full hyperensemble may represent the ground truth, capturing population-level statistics of distributions; see Sec. II A.) In this section, we consider standard Bayesian inference under observation of N i.i.d. samples from an individual distribution; the resulting posterior hyperensemble tilts towards the observed frequencies, concentrating on a single point as .
For a given hyperensemble and an observed sequence of microstates , the hyperensemble posterior as a function of is given by Bayes's rule. Random samples from may be drawn via MCMC (Appendix F), and its mode and mean can be characterized analytically. The results below are for fixed , but we may also invoke random , e.g., to show that when are drawn i.i.d. from a fixed in the support of , perfect inference is possible as , washing out the prior entirely. For finite , generating random allows examination of generic behavior. Note, then, that even the mean and mode of become random, inheriting their randomness from .
The i.i.d. measurement model allowing a Bayesian posterior is as follows: given a categorical distribution p, the probability of x is
with denoting the empirical count of in . The posterior hyperensemble is then
where the mean probability of x under the prior is is
We consider subject to expectation constraints with Lagrange multipliers , yielding as per Sec. II. The posterior hyperensemble then has the form
with
The posterior can be sampled via MCMC [72]. The mode of , i.e., the maximum a posteriori estimate of [73], is
The posterior mean [74] is expressed elementwise by
with denoting a vector of microstates of length consisting of with an appended st element, . For large , field-theoretic techniques can be used to estimate [5].
1. Inference under Crooks's prior
Crooks's hyperensemble [19] (Sec. III B, Appendix B 3) takes the form , with determining the values of constrained expectations and ; for , the mode of is . Treating as a reference equilibrium, predictions from are generically nonequilibrium, with mean free energy
We augment Crooks's hyperensemble by incorporation of observed data ; the hyperensemble posterior (60) is then
(65)
which can be sampled from straightforwardly by rejection and MCMC (Appendix F). Hence properties of can be estimated to high precision, e.g., the posterior mean distribution (Eq. (63)) or the mean free energy excess . The posterior mode (Eq. (62)) is obtained by maximizing the exponent in the second expression of (65). Introducing a Lagrange multiplier for normalization, the stationarity condition with respect to is
Denoting , the modal probability solving (66) is, if ,
with W denoting the Lambert W function's principal branch; if , the condition (66) simplifies and is
i.e., proportional to across microstates not appearing in . The value of is uniquely determined by the normalization condition, . At , the original mode is recovered ( ) and . Note that can be expressed in BG form as with . In Appendix I we show that the KL divergence between the reference equilibrium and the posterior mode is given by
or equivalently, that .
V. DISCUSSION
In this work, we have formulated models of random probability distributions subject to constraints on exact or expected values of properties of p. A hyperensemble maximizing differential entropy subject to incomplete knowledge provides a reference model for distributional statistics and a prior for statistical inference. This approach follows the conventional modeling logic of Jaynes and is applicable whenever the sample space itself is a probability simplex . Distributional uncertainty is already familiar across domains, most plainly in Bayesian statistics [75]; indeed, each considered hyperensemble is a categorical prior. Random distributions also arise in, e.g., models of disordered systems in physics [76], empirical sampling distributions in large deviation theory [77], and random measures in probability theory [78]. The framework of Sec. II generalizes the entropic prior and Crooks's hyperensemble;
we examined , , and , comparing them to Boltzmann-Gibbs (Sec. III) and demonstrating several applications (Sec. IV). Numerous theoretical extensions would be natural, e.g., exploring other constraint choices for random NESS (Sec. IV B), or furthering the geometric characterization of (Sec. III A 1) [79–81].
In Sec. IV C we considered the simplest inference scenario for this framework, but one may complicate it by including noise or correlations into the measurement model, or considering inference subject to exact constraints such as [82, 83] or relaxed forms thereof [84, 85]. The parameters of hyperensemble may also be uncertain; we consider uncertain in (Sec. IV A 1), and uncertainty in of the entropic prior (equivalently, an uncertain ) has been considered [86, 87]. Indeed, the formulation of a random may be even approached by application of modeling logic analogous to that of Sec. II. However, the set of possible is uncountably infinite-dimensional, so to assign a prior one must first specify a parametric family. One may continue to introduce hierarchical Bayesian layers indefinitely, but as we have demonstrated in this work, even a single layer of distributional uncertainty allows access to meaningful constraints on , , and other nontrivial properties of .
For models in statistical mechanics, the choice of can be seen as a physical assumption; removing or relaxing it permits straightforward modeling of nonequilibrium statistics, at the mere cost of no longer suppressing distributional randomness. We emphasize this work's compatibility with established approaches in nonequilibrium physical modeling [88–94], with many intersections explorable in future works. For instance, one may formulate models of random density matrices [95–97] via this approach; some constrained sampling algorithms are already known [98, 99]. As another example, we have considered constraints on Shannon entropy , but the approach is equally applicable to other entropies, e.g., Rényi or Tsallis [100, 101]. This could allow connections with nonextensive statistical mechanics [94, 102, 103], and moreover, mixed hyperensembles thereof (a la Sec. IV A) relate to the Tsallis extension of superstatistics [104]. (Similarly, S could be modified in the variational principle of Sec. II.) As one more example from nonequilibrium physics, consider the setting of information thermodynamics [105, 106]; observe that noisy-channel measurements induce a random posterior distribution, as implied by Bayes's rule and the random measurement outcome. The posterior has larger free energy by on average, with I denoting the mutual information of the measurement channel, but the full statistics of free energy can be examined in reference to chosen nonequilibrium hyperensembles. More generally, we anticipate similar intersections and applicability throughout physics, data science, statistics, and probabilistic modeling writ large.
Our approach provides mechanism-free predictions via the logic of null modeling; whenever imposed constraints leave open a degeneracy of distributions, one may formulate priors according to this framework. Yet, one may ask if and the constraints defining it are entirely epistemic devices, or if they have meaningful physical interpretations. As discussed in Sec. II A, numerous datasets consist of heterogeneous populations of distributions, and in such cases the formulated represent a model of a physically present ‘ensemble of ensembles’. In the energetically constrained hyperensembles of Sec. III, a notion of ‘energy balance’ is present, but without driving the system towards equilibrium (instead, is traversed). The entropic constraint for can be seen as indicating a ‘source of nonequilibrium’ (e.g., from random driving [107] or disequilibrium conversion [108]), that is, in relation to a default assumption of . But from the generalized standpoint of distributional statistics, no such ‘source’ need be assumed; the entropy constraint can be removed entirely, and nonequilibrium is expected by default. In the absence of complete information or an equilibrium assumption, distributional randomness and the associated nonequilibrium statistics naturally arise.
[1] E. T. Jaynes, Information theory and statistical mechanics, Phys. Rev. 106, 620 (1957).
[2] H. Jeffreys, An invariant form for the prior probability in estimation problems, Proceedings of the Royal Society of London. A. Mathematical and Physical Sciences 186, 453 (1946).
[3] S. Davis and G. Gutiérrez, Applications of the divergence theorem in Bayesian inference and MaxEnt, AIP Conference Proceedings 1757, 020002 (2016).
[4] V. Balasubramanian, Statistical inference, Occam's razor, and statistical mechanics on the space of probability distributions, Neural Computation 9, 349 (1997).
[5] W. Bialek, C. G. Callan, and S. P. Strong, Field theories for learning probability distributions, Phys. Rev. Lett. 77, 4693 (1996).
[6] S. Pressé, K. Ghosh, J. Lee, and K. A. Dill, Principles
of maximum entropy and maximum caliber in statistical physics, Rev. Mod. Phys. 85, 1115 (2013).
[7] M. Kardar, Statistical Physics of Particles (Cambridge University Press, 2007).
[8] T. Squartini and D. Garlaschelli, Maximum-Entropy Networks: Pattern Detection, Network Reconstruction and Graph Combinatorics, SpringerBriefs in Complexity (Springer International Publishing, 2017).
[9] J. Kazama and J. Tsujii, Maximum entropy models with inequality constraints: A case study on text categorization, Machine Learning 60, 159–194 (2005).
[10] J. N. Kapur, Maximum-entropy models in science and engineering., Biometrics 48, 333 (1992).
[11] A. De Martino and D. De Martino, An introduction to the maximum entropy approach and its application to inference problems in biology, Heliyon 4, e00596 (2018).
[12] A. Golan and D. K. Foley, Understanding the constraints in maximum entropy methods for modeling and inference, IEEE Transactions on Pattern Analysis and Machine Intelligence, 1–8 (2022).
[13] J. Jiao, K. Venkat, Y. Han, and T. Weissman, Maximum likelihood estimation of functionals of discrete distributions, IEEE Transactions on Information Theory 63, 6774–6798 (2017).
[14] J. Kang, S. Jeong, C. Pae, and H. Park, Bayesian estimation of maximum entropy model for individualized energy landscape analysis of brain state dynamics, Human Brain Mapping 42, 3411–3428 (2021).
[15] J. Aitchison, The statistical analysis of compositional data, Journal of the Royal Statistical Society: Series B (Methodological) 44, 139 (1982).
[16] J. Bacon-Shone, Ranking methods for compositional data, Journal of the Royal Statistical Society Series C: Applied Statistics 41, 533 (1992).
[17] M. L. Morrison, K. S. Xue, and N. A. Rosenberg, Quantifying compositional variability in microbial communities with FAVA, Proceedings of the National Academy of Sciences 122, e2413211122 (2025).
[18] C. Weistuch, J. Zhu, J. O. Deasy, and A. R. Tannenbaum, The maximum entropy principle for compositional data, BMC Bioinformatics 23, 10.1186/s12859-022-05007-z (2022).
[19] G. E. Crooks, Beyond Boltzmann-Gibbs statistics: Maximum entropy hyperensembles out of equilibrium, Phys. Rev. E 75, 041119 (2007).
[20] H. Gao, T. Li, and C. Xiao, A probable probability distribution of a series nonequilibrium states in a simple system out of equilibrium, Physica A: Statistical Mechanics and its Applications 450, 354 (2016).
[21] E. Stopnitzky and S. Still, Nonequilibrium abundances for the building blocks of life, Phys. Rev. E 99, 052101 (2019).
[22] I. C. Prentice and T. Webb III, Pollen percentages, tree abundances and the Fagerlind effect, Journal of Quaternary Science 1, 35 (1986).
[23] G. B. Gloor, J. M. Mackclaim, V. Pawlowsky-Glahn, and J. J. Egozcue, Microbiome datasets are compositional: And this is not optional, Frontiers in Microbiology 8, 10.3389/fmicb.2017.02224 (2017).
[24] S. F. M. Hart, N. Alcala, A. F. Feder, and K. Harris, A signature-agnostic test for differences between tumor mutation spectra reveals carcinogen and ancestry effects, Communications Biology 9, 10.1038/s42003-026-09652-5 (2026).
[25] N. J. Aebischer, P. A. Robertson, and R. E. Kenward, Compositional analysis of habitat use from animal radio-tracking data, Ecology 74, 1313 (1993).
[26] P. D. Nichols, H. R. Pethybridge, B. Zhang, P. Virtue, L. Meyer, Z. Dhurmeea, L. Marcus, J. A. Ericson, N. Hellessey, S. Every, K. Wheatley, C. C. Parrish, P. Eisenmann, A. M. M. Baylis, C. J. A. Bradshaw, S. L. Bierwagen, J. W. Young, L. I. E. Couturier, C. A. Rohner, J. Groß, C. Waugh, C. F. Phleger, C. Jackson, G. Jackson, C. Huveneers, S. Bengtson Nash, M. Brock, and P. Mansour, Fatty acid profiles of more than 470 marine species from the Southern Hemisphere, Ecology 104, e3888 (2023).
[27] M. L. Morrison, N. Alcala, and N. A. Rosenberg, FSTract: An FST-based tool for measuring ancestry variation in inference of population structure, Molecu-
lar Ecology Resources 22, 2614 (2022).
[28] M. L. Morrison, L. Mangé, S. Senkin, N. A. Rosenberg, M. Foll, L. Fernandez-Cuesta, and N. Alcala, Variability of mutational signatures is a footprint of carcinogens, medRxiv 10.1101/2023.11.23.23298821 (2023).
[29] S. F. M. Chastin, J. Palarea-Albaladejo, M. L. Dontje, and D. A. Skelton, Combined effects of time spent in physical activity, sedentary behaviors and sleep on obesity and cardio-metabolic health markers: A novel compositional data analysis approach, PLOS ONE 10, e0139984 (2015).
[30] S. Kjørgaard, Y. E. Ergemen, M. Kallestrup-Lamb, J. Oeppen, and R. Lindahl-Jacobsen, Forecasting causes of death by using compositional data analysis: The case of cancer deaths, Journal of the Royal Statistical Society Series C: Applied Statistics 68, 1351 (2019).
[31] C. A. Shelton, The size and composition of government expenditure, Journal of Public Economics 91, 2230 (2007).
[32] J. M. Fry, T. R. L. Fry, and K. R. McLaren, Compositional data analysis and zeros in micro data, Applied Economics 32, 953 (2000).
[33] P. Jofre-Campuzano and G. Coenders, Compositional classification of financial statement profiles: The weighted case, Journal of Risk and Financial Management 15, 10.3390/jrfm15120546 (2022).
[34] P. W. Koh, S. Sagawa, H. Marklund, S. M. Xie, M. Zhang, A. Balsubramani, W. Hu, M. Yasunaga, R. L. Phillips, I. Gao, T. Lee, E. David, I. Stavness, W. Guo, B. Earnshaw, I. Haque, S. M. Beery, J. Leskovec, A. Kundaje, E. Pierson, S. Levine, C. Finn, and P. Liang, Wilds: A benchmark of in-the-wild distribution shifts, in Proceedings of the 38th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 139, edited by M. Meila and T. Zhang (PMLR, 2021) pp. 5637–5664.
[35] J. Quiñonero-Candela, M. Sugiyama, A. Schwaighofer, and N. D. Lawrence, eds., Dataset Shift in Machine Learning (The MIT Press, 2008).
[36] V. Vapnik, An overview of statistical learning theory, IEEE Transactions on Neural Networks 10, 988–999 (1999).
[37] K. P. Murphy, Machine learning: a probabilistic perspective (MIT press, 2012).
[38] P. G. L. Dirichlet, Sur une nouvelle méthode pour la détermination des intégrates multiples, in G. Lejeune Dirichlet's Werke, Cambridge Library Collection - Mathematics, edited by L. Kronecker (Cambridge University Press, 2012) p. 375–380.
[39] A. Caticha and R. Preuss, Entropic priors, AIP Conference Proceedings 707, 371 (2004).
[40] C. J. P. Bélisle, H. E. Romeijn, and R. L. Smith, Hit-and-run algorithms for generating multivariate distributions, Mathematics of Operations Research 18, 255 (1993).
[41] L. Lovász, Hit-and-run mixes fast, Mathematical programming 86, 443 (1999).
[42] A. I. Barvinok, Computing the volume, counting integral points, and exponential sums, in Proceedings of the Eighth Annual Symposium on Computational Geometry, SCG '92 (Association for Computing Machinery, New York, NY, USA, 1992) p. 161–170.
[43] M. Vinck, F. P. Battaglia, V. B. Balakirsky, A. J. H. Vinck, and C. M. A. Pennartz, Estimation of the en-tropy based on its polynomial representation, Phys. Rev. E 85, 051139 (2012).
[44] L. Paninski, Estimation of entropy and mutual information, Neural Computation 15, 1191 (2003).
[45] E. Archer, I. M. Park, and J. W. Pillow, Bayesian entropy estimation for countable discrete distributions, J. Mach. Learn. Res. 15, 2833–2868 (2014).
[46] C. E. Shannon, A mathematical theory of communication, The Bell System Technical Journal 27, 379 (1948).
[47] B. J. Brewer and M. J. Francis, Entropic priors and Bayesian model selection, AIP Conference Proceedings 1193, 179 (2009).
[48] T. Neumann, Bayesian inference featuring entropic priors, AIP Conference Proceedings 954, 283 (2007).
[49] A. Caticha and R. Preuss, Maximum entropy and Bayesian data analysis: Entropic prior distributions, Phys. Rev. E 70, 046127 (2004).
[50] D. A. Sivak and G. E. Crooks, Near-equilibrium measurements of nonequilibrium free energy, Phys. Rev. Lett. 108, 150601 (2012).
[51] S. Kullback and R. A. Leibler, On Information and Sufficiency, The Annals of Mathematical Statistics 22, 79 (1951).
[52] T. M. Cover and J. A. Thomas, Elements of Information Theory (Wiley, 2005).
[53] C. Beck, Superstatistics: theory and applications, Continuum Mechanics and Thermodynamics 16, 293–304 (2004).
[54] C. Beck and E. Cohen, Superstatistical generalization of the work fluctuation theorem, Physica A: Statistical Mechanics and its Applications 344, 393 (2004).
[55] J. Leo van Hemmen and A. Longtin, Temperature fluctuations for a system in contact with a heat bath, Journal of Statistical Physics 153, 1132–1142 (2013).
[56] M. Falcioni, D. Villamaina, A. Vulpiani, A. Puglisi, and A. Sarracino, Estimate of temperature and its uncertainty in small systems, American Journal of Physics 79, 777 (2011).
[57] H. Touchette, Temperature fluctuations and mixtures of equilibrium states in the canonical ensemble, in Nonextensive Entropy: Interdisciplinary Applications, edited by M. Gell-Mann and C. Tsallis (Oxford University Press, 2004).
[58] C. Beck, Generalized statistical mechanics for superstatistical systems, Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 369, 453 (2011).
[59] D. S. P. Salazar and G. L. Vasconcelos, Multicanonical distribution: Statistical equilibrium of multiscale systems, Phys. Rev. E 86, 050103(R) (2012).
[60] P. D. Dixit, Detecting temperature fluctuations at equilibrium, Physical Chemistry Chemical Physics 17, 13000 (2015).
[61] J. Naudts, Generalised thermostatistics using hyper-ensembles, AIP Conference Proceedings 965, 84 (2007).
[62] U. Seifert, Stochastic thermodynamics, fluctuation theorems and molecular machines, Reports on Progress in Physics 75, 126001 (2012).
[63] D. H. Wolpert, A. Kolchinsky, and J. A. Owen, A space-time tradeoff for implementing a function with master equation dynamics, Nature Communications 10, 10.1038/s41467-019-09542-x (2019).
[64] E. T. Jaynes, Macroscopic prediction, in Complex Systems—Operational Approaches in Neurobiology,
Physics, and Computers, edited by H. Haken (Springer Berlin Heidelberg, Berlin, Heidelberg, 1985) pp. 254–269.
[65] P. D. Dixit and K. A. Dill, Inferring microscopic kinetic rates from stationary state distributions, Journal of Chemical Theory and Computation 10, 3002 (2014).
[66] K. Ghosh, P. D. Dixit, L. Agozzino, and K. A. Dill, The maximum caliber variational principle for nonequilibria, Annual Review of Physical Chemistry 71, 213 (2020).
[67] L. Martyushev and V. Seleznev, Maximum entropy production principle in physics, chemistry and biology, Physics Reports 426, 1 (2006).
[68] J. Dyke and A. Kleidon, The maximum entropy production principle: Its theoretical foundations and applications to the earth system, Entropy 12, 613 (2010).
[69] R. G. Endres, Entropy production selects nonequilibrium states in multistable systems, Scientific Reports 7, 10.1038/s41598-017-14485-8 (2017).
[70] F. Harary, Graph Theory (Addison-Wesley, Reading, MA, 1969).
[71] R. Diestel, Graph Theory (Springer, Heidelberg, 2017).
[72] L. Tierney, Markov chains for exploring posterior distributions, The Annals of Statistics 22, 1701 (1994).
[73] M. Dashti, K. J. Law, A. M. Stuart, and J. Voss, Map estimators and their consistency in Bayesian nonparametric inverse problems, Inverse Problems 29, 095017 (2013).
[74] W. A. Ericson, On the posterior mean and variance of a population mean, Journal of the American Statistical Association 65, 649 (1970).
[75] R. van de Schoot, S. Depaoli, R. King, B. Kramer, K. Märtens, M. G. Tadesse, M. Vannucci, A. Gelman, D. Veen, J. Willemsen, and C. Yau, Bayesian statistics and modelling, Nature Reviews Methods Primers 1, 10.1038/s43586-020-00001-2 (2021).
[76] A. Bovier, Statistical Mechanics of Disordered Systems: A Mathematical Perspective (Cambridge University Press, 2006).
[77] F. den Hollander, Large Deviations (American Mathematical Society, 2008).
[78] O. Kallenberg, Random Measures, Theory and Applications (Springer International Publishing, 2017).
[79] S. P. Webb, Central slices of the regular simplex (University of London, University College London (United Kingdom), 1996).
[80] J. B. Lasserre, Volume of slices and sections of the simplex in closed form, Optimization Letters 9, 1263 (2015).
[81] H. Dirksen, Sections of the regular simplex – volume formulas and estimates, Mathematische Nachrichten 290, 2567 (2017).
[82] R. Silva and A. Kalaitzis, Bayesian inference via projections, Statistics and Computing 25, 739–753 (2015).
[83] N. G. Polson and D. Zantedeschi, Bayesian prediction under moment conditioning, arXiv preprint arXiv2510.20742 (2025).
[84] L. L. Duan, A. L. Young, A. Nishimura, and D. B. Dunson, Bayesian constraint relaxation, Biometrika 107, 191 (2020).
[85] R. Presman and J. Xu, Distance-to-set priors and constrained bayesian inference, in Proceedings of The 26th International Conference on Artificial Intelligence and Statistics, Proceedings of Machine Learning Research, Vol. 206, edited by F. Ruiz, J. Dy, and J.-W. van de Meent (PMLR, 2023) pp. 2310–2326.
[86] J. Skilling, Classic maximum entropy, in Maximum Entropy and Bayesian Methods: Cambridge, England, 1988, edited by J. Skilling (Springer Netherlands, Dordrecht, 1989) pp. 45–52.
[87] C. E. M. Strauss, D. H. Wolpert, and D. R. Wolf, Alpha, evidence, and the entropic prior, in Maximum Entropy and Bayesian Methods: Paris, France, 1992, edited by A. Mohammad-Djafari and G. Demoment (Springer Netherlands, Dordrecht, 1993) pp. 113–120.
[88] D. P. Ruelle, Extending the definition of entropy to nonequilibrium steady states, Proceedings of the National Academy of Sciences 100, 3054 (2003).
[89] V. Ryazanov, Lifetime distributions in the methods of non-equilibrium statistical operator and superstatistics, The European Physical Journal B 72, 629 (2009).
[90] M. Otten and G. Stock, Maximum caliber inference of nonequilibrium processes, The Journal of Chemical Physics 133, 034119 (2010).
[91] M. Habeck, Bayesian approach to inverse statistical mechanics, Phys. Rev. E 89, 052113 (2014).
[92] L. Truffet, Shannon Entropy reinterpreted, Reports on Mathematical Physics 81, 303 (2018).
[93] K.-M. Shen, B.-W. Zhang, and E.-K. Wang, Generalized ensemble theory with non-extensive statistics, Physica A: Statistical Mechanics and its Applications 487, 215 (2017).
[94] C. Tsallis, Beyond Boltzmann–Gibbs–Shannon in physics and elsewhere, Entropy 21, 10.3390/e21070696 (2019).
[95] W. K. Wootters, Random quantum states, Foundations of Physics 20, 1365 (1990).
[96] K. Zyczkowski and H.-J. Sommers, Induced measures in the space of mixed quantum states, Journal of Physics A: Mathematical and General 34, 7111 (2001).
[97] H.-P. Breuer and F. Petruccione, The Theory of Open Quantum Systems (Oxford University Press, 2007).
[98] K. Życzkowski, K. A. Penson, I. Nechita, and B. Collins, Generating random density matrices, Journal of Mathematical Physics 52, 062201 (2011).
[99] P. M. Alsing, C. C. Tison, J. Schneeloch, R. J. Birritella, and M. L. Fanto, Distribution of density matrices at fixed purity for arbitrary dimensions, Phys. Rev. Res. 4, 043114 (2022).
[100] A. Rényi, On measures of entropy and information, in Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, Volume 1: Contributions to the Theory of Statistics (University of California Press, 1961) pp. 547–561.
[101] C. Tsallis, Possible generalization of Boltzmann-Gibbs statistics, Journal of Statistical Physics 52, 479–487 (1988).
[102] P. Jizba and J. Korbel, Maximum entropy principle in statistical inference: Case for non-Shannonian entropies, Phys. Rev. Lett. 122, 120601 (2019).
[103] J. Korbel, R. Hanel, and S. Thurner, Classification of complex systems by their sample-space scaling exponents, New Journal of Physics 20, 093007 (2018).
[104] L. Squillante, S. M. Soares, C. Tsallis, and M. de Souza, Hyperstatistics, arXiv preprint arXiv:2604.24783 (2026).
[105] J. M. R. Parrondo, J. M. Horowitz, and T. Sagawa, Thermodynamics of information, Nature Physics 11, 131–139 (2015).
[106] P. Strasberg, G. Schaller, T. Brandes, and M. Esposito, Quantum and information thermodynamics: A unifying framework based on repeated interactions, Phys. Rev. X 7, 021003 (2017).
[107] G. Verley, C. Van den Broeck, and M. Esposito, Work statistics in stochastically driven systems, New Journal of Physics 16, 095001 (2014).
[108] E. Branscomb, T. Biancalani, N. Goldenfeld, and M. Russell, Escapement mechanisms and the conversion of disequilibria; the engines of creation, Physics Reports 677, 1 (2017), escapement Mechanisms and the Conversion of Disequilibria; the engines of creation.
[109] M. Brand, Structure learning in conditional probability models via an entropic prior and parameter extinction, Neural Computation 11, 1155 (1999).
[110] L. Lovász and S. Vempala, Hit-and-run from a corner, in Proceedings of the Thirty-Sixth Annual ACM Symposium on Theory of Computing, STOC '04 (Association for Computing Machinery, New York, NY, USA, 2004) p. 310–314.
[111] H. E. Romeijn and R. L. Smith, Simulated annealing for constrained global optimization, Journal of Global Optimization 5, 101–126 (1994).
[112] F. Knight, A pair of conditional normal convergence theorems, Theory of Probability & Its Applications 11, 191 (1966).
[113] D. H. Wolpert and D. R. Wolf, Estimating functions of probability distributions from a finite set of samples, Phys. Rev. E 52, 6841 (1995).
[114] I. Nemenman, F. Shafee, and W. Bialek, Entropy and inference, revisited, in Advances in Neural Information Processing Systems 14: Proceedings of the 2001 Conference, edited by T. G. Dietterich, S. Becker, and Z. Ghahramani (The MIT Press, 2002).
[115] M. de Berg, O. Cheong, M. van Kreveld, and M. Overmars, Computational Geometry: Algorithms and Applications (Springer Berlin Heidelberg, 2008).
Appendix A: Maximization of differential entropy
Here we consider the variational problem of formulating a probability density of distributions subject to exact and expectation constraints as per Sec. II. A priori we take background measure whose support is the unit simplex of categorical distributions over , with finite. is normalized as
where the argument of is with . We maximize the differential entropy, or more specifically, the negative KL divergence with respect to the background measure:
subject to constraints (which restrict the support from to ). may be of lower dimen-sionality, in which case dp is the associated surface element. Additionally, P is subject to expectation constraints of the form
where is a real-valued vector function of p; in addition, we require normalization,
This yields a Lagrangian for maximization,
We consider the function as a constrained collection of values , and maximize with respect to each given value , as
Denoting , the unique S-maximizer is
where
and . The Lagrange multipliers are determined by , and the support of is restricted to by the factor .
We herein consider the Euclidean metric yielding background measure , so that we may write
(A9)
Appendix B: Dirichlet(1), entropic prior, and Crooks's hyperensemble
Herein we briefly provide background on Dirichlet(1) (the uniform ), (the entropic prior) and (Crooks's hyperensemble).
1. Dirichlet(1)
The simplest hyperensemble is the Euclidean uniform prior over the simplex , i.e., the Dirichlet(1) distribution (for a general Dirichlet distribution with parameters , this corresponds to w.l.o.g. when selecting value 1; we use notation 1 for the vector of ones). The associated hyperensemble is uniform with density for all ,
where . This model can be sampled by drawing i.i.d. exponentials and rescaling them to unit sum. This model has , and , approaching as , where is the Euler-Mascheroni constant.
2. Entropic prior
We may equally well consider expectation-based entropic constraints, with knowledge encoded as expected Shannon entropy
leading to an exponential-family hyperensemble with entropy-dependent probability density:
in statistics called the entropic prior [48, 109] for a categorical distribution. The extrema and correspond to and , respectively, and corresponds to Dirichlet(1). can be sampled from exactly by an elementary rejection algorithm (Appendix F).
3. Crooks's hyperensemble
Crooks introduced a hyperensemble in which both and are subject to expectation constraints [19], namely,
yielding a hyperensemble with two Lagrange multipliers of the form
with . At , Eq. (B5) becomes the entropic prior (Sec. B2), whereas at , it becomes the energetic prior of Sec. III A 2. Crooks showed that may be rewritten as depending solely on the Kullback-Leibler divergence of p to a particular reference distribution, namely, the BG equilibrium at :
(B6) with , where denotes the partition function of . The quantity is the excess nonequilibrium free energy (see Sec. III C 2), from which Crooks's hyperensemble may be interpreted as S-maximizing subject to for a chosen inverse temperature .
At , the BG distribution is recovered from (B5) with probability 1. In the limit , a vanishing entropy is achieved, rather than a positive lowest value; that is permitted because the expected average energy constraint does not require any individual distribution p to exhibit . Instead, there is a limiting representation in terms of mixtures of Kronecker deltas,
with normalized weights satisfying , i.e., . Any mixture of the form (B7) achieves as implied by , but it remains to show what the values of are. In this limit, the hyperstatistical uncertainty is over the discrete set , to be quantified via Shannon entropy of . The maximizer of is thus simply BG with mean energy ; that is,
If one takes the limit at constant , the limiting Kronecker mixture is , i.e., . Thus,
Appendix C: Hit-and-run sampling
We provide a hit-and-run algorithm that samples from . We assume are all distinct and differ from . We hereafter denote . In what follows, we describe three parts of the algorithm that require particular attention, (i,ii,iii), and then provide pseudocode.
(i) The initialization step of requires construction of an arbitrary distribution in . We achieve this by a uniform mixture of the vertices of . Let and ; then for any , there is a distribution with support only on and residing in (obtained in Appendix D). To ensure full support of the initial point (albeit not strictly necessary [110]), we uniformly mix over all :
(ii) A key step of the algorithm is to generate a randomly oriented vector. In the unconstrained Euclidean space , this would be achieved by sampling a vector with i.i.d. Gaussian components . The two hyperplanar constraints require projection into a direction tangent to ; we subtract the mean to ensure tangency to , and also project out components normal to via a mean-zero version of the vector of energies. More concretely, we define , , and three unit vectors
Then, has a random orientation tangent to .
(iii) Another detail is how to obtain the boundary points of the (randomly oriented) chord passing through a given distribution. Suppose we have a distribution and a vector respecting the normalization and average energy constraints. Since is a convex polytope whose vertices constitute a measure-zero part of the boundary, a chord through of the form will with probability one intersect two faces of . This will occur at the two smallest values of for which for some component , once for and once for . The condition is equivalently
For each , the solution to (C3) is either positive, (if ), or negative, (if ). As grows, for each sign, there will be some that is reached first—namely, that for which is minimized. Thus, the positive and negative solutions are
All other solutions of (C3) are outside of , requiring negative probabilities of some components. Having covered the necessary details (i,ii,iii), we below present a full pseudocode for the algorithm .
Input arguments: , ,
- Initialize:
-
Compute by (C1) (with (D1), (D2))
-
Build unit vectors and of (C2)
- For , repeat:
(a) Sample a randomly oriented vector :
-
Sample i.i.d.
-
Project as
(b) Compute intersections of with the boundaries of :
(c) Set , where
Return
This HR algorithm can be extended directly to incorporate rejection probabilities at each step. If is rejected (at step (c)), retain the distribution as (i.e., take ) and increment . This permits incorporation of biases in the stationary density [111], e.g., the expected Shannon entropy constraint for sampling of (see Appendix F).
Additionally, the algorithm is straightforwardly extended to incorporate multiple linear constraints for (hyperensemble ), in which case the randomly-oriented vector is obtained by orthogonal projection. Note also that in the absence of any exact distributional constraints ( ) beyond normalization, HR is still fast-mixing in . The projection step then only ensures normalization; this permits fast sampling of, e.g., , , and .
Appendix D: Entropy minimizer in
Denoting , the vertices of are distributions of the form
where , with given by
from which
In particular, among all such vertices, the entropy minimizer is , with
where is the binary entropy function. The minimal value itself is
Although upper bounded by , the actual value of depends on how close is to either 0 or 1. In particular, the entropy-minimizing pair of microstates is one of two tuples: or , with the energy-extremizing microstates and
We denote and . Then,
Eq. (D7) can be deduced as follows. First, note that entropy is a concave function: for any two distributions and , and for any , the entropy satisfies . Consider a set of distributions and finite subset thereof for which each distribution in can be written as a mixture. Then by concavity, the entropy minimizing distribution(s) reside amongst . For which is a convex polytope, the minimal set consists of all vertices: mixtures of Kronecker deltas at with , with weights given by (D2). Among those vertices, the one with mixing weight closest to 0 or 1 is either or , and hence by monotonicity of in both and , one of those pairs will yield the minimal entropy value across all distributions in .
Note that at any fixed Hamiltonian, the minimum entropy value undergoes non-monotonic variation as a function of , vanishing whenever crosses one of the energy values. See Fig. 4.
Appendix E: integral
To obtain of Sec. III A 2, we use a formula presented in Ref. [42]. Let denote the normalization hyperplane in and let . Denote by the Lebesgue measure on induced from . Then
where , and . In the setting of , we have and
(or with ). Then with , we have that becomes . Finally, note that [112]. Accordingly,
(E2)
1. Linearly spaced energies
For the linearly spaced energies example with sample space , the hyperensemble (Sec. III A 2) has a simple form. Namely,
with (16) for becoming
where
(E5)
Thus
(E6)
Using ,
The natural parameter matching at then reduces to (28).
Appendix F: Elementary rejection algorithms
We here describe rejection-based sampling algorithms for the hyperensembles considered in this work. Each is as follows: we have a prescribed hyperensemble , and use rejection sampling on candidates from Dirichlet(1) (see Appendix B), or for general sharp constraints (Eq. (2)), accepting with probability . Then, an MCMC proceeds via a Markov chain whose stationary density is uniform on (or ) is used to sample candidate transitions, , with if accepted and otherwise . The initialization of via rejection sampling makes this algorithm start off being statistically exact already, with all subsequent samples having the correct marginal distribution, avoiding a transient.
1. Expectation constraints
We start with samplers for hyperensembles with full support over , with our main focus being on (the S-maximizer subject to ), as well as the posterior hyperensemble under observation of under Crooks's prior.
A simple rejection algorithm for is as follows: sample a candidate , then to accept with probability . With the optimal choice of scalar multiple, the acceptance probability is
ensuring for all and that is attained for the mode—namely, for and for , with denoting the Kronecker delta distribution at . The mean value of is for and . After obtaining a successfully accepted candidate, one may proceed with MCMC under acceptance probability of .
The same considerations apply to sample from via Dirichlet rejection, accepting a candidate with probability proportional to . For , the mode is the uniform on (entropy ); for , all point masses (entropy zero), , are tied as the mode. Taking a candidate ; in particular, if , accept with probability
with multiplicative constant ensuring for all , with equality only at the mode. If , lower entropy values are favored, with reaching one only at the modes where entropy vanishes. In that case the optimal acceptance probability has multiplicative constant giving
Any number of MCMC steps following an initially accepted candidate can be applied, following a similar protocol to that of but with . In particular, the transition is accepted with probability .
Identical procedures hold for Crooks's hyperensemble with at . The mode for is with , and for it is (if ) for which
and likewise for if . Transition is accepted with probability
(F5)
These considerations also apply to , the posterior hyperensemble upon observation of microstate sequence under Crooks's prior. After an initial rejection-sampling step, MCMC proceeds with candidate transition accepted with probability where
with as above.
2. Exact constraints
We may also draw via rejection sampling. Unlike the aforementioned models, has a restricted support, . But we have already obtained in Sec. III A 1 an efficient hit-and-run algorithm for uniform sampling of , which enables this approach for . In particular, an initial distribution is drawn from and accepted with probability ; with optimal coefficients, the acceptance probability is
where and was characterized in Sec. III A 1 (and Appendix D). For subsequent MCMC steps, candidate transition is obtained via a step of , and accepted with probability .
Appendix G: Limiting regimes of excess free energy
We consider for taken as random from, or as the mean of, a hyperensemble . Specifically, we characterize limiting cases of the following:
(G1)
We for simplicity consider , with having mirrored properties. (E.g., the considerations presented below hold also for , under replacement of by .)
1. limit
The first special case of interest is , where, across models, the probability concentrates onto the microstate with minimal energy . The BG equilibrium becomes a Kronecker delta, . The limit corresponds to and to , so the hyperensembles and both concentrate:
from which with probability 1. The mean distributions then also trivially become , so that also vanishes. Hence, all quantities of (G1) vanish in this limit, as reflected in Fig. 3.
2. KL divergences as
In the limit (infinite temperature), BG becomes uniform: . This corresponds in to , and in to (the arithmetic average energy, i.e., the average energy of the uniform distribution; ).
Only one of the KL divergence properties of (G1) vanishes at , namely, , because approaches Dirichlet(1) and thus
so as , as is consistent with Fig. 3. In contrast, the other three quantities in (G1) have nontrivial limiting values at , i.e., predict excess nonequilibrium free energy even at infinite temperature. We consider each of the remaining cases below.
a. Mean KL divergence in at
Considering as , the mean KL divergence behaves as
(G4)
The expected entropy of a Dirichlet distribution is known [113, 114]; for the uniform case, it has value
with the Euler-Mascheroni constant and the digamma function; for integer argument , , so (G5) becomes
with the nth Harmonic number. Eq. (G6) has large-n asymptotic .
b. limiting values in
As the hyperenesmble approaches , the uniform density on the energy hyperplane passing through the uniform distribution . The limiting mean KL divergence is
(G7)
requiring the average entropy in the uniform density over the energy surface . The entropy averaging method of Ref. [113] does not directly apply to compute (G7), but its value can be estimated by hit-and-run sampling (Appendix C).
The limit of the KL divergence of the mean distribution to is
(G8)
The centroid of the polytope can be computed via triangulation [115] or estimated by hit-and-run sampling (Appendix C).
In simple cases, direct analytical evaluation of (G7) and (G8) is possible; for and , we have that and
and the centroid is , from which (G8) evaluates to and (G7) evaluates, via integration with respect to , to , and these both match Fig. 3.
Appendix H: Aligning with
In Sec. IV A 1, we showed that the hyperensemble approach is compatible with general superstatistics models by constructing a mixture model of associated with an arbitrary density . We now consider the special case of comparison of superstatistics to (Sec. III A 2), the S-maximizer subject to expectation constraint . A wide range of superstatistics models are compatible with that form of energetic constraint; it implies a condition on the density of average energy (or equivalently ) of the form
To maximally align a superstatistics model with , we choose so that the probability density of average energy equals that of , the latter denoted . Since depends on p only through , the density of average energy is
determining the only compatible . The superstatistics model for which can be seen as a quasi-equilibrium approximation of . is obtained from (H2) by a transformation of random variables:
having used for the BG partition function . Note that the second derivative in (H3) is the energy variance at equilibrium, (40). Note that the predicted support of is rather than , i.e., samples with will arise in the -superstatistics model. An elementary direct approach to sample from (H3) is to draw and set . Examining the -superstatistics model alongside allows comparison of quasi-equilibrium and fully nonequilibrium settings. In particular, it does so with aligned density of average energy, with that density being the one arising from -maximization subject to .
Appendix I: Free energy of posterior mode
Recall from Sec. IV C 1 that with , with and assumed. Therefore, note that
Using ,
(I2)
Therefore the free energy of with respect to the reference equilibrium is
Finally, noting that the equilibrium free energy is , we have that the nonequilibrium free energy of is
Note that for , when , Eq. I4 reduces to the value , reflecting that in the absence of data.